blob: 746dca237eb9c8c5e1569234240ca23cebb9c35d [file] [log] [blame]
Wink Savillefbaaef92010-05-27 16:25:37 -07001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Jeff Davidsonafb4b722015-01-20 13:02:58 -08003# Generated by GNU Autoconf 2.69 for Protocol Buffers 2.6.1.
Wink Savillefbaaef92010-05-27 16:25:37 -07004#
5# Report bugs to <[email protected]>.
6#
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007#
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08008# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009#
10#
Wink Savillefbaaef92010-05-27 16:25:37 -070011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
Wink Savillefbaaef92010-05-27 16:25:37 -070016
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070020 emulate sh
21 NULLCMD=:
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Wink Savillefbaaef92010-05-27 16:25:37 -070023 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070032esac
Wink Savillefbaaef92010-05-27 16:25:37 -070033fi
34
35
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
Wink Savillefbaaef92010-05-27 16:25:37 -070073
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070076 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
Wink Savillefbaaef92010-05-27 16:25:37 -070081fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
Wink Savillefbaaef92010-05-27 16:25:37 -070089IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070092as_myself=
93case $0 in #((
Wink Savillefbaaef92010-05-27 16:25:37 -070094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
Wink Savillefbaaef92010-05-27 16:25:37 -0700102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
Wink Savillefbaaef92010-05-27 16:25:37 -0700114fi
115
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Wink Savillefbaaef92010-05-27 16:25:37 -0700123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
Wink Savillefbaaef92010-05-27 16:25:37 -0700133
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
Jeff Davidson0ddac1f2015-01-20 10:18:05 -0800137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
Jeff Davidson0ddac1f2015-01-20 10:18:05 -0800195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -0700201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
Jeff Davidson0ddac1f2015-01-20 10:18:05 -0800249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and
278$0: [email protected] about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
Jeff Davidson0ddac1f2015-01-20 10:18:05 -0800370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428} # as_fn_error
429
Wink Savillefbaaef92010-05-27 16:25:37 -0700430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
Wink Savillefbaaef92010-05-27 16:25:37 -0700448
Wink Savillefbaaef92010-05-27 16:25:37 -0700449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700453$as_echo X/"$0" |
Wink Savillefbaaef92010-05-27 16:25:37 -0700454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
Wink Savillefbaaef92010-05-27 16:25:37 -0700474
475
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Wink Savillefbaaef92010-05-27 16:25:37 -0700481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Wink Savillefbaaef92010-05-27 16:25:37 -0700498
Jeff Davidson0ddac1f2015-01-20 10:18:05 -0800499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
Wink Savillefbaaef92010-05-27 16:25:37 -0700503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
Wink Savillefbaaef92010-05-27 16:25:37 -0700511ECHO_C= ECHO_N= ECHO_T=
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700512case `echo -n x` in #(((((
Wink Savillefbaaef92010-05-27 16:25:37 -0700513-n*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700514 case `echo 'xy\c'` in
Wink Savillefbaaef92010-05-27 16:25:37 -0700515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
Wink Savillefbaaef92010-05-27 16:25:37 -0700519 esac;;
520*)
521 ECHO_N='-n';;
522esac
523
Wink Savillefbaaef92010-05-27 16:25:37 -0700524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700529 mkdir conf$$.dir 2>/dev/null
Wink Savillefbaaef92010-05-27 16:25:37 -0700530fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Jeff Davidson0ddac1f2015-01-20 10:18:05 -0800537 # In both cases, we have to default to `cp -pR'.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Jeff Davidson0ddac1f2015-01-20 10:18:05 -0800539 as_ln_s='cp -pR'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
Jeff Davidson0ddac1f2015-01-20 10:18:05 -0800543 as_ln_s='cp -pR'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700544 fi
Wink Savillefbaaef92010-05-27 16:25:37 -0700545else
Jeff Davidson0ddac1f2015-01-20 10:18:05 -0800546 as_ln_s='cp -pR'
Wink Savillefbaaef92010-05-27 16:25:37 -0700547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700552 as_mkdir_p='mkdir -p "$as_dir"'
Wink Savillefbaaef92010-05-27 16:25:37 -0700553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
Jeff Davidson0ddac1f2015-01-20 10:18:05 -0800558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
Wink Savillefbaaef92010-05-27 16:25:37 -0700560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
Wink Savillefbaaef92010-05-27 16:25:37 -0700567SHELL=${CONFIG_SHELL-/bin/sh}
568
Wink Savillefbaaef92010-05-27 16:25:37 -0700569
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
Wink Savillefbaaef92010-05-27 16:25:37 -0700572
573# Name of the host.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Wink Savillefbaaef92010-05-27 16:25:37 -0700575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
Wink Savillefbaaef92010-05-27 16:25:37 -0700589
590# Identity of this package.
591PACKAGE_NAME='Protocol Buffers'
592PACKAGE_TARNAME='protobuf'
Jeff Davidsonafb4b722015-01-20 13:02:58 -0800593PACKAGE_VERSION='2.6.1'
594PACKAGE_STRING='Protocol Buffers 2.6.1'
Wink Savillefbaaef92010-05-27 16:25:37 -0700595PACKAGE_BUGREPORT='[email protected]'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700596PACKAGE_URL=''
Wink Savillefbaaef92010-05-27 16:25:37 -0700597
598ac_unique_file="src/google/protobuf/message.cc"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700635enable_option_checking=no
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
Wink Savillefbaaef92010-05-27 16:25:37 -0700639subdirs
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700640PTHREAD_CFLAGS
641PTHREAD_LIBS
642PTHREAD_CC
643acx_pthread_config
644USE_EXTERNAL_PROTOC_FALSE
645USE_EXTERNAL_PROTOC_TRUE
646PROTOC
647HAVE_ZLIB_FALSE
648HAVE_ZLIB_TRUE
649POW_LIB
650LIBOBJS
651OTOOL64
652OTOOL
653LIPO
654NMEDIT
655DSYMUTIL
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -0700656MANIFEST_TOOL
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700657RANLIB
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -0700658ac_ct_AR
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700659AR
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -0700660DLLTOOL
661OBJDUMP
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700662LN_S
663NM
664ac_ct_DUMPBIN
665DUMPBIN
666LD
667FGREP
668SED
669LIBTOOL
670ISAINFO
671PROTOBUF_OPT_FLAG
672GCC_FALSE
673GCC_TRUE
674EGREP
675GREP
676CXXCPP
677am__fastdepCXX_FALSE
678am__fastdepCXX_TRUE
679CXXDEPMODE
680ac_ct_CXX
681CXXFLAGS
682CXX
683am__fastdepCC_FALSE
684am__fastdepCC_TRUE
685CCDEPMODE
686am__nodep
687AMDEPBACKSLASH
688AMDEP_FALSE
689AMDEP_TRUE
690am__quote
691am__include
692DEPDIR
693OBJEXT
694EXEEXT
695ac_ct_CC
696CPPFLAGS
697LDFLAGS
698CFLAGS
699CC
Jeff Davidson0ddac1f2015-01-20 10:18:05 -0800700AM_BACKSLASH
701AM_DEFAULT_VERBOSITY
702AM_DEFAULT_V
703AM_V
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700704am__untar
705am__tar
706AMTAR
707am__leading_dot
708SET_MAKE
709AWK
710mkdir_p
711MKDIR_P
712INSTALL_STRIP_PROGRAM
713STRIP
714install_sh
715MAKEINFO
716AUTOHEADER
717AUTOMAKE
718AUTOCONF
719ACLOCAL
720VERSION
721PACKAGE
722CYGPATH_W
723am__isrc
724INSTALL_DATA
725INSTALL_SCRIPT
726INSTALL_PROGRAM
727target_os
728target_vendor
729target_cpu
730target
731host_os
732host_vendor
733host_cpu
734host
735build_os
736build_vendor
737build_cpu
738build
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -0700739MAINT
740MAINTAINER_MODE_FALSE
741MAINTAINER_MODE_TRUE
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700742target_alias
743host_alias
744build_alias
745LIBS
746ECHO_T
747ECHO_N
748ECHO_C
749DEFS
750mandir
751localedir
752libdir
753psdir
754pdfdir
755dvidir
756htmldir
757infodir
758docdir
759oldincludedir
760includedir
761localstatedir
762sharedstatedir
763sysconfdir
764datadir
765datarootdir
766libexecdir
767sbindir
768bindir
769program_transform_name
770prefix
771exec_prefix
772PACKAGE_URL
773PACKAGE_BUGREPORT
774PACKAGE_STRING
775PACKAGE_VERSION
776PACKAGE_TARNAME
777PACKAGE_NAME
778PATH_SEPARATOR
779SHELL'
Wink Savillefbaaef92010-05-27 16:25:37 -0700780ac_subst_files=''
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700781ac_user_opts='
782enable_option_checking
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -0700783enable_maintainer_mode
Jeff Davidson0ddac1f2015-01-20 10:18:05 -0800784enable_silent_rules
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700785with_zlib
786with_protoc
787enable_dependency_tracking
788enable_64bit_solaris
789enable_shared
790enable_static
791with_pic
792enable_fast_install
793with_gnu_ld
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -0700794with_sysroot
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700795enable_libtool_lock
796'
Wink Savillefbaaef92010-05-27 16:25:37 -0700797 ac_precious_vars='build_alias
798host_alias
799target_alias
800CC
801CFLAGS
802LDFLAGS
803LIBS
804CPPFLAGS
805CXX
806CXXFLAGS
807CCC
808CXXCPP'
809ac_subdirs_all='gtest'
810
811# Initialize some variables set by options.
812ac_init_help=
813ac_init_version=false
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700814ac_unrecognized_opts=
815ac_unrecognized_sep=
Wink Savillefbaaef92010-05-27 16:25:37 -0700816# The variables have the same names as the options, with
817# dashes changed to underlines.
818cache_file=/dev/null
819exec_prefix=NONE
820no_create=
821no_recursion=
822prefix=NONE
823program_prefix=NONE
824program_suffix=NONE
825program_transform_name=s,x,x,
826silent=
827site=
828srcdir=
829verbose=
830x_includes=NONE
831x_libraries=NONE
832
833# Installation directory options.
834# These are left unexpanded so users can "make install exec_prefix=/foo"
835# and all the variables that are supposed to be based on exec_prefix
836# by default will actually change.
837# Use braces instead of parens because sh, perl, etc. also accept them.
838# (The list follows the same order as the GNU Coding Standards.)
839bindir='${exec_prefix}/bin'
840sbindir='${exec_prefix}/sbin'
841libexecdir='${exec_prefix}/libexec'
842datarootdir='${prefix}/share'
843datadir='${datarootdir}'
844sysconfdir='${prefix}/etc'
845sharedstatedir='${prefix}/com'
846localstatedir='${prefix}/var'
847includedir='${prefix}/include'
848oldincludedir='/usr/include'
849docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
850infodir='${datarootdir}/info'
851htmldir='${docdir}'
852dvidir='${docdir}'
853pdfdir='${docdir}'
854psdir='${docdir}'
855libdir='${exec_prefix}/lib'
856localedir='${datarootdir}/locale'
857mandir='${datarootdir}/man'
858
859ac_prev=
860ac_dashdash=
861for ac_option
862do
863 # If the previous option needs an argument, assign it.
864 if test -n "$ac_prev"; then
865 eval $ac_prev=\$ac_option
866 ac_prev=
867 continue
868 fi
869
870 case $ac_option in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700871 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
872 *=) ac_optarg= ;;
873 *) ac_optarg=yes ;;
Wink Savillefbaaef92010-05-27 16:25:37 -0700874 esac
875
876 # Accept the important Cygnus configure options, so we can diagnose typos.
877
878 case $ac_dashdash$ac_option in
879 --)
880 ac_dashdash=yes ;;
881
882 -bindir | --bindir | --bindi | --bind | --bin | --bi)
883 ac_prev=bindir ;;
884 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
885 bindir=$ac_optarg ;;
886
887 -build | --build | --buil | --bui | --bu)
888 ac_prev=build_alias ;;
889 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
890 build_alias=$ac_optarg ;;
891
892 -cache-file | --cache-file | --cache-fil | --cache-fi \
893 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
894 ac_prev=cache_file ;;
895 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
896 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
897 cache_file=$ac_optarg ;;
898
899 --config-cache | -C)
900 cache_file=config.cache ;;
901
902 -datadir | --datadir | --datadi | --datad)
903 ac_prev=datadir ;;
904 -datadir=* | --datadir=* | --datadi=* | --datad=*)
905 datadir=$ac_optarg ;;
906
907 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
908 | --dataroo | --dataro | --datar)
909 ac_prev=datarootdir ;;
910 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
911 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
912 datarootdir=$ac_optarg ;;
913
914 -disable-* | --disable-*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700915 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Wink Savillefbaaef92010-05-27 16:25:37 -0700916 # Reject names that are not valid shell variable names.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error $? "invalid feature name: $ac_useropt"
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
922 *"
923"enable_$ac_useropt"
924"*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
927 esac
928 eval enable_$ac_useropt=no ;;
Wink Savillefbaaef92010-05-27 16:25:37 -0700929
930 -docdir | --docdir | --docdi | --doc | --do)
931 ac_prev=docdir ;;
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 docdir=$ac_optarg ;;
934
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 ac_prev=dvidir ;;
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 dvidir=$ac_optarg ;;
939
940 -enable-* | --enable-*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700941 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Wink Savillefbaaef92010-05-27 16:25:37 -0700942 # Reject names that are not valid shell variable names.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -0700943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error $? "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
948 *"
949"enable_$ac_useropt"
950"*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=\$ac_optarg ;;
Wink Savillefbaaef92010-05-27 16:25:37 -0700955
956 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
957 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
958 | --exec | --exe | --ex)
959 ac_prev=exec_prefix ;;
960 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
961 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
962 | --exec=* | --exe=* | --ex=*)
963 exec_prefix=$ac_optarg ;;
964
965 -gas | --gas | --ga | --g)
966 # Obsolete; use --with-gas.
967 with_gas=yes ;;
968
969 -help | --help | --hel | --he | -h)
970 ac_init_help=long ;;
971 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
972 ac_init_help=recursive ;;
973 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
974 ac_init_help=short ;;
975
976 -host | --host | --hos | --ho)
977 ac_prev=host_alias ;;
978 -host=* | --host=* | --hos=* | --ho=*)
979 host_alias=$ac_optarg ;;
980
981 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
982 ac_prev=htmldir ;;
983 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
984 | --ht=*)
985 htmldir=$ac_optarg ;;
986
987 -includedir | --includedir | --includedi | --included | --include \
988 | --includ | --inclu | --incl | --inc)
989 ac_prev=includedir ;;
990 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
991 | --includ=* | --inclu=* | --incl=* | --inc=*)
992 includedir=$ac_optarg ;;
993
994 -infodir | --infodir | --infodi | --infod | --info | --inf)
995 ac_prev=infodir ;;
996 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
997 infodir=$ac_optarg ;;
998
999 -libdir | --libdir | --libdi | --libd)
1000 ac_prev=libdir ;;
1001 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1002 libdir=$ac_optarg ;;
1003
1004 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1005 | --libexe | --libex | --libe)
1006 ac_prev=libexecdir ;;
1007 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1008 | --libexe=* | --libex=* | --libe=*)
1009 libexecdir=$ac_optarg ;;
1010
1011 -localedir | --localedir | --localedi | --localed | --locale)
1012 ac_prev=localedir ;;
1013 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1014 localedir=$ac_optarg ;;
1015
1016 -localstatedir | --localstatedir | --localstatedi | --localstated \
1017 | --localstate | --localstat | --localsta | --localst | --locals)
1018 ac_prev=localstatedir ;;
1019 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1020 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1021 localstatedir=$ac_optarg ;;
1022
1023 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1024 ac_prev=mandir ;;
1025 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1026 mandir=$ac_optarg ;;
1027
1028 -nfp | --nfp | --nf)
1029 # Obsolete; use --without-fp.
1030 with_fp=no ;;
1031
1032 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1033 | --no-cr | --no-c | -n)
1034 no_create=yes ;;
1035
1036 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1037 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1038 no_recursion=yes ;;
1039
1040 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1041 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1042 | --oldin | --oldi | --old | --ol | --o)
1043 ac_prev=oldincludedir ;;
1044 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1045 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1046 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1047 oldincludedir=$ac_optarg ;;
1048
1049 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1050 ac_prev=prefix ;;
1051 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1052 prefix=$ac_optarg ;;
1053
1054 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1055 | --program-pre | --program-pr | --program-p)
1056 ac_prev=program_prefix ;;
1057 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1058 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1059 program_prefix=$ac_optarg ;;
1060
1061 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1062 | --program-suf | --program-su | --program-s)
1063 ac_prev=program_suffix ;;
1064 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1065 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1066 program_suffix=$ac_optarg ;;
1067
1068 -program-transform-name | --program-transform-name \
1069 | --program-transform-nam | --program-transform-na \
1070 | --program-transform-n | --program-transform- \
1071 | --program-transform | --program-transfor \
1072 | --program-transfo | --program-transf \
1073 | --program-trans | --program-tran \
1074 | --progr-tra | --program-tr | --program-t)
1075 ac_prev=program_transform_name ;;
1076 -program-transform-name=* | --program-transform-name=* \
1077 | --program-transform-nam=* | --program-transform-na=* \
1078 | --program-transform-n=* | --program-transform-=* \
1079 | --program-transform=* | --program-transfor=* \
1080 | --program-transfo=* | --program-transf=* \
1081 | --program-trans=* | --program-tran=* \
1082 | --progr-tra=* | --program-tr=* | --program-t=*)
1083 program_transform_name=$ac_optarg ;;
1084
1085 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1086 ac_prev=pdfdir ;;
1087 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1088 pdfdir=$ac_optarg ;;
1089
1090 -psdir | --psdir | --psdi | --psd | --ps)
1091 ac_prev=psdir ;;
1092 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1093 psdir=$ac_optarg ;;
1094
1095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1096 | -silent | --silent | --silen | --sile | --sil)
1097 silent=yes ;;
1098
1099 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1100 ac_prev=sbindir ;;
1101 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1102 | --sbi=* | --sb=*)
1103 sbindir=$ac_optarg ;;
1104
1105 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1106 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1107 | --sharedst | --shareds | --shared | --share | --shar \
1108 | --sha | --sh)
1109 ac_prev=sharedstatedir ;;
1110 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1111 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1112 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1113 | --sha=* | --sh=*)
1114 sharedstatedir=$ac_optarg ;;
1115
1116 -site | --site | --sit)
1117 ac_prev=site ;;
1118 -site=* | --site=* | --sit=*)
1119 site=$ac_optarg ;;
1120
1121 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1122 ac_prev=srcdir ;;
1123 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1124 srcdir=$ac_optarg ;;
1125
1126 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1127 | --syscon | --sysco | --sysc | --sys | --sy)
1128 ac_prev=sysconfdir ;;
1129 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1130 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1131 sysconfdir=$ac_optarg ;;
1132
1133 -target | --target | --targe | --targ | --tar | --ta | --t)
1134 ac_prev=target_alias ;;
1135 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1136 target_alias=$ac_optarg ;;
1137
1138 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1139 verbose=yes ;;
1140
1141 -version | --version | --versio | --versi | --vers | -V)
1142 ac_init_version=: ;;
1143
1144 -with-* | --with-*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001145 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Wink Savillefbaaef92010-05-27 16:25:37 -07001146 # Reject names that are not valid shell variable names.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148 as_fn_error $? "invalid package name: $ac_useropt"
1149 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1152 *"
1153"with_$ac_useropt"
1154"*) ;;
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
1157 esac
1158 eval with_$ac_useropt=\$ac_optarg ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07001159
1160 -without-* | --without-*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001161 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Wink Savillefbaaef92010-05-27 16:25:37 -07001162 # Reject names that are not valid shell variable names.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164 as_fn_error $? "invalid package name: $ac_useropt"
1165 ac_useropt_orig=$ac_useropt
1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in
1168 *"
1169"with_$ac_useropt"
1170"*) ;;
1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1172 ac_unrecognized_sep=', ';;
1173 esac
1174 eval with_$ac_useropt=no ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07001175
1176 --x)
1177 # Obsolete; use --with-x.
1178 with_x=yes ;;
1179
1180 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1181 | --x-incl | --x-inc | --x-in | --x-i)
1182 ac_prev=x_includes ;;
1183 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1184 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1185 x_includes=$ac_optarg ;;
1186
1187 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1188 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1189 ac_prev=x_libraries ;;
1190 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1191 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1192 x_libraries=$ac_optarg ;;
1193
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001194 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1195Try \`$0 --help' for more information"
Wink Savillefbaaef92010-05-27 16:25:37 -07001196 ;;
1197
1198 *=*)
1199 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1200 # Reject names that are not valid shell variable names.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001201 case $ac_envvar in #(
1202 '' | [0-9]* | *[!_$as_cr_alnum]* )
1203 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1204 esac
Wink Savillefbaaef92010-05-27 16:25:37 -07001205 eval $ac_envvar=\$ac_optarg
1206 export $ac_envvar ;;
1207
1208 *)
1209 # FIXME: should be removed in autoconf 3.0.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001210 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Wink Savillefbaaef92010-05-27 16:25:37 -07001211 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001212 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1213 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Wink Savillefbaaef92010-05-27 16:25:37 -07001214 ;;
1215
1216 esac
1217done
1218
1219if test -n "$ac_prev"; then
1220 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001221 as_fn_error $? "missing argument to $ac_option"
Wink Savillefbaaef92010-05-27 16:25:37 -07001222fi
1223
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001224if test -n "$ac_unrecognized_opts"; then
1225 case $enable_option_checking in
1226 no) ;;
1227 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1228 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1229 esac
1230fi
1231
1232# Check all directory arguments for consistency.
Wink Savillefbaaef92010-05-27 16:25:37 -07001233for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1234 datadir sysconfdir sharedstatedir localstatedir includedir \
1235 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1236 libdir localedir mandir
1237do
1238 eval ac_val=\$$ac_var
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001239 # Remove trailing slashes.
1240 case $ac_val in
1241 */ )
1242 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1243 eval $ac_var=\$ac_val;;
1244 esac
1245 # Be sure to have absolute directory names.
Wink Savillefbaaef92010-05-27 16:25:37 -07001246 case $ac_val in
1247 [\\/$]* | ?:[\\/]* ) continue;;
1248 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1249 esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001250 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Wink Savillefbaaef92010-05-27 16:25:37 -07001251done
1252
1253# There might be people who depend on the old broken behavior: `$host'
1254# used to hold the argument of --host etc.
1255# FIXME: To remove some day.
1256build=$build_alias
1257host=$host_alias
1258target=$target_alias
1259
1260# FIXME: To remove some day.
1261if test "x$host_alias" != x; then
1262 if test "x$build_alias" = x; then
1263 cross_compiling=maybe
Wink Savillefbaaef92010-05-27 16:25:37 -07001264 elif test "x$build_alias" != "x$host_alias"; then
1265 cross_compiling=yes
1266 fi
1267fi
1268
1269ac_tool_prefix=
1270test -n "$host_alias" && ac_tool_prefix=$host_alias-
1271
1272test "$silent" = yes && exec 6>/dev/null
1273
1274
1275ac_pwd=`pwd` && test -n "$ac_pwd" &&
1276ac_ls_di=`ls -di .` &&
1277ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001278 as_fn_error $? "working directory cannot be determined"
Wink Savillefbaaef92010-05-27 16:25:37 -07001279test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001280 as_fn_error $? "pwd does not report name of working directory"
Wink Savillefbaaef92010-05-27 16:25:37 -07001281
1282
1283# Find the source files, if location was not specified.
1284if test -z "$srcdir"; then
1285 ac_srcdir_defaulted=yes
1286 # Try the directory containing this script, then the parent directory.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001287 ac_confdir=`$as_dirname -- "$as_myself" ||
1288$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1289 X"$as_myself" : 'X\(//\)[^/]' \| \
1290 X"$as_myself" : 'X\(//\)$' \| \
1291 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1292$as_echo X"$as_myself" |
Wink Savillefbaaef92010-05-27 16:25:37 -07001293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294 s//\1/
1295 q
1296 }
1297 /^X\(\/\/\)[^/].*/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\/\)$/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\).*/{
1306 s//\1/
1307 q
1308 }
1309 s/.*/./; q'`
1310 srcdir=$ac_confdir
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312 srcdir=..
1313 fi
1314else
1315 ac_srcdir_defaulted=no
1316fi
1317if test ! -r "$srcdir/$ac_unique_file"; then
1318 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001319 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Wink Savillefbaaef92010-05-27 16:25:37 -07001320fi
1321ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1322ac_abs_confdir=`(
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001323 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Wink Savillefbaaef92010-05-27 16:25:37 -07001324 pwd)`
1325# When building in place, set srcdir=.
1326if test "$ac_abs_confdir" = "$ac_pwd"; then
1327 srcdir=.
1328fi
1329# Remove unnecessary trailing slashes from srcdir.
1330# Double slashes in file names in object file debugging info
1331# mess up M-x gdb in Emacs.
1332case $srcdir in
1333*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334esac
1335for ac_var in $ac_precious_vars; do
1336 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_env_${ac_var}_value=\$${ac_var}
1338 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1340done
1341
1342#
1343# Report the --help message.
1344#
1345if test "$ac_init_help" = "long"; then
1346 # Omit some internal or obsolete options to make the list less imposing.
1347 # This message is too long to be a string in the A/UX 3.1 sh.
1348 cat <<_ACEOF
Jeff Davidsonafb4b722015-01-20 13:02:58 -08001349\`configure' configures Protocol Buffers 2.6.1 to adapt to many kinds of systems.
Wink Savillefbaaef92010-05-27 16:25:37 -07001350
1351Usage: $0 [OPTION]... [VAR=VALUE]...
1352
1353To assign environment variables (e.g., CC, CFLAGS...), specify them as
1354VAR=VALUE. See below for descriptions of some of the useful variables.
1355
1356Defaults for the options are specified in brackets.
1357
1358Configuration:
1359 -h, --help display this help and exit
1360 --help=short display options specific to this package
1361 --help=recursive display the short help of all the included packages
1362 -V, --version display version information and exit
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001363 -q, --quiet, --silent do not print \`checking ...' messages
Wink Savillefbaaef92010-05-27 16:25:37 -07001364 --cache-file=FILE cache test results in FILE [disabled]
1365 -C, --config-cache alias for \`--cache-file=config.cache'
1366 -n, --no-create do not create output files
1367 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1368
1369Installation directories:
1370 --prefix=PREFIX install architecture-independent files in PREFIX
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001371 [$ac_default_prefix]
Wink Savillefbaaef92010-05-27 16:25:37 -07001372 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001373 [PREFIX]
Wink Savillefbaaef92010-05-27 16:25:37 -07001374
1375By default, \`make install' will install all the files in
1376\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1377an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1378for instance \`--prefix=\$HOME'.
1379
1380For better control, use the options below.
1381
1382Fine tuning of the installation directories:
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001383 --bindir=DIR user executables [EPREFIX/bin]
1384 --sbindir=DIR system admin executables [EPREFIX/sbin]
1385 --libexecdir=DIR program executables [EPREFIX/libexec]
1386 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1387 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1388 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1389 --libdir=DIR object code libraries [EPREFIX/lib]
1390 --includedir=DIR C header files [PREFIX/include]
1391 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1392 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1393 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1394 --infodir=DIR info documentation [DATAROOTDIR/info]
1395 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1396 --mandir=DIR man documentation [DATAROOTDIR/man]
1397 --docdir=DIR documentation root [DATAROOTDIR/doc/protobuf]
1398 --htmldir=DIR html documentation [DOCDIR]
1399 --dvidir=DIR dvi documentation [DOCDIR]
1400 --pdfdir=DIR pdf documentation [DOCDIR]
1401 --psdir=DIR ps documentation [DOCDIR]
Wink Savillefbaaef92010-05-27 16:25:37 -07001402_ACEOF
1403
1404 cat <<\_ACEOF
1405
1406Program names:
1407 --program-prefix=PREFIX prepend PREFIX to installed program names
1408 --program-suffix=SUFFIX append SUFFIX to installed program names
1409 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1410
1411System types:
1412 --build=BUILD configure for building on BUILD [guessed]
1413 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1414 --target=TARGET configure for building compilers for TARGET [HOST]
1415_ACEOF
1416fi
1417
1418if test -n "$ac_init_help"; then
1419 case $ac_init_help in
Jeff Davidsonafb4b722015-01-20 13:02:58 -08001420 short | recursive ) echo "Configuration of Protocol Buffers 2.6.1:";;
Wink Savillefbaaef92010-05-27 16:25:37 -07001421 esac
1422 cat <<\_ACEOF
1423
1424Optional Features:
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001425 --disable-option-checking ignore unrecognized --enable/--with options
Wink Savillefbaaef92010-05-27 16:25:37 -07001426 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1427 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08001428 --disable-maintainer-mode
1429 disable make rules and dependencies not useful (and
1430 sometimes confusing) to the casual installer
1431 --enable-silent-rules less verbose build output (undo: "make V=1")
1432 --disable-silent-rules verbose build output (undo: "make V=0")
1433 --enable-dependency-tracking
1434 do not reject slow dependency extractors
1435 --disable-dependency-tracking
1436 speeds up one-time build
Wink Savillefbaaef92010-05-27 16:25:37 -07001437 --disable-64bit-solaris Build 64 bit binary on Solaris [default=on]
1438 --enable-shared[=PKGS] build shared libraries [default=yes]
1439 --enable-static[=PKGS] build static libraries [default=yes]
1440 --enable-fast-install[=PKGS]
1441 optimize for fast installation [default=yes]
1442 --disable-libtool-lock avoid locking (might break parallel builds)
1443
1444Optional Packages:
1445 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1446 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1447 --with-zlib include classes for streaming compressed data in and
1448 out [default=check]
1449 --with-protoc=COMMAND use the given protoc command instead of building a
1450 new one when building tests (useful for
1451 cross-compiling)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07001452 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
Wink Savillefbaaef92010-05-27 16:25:37 -07001453 both]
1454 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07001455 --with-sysroot=DIR Search for dependent libraries within DIR
1456 (or the compiler's sysroot if not specified).
Wink Savillefbaaef92010-05-27 16:25:37 -07001457
1458Some influential environment variables:
1459 CC C compiler command
1460 CFLAGS C compiler flags
1461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1462 nonstandard directory <lib dir>
1463 LIBS libraries to pass to the linker, e.g. -l<library>
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001464 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Wink Savillefbaaef92010-05-27 16:25:37 -07001465 you have headers in a nonstandard directory <include dir>
1466 CXX C++ compiler command
1467 CXXFLAGS C++ compiler flags
1468 CXXCPP C++ preprocessor
1469
1470Use these variables to override the choices made by `configure' or to help
1471it to find libraries and programs with nonstandard names/locations.
1472
1473Report bugs to <[email protected]>.
1474_ACEOF
1475ac_status=$?
1476fi
1477
1478if test "$ac_init_help" = "recursive"; then
1479 # If there are subdirs, report their specific --help.
1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001481 test -d "$ac_dir" ||
1482 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1483 continue
Wink Savillefbaaef92010-05-27 16:25:37 -07001484 ac_builddir=.
1485
1486case "$ac_dir" in
1487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001489 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Wink Savillefbaaef92010-05-27 16:25:37 -07001490 # A ".." for each directory in $ac_dir_suffix.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001491 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Wink Savillefbaaef92010-05-27 16:25:37 -07001492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 esac ;;
1496esac
1497ac_abs_top_builddir=$ac_pwd
1498ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499# for backward compatibility:
1500ac_top_builddir=$ac_top_build_prefix
1501
1502case $srcdir in
1503 .) # We are building in place.
1504 ac_srcdir=.
1505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
1508 ac_srcdir=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1511 *) # Relative name.
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515esac
1516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1526 else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001527 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Wink Savillefbaaef92010-05-27 16:25:37 -07001528 fi || ac_status=$?
1529 cd "$ac_pwd" || { ac_status=$?; break; }
1530 done
1531fi
1532
1533test -n "$ac_init_help" && exit $ac_status
1534if $ac_init_version; then
1535 cat <<\_ACEOF
Jeff Davidsonafb4b722015-01-20 13:02:58 -08001536Protocol Buffers configure 2.6.1
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08001537generated by GNU Autoconf 2.69
Wink Savillefbaaef92010-05-27 16:25:37 -07001538
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08001539Copyright (C) 2012 Free Software Foundation, Inc.
Wink Savillefbaaef92010-05-27 16:25:37 -07001540This configure script is free software; the Free Software Foundation
1541gives unlimited permission to copy, distribute and modify it.
1542_ACEOF
1543 exit
1544fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001545
1546## ------------------------ ##
1547## Autoconf initialization. ##
1548## ------------------------ ##
1549
1550# ac_fn_c_try_compile LINENO
1551# --------------------------
1552# Try to compile conftest.$ac_ext, and return whether this succeeded.
1553ac_fn_c_try_compile ()
1554{
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 rm -f conftest.$ac_objext
1557 if { { ac_try="$ac_compile"
1558case "(($ac_try" in
1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560 *) ac_try_echo=$ac_try;;
1561esac
1562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563$as_echo "$ac_try_echo"; } >&5
1564 (eval "$ac_compile") 2>conftest.err
1565 ac_status=$?
1566 if test -s conftest.err; then
1567 grep -v '^ *+' conftest.err >conftest.er1
1568 cat conftest.er1 >&5
1569 mv -f conftest.er1 conftest.err
1570 fi
1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } && {
1573 test -z "$ac_c_werror_flag" ||
1574 test ! -s conftest.err
1575 } && test -s conftest.$ac_objext; then :
1576 ac_retval=0
1577else
1578 $as_echo "$as_me: failed program was:" >&5
1579sed 's/^/| /' conftest.$ac_ext >&5
1580
1581 ac_retval=1
1582fi
1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584 as_fn_set_status $ac_retval
1585
1586} # ac_fn_c_try_compile
1587
1588# ac_fn_cxx_try_compile LINENO
1589# ----------------------------
1590# Try to compile conftest.$ac_ext, and return whether this succeeded.
1591ac_fn_cxx_try_compile ()
1592{
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 rm -f conftest.$ac_objext
1595 if { { ac_try="$ac_compile"
1596case "(($ac_try" in
1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598 *) ac_try_echo=$ac_try;;
1599esac
1600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601$as_echo "$ac_try_echo"; } >&5
1602 (eval "$ac_compile") 2>conftest.err
1603 ac_status=$?
1604 if test -s conftest.err; then
1605 grep -v '^ *+' conftest.err >conftest.er1
1606 cat conftest.er1 >&5
1607 mv -f conftest.er1 conftest.err
1608 fi
1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610 test $ac_status = 0; } && {
1611 test -z "$ac_cxx_werror_flag" ||
1612 test ! -s conftest.err
1613 } && test -s conftest.$ac_objext; then :
1614 ac_retval=0
1615else
1616 $as_echo "$as_me: failed program was:" >&5
1617sed 's/^/| /' conftest.$ac_ext >&5
1618
1619 ac_retval=1
1620fi
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622 as_fn_set_status $ac_retval
1623
1624} # ac_fn_cxx_try_compile
1625
1626# ac_fn_cxx_try_cpp LINENO
1627# ------------------------
1628# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1629ac_fn_cxx_try_cpp ()
1630{
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 if { { ac_try="$ac_cpp conftest.$ac_ext"
1633case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1636esac
1637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638$as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1640 ac_status=$?
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1645 fi
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } > conftest.i && {
1648 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1649 test ! -s conftest.err
1650 }; then :
1651 ac_retval=0
1652else
1653 $as_echo "$as_me: failed program was:" >&5
1654sed 's/^/| /' conftest.$ac_ext >&5
1655
1656 ac_retval=1
1657fi
1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659 as_fn_set_status $ac_retval
1660
1661} # ac_fn_cxx_try_cpp
1662
1663# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1664# ---------------------------------------------------------
1665# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1666# the include files in INCLUDES and setting the cache variable VAR
1667# accordingly.
1668ac_fn_cxx_check_header_mongrel ()
1669{
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 if eval \${$3+:} false; then :
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673$as_echo_n "checking for $2... " >&6; }
1674if eval \${$3+:} false; then :
1675 $as_echo_n "(cached) " >&6
1676fi
1677eval ac_res=\$$3
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679$as_echo "$ac_res" >&6; }
1680else
1681 # Is the header compilable?
1682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1683$as_echo_n "checking $2 usability... " >&6; }
1684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685/* end confdefs.h. */
1686$4
1687#include <$2>
1688_ACEOF
1689if ac_fn_cxx_try_compile "$LINENO"; then :
1690 ac_header_compiler=yes
1691else
1692 ac_header_compiler=no
1693fi
1694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1696$as_echo "$ac_header_compiler" >&6; }
1697
1698# Is the header present?
1699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1700$as_echo_n "checking $2 presence... " >&6; }
1701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702/* end confdefs.h. */
1703#include <$2>
1704_ACEOF
1705if ac_fn_cxx_try_cpp "$LINENO"; then :
1706 ac_header_preproc=yes
1707else
1708 ac_header_preproc=no
1709fi
1710rm -f conftest.err conftest.i conftest.$ac_ext
1711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1712$as_echo "$ac_header_preproc" >&6; }
1713
1714# So? What about this header?
1715case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1716 yes:no: )
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1718$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1720$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1721 ;;
1722 no:yes:* )
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1724$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1726$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1728$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1730$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1732$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1733( $as_echo "## ---------------------------------------- ##
1734## Report this to [email protected] ##
1735## ---------------------------------------- ##"
1736 ) | sed "s/^/$as_me: WARNING: /" >&2
1737 ;;
1738esac
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740$as_echo_n "checking for $2... " >&6; }
1741if eval \${$3+:} false; then :
1742 $as_echo_n "(cached) " >&6
1743else
1744 eval "$3=\$ac_header_compiler"
1745fi
1746eval ac_res=\$$3
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748$as_echo "$ac_res" >&6; }
1749fi
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751
1752} # ac_fn_cxx_check_header_mongrel
1753
1754# ac_fn_cxx_try_run LINENO
1755# ------------------------
1756# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1757# that executables *can* be run.
1758ac_fn_cxx_try_run ()
1759{
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if { { ac_try="$ac_link"
1762case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765esac
1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767$as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_link") 2>&5
1769 ac_status=$?
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1772 { { case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1775esac
1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777$as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_try") 2>&5
1779 ac_status=$?
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; }; }; then :
1782 ac_retval=0
1783else
1784 $as_echo "$as_me: program exited with status $ac_status" >&5
1785 $as_echo "$as_me: failed program was:" >&5
1786sed 's/^/| /' conftest.$ac_ext >&5
1787
1788 ac_retval=$ac_status
1789fi
1790 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792 as_fn_set_status $ac_retval
1793
1794} # ac_fn_cxx_try_run
1795
1796# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1797# ---------------------------------------------------------
1798# Tests whether HEADER exists and can be compiled using the include files in
1799# INCLUDES, setting the cache variable VAR accordingly.
1800ac_fn_cxx_check_header_compile ()
1801{
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804$as_echo_n "checking for $2... " >&6; }
1805if eval \${$3+:} false; then :
1806 $as_echo_n "(cached) " >&6
1807else
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809/* end confdefs.h. */
1810$4
1811#include <$2>
1812_ACEOF
1813if ac_fn_cxx_try_compile "$LINENO"; then :
1814 eval "$3=yes"
1815else
1816 eval "$3=no"
1817fi
1818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819fi
1820eval ac_res=\$$3
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822$as_echo "$ac_res" >&6; }
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824
1825} # ac_fn_cxx_check_header_compile
1826
1827# ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
1828# -----------------------------------------------
1829# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1830# accordingly.
1831ac_fn_cxx_check_decl ()
1832{
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 as_decl_name=`echo $2|sed 's/ *(.*//'`
1835 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1837$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1838if eval \${$3+:} false; then :
1839 $as_echo_n "(cached) " >&6
1840else
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842/* end confdefs.h. */
1843$4
1844int
1845main ()
1846{
1847#ifndef $as_decl_name
1848#ifdef __cplusplus
1849 (void) $as_decl_use;
1850#else
1851 (void) $as_decl_name;
1852#endif
1853#endif
1854
1855 ;
1856 return 0;
1857}
1858_ACEOF
1859if ac_fn_cxx_try_compile "$LINENO"; then :
1860 eval "$3=yes"
1861else
1862 eval "$3=no"
1863fi
1864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1865fi
1866eval ac_res=\$$3
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1868$as_echo "$ac_res" >&6; }
1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870
1871} # ac_fn_cxx_check_decl
1872
1873# ac_fn_c_try_link LINENO
1874# -----------------------
1875# Try to link conftest.$ac_ext, and return whether this succeeded.
1876ac_fn_c_try_link ()
1877{
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 rm -f conftest.$ac_objext conftest$ac_exeext
1880 if { { ac_try="$ac_link"
1881case "(($ac_try" in
1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883 *) ac_try_echo=$ac_try;;
1884esac
1885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886$as_echo "$ac_try_echo"; } >&5
1887 (eval "$ac_link") 2>conftest.err
1888 ac_status=$?
1889 if test -s conftest.err; then
1890 grep -v '^ *+' conftest.err >conftest.er1
1891 cat conftest.er1 >&5
1892 mv -f conftest.er1 conftest.err
1893 fi
1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; } && {
1896 test -z "$ac_c_werror_flag" ||
1897 test ! -s conftest.err
1898 } && test -s conftest$ac_exeext && {
1899 test "$cross_compiling" = yes ||
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08001900 test -x conftest$ac_exeext
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07001901 }; then :
1902 ac_retval=0
1903else
1904 $as_echo "$as_me: failed program was:" >&5
1905sed 's/^/| /' conftest.$ac_ext >&5
1906
1907 ac_retval=1
1908fi
1909 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1910 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1911 # interfere with the next link command; also delete a directory that is
1912 # left behind by Apple's compiler. We do this before executing the actions.
1913 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 as_fn_set_status $ac_retval
1916
1917} # ac_fn_c_try_link
1918
1919# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1920# -------------------------------------------------------
1921# Tests whether HEADER exists and can be compiled using the include files in
1922# INCLUDES, setting the cache variable VAR accordingly.
1923ac_fn_c_check_header_compile ()
1924{
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927$as_echo_n "checking for $2... " >&6; }
1928if eval \${$3+:} false; then :
1929 $as_echo_n "(cached) " >&6
1930else
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932/* end confdefs.h. */
1933$4
1934#include <$2>
1935_ACEOF
1936if ac_fn_c_try_compile "$LINENO"; then :
1937 eval "$3=yes"
1938else
1939 eval "$3=no"
1940fi
1941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942fi
1943eval ac_res=\$$3
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945$as_echo "$ac_res" >&6; }
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947
1948} # ac_fn_c_check_header_compile
1949
1950# ac_fn_c_check_func LINENO FUNC VAR
1951# ----------------------------------
1952# Tests whether FUNC exists, setting the cache variable VAR accordingly
1953ac_fn_c_check_func ()
1954{
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957$as_echo_n "checking for $2... " >&6; }
1958if eval \${$3+:} false; then :
1959 $as_echo_n "(cached) " >&6
1960else
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962/* end confdefs.h. */
1963/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1965#define $2 innocuous_$2
1966
1967/* System header to define __stub macros and hopefully few prototypes,
1968 which can conflict with char $2 (); below.
1969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1970 <limits.h> exists even on freestanding compilers. */
1971
1972#ifdef __STDC__
1973# include <limits.h>
1974#else
1975# include <assert.h>
1976#endif
1977
1978#undef $2
1979
1980/* Override any GCC internal prototype to avoid an error.
1981 Use char because int might match the return type of a GCC
1982 builtin and then its argument prototype would still apply. */
1983#ifdef __cplusplus
1984extern "C"
1985#endif
1986char $2 ();
1987/* The GNU C library defines this for functions which it implements
1988 to always fail with ENOSYS. Some functions are actually named
1989 something starting with __ and the normal name is an alias. */
1990#if defined __stub_$2 || defined __stub___$2
1991choke me
1992#endif
1993
1994int
1995main ()
1996{
1997return $2 ();
1998 ;
1999 return 0;
2000}
2001_ACEOF
2002if ac_fn_c_try_link "$LINENO"; then :
2003 eval "$3=yes"
2004else
2005 eval "$3=no"
2006fi
2007rm -f core conftest.err conftest.$ac_objext \
2008 conftest$ac_exeext conftest.$ac_ext
2009fi
2010eval ac_res=\$$3
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012$as_echo "$ac_res" >&6; }
2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014
2015} # ac_fn_c_check_func
2016
2017# ac_fn_cxx_try_link LINENO
2018# -------------------------
2019# Try to link conftest.$ac_ext, and return whether this succeeded.
2020ac_fn_cxx_try_link ()
2021{
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 rm -f conftest.$ac_objext conftest$ac_exeext
2024 if { { ac_try="$ac_link"
2025case "(($ac_try" in
2026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027 *) ac_try_echo=$ac_try;;
2028esac
2029eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030$as_echo "$ac_try_echo"; } >&5
2031 (eval "$ac_link") 2>conftest.err
2032 ac_status=$?
2033 if test -s conftest.err; then
2034 grep -v '^ *+' conftest.err >conftest.er1
2035 cat conftest.er1 >&5
2036 mv -f conftest.er1 conftest.err
2037 fi
2038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039 test $ac_status = 0; } && {
2040 test -z "$ac_cxx_werror_flag" ||
2041 test ! -s conftest.err
2042 } && test -s conftest$ac_exeext && {
2043 test "$cross_compiling" = yes ||
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08002044 test -x conftest$ac_exeext
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002045 }; then :
2046 ac_retval=0
2047else
2048 $as_echo "$as_me: failed program was:" >&5
2049sed 's/^/| /' conftest.$ac_ext >&5
2050
2051 ac_retval=1
2052fi
2053 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2054 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2055 # interfere with the next link command; also delete a directory that is
2056 # left behind by Apple's compiler. We do this before executing the actions.
2057 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059 as_fn_set_status $ac_retval
2060
2061} # ac_fn_cxx_try_link
2062
2063# ac_fn_cxx_check_func LINENO FUNC VAR
2064# ------------------------------------
2065# Tests whether FUNC exists, setting the cache variable VAR accordingly
2066ac_fn_cxx_check_func ()
2067{
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2070$as_echo_n "checking for $2... " >&6; }
2071if eval \${$3+:} false; then :
2072 $as_echo_n "(cached) " >&6
2073else
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075/* end confdefs.h. */
2076/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2078#define $2 innocuous_$2
2079
2080/* System header to define __stub macros and hopefully few prototypes,
2081 which can conflict with char $2 (); below.
2082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2083 <limits.h> exists even on freestanding compilers. */
2084
2085#ifdef __STDC__
2086# include <limits.h>
2087#else
2088# include <assert.h>
2089#endif
2090
2091#undef $2
2092
2093/* Override any GCC internal prototype to avoid an error.
2094 Use char because int might match the return type of a GCC
2095 builtin and then its argument prototype would still apply. */
2096#ifdef __cplusplus
2097extern "C"
2098#endif
2099char $2 ();
2100/* The GNU C library defines this for functions which it implements
2101 to always fail with ENOSYS. Some functions are actually named
2102 something starting with __ and the normal name is an alias. */
2103#if defined __stub_$2 || defined __stub___$2
2104choke me
2105#endif
2106
2107int
2108main ()
2109{
2110return $2 ();
2111 ;
2112 return 0;
2113}
2114_ACEOF
2115if ac_fn_cxx_try_link "$LINENO"; then :
2116 eval "$3=yes"
2117else
2118 eval "$3=no"
2119fi
2120rm -f core conftest.err conftest.$ac_objext \
2121 conftest$ac_exeext conftest.$ac_ext
2122fi
2123eval ac_res=\$$3
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2125$as_echo "$ac_res" >&6; }
2126 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2127
2128} # ac_fn_cxx_check_func
Wink Savillefbaaef92010-05-27 16:25:37 -07002129cat >config.log <<_ACEOF
2130This file contains any messages produced by compilers while
2131running configure, to aid debugging if configure makes a mistake.
2132
Jeff Davidsonafb4b722015-01-20 13:02:58 -08002133It was created by Protocol Buffers $as_me 2.6.1, which was
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08002134generated by GNU Autoconf 2.69. Invocation command line was
Wink Savillefbaaef92010-05-27 16:25:37 -07002135
2136 $ $0 $@
2137
2138_ACEOF
2139exec 5>>config.log
2140{
2141cat <<_ASUNAME
2142## --------- ##
2143## Platform. ##
2144## --------- ##
2145
2146hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2147uname -m = `(uname -m) 2>/dev/null || echo unknown`
2148uname -r = `(uname -r) 2>/dev/null || echo unknown`
2149uname -s = `(uname -s) 2>/dev/null || echo unknown`
2150uname -v = `(uname -v) 2>/dev/null || echo unknown`
2151
2152/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2153/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2154
2155/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2156/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2157/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2158/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2159/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2160/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2161/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2162
2163_ASUNAME
2164
2165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166for as_dir in $PATH
2167do
2168 IFS=$as_save_IFS
2169 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002170 $as_echo "PATH: $as_dir"
2171 done
Wink Savillefbaaef92010-05-27 16:25:37 -07002172IFS=$as_save_IFS
2173
2174} >&5
2175
2176cat >&5 <<_ACEOF
2177
2178
2179## ----------- ##
2180## Core tests. ##
2181## ----------- ##
2182
2183_ACEOF
2184
2185
2186# Keep a trace of the command line.
2187# Strip out --no-create and --no-recursion so they do not pile up.
2188# Strip out --silent because we don't want to record it for future runs.
2189# Also quote any args containing shell meta-characters.
2190# Make two passes to allow for proper duplicate-argument suppression.
2191ac_configure_args=
2192ac_configure_args0=
2193ac_configure_args1=
2194ac_must_keep_next=false
2195for ac_pass in 1 2
2196do
2197 for ac_arg
2198 do
2199 case $ac_arg in
2200 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2202 | -silent | --silent | --silen | --sile | --sil)
2203 continue ;;
2204 *\'*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002205 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07002206 esac
2207 case $ac_pass in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002208 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07002209 2)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002210 as_fn_append ac_configure_args1 " '$ac_arg'"
Wink Savillefbaaef92010-05-27 16:25:37 -07002211 if test $ac_must_keep_next = true; then
2212 ac_must_keep_next=false # Got value, back to normal.
2213 else
2214 case $ac_arg in
2215 *=* | --config-cache | -C | -disable-* | --disable-* \
2216 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2217 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2218 | -with-* | --with-* | -without-* | --without-* | --x)
2219 case "$ac_configure_args0 " in
2220 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2221 esac
2222 ;;
2223 -* ) ac_must_keep_next=true ;;
2224 esac
2225 fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002226 as_fn_append ac_configure_args " '$ac_arg'"
Wink Savillefbaaef92010-05-27 16:25:37 -07002227 ;;
2228 esac
2229 done
2230done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002231{ ac_configure_args0=; unset ac_configure_args0;}
2232{ ac_configure_args1=; unset ac_configure_args1;}
Wink Savillefbaaef92010-05-27 16:25:37 -07002233
2234# When interrupted or exit'd, cleanup temporary files, and complete
2235# config.log. We remove comments because anyway the quotes in there
2236# would cause problems or look ugly.
2237# WARNING: Use '\'' to represent an apostrophe within the trap.
2238# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2239trap 'exit_status=$?
2240 # Save into config.log some information that might help in debugging.
2241 {
2242 echo
2243
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002244 $as_echo "## ---------------- ##
Wink Savillefbaaef92010-05-27 16:25:37 -07002245## Cache variables. ##
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002246## ---------------- ##"
Wink Savillefbaaef92010-05-27 16:25:37 -07002247 echo
2248 # The following way of writing the cache mishandles newlines in values,
2249(
2250 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2251 eval ac_val=\$$ac_var
2252 case $ac_val in #(
2253 *${as_nl}*)
2254 case $ac_var in #(
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002255 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2256$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07002257 esac
2258 case $ac_var in #(
2259 _ | IFS | as_nl) ;; #(
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002260 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2261 *) { eval $ac_var=; unset $ac_var;} ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07002262 esac ;;
2263 esac
2264 done
2265 (set) 2>&1 |
2266 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2267 *${as_nl}ac_space=\ *)
2268 sed -n \
2269 "s/'\''/'\''\\\\'\'''\''/g;
2270 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2271 ;; #(
2272 *)
2273 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2274 ;;
2275 esac |
2276 sort
2277)
2278 echo
2279
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002280 $as_echo "## ----------------- ##
Wink Savillefbaaef92010-05-27 16:25:37 -07002281## Output variables. ##
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002282## ----------------- ##"
Wink Savillefbaaef92010-05-27 16:25:37 -07002283 echo
2284 for ac_var in $ac_subst_vars
2285 do
2286 eval ac_val=\$$ac_var
2287 case $ac_val in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002288 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Wink Savillefbaaef92010-05-27 16:25:37 -07002289 esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002290 $as_echo "$ac_var='\''$ac_val'\''"
Wink Savillefbaaef92010-05-27 16:25:37 -07002291 done | sort
2292 echo
2293
2294 if test -n "$ac_subst_files"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002295 $as_echo "## ------------------- ##
Wink Savillefbaaef92010-05-27 16:25:37 -07002296## File substitutions. ##
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002297## ------------------- ##"
Wink Savillefbaaef92010-05-27 16:25:37 -07002298 echo
2299 for ac_var in $ac_subst_files
2300 do
2301 eval ac_val=\$$ac_var
2302 case $ac_val in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002303 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Wink Savillefbaaef92010-05-27 16:25:37 -07002304 esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002305 $as_echo "$ac_var='\''$ac_val'\''"
Wink Savillefbaaef92010-05-27 16:25:37 -07002306 done | sort
2307 echo
2308 fi
2309
2310 if test -s confdefs.h; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002311 $as_echo "## ----------- ##
Wink Savillefbaaef92010-05-27 16:25:37 -07002312## confdefs.h. ##
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002313## ----------- ##"
Wink Savillefbaaef92010-05-27 16:25:37 -07002314 echo
2315 cat confdefs.h
2316 echo
2317 fi
2318 test "$ac_signal" != 0 &&
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002319 $as_echo "$as_me: caught signal $ac_signal"
2320 $as_echo "$as_me: exit $exit_status"
Wink Savillefbaaef92010-05-27 16:25:37 -07002321 } >&5
2322 rm -f core *.core core.conftest.* &&
2323 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2324 exit $exit_status
2325' 0
2326for ac_signal in 1 2 13 15; do
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002327 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Wink Savillefbaaef92010-05-27 16:25:37 -07002328done
2329ac_signal=0
2330
2331# confdefs.h avoids OS command line length limits that DEFS can exceed.
2332rm -f -r conftest* confdefs.h
2333
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002334$as_echo "/* confdefs.h */" > confdefs.h
2335
Wink Savillefbaaef92010-05-27 16:25:37 -07002336# Predefined preprocessor variables.
2337
2338cat >>confdefs.h <<_ACEOF
2339#define PACKAGE_NAME "$PACKAGE_NAME"
2340_ACEOF
2341
Wink Savillefbaaef92010-05-27 16:25:37 -07002342cat >>confdefs.h <<_ACEOF
2343#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2344_ACEOF
2345
Wink Savillefbaaef92010-05-27 16:25:37 -07002346cat >>confdefs.h <<_ACEOF
2347#define PACKAGE_VERSION "$PACKAGE_VERSION"
2348_ACEOF
2349
Wink Savillefbaaef92010-05-27 16:25:37 -07002350cat >>confdefs.h <<_ACEOF
2351#define PACKAGE_STRING "$PACKAGE_STRING"
2352_ACEOF
2353
Wink Savillefbaaef92010-05-27 16:25:37 -07002354cat >>confdefs.h <<_ACEOF
2355#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2356_ACEOF
2357
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002358cat >>confdefs.h <<_ACEOF
2359#define PACKAGE_URL "$PACKAGE_URL"
2360_ACEOF
2361
Wink Savillefbaaef92010-05-27 16:25:37 -07002362
2363# Let the site file select an alternate cache file if it wants to.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002364# Prefer an explicitly selected file to automatically selected ones.
2365ac_site_file1=NONE
2366ac_site_file2=NONE
Wink Savillefbaaef92010-05-27 16:25:37 -07002367if test -n "$CONFIG_SITE"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002368 # We do not want a PATH search for config.site.
2369 case $CONFIG_SITE in #((
2370 -*) ac_site_file1=./$CONFIG_SITE;;
2371 */*) ac_site_file1=$CONFIG_SITE;;
2372 *) ac_site_file1=./$CONFIG_SITE;;
2373 esac
Wink Savillefbaaef92010-05-27 16:25:37 -07002374elif test "x$prefix" != xNONE; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002375 ac_site_file1=$prefix/share/config.site
2376 ac_site_file2=$prefix/etc/config.site
Wink Savillefbaaef92010-05-27 16:25:37 -07002377else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002378 ac_site_file1=$ac_default_prefix/share/config.site
2379 ac_site_file2=$ac_default_prefix/etc/config.site
Wink Savillefbaaef92010-05-27 16:25:37 -07002380fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002381for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Wink Savillefbaaef92010-05-27 16:25:37 -07002382do
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002383 test "x$ac_site_file" = xNONE && continue
2384 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2386$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Wink Savillefbaaef92010-05-27 16:25:37 -07002387 sed 's/^/| /' "$ac_site_file" >&5
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002388 . "$ac_site_file" \
2389 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2391as_fn_error $? "failed to load site script $ac_site_file
2392See \`config.log' for more details" "$LINENO" 5; }
Wink Savillefbaaef92010-05-27 16:25:37 -07002393 fi
2394done
2395
2396if test -r "$cache_file"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002397 # Some versions of bash will fail to source /dev/null (special files
2398 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2399 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2401$as_echo "$as_me: loading cache $cache_file" >&6;}
Wink Savillefbaaef92010-05-27 16:25:37 -07002402 case $cache_file in
2403 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2404 *) . "./$cache_file";;
2405 esac
2406 fi
2407else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002408 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2409$as_echo "$as_me: creating cache $cache_file" >&6;}
Wink Savillefbaaef92010-05-27 16:25:37 -07002410 >$cache_file
2411fi
2412
2413# Check that the precious variables saved in the cache have kept the same
2414# value.
2415ac_cache_corrupted=false
2416for ac_var in $ac_precious_vars; do
2417 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2418 eval ac_new_set=\$ac_env_${ac_var}_set
2419 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2420 eval ac_new_val=\$ac_env_${ac_var}_value
2421 case $ac_old_set,$ac_new_set in
2422 set,)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2424$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07002425 ac_cache_corrupted=: ;;
2426 ,set)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2428$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07002429 ac_cache_corrupted=: ;;
2430 ,);;
2431 *)
2432 if test "x$ac_old_val" != "x$ac_new_val"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002433 # differences in whitespace do not lead to failure.
2434 ac_old_val_w=`echo x $ac_old_val`
2435 ac_new_val_w=`echo x $ac_new_val`
2436 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2438$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2439 ac_cache_corrupted=:
2440 else
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2442$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2443 eval $ac_var=\$ac_old_val
2444 fi
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2446$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2448$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07002449 fi;;
2450 esac
2451 # Pass precious variables to config.status.
2452 if test "$ac_new_set" = set; then
2453 case $ac_new_val in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002454 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07002455 *) ac_arg=$ac_var=$ac_new_val ;;
2456 esac
2457 case " $ac_configure_args " in
2458 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002459 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07002460 esac
2461 fi
2462done
2463if $ac_cache_corrupted; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2465$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2467$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2468 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -07002469fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002470## -------------------- ##
2471## Main body of script. ##
2472## -------------------- ##
Wink Savillefbaaef92010-05-27 16:25:37 -07002473
2474ac_ext=c
2475ac_cpp='$CPP $CPPFLAGS'
2476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2478ac_compiler_gnu=$ac_cv_c_compiler_gnu
2479
2480
2481
2482
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07002483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2484$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2485 # Check whether --enable-maintainer-mode was given.
2486if test "${enable_maintainer_mode+set}" = set; then :
2487 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2488else
2489 USE_MAINTAINER_MODE=yes
2490fi
2491
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2493$as_echo "$USE_MAINTAINER_MODE" >&6; }
2494 if test $USE_MAINTAINER_MODE = yes; then
2495 MAINTAINER_MODE_TRUE=
2496 MAINTAINER_MODE_FALSE='#'
2497else
2498 MAINTAINER_MODE_TRUE='#'
2499 MAINTAINER_MODE_FALSE=
2500fi
2501
2502 MAINT=$MAINTAINER_MODE_TRUE
2503
2504
2505
Wink Savillefbaaef92010-05-27 16:25:37 -07002506
2507ac_config_headers="$ac_config_headers config.h"
2508
2509
2510
2511# autoconf's default CXXFLAGS are usually "-g -O2". These aren't necessarily
2512# the best choice for libprotobuf.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002513if test "x${ac_cv_env_CFLAGS_set}" = "x"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07002514 CFLAGS=""
2515fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002516if test "x${ac_cv_env_CXXFLAGS_set}" = "x"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07002517 CXXFLAGS=""
2518fi
2519
Wink Savillefbaaef92010-05-27 16:25:37 -07002520ac_aux_dir=
2521for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2522 if test -f "$ac_dir/install-sh"; then
2523 ac_aux_dir=$ac_dir
2524 ac_install_sh="$ac_aux_dir/install-sh -c"
2525 break
2526 elif test -f "$ac_dir/install.sh"; then
2527 ac_aux_dir=$ac_dir
2528 ac_install_sh="$ac_aux_dir/install.sh -c"
2529 break
2530 elif test -f "$ac_dir/shtool"; then
2531 ac_aux_dir=$ac_dir
2532 ac_install_sh="$ac_aux_dir/shtool install -c"
2533 break
2534 fi
2535done
2536if test -z "$ac_aux_dir"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002537 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -07002538fi
2539
2540# These three variables are undocumented and unsupported,
2541# and are intended to be withdrawn in a future Autoconf release.
2542# They can cause serious problems if a builder's source tree is in a directory
2543# whose full name contains unusual characters.
2544ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2545ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2546ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2547
2548
2549# Make sure we can run config.sub.
2550$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002551 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -07002552
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2554$as_echo_n "checking build system type... " >&6; }
2555if ${ac_cv_build+:} false; then :
2556 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07002557else
2558 ac_build_alias=$build_alias
2559test "x$ac_build_alias" = x &&
2560 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2561test "x$ac_build_alias" = x &&
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002562 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -07002563ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002564 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -07002565
2566fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2568$as_echo "$ac_cv_build" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07002569case $ac_cv_build in
2570*-*-*) ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002571*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Wink Savillefbaaef92010-05-27 16:25:37 -07002572esac
2573build=$ac_cv_build
2574ac_save_IFS=$IFS; IFS='-'
2575set x $ac_cv_build
2576shift
2577build_cpu=$1
2578build_vendor=$2
2579shift; shift
2580# Remember, the first character of IFS is used to create $*,
2581# except with old shells:
2582build_os=$*
2583IFS=$ac_save_IFS
2584case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2585
2586
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2588$as_echo_n "checking host system type... " >&6; }
2589if ${ac_cv_host+:} false; then :
2590 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07002591else
2592 if test "x$host_alias" = x; then
2593 ac_cv_host=$ac_cv_build
2594else
2595 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002596 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -07002597fi
2598
2599fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2601$as_echo "$ac_cv_host" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07002602case $ac_cv_host in
2603*-*-*) ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002604*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Wink Savillefbaaef92010-05-27 16:25:37 -07002605esac
2606host=$ac_cv_host
2607ac_save_IFS=$IFS; IFS='-'
2608set x $ac_cv_host
2609shift
2610host_cpu=$1
2611host_vendor=$2
2612shift; shift
2613# Remember, the first character of IFS is used to create $*,
2614# except with old shells:
2615host_os=$*
2616IFS=$ac_save_IFS
2617case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2618
2619
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2621$as_echo_n "checking target system type... " >&6; }
2622if ${ac_cv_target+:} false; then :
2623 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07002624else
2625 if test "x$target_alias" = x; then
2626 ac_cv_target=$ac_cv_host
2627else
2628 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002629 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -07002630fi
2631
2632fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2634$as_echo "$ac_cv_target" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07002635case $ac_cv_target in
2636*-*-*) ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002637*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
Wink Savillefbaaef92010-05-27 16:25:37 -07002638esac
2639target=$ac_cv_target
2640ac_save_IFS=$IFS; IFS='-'
2641set x $ac_cv_target
2642shift
2643target_cpu=$1
2644target_vendor=$2
2645shift; shift
2646# Remember, the first character of IFS is used to create $*,
2647# except with old shells:
2648target_os=$*
2649IFS=$ac_save_IFS
2650case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2651
2652
2653# The aliases save the names the user supplied, while $host etc.
2654# will get canonicalized.
2655test -n "$target_alias" &&
2656 test "$program_prefix$program_suffix$program_transform_name" = \
2657 NONENONEs,x,x, &&
2658 program_prefix=${target_alias}-
2659
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08002660am__api_version='1.14'
Wink Savillefbaaef92010-05-27 16:25:37 -07002661
2662# Find a good install program. We prefer a C program (faster),
2663# so one script is as good as another. But avoid the broken or
2664# incompatible versions:
2665# SysV /etc/install, /usr/sbin/install
2666# SunOS /usr/etc/install
2667# IRIX /sbin/install
2668# AIX /bin/install
2669# AmigaOS /C/install, which installs bootblocks on floppy discs
2670# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2671# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2672# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2673# OS/2's system install, which has a completely different semantic
2674# ./install, which can be erroneously created by make from ./install.sh.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002675# Reject install programs that cannot install multiple files.
2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2677$as_echo_n "checking for a BSD-compatible install... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07002678if test -z "$INSTALL"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002679if ${ac_cv_path_install+:} false; then :
2680 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07002681else
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683for as_dir in $PATH
2684do
2685 IFS=$as_save_IFS
2686 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002687 # Account for people who put trailing slashes in PATH elements.
2688case $as_dir/ in #((
2689 ./ | .// | /[cC]/* | \
Wink Savillefbaaef92010-05-27 16:25:37 -07002690 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002691 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Wink Savillefbaaef92010-05-27 16:25:37 -07002692 /usr/ucb/* ) ;;
2693 *)
2694 # OSF1 and SCO ODT 3.0 have their own names for install.
2695 # Don't use installbsd from OSF since it installs stuff as root
2696 # by default.
2697 for ac_prog in ginstall scoinst install; do
2698 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08002699 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07002700 if test $ac_prog = install &&
2701 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2702 # AIX install. It has an incompatible calling convention.
2703 :
2704 elif test $ac_prog = install &&
2705 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2706 # program-specific install script used by HP pwplus--don't use.
2707 :
2708 else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002709 rm -rf conftest.one conftest.two conftest.dir
2710 echo one > conftest.one
2711 echo two > conftest.two
2712 mkdir conftest.dir
2713 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2714 test -s conftest.one && test -s conftest.two &&
2715 test -s conftest.dir/conftest.one &&
2716 test -s conftest.dir/conftest.two
2717 then
2718 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2719 break 3
2720 fi
Wink Savillefbaaef92010-05-27 16:25:37 -07002721 fi
2722 fi
2723 done
2724 done
2725 ;;
2726esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002727
2728 done
Wink Savillefbaaef92010-05-27 16:25:37 -07002729IFS=$as_save_IFS
2730
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002731rm -rf conftest.one conftest.two conftest.dir
Wink Savillefbaaef92010-05-27 16:25:37 -07002732
2733fi
2734 if test "${ac_cv_path_install+set}" = set; then
2735 INSTALL=$ac_cv_path_install
2736 else
2737 # As a last resort, use the slow shell script. Don't cache a
2738 # value for INSTALL within a source directory, because that will
2739 # break other packages using the cache if that directory is
2740 # removed, or if the value is a relative name.
2741 INSTALL=$ac_install_sh
2742 fi
2743fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2745$as_echo "$INSTALL" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07002746
2747# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2748# It thinks the first close brace ends the variable substitution.
2749test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2750
2751test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2752
2753test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2754
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2756$as_echo_n "checking whether build environment is sane... " >&6; }
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002757# Reject unsafe characters in $srcdir or the absolute working directory
2758# name. Accept space and tab only in the latter.
2759am_lf='
2760'
2761case `pwd` in
2762 *[\\\"\#\$\&\'\`$am_lf]*)
2763 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2764esac
2765case $srcdir in
2766 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08002767 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002768esac
2769
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08002770# Do 'set' in a subshell so we don't clobber the current shell's
Wink Savillefbaaef92010-05-27 16:25:37 -07002771# arguments. Must try -L first in case configure is actually a
2772# symlink; some systems play weird games with the mod time of symlinks
2773# (eg FreeBSD returns the mod time of the symlink's containing
2774# directory).
2775if (
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08002776 am_has_slept=no
2777 for am_try in 1 2; do
2778 echo "timestamp, slept: $am_has_slept" > conftest.file
2779 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2780 if test "$*" = "X"; then
2781 # -L didn't work.
2782 set X `ls -t "$srcdir/configure" conftest.file`
2783 fi
2784 if test "$*" != "X $srcdir/configure conftest.file" \
2785 && test "$*" != "X conftest.file $srcdir/configure"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07002786
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08002787 # If neither matched, then we have a broken ls. This can happen
2788 # if, for instance, CONFIG_SHELL is bash and it inherits a
2789 # broken ls alias from the environment. This has actually
2790 # happened. Such a system could not be considered "sane".
2791 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2792 alias in your environment" "$LINENO" 5
2793 fi
2794 if test "$2" = conftest.file || test $am_try -eq 2; then
2795 break
2796 fi
2797 # Just in case.
2798 sleep 1
2799 am_has_slept=yes
2800 done
Wink Savillefbaaef92010-05-27 16:25:37 -07002801 test "$2" = conftest.file
2802 )
2803then
2804 # Ok.
2805 :
2806else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002807 as_fn_error $? "newly created file is older than distributed files!
2808Check your system clock" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -07002809fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2811$as_echo "yes" >&6; }
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08002812# If we didn't sleep, we still need to ensure time stamps of config.status and
2813# generated files are strictly newer.
2814am_sleep_pid=
2815if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2816 ( sleep 1 ) &
2817 am_sleep_pid=$!
2818fi
2819
2820rm -f conftest.file
2821
Wink Savillefbaaef92010-05-27 16:25:37 -07002822test "$program_prefix" != NONE &&
2823 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2824# Use a double $ so make ignores it.
2825test "$program_suffix" != NONE &&
2826 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002827# Double any \ or $.
Wink Savillefbaaef92010-05-27 16:25:37 -07002828# By default was `s,x,x', remove it if useless.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002829ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2830program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Wink Savillefbaaef92010-05-27 16:25:37 -07002831
2832# expand $ac_aux_dir to an absolute path
2833am_aux_dir=`cd $ac_aux_dir && pwd`
2834
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002835if test x"${MISSING+set}" != xset; then
2836 case $am_aux_dir in
2837 *\ * | *\ *)
2838 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2839 *)
2840 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2841 esac
2842fi
Wink Savillefbaaef92010-05-27 16:25:37 -07002843# Use eval to expand $SHELL
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08002844if eval "$MISSING --is-lightweight"; then
2845 am_missing_run="$MISSING "
Wink Savillefbaaef92010-05-27 16:25:37 -07002846else
2847 am_missing_run=
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08002848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2849$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07002850fi
2851
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002852if test x"${install_sh}" != xset; then
2853 case $am_aux_dir in
2854 *\ * | *\ *)
2855 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2856 *)
2857 install_sh="\${SHELL} $am_aux_dir/install-sh"
2858 esac
2859fi
2860
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08002861# Installed binaries are usually stripped using 'strip' when the user
2862# run "make install-strip". However 'strip' might not be the right
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002863# tool to use in cross-compilation environments, therefore Automake
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08002864# will honor the 'STRIP' environment variable to overrule this program.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002865if test "$cross_compiling" != no; then
2866 if test -n "$ac_tool_prefix"; then
2867 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2868set dummy ${ac_tool_prefix}strip; ac_word=$2
2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870$as_echo_n "checking for $ac_word... " >&6; }
2871if ${ac_cv_prog_STRIP+:} false; then :
2872 $as_echo_n "(cached) " >&6
2873else
2874 if test -n "$STRIP"; then
2875 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2876else
2877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878for as_dir in $PATH
2879do
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08002883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002884 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 break 2
2887 fi
2888done
2889 done
2890IFS=$as_save_IFS
2891
2892fi
2893fi
2894STRIP=$ac_cv_prog_STRIP
2895if test -n "$STRIP"; then
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2897$as_echo "$STRIP" >&6; }
2898else
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900$as_echo "no" >&6; }
2901fi
2902
2903
2904fi
2905if test -z "$ac_cv_prog_STRIP"; then
2906 ac_ct_STRIP=$STRIP
2907 # Extract the first word of "strip", so it can be a program name with args.
2908set dummy strip; ac_word=$2
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910$as_echo_n "checking for $ac_word... " >&6; }
2911if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2912 $as_echo_n "(cached) " >&6
2913else
2914 if test -n "$ac_ct_STRIP"; then
2915 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2916else
2917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918for as_dir in $PATH
2919do
2920 IFS=$as_save_IFS
2921 test -z "$as_dir" && as_dir=.
2922 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08002923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002924 ac_cv_prog_ac_ct_STRIP="strip"
2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 break 2
2927 fi
2928done
2929 done
2930IFS=$as_save_IFS
2931
2932fi
2933fi
2934ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2935if test -n "$ac_ct_STRIP"; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2937$as_echo "$ac_ct_STRIP" >&6; }
2938else
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940$as_echo "no" >&6; }
2941fi
2942
2943 if test "x$ac_ct_STRIP" = x; then
2944 STRIP=":"
2945 else
2946 case $cross_compiling:$ac_tool_warned in
2947yes:)
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2949$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2950ac_tool_warned=yes ;;
2951esac
2952 STRIP=$ac_ct_STRIP
2953 fi
2954else
2955 STRIP="$ac_cv_prog_STRIP"
2956fi
2957
2958fi
2959INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2960
2961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2962$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07002963if test -z "$MKDIR_P"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002964 if ${ac_cv_path_mkdir+:} false; then :
2965 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07002966else
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2969do
2970 IFS=$as_save_IFS
2971 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002972 for ac_prog in mkdir gmkdir; do
Wink Savillefbaaef92010-05-27 16:25:37 -07002973 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08002974 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
Wink Savillefbaaef92010-05-27 16:25:37 -07002975 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2976 'mkdir (GNU coreutils) '* | \
2977 'mkdir (coreutils) '* | \
2978 'mkdir (fileutils) '4.1*)
2979 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2980 break 3;;
2981 esac
2982 done
2983 done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002984 done
Wink Savillefbaaef92010-05-27 16:25:37 -07002985IFS=$as_save_IFS
2986
2987fi
2988
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07002989 test -d ./--version && rmdir ./--version
Wink Savillefbaaef92010-05-27 16:25:37 -07002990 if test "${ac_cv_path_mkdir+set}" = set; then
2991 MKDIR_P="$ac_cv_path_mkdir -p"
2992 else
2993 # As a last resort, use the slow shell script. Don't cache a
2994 # value for MKDIR_P within a source directory, because that will
2995 # break other packages using the cache if that directory is
2996 # removed, or if the value is a relative name.
Wink Savillefbaaef92010-05-27 16:25:37 -07002997 MKDIR_P="$ac_install_sh -d"
2998 fi
2999fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3001$as_echo "$MKDIR_P" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003002
Wink Savillefbaaef92010-05-27 16:25:37 -07003003for ac_prog in gawk mawk nawk awk
3004do
3005 # Extract the first word of "$ac_prog", so it can be a program name with args.
3006set dummy $ac_prog; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008$as_echo_n "checking for $ac_word... " >&6; }
3009if ${ac_cv_prog_AWK+:} false; then :
3010 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07003011else
3012 if test -n "$AWK"; then
3013 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3014else
3015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016for as_dir in $PATH
3017do
3018 IFS=$as_save_IFS
3019 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003020 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08003021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07003022 ac_cv_prog_AWK="$ac_prog"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07003024 break 2
3025 fi
3026done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003027 done
Wink Savillefbaaef92010-05-27 16:25:37 -07003028IFS=$as_save_IFS
3029
3030fi
3031fi
3032AWK=$ac_cv_prog_AWK
3033if test -n "$AWK"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3035$as_echo "$AWK" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003036else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003039fi
3040
3041
3042 test -n "$AWK" && break
3043done
3044
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3046$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3047set x ${MAKE-make}
3048ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3049if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3050 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07003051else
3052 cat >conftest.make <<\_ACEOF
3053SHELL = /bin/sh
3054all:
3055 @echo '@@@%%%=$(MAKE)=@@@%%%'
3056_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003057# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Wink Savillefbaaef92010-05-27 16:25:37 -07003058case `${MAKE-make} -f conftest.make 2>/dev/null` in
3059 *@@@%%%=?*=@@@%%%*)
3060 eval ac_cv_prog_make_${ac_make}_set=yes;;
3061 *)
3062 eval ac_cv_prog_make_${ac_make}_set=no;;
3063esac
3064rm -f conftest.make
3065fi
3066if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3068$as_echo "yes" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003069 SET_MAKE=
3070else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003073 SET_MAKE="MAKE=${MAKE-make}"
3074fi
3075
3076rm -rf .tst 2>/dev/null
3077mkdir .tst 2>/dev/null
3078if test -d .tst; then
3079 am__leading_dot=.
3080else
3081 am__leading_dot=_
3082fi
3083rmdir .tst 2>/dev/null
3084
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08003085# Check whether --enable-silent-rules was given.
3086if test "${enable_silent_rules+set}" = set; then :
3087 enableval=$enable_silent_rules;
3088fi
3089
3090case $enable_silent_rules in # (((
3091 yes) AM_DEFAULT_VERBOSITY=0;;
3092 no) AM_DEFAULT_VERBOSITY=1;;
3093 *) AM_DEFAULT_VERBOSITY=1;;
3094esac
3095am_make=${MAKE-make}
3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3097$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3098if ${am_cv_make_support_nested_variables+:} false; then :
3099 $as_echo_n "(cached) " >&6
3100else
3101 if $as_echo 'TRUE=$(BAR$(V))
3102BAR0=false
3103BAR1=true
3104V=1
3105am__doit:
3106 @$(TRUE)
3107.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3108 am_cv_make_support_nested_variables=yes
3109else
3110 am_cv_make_support_nested_variables=no
3111fi
3112fi
3113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3114$as_echo "$am_cv_make_support_nested_variables" >&6; }
3115if test $am_cv_make_support_nested_variables = yes; then
3116 AM_V='$(V)'
3117 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3118else
3119 AM_V=$AM_DEFAULT_VERBOSITY
3120 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3121fi
3122AM_BACKSLASH='\'
3123
Wink Savillefbaaef92010-05-27 16:25:37 -07003124if test "`cd $srcdir && pwd`" != "`pwd`"; then
3125 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3126 # is not polluted with repeated "-I."
3127 am__isrc=' -I$(srcdir)'
3128 # test to see if srcdir already configured
3129 if test -f $srcdir/config.status; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003130 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -07003131 fi
3132fi
3133
3134# test whether we have cygpath
3135if test -z "$CYGPATH_W"; then
3136 if (cygpath --version) >/dev/null 2>/dev/null; then
3137 CYGPATH_W='cygpath -w'
3138 else
3139 CYGPATH_W=echo
3140 fi
3141fi
3142
3143
3144# Define the identity of the package.
3145 PACKAGE='protobuf'
Jeff Davidsonafb4b722015-01-20 13:02:58 -08003146 VERSION='2.6.1'
Wink Savillefbaaef92010-05-27 16:25:37 -07003147
3148
3149cat >>confdefs.h <<_ACEOF
3150#define PACKAGE "$PACKAGE"
3151_ACEOF
3152
3153
3154cat >>confdefs.h <<_ACEOF
3155#define VERSION "$VERSION"
3156_ACEOF
3157
3158# Some tools Automake needs.
3159
3160ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3161
3162
3163AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3164
3165
3166AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3167
3168
3169AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3170
3171
3172MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3173
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08003174# For better backward compatibility. To be removed once Automake 1.9.x
3175# dies out for good. For more background, see:
3176# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3177# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3178mkdir_p='$(MKDIR_P)'
3179
Wink Savillefbaaef92010-05-27 16:25:37 -07003180# We need awk for the "check" target. The system "awk" is bad on
3181# some platforms.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003182# Always define AMTAR for backward compatibility. Yes, it's still used
3183# in the wild :-( We should find a proper way to deprecate it ...
3184AMTAR='$${TAR-tar}'
Wink Savillefbaaef92010-05-27 16:25:37 -07003185
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08003186
3187# We'll loop over all known methods to create a tar archive until one works.
3188_am_tools='gnutar pax cpio none'
3189
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003190am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
Wink Savillefbaaef92010-05-27 16:25:37 -07003191
3192
3193
3194
3195
3196
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08003197# POSIX will say in a future version that running "rm -f" with no argument
3198# is OK; and we want to be able to make that assumption in our Makefile
3199# recipes. So use an aggressive probe to check that the usage we want is
3200# actually supported "in the wild" to an acceptable degree.
3201# See automake bug#10828.
3202# To make any issue more visible, cause the running configure to be aborted
3203# by default if the 'rm' program in use doesn't match our expectations; the
3204# user can still override this though.
3205if rm -f && rm -fr && rm -rf; then : OK; else
3206 cat >&2 <<'END'
3207Oops!
3208
3209Your 'rm' program seems unable to run without file operands specified
3210on the command line, even when the '-f' option is present. This is contrary
3211to the behaviour of most rm programs out there, and not conforming with
3212the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3213
3214Please tell [email protected] about your system, including the value
3215of your $PATH and any error possibly output before this message. This
3216can help us improve future automake versions.
3217
3218END
3219 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3220 echo 'Configuration will proceed anyway, since you have set the' >&2
3221 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3222 echo >&2
3223 else
3224 cat >&2 <<'END'
3225Aborting the configuration process, to ensure you take notice of the issue.
3226
3227You can download and install GNU coreutils to get an 'rm' implementation
3228that behaves properly: <http://www.gnu.org/software/coreutils/>.
3229
3230If you want to complete the configuration process using your problematic
3231'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3232to "yes", and re-run configure.
3233
3234END
3235 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3236 fi
3237fi
3238
Wink Savillefbaaef92010-05-27 16:25:37 -07003239
3240# Check whether --with-zlib was given.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003241if test "${with_zlib+set}" = set; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07003242 withval=$with_zlib;
3243else
3244 with_zlib=check
3245fi
3246
3247
3248
3249# Check whether --with-protoc was given.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003250if test "${with_protoc+set}" = set; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07003251 withval=$with_protoc;
3252else
3253 with_protoc=no
3254fi
3255
3256
3257# Checks for programs.
3258ac_ext=c
3259ac_cpp='$CPP $CPPFLAGS'
3260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3262ac_compiler_gnu=$ac_cv_c_compiler_gnu
3263if test -n "$ac_tool_prefix"; then
3264 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3265set dummy ${ac_tool_prefix}gcc; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267$as_echo_n "checking for $ac_word... " >&6; }
3268if ${ac_cv_prog_CC+:} false; then :
3269 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07003270else
3271 if test -n "$CC"; then
3272 ac_cv_prog_CC="$CC" # Let the user override the test.
3273else
3274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275for as_dir in $PATH
3276do
3277 IFS=$as_save_IFS
3278 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003279 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08003280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07003281 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07003283 break 2
3284 fi
3285done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003286 done
Wink Savillefbaaef92010-05-27 16:25:37 -07003287IFS=$as_save_IFS
3288
3289fi
3290fi
3291CC=$ac_cv_prog_CC
3292if test -n "$CC"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3294$as_echo "$CC" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003295else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003298fi
3299
3300
3301fi
3302if test -z "$ac_cv_prog_CC"; then
3303 ac_ct_CC=$CC
3304 # Extract the first word of "gcc", so it can be a program name with args.
3305set dummy gcc; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307$as_echo_n "checking for $ac_word... " >&6; }
3308if ${ac_cv_prog_ac_ct_CC+:} false; then :
3309 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07003310else
3311 if test -n "$ac_ct_CC"; then
3312 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3313else
3314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315for as_dir in $PATH
3316do
3317 IFS=$as_save_IFS
3318 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003319 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08003320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07003321 ac_cv_prog_ac_ct_CC="gcc"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07003323 break 2
3324 fi
3325done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003326 done
Wink Savillefbaaef92010-05-27 16:25:37 -07003327IFS=$as_save_IFS
3328
3329fi
3330fi
3331ac_ct_CC=$ac_cv_prog_ac_ct_CC
3332if test -n "$ac_ct_CC"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3334$as_echo "$ac_ct_CC" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003335else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003338fi
3339
3340 if test "x$ac_ct_CC" = x; then
3341 CC=""
3342 else
3343 case $cross_compiling:$ac_tool_warned in
3344yes:)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07003347ac_tool_warned=yes ;;
3348esac
3349 CC=$ac_ct_CC
3350 fi
3351else
3352 CC="$ac_cv_prog_CC"
3353fi
3354
3355if test -z "$CC"; then
3356 if test -n "$ac_tool_prefix"; then
3357 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3358set dummy ${ac_tool_prefix}cc; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360$as_echo_n "checking for $ac_word... " >&6; }
3361if ${ac_cv_prog_CC+:} false; then :
3362 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07003363else
3364 if test -n "$CC"; then
3365 ac_cv_prog_CC="$CC" # Let the user override the test.
3366else
3367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368for as_dir in $PATH
3369do
3370 IFS=$as_save_IFS
3371 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003372 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08003373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07003374 ac_cv_prog_CC="${ac_tool_prefix}cc"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07003376 break 2
3377 fi
3378done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003379 done
Wink Savillefbaaef92010-05-27 16:25:37 -07003380IFS=$as_save_IFS
3381
3382fi
3383fi
3384CC=$ac_cv_prog_CC
3385if test -n "$CC"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3387$as_echo "$CC" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003388else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003391fi
3392
3393
3394 fi
3395fi
3396if test -z "$CC"; then
3397 # Extract the first word of "cc", so it can be a program name with args.
3398set dummy cc; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400$as_echo_n "checking for $ac_word... " >&6; }
3401if ${ac_cv_prog_CC+:} false; then :
3402 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07003403else
3404 if test -n "$CC"; then
3405 ac_cv_prog_CC="$CC" # Let the user override the test.
3406else
3407 ac_prog_rejected=no
3408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409for as_dir in $PATH
3410do
3411 IFS=$as_save_IFS
3412 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003413 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08003414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07003415 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3416 ac_prog_rejected=yes
3417 continue
3418 fi
3419 ac_cv_prog_CC="cc"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07003421 break 2
3422 fi
3423done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003424 done
Wink Savillefbaaef92010-05-27 16:25:37 -07003425IFS=$as_save_IFS
3426
3427if test $ac_prog_rejected = yes; then
3428 # We found a bogon in the path, so make sure we never use it.
3429 set dummy $ac_cv_prog_CC
3430 shift
3431 if test $# != 0; then
3432 # We chose a different compiler from the bogus one.
3433 # However, it has the same basename, so the bogon will be chosen
3434 # first if we set CC to just the basename; use the full file name.
3435 shift
3436 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3437 fi
3438fi
3439fi
3440fi
3441CC=$ac_cv_prog_CC
3442if test -n "$CC"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3444$as_echo "$CC" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003445else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003448fi
3449
3450
3451fi
3452if test -z "$CC"; then
3453 if test -n "$ac_tool_prefix"; then
3454 for ac_prog in cl.exe
3455 do
3456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3457set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3459$as_echo_n "checking for $ac_word... " >&6; }
3460if ${ac_cv_prog_CC+:} false; then :
3461 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07003462else
3463 if test -n "$CC"; then
3464 ac_cv_prog_CC="$CC" # Let the user override the test.
3465else
3466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467for as_dir in $PATH
3468do
3469 IFS=$as_save_IFS
3470 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003471 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08003472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07003473 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07003475 break 2
3476 fi
3477done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003478 done
Wink Savillefbaaef92010-05-27 16:25:37 -07003479IFS=$as_save_IFS
3480
3481fi
3482fi
3483CC=$ac_cv_prog_CC
3484if test -n "$CC"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3486$as_echo "$CC" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003487else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003490fi
3491
3492
3493 test -n "$CC" && break
3494 done
3495fi
3496if test -z "$CC"; then
3497 ac_ct_CC=$CC
3498 for ac_prog in cl.exe
3499do
3500 # Extract the first word of "$ac_prog", so it can be a program name with args.
3501set dummy $ac_prog; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3503$as_echo_n "checking for $ac_word... " >&6; }
3504if ${ac_cv_prog_ac_ct_CC+:} false; then :
3505 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07003506else
3507 if test -n "$ac_ct_CC"; then
3508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3509else
3510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511for as_dir in $PATH
3512do
3513 IFS=$as_save_IFS
3514 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003515 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08003516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07003517 ac_cv_prog_ac_ct_CC="$ac_prog"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07003519 break 2
3520 fi
3521done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003522 done
Wink Savillefbaaef92010-05-27 16:25:37 -07003523IFS=$as_save_IFS
3524
3525fi
3526fi
3527ac_ct_CC=$ac_cv_prog_ac_ct_CC
3528if test -n "$ac_ct_CC"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3530$as_echo "$ac_ct_CC" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003531else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003534fi
3535
3536
3537 test -n "$ac_ct_CC" && break
3538done
3539
3540 if test "x$ac_ct_CC" = x; then
3541 CC=""
3542 else
3543 case $cross_compiling:$ac_tool_warned in
3544yes:)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07003547ac_tool_warned=yes ;;
3548esac
3549 CC=$ac_ct_CC
3550 fi
3551fi
3552
3553fi
3554
3555
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003556test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558as_fn_error $? "no acceptable C compiler found in \$PATH
3559See \`config.log' for more details" "$LINENO" 5; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003560
3561# Provide some information about the compiler.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003562$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3563set X $ac_compile
3564ac_compiler=$2
3565for ac_option in --version -v -V -qversion; do
3566 { { ac_try="$ac_compiler $ac_option >&5"
Wink Savillefbaaef92010-05-27 16:25:37 -07003567case "(($ac_try" in
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3570esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3572$as_echo "$ac_try_echo"; } >&5
3573 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Wink Savillefbaaef92010-05-27 16:25:37 -07003574 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003575 if test -s conftest.err; then
3576 sed '10a\
3577... rest of stderr output deleted ...
3578 10q' conftest.err >conftest.er1
3579 cat conftest.er1 >&5
3580 fi
3581 rm -f conftest.er1 conftest.err
3582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3583 test $ac_status = 0; }
3584done
Wink Savillefbaaef92010-05-27 16:25:37 -07003585
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07003587/* end confdefs.h. */
3588
3589int
3590main ()
3591{
3592
3593 ;
3594 return 0;
3595}
3596_ACEOF
3597ac_clean_files_save=$ac_clean_files
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003598ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Wink Savillefbaaef92010-05-27 16:25:37 -07003599# Try to create an executable without -o first, disregard a.out.
3600# It will help us diagnose broken compilers, and finding out an intuition
3601# of exeext.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3603$as_echo_n "checking whether the C compiler works... " >&6; }
3604ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3605
3606# The possible output files:
3607ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3608
Wink Savillefbaaef92010-05-27 16:25:37 -07003609ac_rmfiles=
3610for ac_file in $ac_files
3611do
3612 case $ac_file in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07003614 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3615 esac
3616done
3617rm -f $ac_rmfiles
3618
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003619if { { ac_try="$ac_link_default"
Wink Savillefbaaef92010-05-27 16:25:37 -07003620case "(($ac_try" in
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3623esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625$as_echo "$ac_try_echo"; } >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07003626 (eval "$ac_link_default") 2>&5
3627 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629 test $ac_status = 0; }; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07003630 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3631# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3632# in a Makefile. We should not override ac_cv_exeext if it was cached,
3633# so that the user can short-circuit this test for compilers unknown to
3634# Autoconf.
3635for ac_file in $ac_files ''
3636do
3637 test -f "$ac_file" || continue
3638 case $ac_file in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Wink Savillefbaaef92010-05-27 16:25:37 -07003640 ;;
3641 [ab].out )
3642 # We found the default executable, but exeext='' is most
3643 # certainly right.
3644 break;;
3645 *.* )
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003646 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Wink Savillefbaaef92010-05-27 16:25:37 -07003647 then :; else
3648 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3649 fi
3650 # We set ac_cv_exeext here because the later test for it is not
3651 # safe: cross compilers may not add the suffix if given an `-o'
3652 # argument, so we may need to know it at that point already.
3653 # Even if this section looks crufty: it has the advantage of
3654 # actually working.
3655 break;;
3656 * )
3657 break;;
3658 esac
3659done
3660test "$ac_cv_exeext" = no && ac_cv_exeext=
3661
3662else
3663 ac_file=''
3664fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003665if test -z "$ac_file"; then :
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3667$as_echo "no" >&6; }
3668$as_echo "$as_me: failed program was:" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07003669sed 's/^/| /' conftest.$ac_ext >&5
3670
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003671{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3672$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3673as_fn_error 77 "C compiler cannot create executables
3674See \`config.log' for more details" "$LINENO" 5; }
3675else
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3677$as_echo "yes" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003678fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3680$as_echo_n "checking for C compiler default output file name... " >&6; }
3681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3682$as_echo "$ac_file" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003683ac_exeext=$ac_cv_exeext
3684
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003685rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Wink Savillefbaaef92010-05-27 16:25:37 -07003686ac_clean_files=$ac_clean_files_save
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3688$as_echo_n "checking for suffix of executables... " >&6; }
3689if { { ac_try="$ac_link"
Wink Savillefbaaef92010-05-27 16:25:37 -07003690case "(($ac_try" in
3691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692 *) ac_try_echo=$ac_try;;
3693esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3695$as_echo "$ac_try_echo"; } >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07003696 (eval "$ac_link") 2>&5
3697 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3699 test $ac_status = 0; }; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07003700 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3701# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3702# work properly (i.e., refer to `conftest.exe'), while it won't with
3703# `rm'.
3704for ac_file in conftest.exe conftest conftest.*; do
3705 test -f "$ac_file" || continue
3706 case $ac_file in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07003708 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3709 break;;
3710 * ) break;;
3711 esac
3712done
3713else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3715$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3716as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3717See \`config.log' for more details" "$LINENO" 5; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003718fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003719rm -f conftest conftest$ac_cv_exeext
3720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3721$as_echo "$ac_cv_exeext" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003722
3723rm -f conftest.$ac_ext
3724EXEEXT=$ac_cv_exeext
3725ac_exeext=$EXEEXT
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727/* end confdefs.h. */
3728#include <stdio.h>
3729int
3730main ()
3731{
3732FILE *f = fopen ("conftest.out", "w");
3733 return ferror (f) || fclose (f) != 0;
3734
3735 ;
3736 return 0;
3737}
Wink Savillefbaaef92010-05-27 16:25:37 -07003738_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003739ac_clean_files="$ac_clean_files conftest.out"
3740# Check that the compiler produces executables we can run. If not, either
3741# the compiler is broken, or we cross compile.
3742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3743$as_echo_n "checking whether we are cross compiling... " >&6; }
3744if test "$cross_compiling" != yes; then
3745 { { ac_try="$ac_link"
3746case "(($ac_try" in
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3749esac
3750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751$as_echo "$ac_try_echo"; } >&5
3752 (eval "$ac_link") 2>&5
3753 ac_status=$?
3754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3755 test $ac_status = 0; }
3756 if { ac_try='./conftest$ac_cv_exeext'
3757 { { case "(($ac_try" in
3758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759 *) ac_try_echo=$ac_try;;
3760esac
3761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3762$as_echo "$ac_try_echo"; } >&5
3763 (eval "$ac_try") 2>&5
3764 ac_status=$?
3765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3766 test $ac_status = 0; }; }; then
3767 cross_compiling=no
3768 else
3769 if test "$cross_compiling" = maybe; then
3770 cross_compiling=yes
3771 else
3772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3773$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3774as_fn_error $? "cannot run C compiled programs.
3775If you meant to cross compile, use \`--host'.
3776See \`config.log' for more details" "$LINENO" 5; }
3777 fi
3778 fi
3779fi
3780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3781$as_echo "$cross_compiling" >&6; }
3782
3783rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3784ac_clean_files=$ac_clean_files_save
3785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3786$as_echo_n "checking for suffix of object files... " >&6; }
3787if ${ac_cv_objext+:} false; then :
3788 $as_echo_n "(cached) " >&6
3789else
3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07003791/* end confdefs.h. */
3792
3793int
3794main ()
3795{
3796
3797 ;
3798 return 0;
3799}
3800_ACEOF
3801rm -f conftest.o conftest.obj
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003802if { { ac_try="$ac_compile"
Wink Savillefbaaef92010-05-27 16:25:37 -07003803case "(($ac_try" in
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3806esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3808$as_echo "$ac_try_echo"; } >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07003809 (eval "$ac_compile") 2>&5
3810 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3812 test $ac_status = 0; }; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07003813 for ac_file in conftest.o conftest.obj conftest.*; do
3814 test -f "$ac_file" || continue;
3815 case $ac_file in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07003817 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3818 break;;
3819 esac
3820done
3821else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003822 $as_echo "$as_me: failed program was:" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07003823sed 's/^/| /' conftest.$ac_ext >&5
3824
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003825{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3826$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3827as_fn_error $? "cannot compute suffix of object files: cannot compile
3828See \`config.log' for more details" "$LINENO" 5; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003829fi
Wink Savillefbaaef92010-05-27 16:25:37 -07003830rm -f conftest.$ac_cv_objext conftest.$ac_ext
3831fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3833$as_echo "$ac_cv_objext" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003834OBJEXT=$ac_cv_objext
3835ac_objext=$OBJEXT
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3837$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3838if ${ac_cv_c_compiler_gnu+:} false; then :
3839 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07003840else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07003842/* end confdefs.h. */
3843
3844int
3845main ()
3846{
3847#ifndef __GNUC__
3848 choke me
3849#endif
3850
3851 ;
3852 return 0;
3853}
3854_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003855if ac_fn_c_try_compile "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07003856 ac_compiler_gnu=yes
3857else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003858 ac_compiler_gnu=no
Wink Savillefbaaef92010-05-27 16:25:37 -07003859fi
Wink Savillefbaaef92010-05-27 16:25:37 -07003860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3861ac_cv_c_compiler_gnu=$ac_compiler_gnu
3862
3863fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3865$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3866if test $ac_compiler_gnu = yes; then
3867 GCC=yes
3868else
3869 GCC=
3870fi
Wink Savillefbaaef92010-05-27 16:25:37 -07003871ac_test_CFLAGS=${CFLAGS+set}
3872ac_save_CFLAGS=$CFLAGS
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3874$as_echo_n "checking whether $CC accepts -g... " >&6; }
3875if ${ac_cv_prog_cc_g+:} false; then :
3876 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07003877else
3878 ac_save_c_werror_flag=$ac_c_werror_flag
3879 ac_c_werror_flag=yes
3880 ac_cv_prog_cc_g=no
3881 CFLAGS="-g"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07003883/* end confdefs.h. */
3884
3885int
3886main ()
3887{
3888
3889 ;
3890 return 0;
3891}
3892_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003893if ac_fn_c_try_compile "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07003894 ac_cv_prog_cc_g=yes
3895else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003896 CFLAGS=""
3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07003898/* end confdefs.h. */
3899
3900int
3901main ()
3902{
3903
3904 ;
3905 return 0;
3906}
3907_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003908if ac_fn_c_try_compile "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07003909
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003910else
3911 ac_c_werror_flag=$ac_save_c_werror_flag
Wink Savillefbaaef92010-05-27 16:25:37 -07003912 CFLAGS="-g"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07003914/* end confdefs.h. */
3915
3916int
3917main ()
3918{
3919
3920 ;
3921 return 0;
3922}
3923_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003924if ac_fn_c_try_compile "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07003925 ac_cv_prog_cc_g=yes
Wink Savillefbaaef92010-05-27 16:25:37 -07003926fi
Wink Savillefbaaef92010-05-27 16:25:37 -07003927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928fi
Wink Savillefbaaef92010-05-27 16:25:37 -07003929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930fi
Wink Savillefbaaef92010-05-27 16:25:37 -07003931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3932 ac_c_werror_flag=$ac_save_c_werror_flag
3933fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3935$as_echo "$ac_cv_prog_cc_g" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07003936if test "$ac_test_CFLAGS" = set; then
3937 CFLAGS=$ac_save_CFLAGS
3938elif test $ac_cv_prog_cc_g = yes; then
3939 if test "$GCC" = yes; then
3940 CFLAGS="-g -O2"
3941 else
3942 CFLAGS="-g"
3943 fi
3944else
3945 if test "$GCC" = yes; then
3946 CFLAGS="-O2"
3947 else
3948 CFLAGS=
3949 fi
3950fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3952$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3953if ${ac_cv_prog_cc_c89+:} false; then :
3954 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07003955else
3956 ac_cv_prog_cc_c89=no
3957ac_save_CC=$CC
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07003958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07003959/* end confdefs.h. */
3960#include <stdarg.h>
3961#include <stdio.h>
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08003962struct stat;
Wink Savillefbaaef92010-05-27 16:25:37 -07003963/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3964struct buf { int x; };
3965FILE * (*rcsopen) (struct buf *, struct stat *, int);
3966static char *e (p, i)
3967 char **p;
3968 int i;
3969{
3970 return p[i];
3971}
3972static char *f (char * (*g) (char **, int), char **p, ...)
3973{
3974 char *s;
3975 va_list v;
3976 va_start (v,p);
3977 s = g (p, va_arg (v,int));
3978 va_end (v);
3979 return s;
3980}
3981
3982/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3983 function prototypes and stuff, but not '\xHH' hex character constants.
3984 These don't provoke an error unfortunately, instead are silently treated
3985 as 'x'. The following induces an error, until -std is added to get
3986 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3987 array size at least. It's necessary to write '\x00'==0 to get something
3988 that's true only with -std. */
3989int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3990
3991/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3992 inside strings and character constants. */
3993#define FOO(x) 'x'
3994int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3995
3996int test (int i, double x);
3997struct s1 {int (*f) (int a);};
3998struct s2 {int (*f) (double a);};
3999int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4000int argc;
4001char **argv;
4002int
4003main ()
4004{
4005return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4006 ;
4007 return 0;
4008}
4009_ACEOF
4010for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4011 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4012do
4013 CC="$ac_save_CC $ac_arg"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004014 if ac_fn_c_try_compile "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07004015 ac_cv_prog_cc_c89=$ac_arg
Wink Savillefbaaef92010-05-27 16:25:37 -07004016fi
Wink Savillefbaaef92010-05-27 16:25:37 -07004017rm -f core conftest.err conftest.$ac_objext
4018 test "x$ac_cv_prog_cc_c89" != "xno" && break
4019done
4020rm -f conftest.$ac_ext
4021CC=$ac_save_CC
4022
4023fi
4024# AC_CACHE_VAL
4025case "x$ac_cv_prog_cc_c89" in
4026 x)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4028$as_echo "none needed" >&6; } ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07004029 xno)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4031$as_echo "unsupported" >&6; } ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07004032 *)
4033 CC="$CC $ac_cv_prog_cc_c89"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4035$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07004036esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004037if test "x$ac_cv_prog_cc_c89" != xno; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07004038
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004039fi
Wink Savillefbaaef92010-05-27 16:25:37 -07004040
4041ac_ext=c
4042ac_cpp='$CPP $CPPFLAGS'
4043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4045ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08004046
4047ac_ext=c
4048ac_cpp='$CPP $CPPFLAGS'
4049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051ac_compiler_gnu=$ac_cv_c_compiler_gnu
4052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4053$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4054if ${am_cv_prog_cc_c_o+:} false; then :
4055 $as_echo_n "(cached) " >&6
4056else
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058/* end confdefs.h. */
4059
4060int
4061main ()
4062{
4063
4064 ;
4065 return 0;
4066}
4067_ACEOF
4068 # Make sure it works both with $CC and with simple cc.
4069 # Following AC_PROG_CC_C_O, we do the test twice because some
4070 # compilers refuse to overwrite an existing .o file with -o,
4071 # though they will create one.
4072 am_cv_prog_cc_c_o=yes
4073 for am_i in 1 2; do
4074 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4075 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4076 ac_status=$?
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); } \
4079 && test -f conftest2.$ac_objext; then
4080 : OK
4081 else
4082 am_cv_prog_cc_c_o=no
4083 break
4084 fi
4085 done
4086 rm -f core conftest*
4087 unset am_i
4088fi
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4090$as_echo "$am_cv_prog_cc_c_o" >&6; }
4091if test "$am_cv_prog_cc_c_o" != yes; then
4092 # Losing compiler, so override with the script.
4093 # FIXME: It is wrong to rewrite CC.
4094 # But if we don't then we get into trouble of one sort or another.
4095 # A longer-term fix would be to have automake use am__CC in this case,
4096 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4097 CC="$am_aux_dir/compile $CC"
4098fi
4099ac_ext=c
4100ac_cpp='$CPP $CPPFLAGS'
4101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4103ac_compiler_gnu=$ac_cv_c_compiler_gnu
4104
Wink Savillefbaaef92010-05-27 16:25:37 -07004105DEPDIR="${am__leading_dot}deps"
4106
4107ac_config_commands="$ac_config_commands depfiles"
4108
4109
4110am_make=${MAKE-make}
4111cat > confinc << 'END'
4112am__doit:
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004113 @echo this is the am__doit target
Wink Savillefbaaef92010-05-27 16:25:37 -07004114.PHONY: am__doit
4115END
4116# If we don't find an include directive, just comment out the code.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4118$as_echo_n "checking for style of include used by $am_make... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004119am__include="#"
4120am__quote=
4121_am_result=none
4122# First try GNU make style include.
4123echo "include confinc" > confmf
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08004124# Ignore all kinds of additional output from 'make'.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004125case `$am_make -s -f confmf 2> /dev/null` in #(
4126*the\ am__doit\ target*)
4127 am__include=include
4128 am__quote=
4129 _am_result=GNU
4130 ;;
4131esac
Wink Savillefbaaef92010-05-27 16:25:37 -07004132# Now try BSD make style include.
4133if test "$am__include" = "#"; then
4134 echo '.include "confinc"' > confmf
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004135 case `$am_make -s -f confmf 2> /dev/null` in #(
4136 *the\ am__doit\ target*)
4137 am__include=.include
4138 am__quote="\""
4139 _am_result=BSD
4140 ;;
4141 esac
Wink Savillefbaaef92010-05-27 16:25:37 -07004142fi
4143
4144
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4146$as_echo "$_am_result" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004147rm -f confinc confmf
4148
4149# Check whether --enable-dependency-tracking was given.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004150if test "${enable_dependency_tracking+set}" = set; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07004151 enableval=$enable_dependency_tracking;
4152fi
4153
4154if test "x$enable_dependency_tracking" != xno; then
4155 am_depcomp="$ac_aux_dir/depcomp"
4156 AMDEPBACKSLASH='\'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004157 am__nodep='_no'
Wink Savillefbaaef92010-05-27 16:25:37 -07004158fi
4159 if test "x$enable_dependency_tracking" != xno; then
4160 AMDEP_TRUE=
4161 AMDEP_FALSE='#'
4162else
4163 AMDEP_TRUE='#'
4164 AMDEP_FALSE=
4165fi
4166
4167
4168
4169depcc="$CC" am_compiler_list=
4170
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4172$as_echo_n "checking dependency style of $depcc... " >&6; }
4173if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4174 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07004175else
4176 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4177 # We make a subdir and do the tests there. Otherwise we can end up
4178 # making bogus files that we don't know about and never remove. For
4179 # instance it was reported that on HP-UX the gcc test will end up
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08004180 # making a dummy file named 'D' -- because '-MD' means "put the output
4181 # in D".
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004182 rm -rf conftest.dir
Wink Savillefbaaef92010-05-27 16:25:37 -07004183 mkdir conftest.dir
4184 # Copy depcomp to subdir because otherwise we won't find it if we're
4185 # using a relative directory.
4186 cp "$am_depcomp" conftest.dir
4187 cd conftest.dir
4188 # We will build objects and dependencies in a subdirectory because
4189 # it helps to detect inapplicable dependency modes. For instance
4190 # both Tru64's cc and ICC support -MD to output dependencies as a
4191 # side effect of compilation, but ICC will put the dependencies in
4192 # the current directory while Tru64 will put them in the object
4193 # directory.
4194 mkdir sub
4195
4196 am_cv_CC_dependencies_compiler_type=none
4197 if test "$am_compiler_list" = ""; then
4198 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4199 fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004200 am__universal=false
4201 case " $depcc " in #(
4202 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4203 esac
4204
Wink Savillefbaaef92010-05-27 16:25:37 -07004205 for depmode in $am_compiler_list; do
4206 # Setup a source with many dependencies, because some compilers
4207 # like to wrap large dependency lists on column 80 (with \), and
4208 # we should not choose a depcomp mode which is confused by this.
4209 #
4210 # We need to recreate these files for each test, as the compiler may
4211 # overwrite some of them when testing with obscure command lines.
4212 # This happens at least with the AIX C compiler.
4213 : > sub/conftest.c
4214 for i in 1 2 3 4 5 6; do
4215 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08004216 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4217 # Solaris 10 /bin/sh.
4218 echo '/* dummy */' > sub/conftst$i.h
Wink Savillefbaaef92010-05-27 16:25:37 -07004219 done
4220 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4221
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08004222 # We check with '-c' and '-o' for the sake of the "dashmstdout"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004223 # mode. It turns out that the SunPro C++ compiler does not properly
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08004224 # handle '-M -o', and we need to detect this. Also, some Intel
4225 # versions had trouble with output in subdirs.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004226 am__obj=sub/conftest.${OBJEXT-o}
4227 am__minus_obj="-o $am__obj"
Wink Savillefbaaef92010-05-27 16:25:37 -07004228 case $depmode in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004229 gcc)
4230 # This depmode causes a compiler race in universal mode.
4231 test "$am__universal" = false || continue
4232 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07004233 nosideeffect)
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08004234 # After this tag, mechanisms are not by side-effect, so they'll
4235 # only be used when explicitly requested.
Wink Savillefbaaef92010-05-27 16:25:37 -07004236 if test "x$enable_dependency_tracking" = xyes; then
4237 continue
4238 else
4239 break
4240 fi
4241 ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004242 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08004243 # This compiler won't grok '-c -o', but also, the minuso test has
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004244 # not run yet. These depmodes are late enough in the game, and
4245 # so weak that their functioning should not be impacted.
4246 am__obj=conftest.${OBJEXT-o}
4247 am__minus_obj=
4248 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07004249 none) break ;;
4250 esac
Wink Savillefbaaef92010-05-27 16:25:37 -07004251 if depmode=$depmode \
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004252 source=sub/conftest.c object=$am__obj \
Wink Savillefbaaef92010-05-27 16:25:37 -07004253 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004254 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Wink Savillefbaaef92010-05-27 16:25:37 -07004255 >/dev/null 2>conftest.err &&
4256 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4257 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004258 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Wink Savillefbaaef92010-05-27 16:25:37 -07004259 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4260 # icc doesn't choke on unknown options, it will just issue warnings
4261 # or remarks (even with -Werror). So we grep stderr for any message
4262 # that says an option was ignored or not supported.
4263 # When given -MP, icc 7.0 and 7.1 complain thusly:
4264 # icc: Command line warning: ignoring option '-M'; no argument required
4265 # The diagnosis changed in icc 8.0:
4266 # icc: Command line remark: option '-MP' not supported
4267 if (grep 'ignoring option' conftest.err ||
4268 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4269 am_cv_CC_dependencies_compiler_type=$depmode
4270 break
4271 fi
4272 fi
4273 done
4274
4275 cd ..
4276 rm -rf conftest.dir
4277else
4278 am_cv_CC_dependencies_compiler_type=none
4279fi
4280
4281fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4283$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004284CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4285
4286 if
4287 test "x$enable_dependency_tracking" != xno \
4288 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4289 am__fastdepCC_TRUE=
4290 am__fastdepCC_FALSE='#'
4291else
4292 am__fastdepCC_TRUE='#'
4293 am__fastdepCC_FALSE=
4294fi
4295
4296
4297ac_ext=cpp
4298ac_cpp='$CXXCPP $CPPFLAGS'
4299ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4300ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4302if test -z "$CXX"; then
4303 if test -n "$CCC"; then
4304 CXX=$CCC
4305 else
4306 if test -n "$ac_tool_prefix"; then
4307 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4308 do
4309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4310set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312$as_echo_n "checking for $ac_word... " >&6; }
4313if ${ac_cv_prog_CXX+:} false; then :
4314 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07004315else
4316 if test -n "$CXX"; then
4317 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4318else
4319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320for as_dir in $PATH
4321do
4322 IFS=$as_save_IFS
4323 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004324 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08004325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07004326 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07004328 break 2
4329 fi
4330done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004331 done
Wink Savillefbaaef92010-05-27 16:25:37 -07004332IFS=$as_save_IFS
4333
4334fi
4335fi
4336CXX=$ac_cv_prog_CXX
4337if test -n "$CXX"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4339$as_echo "$CXX" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004340else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004343fi
4344
4345
4346 test -n "$CXX" && break
4347 done
4348fi
4349if test -z "$CXX"; then
4350 ac_ct_CXX=$CXX
4351 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4352do
4353 # Extract the first word of "$ac_prog", so it can be a program name with args.
4354set dummy $ac_prog; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4356$as_echo_n "checking for $ac_word... " >&6; }
4357if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4358 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07004359else
4360 if test -n "$ac_ct_CXX"; then
4361 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4362else
4363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364for as_dir in $PATH
4365do
4366 IFS=$as_save_IFS
4367 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004368 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08004369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07004370 ac_cv_prog_ac_ct_CXX="$ac_prog"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07004372 break 2
4373 fi
4374done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004375 done
Wink Savillefbaaef92010-05-27 16:25:37 -07004376IFS=$as_save_IFS
4377
4378fi
4379fi
4380ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4381if test -n "$ac_ct_CXX"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4383$as_echo "$ac_ct_CXX" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004384else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004387fi
4388
4389
4390 test -n "$ac_ct_CXX" && break
4391done
4392
4393 if test "x$ac_ct_CXX" = x; then
4394 CXX="g++"
4395 else
4396 case $cross_compiling:$ac_tool_warned in
4397yes:)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004398{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07004400ac_tool_warned=yes ;;
4401esac
4402 CXX=$ac_ct_CXX
4403 fi
4404fi
4405
4406 fi
4407fi
4408# Provide some information about the compiler.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004409$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4410set X $ac_compile
4411ac_compiler=$2
4412for ac_option in --version -v -V -qversion; do
4413 { { ac_try="$ac_compiler $ac_option >&5"
Wink Savillefbaaef92010-05-27 16:25:37 -07004414case "(($ac_try" in
4415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416 *) ac_try_echo=$ac_try;;
4417esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004418eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4419$as_echo "$ac_try_echo"; } >&5
4420 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Wink Savillefbaaef92010-05-27 16:25:37 -07004421 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004422 if test -s conftest.err; then
4423 sed '10a\
4424... rest of stderr output deleted ...
4425 10q' conftest.err >conftest.er1
4426 cat conftest.er1 >&5
4427 fi
4428 rm -f conftest.er1 conftest.err
4429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4430 test $ac_status = 0; }
4431done
Wink Savillefbaaef92010-05-27 16:25:37 -07004432
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4434$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4435if ${ac_cv_cxx_compiler_gnu+:} false; then :
4436 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07004437else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07004439/* end confdefs.h. */
4440
4441int
4442main ()
4443{
4444#ifndef __GNUC__
4445 choke me
4446#endif
4447
4448 ;
4449 return 0;
4450}
4451_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004452if ac_fn_cxx_try_compile "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07004453 ac_compiler_gnu=yes
4454else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004455 ac_compiler_gnu=no
Wink Savillefbaaef92010-05-27 16:25:37 -07004456fi
Wink Savillefbaaef92010-05-27 16:25:37 -07004457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4458ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4459
4460fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4462$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4463if test $ac_compiler_gnu = yes; then
4464 GXX=yes
4465else
4466 GXX=
4467fi
Wink Savillefbaaef92010-05-27 16:25:37 -07004468ac_test_CXXFLAGS=${CXXFLAGS+set}
4469ac_save_CXXFLAGS=$CXXFLAGS
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4471$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4472if ${ac_cv_prog_cxx_g+:} false; then :
4473 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07004474else
4475 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4476 ac_cxx_werror_flag=yes
4477 ac_cv_prog_cxx_g=no
4478 CXXFLAGS="-g"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07004480/* end confdefs.h. */
4481
4482int
4483main ()
4484{
4485
4486 ;
4487 return 0;
4488}
4489_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004490if ac_fn_cxx_try_compile "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07004491 ac_cv_prog_cxx_g=yes
4492else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004493 CXXFLAGS=""
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07004495/* end confdefs.h. */
4496
4497int
4498main ()
4499{
4500
4501 ;
4502 return 0;
4503}
4504_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004505if ac_fn_cxx_try_compile "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07004506
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004507else
4508 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Wink Savillefbaaef92010-05-27 16:25:37 -07004509 CXXFLAGS="-g"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07004511/* end confdefs.h. */
4512
4513int
4514main ()
4515{
4516
4517 ;
4518 return 0;
4519}
4520_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004521if ac_fn_cxx_try_compile "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07004522 ac_cv_prog_cxx_g=yes
Wink Savillefbaaef92010-05-27 16:25:37 -07004523fi
Wink Savillefbaaef92010-05-27 16:25:37 -07004524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525fi
Wink Savillefbaaef92010-05-27 16:25:37 -07004526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4527fi
Wink Savillefbaaef92010-05-27 16:25:37 -07004528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4530fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4532$as_echo "$ac_cv_prog_cxx_g" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004533if test "$ac_test_CXXFLAGS" = set; then
4534 CXXFLAGS=$ac_save_CXXFLAGS
4535elif test $ac_cv_prog_cxx_g = yes; then
4536 if test "$GXX" = yes; then
4537 CXXFLAGS="-g -O2"
4538 else
4539 CXXFLAGS="-g"
4540 fi
4541else
4542 if test "$GXX" = yes; then
4543 CXXFLAGS="-O2"
4544 else
4545 CXXFLAGS=
4546 fi
4547fi
4548ac_ext=c
4549ac_cpp='$CPP $CPPFLAGS'
4550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4552ac_compiler_gnu=$ac_cv_c_compiler_gnu
4553
4554depcc="$CXX" am_compiler_list=
4555
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4557$as_echo_n "checking dependency style of $depcc... " >&6; }
4558if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4559 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07004560else
4561 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4562 # We make a subdir and do the tests there. Otherwise we can end up
4563 # making bogus files that we don't know about and never remove. For
4564 # instance it was reported that on HP-UX the gcc test will end up
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08004565 # making a dummy file named 'D' -- because '-MD' means "put the output
4566 # in D".
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004567 rm -rf conftest.dir
Wink Savillefbaaef92010-05-27 16:25:37 -07004568 mkdir conftest.dir
4569 # Copy depcomp to subdir because otherwise we won't find it if we're
4570 # using a relative directory.
4571 cp "$am_depcomp" conftest.dir
4572 cd conftest.dir
4573 # We will build objects and dependencies in a subdirectory because
4574 # it helps to detect inapplicable dependency modes. For instance
4575 # both Tru64's cc and ICC support -MD to output dependencies as a
4576 # side effect of compilation, but ICC will put the dependencies in
4577 # the current directory while Tru64 will put them in the object
4578 # directory.
4579 mkdir sub
4580
4581 am_cv_CXX_dependencies_compiler_type=none
4582 if test "$am_compiler_list" = ""; then
4583 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4584 fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004585 am__universal=false
4586 case " $depcc " in #(
4587 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4588 esac
4589
Wink Savillefbaaef92010-05-27 16:25:37 -07004590 for depmode in $am_compiler_list; do
4591 # Setup a source with many dependencies, because some compilers
4592 # like to wrap large dependency lists on column 80 (with \), and
4593 # we should not choose a depcomp mode which is confused by this.
4594 #
4595 # We need to recreate these files for each test, as the compiler may
4596 # overwrite some of them when testing with obscure command lines.
4597 # This happens at least with the AIX C compiler.
4598 : > sub/conftest.c
4599 for i in 1 2 3 4 5 6; do
4600 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08004601 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4602 # Solaris 10 /bin/sh.
4603 echo '/* dummy */' > sub/conftst$i.h
Wink Savillefbaaef92010-05-27 16:25:37 -07004604 done
4605 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4606
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08004607 # We check with '-c' and '-o' for the sake of the "dashmstdout"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004608 # mode. It turns out that the SunPro C++ compiler does not properly
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08004609 # handle '-M -o', and we need to detect this. Also, some Intel
4610 # versions had trouble with output in subdirs.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004611 am__obj=sub/conftest.${OBJEXT-o}
4612 am__minus_obj="-o $am__obj"
Wink Savillefbaaef92010-05-27 16:25:37 -07004613 case $depmode in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004614 gcc)
4615 # This depmode causes a compiler race in universal mode.
4616 test "$am__universal" = false || continue
4617 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07004618 nosideeffect)
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08004619 # After this tag, mechanisms are not by side-effect, so they'll
4620 # only be used when explicitly requested.
Wink Savillefbaaef92010-05-27 16:25:37 -07004621 if test "x$enable_dependency_tracking" = xyes; then
4622 continue
4623 else
4624 break
4625 fi
4626 ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004627 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08004628 # This compiler won't grok '-c -o', but also, the minuso test has
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004629 # not run yet. These depmodes are late enough in the game, and
4630 # so weak that their functioning should not be impacted.
4631 am__obj=conftest.${OBJEXT-o}
4632 am__minus_obj=
4633 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07004634 none) break ;;
4635 esac
Wink Savillefbaaef92010-05-27 16:25:37 -07004636 if depmode=$depmode \
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004637 source=sub/conftest.c object=$am__obj \
Wink Savillefbaaef92010-05-27 16:25:37 -07004638 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004639 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Wink Savillefbaaef92010-05-27 16:25:37 -07004640 >/dev/null 2>conftest.err &&
4641 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4642 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004643 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Wink Savillefbaaef92010-05-27 16:25:37 -07004644 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4645 # icc doesn't choke on unknown options, it will just issue warnings
4646 # or remarks (even with -Werror). So we grep stderr for any message
4647 # that says an option was ignored or not supported.
4648 # When given -MP, icc 7.0 and 7.1 complain thusly:
4649 # icc: Command line warning: ignoring option '-M'; no argument required
4650 # The diagnosis changed in icc 8.0:
4651 # icc: Command line remark: option '-MP' not supported
4652 if (grep 'ignoring option' conftest.err ||
4653 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4654 am_cv_CXX_dependencies_compiler_type=$depmode
4655 break
4656 fi
4657 fi
4658 done
4659
4660 cd ..
4661 rm -rf conftest.dir
4662else
4663 am_cv_CXX_dependencies_compiler_type=none
4664fi
4665
4666fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4668$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004669CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4670
4671 if
4672 test "x$enable_dependency_tracking" != xno \
4673 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4674 am__fastdepCXX_TRUE=
4675 am__fastdepCXX_FALSE='#'
4676else
4677 am__fastdepCXX_TRUE='#'
4678 am__fastdepCXX_FALSE=
4679fi
4680
4681
4682ac_ext=cpp
4683ac_cpp='$CXXCPP $CPPFLAGS'
4684ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4685ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4686ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4687
4688
Wink Savillefbaaef92010-05-27 16:25:37 -07004689ac_ext=cpp
4690ac_cpp='$CXXCPP $CPPFLAGS'
4691ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4692ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4693ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4695$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004696if test -z "$CXXCPP"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004697 if ${ac_cv_prog_CXXCPP+:} false; then :
4698 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07004699else
4700 # Double quotes because CXXCPP needs to be expanded
4701 for CXXCPP in "$CXX -E" "/lib/cpp"
4702 do
4703 ac_preproc_ok=false
4704for ac_cxx_preproc_warn_flag in '' yes
4705do
4706 # Use a header file that comes with gcc, so configuring glibc
4707 # with a fresh cross-compiler works.
4708 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4709 # <limits.h> exists even on freestanding compilers.
4710 # On the NeXT, cc -E runs the code through the compiler's parser,
4711 # not just through cpp. "Syntax error" is here to catch this case.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07004713/* end confdefs.h. */
4714#ifdef __STDC__
4715# include <limits.h>
4716#else
4717# include <assert.h>
4718#endif
4719 Syntax error
4720_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004721if ac_fn_cxx_try_cpp "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07004722
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004723else
Wink Savillefbaaef92010-05-27 16:25:37 -07004724 # Broken: fails on valid input.
4725continue
4726fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004727rm -f conftest.err conftest.i conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07004728
4729 # OK, works on sane cases. Now check whether nonexistent headers
4730 # can be detected and how.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07004732/* end confdefs.h. */
4733#include <ac_nonexistent.h>
4734_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004735if ac_fn_cxx_try_cpp "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07004736 # Broken: success on invalid input.
4737continue
4738else
Wink Savillefbaaef92010-05-27 16:25:37 -07004739 # Passes both tests.
4740ac_preproc_ok=:
4741break
4742fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004743rm -f conftest.err conftest.i conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07004744
4745done
4746# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004747rm -f conftest.i conftest.err conftest.$ac_ext
4748if $ac_preproc_ok; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07004749 break
4750fi
4751
4752 done
4753 ac_cv_prog_CXXCPP=$CXXCPP
4754
4755fi
4756 CXXCPP=$ac_cv_prog_CXXCPP
4757else
4758 ac_cv_prog_CXXCPP=$CXXCPP
4759fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4761$as_echo "$CXXCPP" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004762ac_preproc_ok=false
4763for ac_cxx_preproc_warn_flag in '' yes
4764do
4765 # Use a header file that comes with gcc, so configuring glibc
4766 # with a fresh cross-compiler works.
4767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4768 # <limits.h> exists even on freestanding compilers.
4769 # On the NeXT, cc -E runs the code through the compiler's parser,
4770 # not just through cpp. "Syntax error" is here to catch this case.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07004772/* end confdefs.h. */
4773#ifdef __STDC__
4774# include <limits.h>
4775#else
4776# include <assert.h>
4777#endif
4778 Syntax error
4779_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004780if ac_fn_cxx_try_cpp "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07004781
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004782else
Wink Savillefbaaef92010-05-27 16:25:37 -07004783 # Broken: fails on valid input.
4784continue
4785fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004786rm -f conftest.err conftest.i conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07004787
4788 # OK, works on sane cases. Now check whether nonexistent headers
4789 # can be detected and how.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07004791/* end confdefs.h. */
4792#include <ac_nonexistent.h>
4793_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004794if ac_fn_cxx_try_cpp "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07004795 # Broken: success on invalid input.
4796continue
4797else
Wink Savillefbaaef92010-05-27 16:25:37 -07004798 # Passes both tests.
4799ac_preproc_ok=:
4800break
4801fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004802rm -f conftest.err conftest.i conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07004803
4804done
4805# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004806rm -f conftest.i conftest.err conftest.$ac_ext
4807if $ac_preproc_ok; then :
4808
Wink Savillefbaaef92010-05-27 16:25:37 -07004809else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4812as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4813See \`config.log' for more details" "$LINENO" 5; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004814fi
4815
4816ac_ext=cpp
4817ac_cpp='$CXXCPP $CPPFLAGS'
4818ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4819ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4820ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4821
4822
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4824$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4825if ${ac_cv_path_GREP+:} false; then :
4826 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07004827else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004828 if test -z "$GREP"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07004829 ac_path_GREP_found=false
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004830 # Loop through the user's path and test for each of PROGNAME-LIST
4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Wink Savillefbaaef92010-05-27 16:25:37 -07004832for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4833do
4834 IFS=$as_save_IFS
4835 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004836 for ac_prog in grep ggrep; do
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08004839 as_fn_executable_p "$ac_path_GREP" || continue
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004840# Check for GNU ac_path_GREP and select it if it is found.
Wink Savillefbaaef92010-05-27 16:25:37 -07004841 # Check for GNU $ac_path_GREP
4842case `"$ac_path_GREP" --version 2>&1` in
4843*GNU*)
4844 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4845*)
4846 ac_count=0
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004847 $as_echo_n 0123456789 >"conftest.in"
Wink Savillefbaaef92010-05-27 16:25:37 -07004848 while :
4849 do
4850 cat "conftest.in" "conftest.in" >"conftest.tmp"
4851 mv "conftest.tmp" "conftest.in"
4852 cp "conftest.in" "conftest.nl"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004853 $as_echo 'GREP' >> "conftest.nl"
Wink Savillefbaaef92010-05-27 16:25:37 -07004854 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4855 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004856 as_fn_arith $ac_count + 1 && ac_count=$as_val
Wink Savillefbaaef92010-05-27 16:25:37 -07004857 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4858 # Best one so far, save it but keep looking for a better one
4859 ac_cv_path_GREP="$ac_path_GREP"
4860 ac_path_GREP_max=$ac_count
4861 fi
4862 # 10*(2^10) chars as input seems more than enough
4863 test $ac_count -gt 10 && break
4864 done
4865 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4866esac
4867
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004868 $ac_path_GREP_found && break 3
4869 done
Wink Savillefbaaef92010-05-27 16:25:37 -07004870 done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004871 done
Wink Savillefbaaef92010-05-27 16:25:37 -07004872IFS=$as_save_IFS
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004873 if test -z "$ac_cv_path_GREP"; then
4874 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4875 fi
Wink Savillefbaaef92010-05-27 16:25:37 -07004876else
4877 ac_cv_path_GREP=$GREP
4878fi
4879
Wink Savillefbaaef92010-05-27 16:25:37 -07004880fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4882$as_echo "$ac_cv_path_GREP" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004883 GREP="$ac_cv_path_GREP"
4884
4885
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4887$as_echo_n "checking for egrep... " >&6; }
4888if ${ac_cv_path_EGREP+:} false; then :
4889 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07004890else
4891 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4892 then ac_cv_path_EGREP="$GREP -E"
4893 else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004894 if test -z "$EGREP"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07004895 ac_path_EGREP_found=false
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004896 # Loop through the user's path and test for each of PROGNAME-LIST
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Wink Savillefbaaef92010-05-27 16:25:37 -07004898for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4899do
4900 IFS=$as_save_IFS
4901 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004902 for ac_prog in egrep; do
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08004905 as_fn_executable_p "$ac_path_EGREP" || continue
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004906# Check for GNU ac_path_EGREP and select it if it is found.
Wink Savillefbaaef92010-05-27 16:25:37 -07004907 # Check for GNU $ac_path_EGREP
4908case `"$ac_path_EGREP" --version 2>&1` in
4909*GNU*)
4910 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4911*)
4912 ac_count=0
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004913 $as_echo_n 0123456789 >"conftest.in"
Wink Savillefbaaef92010-05-27 16:25:37 -07004914 while :
4915 do
4916 cat "conftest.in" "conftest.in" >"conftest.tmp"
4917 mv "conftest.tmp" "conftest.in"
4918 cp "conftest.in" "conftest.nl"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004919 $as_echo 'EGREP' >> "conftest.nl"
Wink Savillefbaaef92010-05-27 16:25:37 -07004920 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4921 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004922 as_fn_arith $ac_count + 1 && ac_count=$as_val
Wink Savillefbaaef92010-05-27 16:25:37 -07004923 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4924 # Best one so far, save it but keep looking for a better one
4925 ac_cv_path_EGREP="$ac_path_EGREP"
4926 ac_path_EGREP_max=$ac_count
4927 fi
4928 # 10*(2^10) chars as input seems more than enough
4929 test $ac_count -gt 10 && break
4930 done
4931 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4932esac
4933
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004934 $ac_path_EGREP_found && break 3
4935 done
Wink Savillefbaaef92010-05-27 16:25:37 -07004936 done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004937 done
Wink Savillefbaaef92010-05-27 16:25:37 -07004938IFS=$as_save_IFS
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004939 if test -z "$ac_cv_path_EGREP"; then
4940 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4941 fi
Wink Savillefbaaef92010-05-27 16:25:37 -07004942else
4943 ac_cv_path_EGREP=$EGREP
4944fi
4945
Wink Savillefbaaef92010-05-27 16:25:37 -07004946 fi
4947fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4949$as_echo "$ac_cv_path_EGREP" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07004950 EGREP="$ac_cv_path_EGREP"
4951
4952
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4954$as_echo_n "checking for ANSI C header files... " >&6; }
4955if ${ac_cv_header_stdc+:} false; then :
4956 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07004957else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07004959/* end confdefs.h. */
4960#include <stdlib.h>
4961#include <stdarg.h>
4962#include <string.h>
4963#include <float.h>
4964
4965int
4966main ()
4967{
4968
4969 ;
4970 return 0;
4971}
4972_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004973if ac_fn_cxx_try_compile "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07004974 ac_cv_header_stdc=yes
4975else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004976 ac_cv_header_stdc=no
Wink Savillefbaaef92010-05-27 16:25:37 -07004977fi
Wink Savillefbaaef92010-05-27 16:25:37 -07004978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4979
4980if test $ac_cv_header_stdc = yes; then
4981 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07004983/* end confdefs.h. */
4984#include <string.h>
4985
4986_ACEOF
4987if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004988 $EGREP "memchr" >/dev/null 2>&1; then :
4989
Wink Savillefbaaef92010-05-27 16:25:37 -07004990else
4991 ac_cv_header_stdc=no
4992fi
4993rm -f conftest*
4994
4995fi
4996
4997if test $ac_cv_header_stdc = yes; then
4998 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07004999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07005000/* end confdefs.h. */
5001#include <stdlib.h>
5002
5003_ACEOF
5004if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005005 $EGREP "free" >/dev/null 2>&1; then :
5006
Wink Savillefbaaef92010-05-27 16:25:37 -07005007else
5008 ac_cv_header_stdc=no
5009fi
5010rm -f conftest*
5011
5012fi
5013
5014if test $ac_cv_header_stdc = yes; then
5015 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005016 if test "$cross_compiling" = yes; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07005017 :
5018else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07005020/* end confdefs.h. */
5021#include <ctype.h>
5022#include <stdlib.h>
5023#if ((' ' & 0x0FF) == 0x020)
5024# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5025# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5026#else
5027# define ISLOWER(c) \
5028 (('a' <= (c) && (c) <= 'i') \
5029 || ('j' <= (c) && (c) <= 'r') \
5030 || ('s' <= (c) && (c) <= 'z'))
5031# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5032#endif
5033
5034#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5035int
5036main ()
5037{
5038 int i;
5039 for (i = 0; i < 256; i++)
5040 if (XOR (islower (i), ISLOWER (i))
5041 || toupper (i) != TOUPPER (i))
5042 return 2;
5043 return 0;
5044}
5045_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005046if ac_fn_cxx_try_run "$LINENO"; then :
5047
Wink Savillefbaaef92010-05-27 16:25:37 -07005048else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005049 ac_cv_header_stdc=no
Wink Savillefbaaef92010-05-27 16:25:37 -07005050fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005051rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5052 conftest.$ac_objext conftest.beam conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07005053fi
5054
Wink Savillefbaaef92010-05-27 16:25:37 -07005055fi
5056fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5058$as_echo "$ac_cv_header_stdc" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005059if test $ac_cv_header_stdc = yes; then
5060
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005061$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Wink Savillefbaaef92010-05-27 16:25:37 -07005062
5063fi
5064
5065# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Wink Savillefbaaef92010-05-27 16:25:37 -07005066for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5067 inttypes.h stdint.h unistd.h
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005068do :
5069 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5070ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5071"
5072if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07005073 cat >>confdefs.h <<_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005074#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Wink Savillefbaaef92010-05-27 16:25:37 -07005075_ACEOF
5076
5077fi
5078
5079done
5080
5081
Wink Savillefbaaef92010-05-27 16:25:37 -07005082
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005083 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5084if test "x$ac_cv_header_minix_config_h" = xyes; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07005085 MINIX=yes
5086else
5087 MINIX=
5088fi
5089
5090
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005091 if test "$MINIX" = yes; then
Wink Savillefbaaef92010-05-27 16:25:37 -07005092
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005093$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
Wink Savillefbaaef92010-05-27 16:25:37 -07005094
5095
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005096$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
Wink Savillefbaaef92010-05-27 16:25:37 -07005097
5098
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005099$as_echo "#define _MINIX 1" >>confdefs.h
Wink Savillefbaaef92010-05-27 16:25:37 -07005100
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005101 fi
Wink Savillefbaaef92010-05-27 16:25:37 -07005102
5103
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5105$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5106if ${ac_cv_safe_to_define___extensions__+:} false; then :
5107 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07005108else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07005110/* end confdefs.h. */
5111
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08005112# define __EXTENSIONS__ 1
5113 $ac_includes_default
Wink Savillefbaaef92010-05-27 16:25:37 -07005114int
5115main ()
5116{
5117
5118 ;
5119 return 0;
5120}
5121_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005122if ac_fn_cxx_try_compile "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07005123 ac_cv_safe_to_define___extensions__=yes
5124else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005125 ac_cv_safe_to_define___extensions__=no
Wink Savillefbaaef92010-05-27 16:25:37 -07005126fi
Wink Savillefbaaef92010-05-27 16:25:37 -07005127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5128fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5130$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005131 test $ac_cv_safe_to_define___extensions__ = yes &&
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005132 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
Wink Savillefbaaef92010-05-27 16:25:37 -07005133
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005134 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
Wink Savillefbaaef92010-05-27 16:25:37 -07005135
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005136 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5137
5138 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5139
5140 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5141
5142
5143
Wink Savillefbaaef92010-05-27 16:25:37 -07005144
5145
5146
5147
5148 if test "$GCC" = yes; then
5149 GCC_TRUE=
5150 GCC_FALSE='#'
5151else
5152 GCC_TRUE='#'
5153 GCC_FALSE=
5154fi
5155 # let the Makefile know if we're gcc
5156
5157# test_util.cc takes forever to compile with GCC and optimization turned on.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler flags..." >&5
5159$as_echo_n "checking C++ compiler flags...... " >&6; }
5160if test "x${ac_cv_env_CXXFLAGS_set}" = "x"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07005161
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005162 if test "$GCC" = "yes"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07005163
5164 PROTOBUF_OPT_FLAG="-O2"
5165 CXXFLAGS="${CXXFLAGS} -g"
5166
5167fi
5168
Wink Savillefbaaef92010-05-27 16:25:37 -07005169 # Protocol Buffers contains several checks that are intended to be used only
5170 # for debugging and which might hurt performance. Most users are probably
5171 # end users who don't want these checks, so add -DNDEBUG by default.
5172 CXXFLAGS="$CXXFLAGS -DNDEBUG"
5173
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: use default: $PROTOBUF_OPT_FLAG $CXXFLAGS" >&5
5175$as_echo "use default: $PROTOBUF_OPT_FLAG $CXXFLAGS" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005176
5177else
5178
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: use user-supplied: $CXXFLAGS" >&5
5180$as_echo "use user-supplied: $CXXFLAGS" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005181
5182fi
5183
5184
5185
5186
5187
Wink Savillefbaaef92010-05-27 16:25:37 -07005188 ac_ext=cpp
5189ac_cpp='$CXXCPP $CPPFLAGS'
5190ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5191ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5192ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5193
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005194 ac_fn_cxx_check_decl "$LINENO" "__SUNPRO_CC" "ac_cv_have_decl___SUNPRO_CC" "$ac_includes_default"
5195if test "x$ac_cv_have_decl___SUNPRO_CC" = xyes; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07005196 SUNCC="yes"
5197else
5198 SUNCC="no"
5199fi
5200
5201 ac_ext=cpp
5202ac_cpp='$CXXCPP $CPPFLAGS'
5203ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5204ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5205ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5206
5207
5208
5209 # Check whether --enable-64bit-solaris was given.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005210if test "${enable_64bit_solaris+set}" = set; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07005211 enableval=$enable_64bit_solaris; ac_enable_64bit="$enableval"
5212else
5213 ac_enable_64bit="yes"
5214fi
5215
5216
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005217 if test "$SUNCC" = "yes" -a "x${ac_cv_env_CXXFLAGS_set}" = "x"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07005218
Wink Savilled0332952010-05-29 13:00:38 -07005219 CXXFLAGS="-g0 -xO3 -xlibmil -xdepend -xbuiltin -mt -compat=5 -library=stlport4 -library=Crun -template=no%extdef ${CXXFLAGS}"
Wink Savillefbaaef92010-05-27 16:25:37 -07005220
5221fi
5222
Wink Savillefbaaef92010-05-27 16:25:37 -07005223 case $host_os in
5224 *solaris*)
5225 for ac_prog in isainfo
5226do
5227 # Extract the first word of "$ac_prog", so it can be a program name with args.
5228set dummy $ac_prog; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230$as_echo_n "checking for $ac_word... " >&6; }
5231if ${ac_cv_prog_ISAINFO+:} false; then :
5232 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07005233else
5234 if test -n "$ISAINFO"; then
5235 ac_cv_prog_ISAINFO="$ISAINFO" # Let the user override the test.
5236else
5237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238for as_dir in $PATH
5239do
5240 IFS=$as_save_IFS
5241 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005242 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08005243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07005244 ac_cv_prog_ISAINFO="$ac_prog"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07005246 break 2
5247 fi
5248done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005249 done
Wink Savillefbaaef92010-05-27 16:25:37 -07005250IFS=$as_save_IFS
5251
5252fi
5253fi
5254ISAINFO=$ac_cv_prog_ISAINFO
5255if test -n "$ISAINFO"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISAINFO" >&5
5257$as_echo "$ISAINFO" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005258else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005261fi
5262
5263
5264 test -n "$ISAINFO" && break
5265done
5266test -n "$ISAINFO" || ISAINFO="no"
5267
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005268 if test "x$ISAINFO" != "xno"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07005269 isainfo_b=`${ISAINFO} -b`
5270else
5271 isainfo_b="x"
5272fi
5273
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005274 if test "$isainfo_b" != "x"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07005275
5276
5277 isainfo_k=`${ISAINFO} -k`
5278
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005279 if test "x$ac_enable_64bit" = "xyes"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07005280
5281
Jeff Davidsonafb4b722015-01-20 13:02:58 -08005282
5283$as_echo "#define SOLARIS_64BIT_ENABLED 1" >>confdefs.h
5284
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005285 if test "x$libdir" = "x\${exec_prefix}/lib"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07005286
5287 libdir="${libdir}/${isainfo_k}"
5288
5289fi
5290
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005291 if test "x${ac_cv_env_CXXFLAGS_set}" = "x"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07005292
5293 CXXFLAGS="${CXXFLAGS} -m64"
5294 ac_cv_env_CXXFLAGS_set=set
5295 ac_cv_env_CXXFLAGS_value='-m64'
5296
5297fi
5298
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005299 if test "x${ac_cv_env_CFLAGS_set}" = "x"; then :
Wink Savilled0332952010-05-29 13:00:38 -07005300
5301 CFLAGS="${CFLAGS} -m64"
5302 ac_cv_env_CFLAGS_set=set
5303 ac_cv_env_CFLAGS_value='-m64'
5304
5305fi
5306
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005307 if test "$target_cpu" = "sparc" -a "x$SUNCC" = "xyes" ; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07005308
5309 CXXFLAGS="-xmemalign=8s ${CXXFLAGS}"
5310
5311fi
5312
Wink Savillefbaaef92010-05-27 16:25:37 -07005313fi
5314
Wink Savillefbaaef92010-05-27 16:25:37 -07005315fi
Wink Savillefbaaef92010-05-27 16:25:37 -07005316 ;;
5317 esac
5318
5319
5320
5321# Have to do libtool after SUNCC, other wise it "helpfully" adds Crun Cstd
5322# to the link
5323case `pwd` in
5324 *\ * | *\ *)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5326$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07005327esac
5328
5329
5330
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07005331macro_version='2.4.2'
5332macro_revision='1.3337'
Wink Savillefbaaef92010-05-27 16:25:37 -07005333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346ltmain="$ac_aux_dir/ltmain.sh"
5347
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07005348# Backslashify metacharacters that are still active within
5349# double-quoted strings.
5350sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5351
5352# Same as above, but do not quote variable references.
5353double_quote_subst='s/\(["`\\]\)/\\\1/g'
5354
5355# Sed substitution to delay expansion of an escaped shell variable in a
5356# double_quote_subst'ed string.
5357delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5358
5359# Sed substitution to delay expansion of an escaped single quote.
5360delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5361
5362# Sed substitution to avoid accidental globbing in evaled expressions
5363no_glob_subst='s/\*/\\\*/g'
5364
5365ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5366ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5367ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5368
5369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5370$as_echo_n "checking how to print strings... " >&6; }
5371# Test print first, because it will be a builtin if present.
5372if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5373 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5374 ECHO='print -r --'
5375elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5376 ECHO='printf %s\n'
5377else
5378 # Use this function as a fallback that always works.
5379 func_fallback_echo ()
5380 {
5381 eval 'cat <<_LTECHO_EOF
5382$1
5383_LTECHO_EOF'
5384 }
5385 ECHO='func_fallback_echo'
5386fi
5387
5388# func_echo_all arg...
5389# Invoke $ECHO with all args, space-separated.
5390func_echo_all ()
5391{
5392 $ECHO ""
5393}
5394
5395case "$ECHO" in
5396 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5397$as_echo "printf" >&6; } ;;
5398 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5399$as_echo "print -r" >&6; } ;;
5400 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5401$as_echo "cat" >&6; } ;;
5402esac
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5418$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5419if ${ac_cv_path_SED+:} false; then :
5420 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07005421else
5422 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5423 for ac_i in 1 2 3 4 5 6 7; do
5424 ac_script="$ac_script$as_nl$ac_script"
5425 done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005426 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5427 { ac_script=; unset ac_script;}
5428 if test -z "$SED"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07005429 ac_path_SED_found=false
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005430 # Loop through the user's path and test for each of PROGNAME-LIST
5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Wink Savillefbaaef92010-05-27 16:25:37 -07005432for as_dir in $PATH
5433do
5434 IFS=$as_save_IFS
5435 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005436 for ac_prog in sed gsed; do
5437 for ac_exec_ext in '' $ac_executable_extensions; do
5438 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08005439 as_fn_executable_p "$ac_path_SED" || continue
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005440# Check for GNU ac_path_SED and select it if it is found.
Wink Savillefbaaef92010-05-27 16:25:37 -07005441 # Check for GNU $ac_path_SED
5442case `"$ac_path_SED" --version 2>&1` in
5443*GNU*)
5444 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5445*)
5446 ac_count=0
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005447 $as_echo_n 0123456789 >"conftest.in"
Wink Savillefbaaef92010-05-27 16:25:37 -07005448 while :
5449 do
5450 cat "conftest.in" "conftest.in" >"conftest.tmp"
5451 mv "conftest.tmp" "conftest.in"
5452 cp "conftest.in" "conftest.nl"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005453 $as_echo '' >> "conftest.nl"
Wink Savillefbaaef92010-05-27 16:25:37 -07005454 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5455 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005456 as_fn_arith $ac_count + 1 && ac_count=$as_val
Wink Savillefbaaef92010-05-27 16:25:37 -07005457 if test $ac_count -gt ${ac_path_SED_max-0}; then
5458 # Best one so far, save it but keep looking for a better one
5459 ac_cv_path_SED="$ac_path_SED"
5460 ac_path_SED_max=$ac_count
5461 fi
5462 # 10*(2^10) chars as input seems more than enough
5463 test $ac_count -gt 10 && break
5464 done
5465 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5466esac
5467
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005468 $ac_path_SED_found && break 3
5469 done
Wink Savillefbaaef92010-05-27 16:25:37 -07005470 done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005471 done
Wink Savillefbaaef92010-05-27 16:25:37 -07005472IFS=$as_save_IFS
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005473 if test -z "$ac_cv_path_SED"; then
5474 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5475 fi
Wink Savillefbaaef92010-05-27 16:25:37 -07005476else
5477 ac_cv_path_SED=$SED
5478fi
5479
5480fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5482$as_echo "$ac_cv_path_SED" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005483 SED="$ac_cv_path_SED"
5484 rm -f conftest.sed
5485
5486test -z "$SED" && SED=sed
5487Xsed="$SED -e 1s/^X//"
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5500$as_echo_n "checking for fgrep... " >&6; }
5501if ${ac_cv_path_FGREP+:} false; then :
5502 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07005503else
5504 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5505 then ac_cv_path_FGREP="$GREP -F"
5506 else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005507 if test -z "$FGREP"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07005508 ac_path_FGREP_found=false
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005509 # Loop through the user's path and test for each of PROGNAME-LIST
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Wink Savillefbaaef92010-05-27 16:25:37 -07005511for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5512do
5513 IFS=$as_save_IFS
5514 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005515 for ac_prog in fgrep; do
5516 for ac_exec_ext in '' $ac_executable_extensions; do
5517 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08005518 as_fn_executable_p "$ac_path_FGREP" || continue
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005519# Check for GNU ac_path_FGREP and select it if it is found.
Wink Savillefbaaef92010-05-27 16:25:37 -07005520 # Check for GNU $ac_path_FGREP
5521case `"$ac_path_FGREP" --version 2>&1` in
5522*GNU*)
5523 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5524*)
5525 ac_count=0
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005526 $as_echo_n 0123456789 >"conftest.in"
Wink Savillefbaaef92010-05-27 16:25:37 -07005527 while :
5528 do
5529 cat "conftest.in" "conftest.in" >"conftest.tmp"
5530 mv "conftest.tmp" "conftest.in"
5531 cp "conftest.in" "conftest.nl"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005532 $as_echo 'FGREP' >> "conftest.nl"
Wink Savillefbaaef92010-05-27 16:25:37 -07005533 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5534 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005535 as_fn_arith $ac_count + 1 && ac_count=$as_val
Wink Savillefbaaef92010-05-27 16:25:37 -07005536 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5537 # Best one so far, save it but keep looking for a better one
5538 ac_cv_path_FGREP="$ac_path_FGREP"
5539 ac_path_FGREP_max=$ac_count
5540 fi
5541 # 10*(2^10) chars as input seems more than enough
5542 test $ac_count -gt 10 && break
5543 done
5544 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5545esac
5546
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005547 $ac_path_FGREP_found && break 3
5548 done
Wink Savillefbaaef92010-05-27 16:25:37 -07005549 done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005550 done
Wink Savillefbaaef92010-05-27 16:25:37 -07005551IFS=$as_save_IFS
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005552 if test -z "$ac_cv_path_FGREP"; then
5553 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5554 fi
Wink Savillefbaaef92010-05-27 16:25:37 -07005555else
5556 ac_cv_path_FGREP=$FGREP
5557fi
5558
Wink Savillefbaaef92010-05-27 16:25:37 -07005559 fi
5560fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5562$as_echo "$ac_cv_path_FGREP" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005563 FGREP="$ac_cv_path_FGREP"
5564
5565
5566test -z "$GREP" && GREP=grep
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586# Check whether --with-gnu-ld was given.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005587if test "${with_gnu_ld+set}" = set; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07005588 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5589else
5590 with_gnu_ld=no
5591fi
5592
5593ac_prog=ld
5594if test "$GCC" = yes; then
5595 # Check if gcc -print-prog-name=ld gives a path.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5597$as_echo_n "checking for ld used by $CC... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005598 case $host in
5599 *-*-mingw*)
5600 # gcc leaves a trailing carriage return which upsets mingw
5601 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5602 *)
5603 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5604 esac
5605 case $ac_prog in
5606 # Accept absolute paths.
5607 [\\/]* | ?:[\\/]*)
5608 re_direlt='/[^/][^/]*/\.\./'
5609 # Canonicalize the pathname of ld
5610 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5611 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5612 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5613 done
5614 test -z "$LD" && LD="$ac_prog"
5615 ;;
5616 "")
5617 # If it fails, then pretend we aren't using GCC.
5618 ac_prog=ld
5619 ;;
5620 *)
5621 # If it is relative, then search for the first ld in PATH.
5622 with_gnu_ld=unknown
5623 ;;
5624 esac
5625elif test "$with_gnu_ld" = yes; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5627$as_echo_n "checking for GNU ld... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005628else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5630$as_echo_n "checking for non-GNU ld... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005631fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005632if ${lt_cv_path_LD+:} false; then :
5633 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07005634else
5635 if test -z "$LD"; then
5636 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5637 for ac_dir in $PATH; do
5638 IFS="$lt_save_ifs"
5639 test -z "$ac_dir" && ac_dir=.
5640 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5641 lt_cv_path_LD="$ac_dir/$ac_prog"
5642 # Check to see if the program is GNU ld. I'd rather use --version,
5643 # but apparently some variants of GNU ld only accept -v.
5644 # Break only if it was the GNU/non-GNU ld that we prefer.
5645 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5646 *GNU* | *'with BFD'*)
5647 test "$with_gnu_ld" != no && break
5648 ;;
5649 *)
5650 test "$with_gnu_ld" != yes && break
5651 ;;
5652 esac
5653 fi
5654 done
5655 IFS="$lt_save_ifs"
5656else
5657 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5658fi
5659fi
5660
5661LD="$lt_cv_path_LD"
5662if test -n "$LD"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5664$as_echo "$LD" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005665else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005668fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005669test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5671$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5672if ${lt_cv_prog_gnu_ld+:} false; then :
5673 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07005674else
5675 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5676case `$LD -v 2>&1 </dev/null` in
5677*GNU* | *'with BFD'*)
5678 lt_cv_prog_gnu_ld=yes
5679 ;;
5680*)
5681 lt_cv_prog_gnu_ld=no
5682 ;;
5683esac
5684fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5686$as_echo "$lt_cv_prog_gnu_ld" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005687with_gnu_ld=$lt_cv_prog_gnu_ld
5688
5689
5690
5691
5692
5693
5694
5695
5696
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5698$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5699if ${lt_cv_path_NM+:} false; then :
5700 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07005701else
5702 if test -n "$NM"; then
5703 # Let the user override the test.
5704 lt_cv_path_NM="$NM"
5705else
5706 lt_nm_to_check="${ac_tool_prefix}nm"
5707 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5708 lt_nm_to_check="$lt_nm_to_check nm"
5709 fi
5710 for lt_tmp_nm in $lt_nm_to_check; do
5711 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5712 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5713 IFS="$lt_save_ifs"
5714 test -z "$ac_dir" && ac_dir=.
5715 tmp_nm="$ac_dir/$lt_tmp_nm"
5716 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5717 # Check to see if the nm accepts a BSD-compat flag.
5718 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5719 # nm: unknown option "B" ignored
5720 # Tru64's nm complains that /dev/null is an invalid object file
5721 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5722 */dev/null* | *'Invalid file or object type'*)
5723 lt_cv_path_NM="$tmp_nm -B"
5724 break
5725 ;;
5726 *)
5727 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5728 */dev/null*)
5729 lt_cv_path_NM="$tmp_nm -p"
5730 break
5731 ;;
5732 *)
5733 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5734 continue # so that we can try to find one that supports BSD flags
5735 ;;
5736 esac
5737 ;;
5738 esac
5739 fi
5740 done
5741 IFS="$lt_save_ifs"
5742 done
5743 : ${lt_cv_path_NM=no}
5744fi
5745fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5747$as_echo "$lt_cv_path_NM" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005748if test "$lt_cv_path_NM" != "no"; then
5749 NM="$lt_cv_path_NM"
5750else
5751 # Didn't find any BSD compatible name lister, look for dumpbin.
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07005752 if test -n "$DUMPBIN"; then :
5753 # Let the user override the test.
5754 else
5755 if test -n "$ac_tool_prefix"; then
5756 for ac_prog in dumpbin "link -dump"
Wink Savillefbaaef92010-05-27 16:25:37 -07005757 do
5758 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5759set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5761$as_echo_n "checking for $ac_word... " >&6; }
5762if ${ac_cv_prog_DUMPBIN+:} false; then :
5763 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07005764else
5765 if test -n "$DUMPBIN"; then
5766 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5767else
5768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769for as_dir in $PATH
5770do
5771 IFS=$as_save_IFS
5772 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005773 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08005774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07005775 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07005777 break 2
5778 fi
5779done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005780 done
Wink Savillefbaaef92010-05-27 16:25:37 -07005781IFS=$as_save_IFS
5782
5783fi
5784fi
5785DUMPBIN=$ac_cv_prog_DUMPBIN
5786if test -n "$DUMPBIN"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5788$as_echo "$DUMPBIN" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005789else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5791$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005792fi
5793
5794
5795 test -n "$DUMPBIN" && break
5796 done
5797fi
5798if test -z "$DUMPBIN"; then
5799 ac_ct_DUMPBIN=$DUMPBIN
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07005800 for ac_prog in dumpbin "link -dump"
Wink Savillefbaaef92010-05-27 16:25:37 -07005801do
5802 # Extract the first word of "$ac_prog", so it can be a program name with args.
5803set dummy $ac_prog; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5805$as_echo_n "checking for $ac_word... " >&6; }
5806if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5807 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07005808else
5809 if test -n "$ac_ct_DUMPBIN"; then
5810 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5811else
5812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813for as_dir in $PATH
5814do
5815 IFS=$as_save_IFS
5816 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005817 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08005818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07005819 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07005821 break 2
5822 fi
5823done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005824 done
Wink Savillefbaaef92010-05-27 16:25:37 -07005825IFS=$as_save_IFS
5826
5827fi
5828fi
5829ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5830if test -n "$ac_ct_DUMPBIN"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5832$as_echo "$ac_ct_DUMPBIN" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005833else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5835$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005836fi
5837
5838
5839 test -n "$ac_ct_DUMPBIN" && break
5840done
5841
5842 if test "x$ac_ct_DUMPBIN" = x; then
5843 DUMPBIN=":"
5844 else
5845 case $cross_compiling:$ac_tool_warned in
5846yes:)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07005849ac_tool_warned=yes ;;
5850esac
5851 DUMPBIN=$ac_ct_DUMPBIN
5852 fi
5853fi
5854
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07005855 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5856 *COFF*)
5857 DUMPBIN="$DUMPBIN -symbols"
5858 ;;
5859 *)
5860 DUMPBIN=:
5861 ;;
5862 esac
5863 fi
Wink Savillefbaaef92010-05-27 16:25:37 -07005864
5865 if test "$DUMPBIN" != ":"; then
5866 NM="$DUMPBIN"
5867 fi
5868fi
5869test -z "$NM" && NM=nm
5870
5871
5872
5873
5874
5875
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5877$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5878if ${lt_cv_nm_interface+:} false; then :
5879 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07005880else
5881 lt_cv_nm_interface="BSD nm"
5882 echo "int some_variable = 0;" > conftest.$ac_ext
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07005883 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
Wink Savillefbaaef92010-05-27 16:25:37 -07005884 (eval "$ac_compile" 2>conftest.err)
5885 cat conftest.err >&5
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07005886 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Wink Savillefbaaef92010-05-27 16:25:37 -07005887 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5888 cat conftest.err >&5
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07005889 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
Wink Savillefbaaef92010-05-27 16:25:37 -07005890 cat conftest.out >&5
5891 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5892 lt_cv_nm_interface="MS dumpbin"
5893 fi
5894 rm -f conftest*
5895fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5897$as_echo "$lt_cv_nm_interface" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005898
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5900$as_echo_n "checking whether ln -s works... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005901LN_S=$as_ln_s
5902if test "$LN_S" = "ln -s"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5904$as_echo "yes" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005905else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5907$as_echo "no, using $LN_S" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07005908fi
5909
5910# find the maximum length of command line arguments
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07005911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5912$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5913if ${lt_cv_sys_max_cmd_len+:} false; then :
5914 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07005915else
5916 i=0
5917 teststring="ABCD"
5918
5919 case $build_os in
5920 msdosdjgpp*)
5921 # On DJGPP, this test can blow up pretty badly due to problems in libc
5922 # (any single argument exceeding 2000 bytes causes a buffer overrun
5923 # during glob expansion). Even if it were fixed, the result of this
5924 # check would be larger than it should be.
5925 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5926 ;;
5927
5928 gnu*)
5929 # Under GNU Hurd, this test is not required because there is
5930 # no limit to the length of command line arguments.
5931 # Libtool will interpret -1 as no limit whatsoever
5932 lt_cv_sys_max_cmd_len=-1;
5933 ;;
5934
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07005935 cygwin* | mingw* | cegcc*)
Wink Savillefbaaef92010-05-27 16:25:37 -07005936 # On Win9x/ME, this test blows up -- it succeeds, but takes
5937 # about 5 minutes as the teststring grows exponentially.
5938 # Worse, since 9x/ME are not pre-emptively multitasking,
5939 # you end up with a "frozen" computer, even though with patience
5940 # the test eventually succeeds (with a max line length of 256k).
5941 # Instead, let's just punt: use the minimum linelength reported by
5942 # all of the supported platforms: 8192 (on NT/2K/XP).
5943 lt_cv_sys_max_cmd_len=8192;
5944 ;;
5945
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07005946 mint*)
5947 # On MiNT this can take a long time and run out of memory.
5948 lt_cv_sys_max_cmd_len=8192;
5949 ;;
5950
Wink Savillefbaaef92010-05-27 16:25:37 -07005951 amigaos*)
5952 # On AmigaOS with pdksh, this test takes hours, literally.
5953 # So we just punt and use a minimum line length of 8192.
5954 lt_cv_sys_max_cmd_len=8192;
5955 ;;
5956
5957 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5958 # This has been around since 386BSD, at least. Likely further.
5959 if test -x /sbin/sysctl; then
5960 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5961 elif test -x /usr/sbin/sysctl; then
5962 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5963 else
5964 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5965 fi
5966 # And add a safety zone
5967 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5968 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5969 ;;
5970
5971 interix*)
5972 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5973 lt_cv_sys_max_cmd_len=196608
5974 ;;
5975
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07005976 os2*)
5977 # The test takes a long time on OS/2.
5978 lt_cv_sys_max_cmd_len=8192
5979 ;;
5980
Wink Savillefbaaef92010-05-27 16:25:37 -07005981 osf*)
5982 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5983 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5984 # nice to cause kernel panics so lets avoid the loop below.
5985 # First set a reasonable default.
5986 lt_cv_sys_max_cmd_len=16384
5987 #
5988 if test -x /sbin/sysconfig; then
5989 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5990 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5991 esac
5992 fi
5993 ;;
5994 sco3.2v5*)
5995 lt_cv_sys_max_cmd_len=102400
5996 ;;
5997 sysv5* | sco5v6* | sysv4.2uw2*)
5998 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5999 if test -n "$kargmax"; then
6000 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6001 else
6002 lt_cv_sys_max_cmd_len=32768
6003 fi
6004 ;;
6005 *)
6006 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08006007 if test -n "$lt_cv_sys_max_cmd_len" && \
6008 test undefined != "$lt_cv_sys_max_cmd_len"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07006009 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6010 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6011 else
6012 # Make teststring a little bigger before we do anything with it.
6013 # a 1K string should be a reasonable start.
6014 for i in 1 2 3 4 5 6 7 8 ; do
6015 teststring=$teststring$teststring
6016 done
6017 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6018 # If test is not a shell built-in, we'll probably end up computing a
6019 # maximum length that is only half of the actual maximum length, but
6020 # we can't tell.
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07006021 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6022 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Wink Savillefbaaef92010-05-27 16:25:37 -07006023 test $i != 17 # 1/2 MB should be enough
6024 do
6025 i=`expr $i + 1`
6026 teststring=$teststring$teststring
6027 done
6028 # Only check the string length outside the loop.
6029 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6030 teststring=
6031 # Add a significant safety factor because C++ compilers can tack on
6032 # massive amounts of additional arguments before passing them to the
6033 # linker. It appears as though 1/2 is a usable value.
6034 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6035 fi
6036 ;;
6037 esac
6038
6039fi
6040
6041if test -n $lt_cv_sys_max_cmd_len ; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6043$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07006044else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6046$as_echo "none" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07006047fi
6048max_cmd_len=$lt_cv_sys_max_cmd_len
6049
6050
6051
6052
6053
6054
6055: ${CP="cp -f"}
6056: ${MV="mv -f"}
6057: ${RM="rm -f"}
6058
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6060$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07006061# Try some XSI features
6062xsi_shell=no
6063( _lt_dummy="a/b/c"
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07006064 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6065 = c,a/b,b/c, \
Wink Savillefbaaef92010-05-27 16:25:37 -07006066 && eval 'test $(( 1 + 1 )) -eq 2 \
6067 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6068 && xsi_shell=yes
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6070$as_echo "$xsi_shell" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07006071
6072
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6074$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07006075lt_shell_append=no
6076( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6077 >/dev/null 2>&1 \
6078 && lt_shell_append=yes
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6080$as_echo "$lt_shell_append" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07006081
6082
6083if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6084 lt_unset=unset
6085else
6086 lt_unset=false
6087fi
6088
6089
6090
6091
6092
6093# test EBCDIC or ASCII
6094case `echo X|tr X '\101'` in
6095 A) # ASCII based system
6096 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6097 lt_SP2NL='tr \040 \012'
6098 lt_NL2SP='tr \015\012 \040\040'
6099 ;;
6100 *) # EBCDIC based system
6101 lt_SP2NL='tr \100 \n'
6102 lt_NL2SP='tr \r\n \100\100'
6103 ;;
6104esac
6105
6106
6107
6108
6109
6110
6111
6112
6113
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07006114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6115$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6116if ${lt_cv_to_host_file_cmd+:} false; then :
6117 $as_echo_n "(cached) " >&6
6118else
6119 case $host in
6120 *-*-mingw* )
6121 case $build in
6122 *-*-mingw* ) # actually msys
6123 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6124 ;;
6125 *-*-cygwin* )
6126 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6127 ;;
6128 * ) # otherwise, assume *nix
6129 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6130 ;;
6131 esac
6132 ;;
6133 *-*-cygwin* )
6134 case $build in
6135 *-*-mingw* ) # actually msys
6136 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6137 ;;
6138 *-*-cygwin* )
6139 lt_cv_to_host_file_cmd=func_convert_file_noop
6140 ;;
6141 * ) # otherwise, assume *nix
6142 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6143 ;;
6144 esac
6145 ;;
6146 * ) # unhandled hosts (and "normal" native builds)
6147 lt_cv_to_host_file_cmd=func_convert_file_noop
6148 ;;
6149esac
6150
6151fi
6152
6153to_host_file_cmd=$lt_cv_to_host_file_cmd
6154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6155$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6156
6157
6158
6159
6160
6161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6162$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6163if ${lt_cv_to_tool_file_cmd+:} false; then :
6164 $as_echo_n "(cached) " >&6
6165else
6166 #assume ordinary cross tools, or native build.
6167lt_cv_to_tool_file_cmd=func_convert_file_noop
6168case $host in
6169 *-*-mingw* )
6170 case $build in
6171 *-*-mingw* ) # actually msys
6172 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6173 ;;
6174 esac
6175 ;;
6176esac
6177
6178fi
6179
6180to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6182$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6183
6184
6185
6186
6187
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6189$as_echo_n "checking for $LD option to reload object files... " >&6; }
6190if ${lt_cv_ld_reload_flag+:} false; then :
6191 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07006192else
6193 lt_cv_ld_reload_flag='-r'
6194fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6196$as_echo "$lt_cv_ld_reload_flag" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07006197reload_flag=$lt_cv_ld_reload_flag
6198case $reload_flag in
6199"" | " "*) ;;
6200*) reload_flag=" $reload_flag" ;;
6201esac
6202reload_cmds='$LD$reload_flag -o $output$reload_objs'
6203case $host_os in
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07006204 cygwin* | mingw* | pw32* | cegcc*)
6205 if test "$GCC" != yes; then
6206 reload_cmds=false
6207 fi
6208 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07006209 darwin*)
6210 if test "$GCC" = yes; then
6211 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6212 else
6213 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6214 fi
6215 ;;
6216esac
6217
6218
6219
6220
6221
6222
6223
6224
6225
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07006226if test -n "$ac_tool_prefix"; then
6227 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6228set dummy ${ac_tool_prefix}objdump; ac_word=$2
6229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230$as_echo_n "checking for $ac_word... " >&6; }
6231if ${ac_cv_prog_OBJDUMP+:} false; then :
6232 $as_echo_n "(cached) " >&6
6233else
6234 if test -n "$OBJDUMP"; then
6235 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6236else
6237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238for as_dir in $PATH
6239do
6240 IFS=$as_save_IFS
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08006243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07006244 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6246 break 2
6247 fi
6248done
6249 done
6250IFS=$as_save_IFS
6251
6252fi
6253fi
6254OBJDUMP=$ac_cv_prog_OBJDUMP
6255if test -n "$OBJDUMP"; then
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6257$as_echo "$OBJDUMP" >&6; }
6258else
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260$as_echo "no" >&6; }
6261fi
6262
6263
6264fi
6265if test -z "$ac_cv_prog_OBJDUMP"; then
6266 ac_ct_OBJDUMP=$OBJDUMP
6267 # Extract the first word of "objdump", so it can be a program name with args.
6268set dummy objdump; ac_word=$2
6269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6270$as_echo_n "checking for $ac_word... " >&6; }
6271if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6272 $as_echo_n "(cached) " >&6
6273else
6274 if test -n "$ac_ct_OBJDUMP"; then
6275 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6276else
6277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278for as_dir in $PATH
6279do
6280 IFS=$as_save_IFS
6281 test -z "$as_dir" && as_dir=.
6282 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08006283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07006284 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6286 break 2
6287 fi
6288done
6289 done
6290IFS=$as_save_IFS
6291
6292fi
6293fi
6294ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6295if test -n "$ac_ct_OBJDUMP"; then
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6297$as_echo "$ac_ct_OBJDUMP" >&6; }
6298else
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300$as_echo "no" >&6; }
6301fi
6302
6303 if test "x$ac_ct_OBJDUMP" = x; then
6304 OBJDUMP="false"
6305 else
6306 case $cross_compiling:$ac_tool_warned in
6307yes:)
6308{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6310ac_tool_warned=yes ;;
6311esac
6312 OBJDUMP=$ac_ct_OBJDUMP
6313 fi
6314else
6315 OBJDUMP="$ac_cv_prog_OBJDUMP"
6316fi
6317
6318test -z "$OBJDUMP" && OBJDUMP=objdump
6319
6320
6321
6322
6323
6324
6325
6326
Wink Savillefbaaef92010-05-27 16:25:37 -07006327
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6329$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6330if ${lt_cv_deplibs_check_method+:} false; then :
6331 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07006332else
6333 lt_cv_file_magic_cmd='$MAGIC_CMD'
6334lt_cv_file_magic_test_file=
6335lt_cv_deplibs_check_method='unknown'
6336# Need to set the preceding variable on all platforms that support
6337# interlibrary dependencies.
6338# 'none' -- dependencies not supported.
6339# `unknown' -- same as none, but documents that we really don't know.
6340# 'pass_all' -- all dependencies passed with no checks.
6341# 'test_compile' -- check by making test program.
6342# 'file_magic [[regex]]' -- check by looking for files in library path
6343# which responds to the $file_magic_cmd with a given extended regex.
6344# If you have `file' or equivalent on your system and you're not sure
6345# whether `pass_all' will *always* work, you probably want this one.
6346
6347case $host_os in
6348aix[4-9]*)
6349 lt_cv_deplibs_check_method=pass_all
6350 ;;
6351
6352beos*)
6353 lt_cv_deplibs_check_method=pass_all
6354 ;;
6355
6356bsdi[45]*)
6357 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6358 lt_cv_file_magic_cmd='/usr/bin/file -L'
6359 lt_cv_file_magic_test_file=/shlib/libc.so
6360 ;;
6361
6362cygwin*)
6363 # func_win32_libid is a shell function defined in ltmain.sh
6364 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6365 lt_cv_file_magic_cmd='func_win32_libid'
6366 ;;
6367
6368mingw* | pw32*)
6369 # Base MSYS/MinGW do not provide the 'file' command needed by
6370 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6371 # unless we find 'file', for example because we are cross-compiling.
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07006372 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6373 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
Wink Savillefbaaef92010-05-27 16:25:37 -07006374 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6375 lt_cv_file_magic_cmd='func_win32_libid'
6376 else
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07006377 # Keep this pattern in sync with the one in func_win32_libid.
6378 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
Wink Savillefbaaef92010-05-27 16:25:37 -07006379 lt_cv_file_magic_cmd='$OBJDUMP -f'
6380 fi
6381 ;;
6382
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07006383cegcc*)
6384 # use the weaker test based on 'objdump'. See mingw*.
6385 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6386 lt_cv_file_magic_cmd='$OBJDUMP -f'
6387 ;;
6388
Wink Savillefbaaef92010-05-27 16:25:37 -07006389darwin* | rhapsody*)
6390 lt_cv_deplibs_check_method=pass_all
6391 ;;
6392
6393freebsd* | dragonfly*)
6394 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6395 case $host_cpu in
6396 i*86 )
6397 # Not sure whether the presence of OpenBSD here was a mistake.
6398 # Let's accept both of them until this is cleared up.
6399 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6400 lt_cv_file_magic_cmd=/usr/bin/file
6401 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6402 ;;
6403 esac
6404 else
6405 lt_cv_deplibs_check_method=pass_all
6406 fi
6407 ;;
6408
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07006409haiku*)
6410 lt_cv_deplibs_check_method=pass_all
6411 ;;
6412
Wink Savillefbaaef92010-05-27 16:25:37 -07006413hpux10.20* | hpux11*)
6414 lt_cv_file_magic_cmd=/usr/bin/file
6415 case $host_cpu in
6416 ia64*)
6417 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6418 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6419 ;;
6420 hppa*64*)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07006421 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]'
Wink Savillefbaaef92010-05-27 16:25:37 -07006422 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6423 ;;
6424 *)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07006425 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
Wink Savillefbaaef92010-05-27 16:25:37 -07006426 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6427 ;;
6428 esac
6429 ;;
6430
6431interix[3-9]*)
6432 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6433 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6434 ;;
6435
6436irix5* | irix6* | nonstopux*)
6437 case $LD in
6438 *-32|*"-32 ") libmagic=32-bit;;
6439 *-n32|*"-n32 ") libmagic=N32;;
6440 *-64|*"-64 ") libmagic=64-bit;;
6441 *) libmagic=never-match;;
6442 esac
6443 lt_cv_deplibs_check_method=pass_all
6444 ;;
6445
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07006446# This must be glibc/ELF.
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08006447linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Wink Savillefbaaef92010-05-27 16:25:37 -07006448 lt_cv_deplibs_check_method=pass_all
6449 ;;
6450
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07006451netbsd* | netbsdelf*-gnu)
Wink Savillefbaaef92010-05-27 16:25:37 -07006452 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6453 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6454 else
6455 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6456 fi
6457 ;;
6458
6459newos6*)
6460 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6461 lt_cv_file_magic_cmd=/usr/bin/file
6462 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6463 ;;
6464
6465*nto* | *qnx*)
6466 lt_cv_deplibs_check_method=pass_all
6467 ;;
6468
6469openbsd*)
6470 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6471 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6472 else
6473 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6474 fi
6475 ;;
6476
6477osf3* | osf4* | osf5*)
6478 lt_cv_deplibs_check_method=pass_all
6479 ;;
6480
6481rdos*)
6482 lt_cv_deplibs_check_method=pass_all
6483 ;;
6484
6485solaris*)
6486 lt_cv_deplibs_check_method=pass_all
6487 ;;
6488
6489sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6490 lt_cv_deplibs_check_method=pass_all
6491 ;;
6492
6493sysv4 | sysv4.3*)
6494 case $host_vendor in
6495 motorola)
6496 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]'
6497 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6498 ;;
6499 ncr)
6500 lt_cv_deplibs_check_method=pass_all
6501 ;;
6502 sequent)
6503 lt_cv_file_magic_cmd='/bin/file'
6504 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6505 ;;
6506 sni)
6507 lt_cv_file_magic_cmd='/bin/file'
6508 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6509 lt_cv_file_magic_test_file=/lib/libc.so
6510 ;;
6511 siemens)
6512 lt_cv_deplibs_check_method=pass_all
6513 ;;
6514 pc)
6515 lt_cv_deplibs_check_method=pass_all
6516 ;;
6517 esac
6518 ;;
6519
6520tpf*)
6521 lt_cv_deplibs_check_method=pass_all
6522 ;;
6523esac
6524
6525fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6527$as_echo "$lt_cv_deplibs_check_method" >&6; }
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07006528
6529file_magic_glob=
6530want_nocaseglob=no
6531if test "$build" = "$host"; then
6532 case $host_os in
6533 mingw* | pw32*)
6534 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6535 want_nocaseglob=yes
6536 else
6537 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6538 fi
6539 ;;
6540 esac
6541fi
6542
Wink Savillefbaaef92010-05-27 16:25:37 -07006543file_magic_cmd=$lt_cv_file_magic_cmd
6544deplibs_check_method=$lt_cv_deplibs_check_method
6545test -z "$deplibs_check_method" && deplibs_check_method=unknown
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07006558
6559
6560
6561
6562
6563
6564
6565
6566
6567
Wink Savillefbaaef92010-05-27 16:25:37 -07006568if test -n "$ac_tool_prefix"; then
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07006569 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6570set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6572$as_echo_n "checking for $ac_word... " >&6; }
6573if ${ac_cv_prog_DLLTOOL+:} false; then :
6574 $as_echo_n "(cached) " >&6
6575else
6576 if test -n "$DLLTOOL"; then
6577 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6578else
6579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580for as_dir in $PATH
6581do
6582 IFS=$as_save_IFS
6583 test -z "$as_dir" && as_dir=.
6584 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08006585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07006586 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6588 break 2
6589 fi
6590done
6591 done
6592IFS=$as_save_IFS
6593
6594fi
6595fi
6596DLLTOOL=$ac_cv_prog_DLLTOOL
6597if test -n "$DLLTOOL"; then
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6599$as_echo "$DLLTOOL" >&6; }
6600else
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602$as_echo "no" >&6; }
6603fi
6604
6605
6606fi
6607if test -z "$ac_cv_prog_DLLTOOL"; then
6608 ac_ct_DLLTOOL=$DLLTOOL
6609 # Extract the first word of "dlltool", so it can be a program name with args.
6610set dummy dlltool; ac_word=$2
6611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612$as_echo_n "checking for $ac_word... " >&6; }
6613if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6614 $as_echo_n "(cached) " >&6
6615else
6616 if test -n "$ac_ct_DLLTOOL"; then
6617 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6618else
6619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620for as_dir in $PATH
6621do
6622 IFS=$as_save_IFS
6623 test -z "$as_dir" && as_dir=.
6624 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08006625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07006626 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628 break 2
6629 fi
6630done
6631 done
6632IFS=$as_save_IFS
6633
6634fi
6635fi
6636ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6637if test -n "$ac_ct_DLLTOOL"; then
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6639$as_echo "$ac_ct_DLLTOOL" >&6; }
6640else
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642$as_echo "no" >&6; }
6643fi
6644
6645 if test "x$ac_ct_DLLTOOL" = x; then
6646 DLLTOOL="false"
6647 else
6648 case $cross_compiling:$ac_tool_warned in
6649yes:)
6650{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6651$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6652ac_tool_warned=yes ;;
6653esac
6654 DLLTOOL=$ac_ct_DLLTOOL
6655 fi
6656else
6657 DLLTOOL="$ac_cv_prog_DLLTOOL"
6658fi
6659
6660test -z "$DLLTOOL" && DLLTOOL=dlltool
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6672$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6673if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6674 $as_echo_n "(cached) " >&6
6675else
6676 lt_cv_sharedlib_from_linklib_cmd='unknown'
6677
6678case $host_os in
6679cygwin* | mingw* | pw32* | cegcc*)
6680 # two different shell functions defined in ltmain.sh
6681 # decide which to use based on capabilities of $DLLTOOL
6682 case `$DLLTOOL --help 2>&1` in
6683 *--identify-strict*)
6684 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6685 ;;
6686 *)
6687 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6688 ;;
6689 esac
6690 ;;
6691*)
6692 # fallback: assume linklib IS sharedlib
6693 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6694 ;;
6695esac
6696
6697fi
6698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6699$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6700sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6701test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6702
6703
6704
6705
6706
6707
6708
6709if test -n "$ac_tool_prefix"; then
6710 for ac_prog in ar
6711 do
6712 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6713set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715$as_echo_n "checking for $ac_word... " >&6; }
6716if ${ac_cv_prog_AR+:} false; then :
6717 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07006718else
6719 if test -n "$AR"; then
6720 ac_cv_prog_AR="$AR" # Let the user override the test.
6721else
6722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723for as_dir in $PATH
6724do
6725 IFS=$as_save_IFS
6726 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006727 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08006728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07006729 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07006731 break 2
6732 fi
6733done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006734 done
Wink Savillefbaaef92010-05-27 16:25:37 -07006735IFS=$as_save_IFS
6736
6737fi
6738fi
6739AR=$ac_cv_prog_AR
6740if test -n "$AR"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6742$as_echo "$AR" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07006743else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07006746fi
6747
6748
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07006749 test -n "$AR" && break
6750 done
Wink Savillefbaaef92010-05-27 16:25:37 -07006751fi
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07006752if test -z "$AR"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07006753 ac_ct_AR=$AR
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07006754 for ac_prog in ar
6755do
6756 # Extract the first word of "$ac_prog", so it can be a program name with args.
6757set dummy $ac_prog; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759$as_echo_n "checking for $ac_word... " >&6; }
6760if ${ac_cv_prog_ac_ct_AR+:} false; then :
6761 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07006762else
6763 if test -n "$ac_ct_AR"; then
6764 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6765else
6766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767for as_dir in $PATH
6768do
6769 IFS=$as_save_IFS
6770 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006771 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08006772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07006773 ac_cv_prog_ac_ct_AR="$ac_prog"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07006775 break 2
6776 fi
6777done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006778 done
Wink Savillefbaaef92010-05-27 16:25:37 -07006779IFS=$as_save_IFS
6780
6781fi
6782fi
6783ac_ct_AR=$ac_cv_prog_ac_ct_AR
6784if test -n "$ac_ct_AR"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6786$as_echo "$ac_ct_AR" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07006787else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07006790fi
6791
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07006792
6793 test -n "$ac_ct_AR" && break
6794done
6795
Wink Savillefbaaef92010-05-27 16:25:37 -07006796 if test "x$ac_ct_AR" = x; then
6797 AR="false"
6798 else
6799 case $cross_compiling:$ac_tool_warned in
6800yes:)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006801{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6802$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07006803ac_tool_warned=yes ;;
6804esac
6805 AR=$ac_ct_AR
6806 fi
Wink Savillefbaaef92010-05-27 16:25:37 -07006807fi
6808
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07006809: ${AR=ar}
6810: ${AR_FLAGS=cru}
Wink Savillefbaaef92010-05-27 16:25:37 -07006811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07006822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6823$as_echo_n "checking for archiver @FILE support... " >&6; }
6824if ${lt_cv_ar_at_file+:} false; then :
6825 $as_echo_n "(cached) " >&6
6826else
6827 lt_cv_ar_at_file=no
6828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829/* end confdefs.h. */
6830
6831int
6832main ()
6833{
6834
6835 ;
6836 return 0;
6837}
6838_ACEOF
6839if ac_fn_cxx_try_compile "$LINENO"; then :
6840 echo conftest.$ac_objext > conftest.lst
6841 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6843 (eval $lt_ar_try) 2>&5
6844 ac_status=$?
6845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6846 test $ac_status = 0; }
6847 if test "$ac_status" -eq 0; then
6848 # Ensure the archiver fails upon bogus file names.
6849 rm -f conftest.$ac_objext libconftest.a
6850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6851 (eval $lt_ar_try) 2>&5
6852 ac_status=$?
6853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6854 test $ac_status = 0; }
6855 if test "$ac_status" -ne 0; then
6856 lt_cv_ar_at_file=@
6857 fi
6858 fi
6859 rm -f conftest.* libconftest.a
6860
6861fi
6862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6863
6864fi
6865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6866$as_echo "$lt_cv_ar_at_file" >&6; }
6867
6868if test "x$lt_cv_ar_at_file" = xno; then
6869 archiver_list_spec=
6870else
6871 archiver_list_spec=$lt_cv_ar_at_file
6872fi
6873
6874
6875
6876
6877
6878
6879
Wink Savillefbaaef92010-05-27 16:25:37 -07006880if test -n "$ac_tool_prefix"; then
6881 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6882set dummy ${ac_tool_prefix}strip; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6884$as_echo_n "checking for $ac_word... " >&6; }
6885if ${ac_cv_prog_STRIP+:} false; then :
6886 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07006887else
6888 if test -n "$STRIP"; then
6889 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6890else
6891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892for as_dir in $PATH
6893do
6894 IFS=$as_save_IFS
6895 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006896 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08006897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07006898 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07006900 break 2
6901 fi
6902done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006903 done
Wink Savillefbaaef92010-05-27 16:25:37 -07006904IFS=$as_save_IFS
6905
6906fi
6907fi
6908STRIP=$ac_cv_prog_STRIP
6909if test -n "$STRIP"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6911$as_echo "$STRIP" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07006912else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07006915fi
6916
6917
6918fi
6919if test -z "$ac_cv_prog_STRIP"; then
6920 ac_ct_STRIP=$STRIP
6921 # Extract the first word of "strip", so it can be a program name with args.
6922set dummy strip; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6924$as_echo_n "checking for $ac_word... " >&6; }
6925if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6926 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07006927else
6928 if test -n "$ac_ct_STRIP"; then
6929 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6930else
6931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932for as_dir in $PATH
6933do
6934 IFS=$as_save_IFS
6935 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006936 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08006937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07006938 ac_cv_prog_ac_ct_STRIP="strip"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07006940 break 2
6941 fi
6942done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006943 done
Wink Savillefbaaef92010-05-27 16:25:37 -07006944IFS=$as_save_IFS
6945
6946fi
6947fi
6948ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6949if test -n "$ac_ct_STRIP"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6951$as_echo "$ac_ct_STRIP" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07006952else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6954$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07006955fi
6956
6957 if test "x$ac_ct_STRIP" = x; then
6958 STRIP=":"
6959 else
6960 case $cross_compiling:$ac_tool_warned in
6961yes:)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07006964ac_tool_warned=yes ;;
6965esac
6966 STRIP=$ac_ct_STRIP
6967 fi
6968else
6969 STRIP="$ac_cv_prog_STRIP"
6970fi
6971
6972test -z "$STRIP" && STRIP=:
6973
6974
6975
6976
6977
6978
6979if test -n "$ac_tool_prefix"; then
6980 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6981set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6983$as_echo_n "checking for $ac_word... " >&6; }
6984if ${ac_cv_prog_RANLIB+:} false; then :
6985 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07006986else
6987 if test -n "$RANLIB"; then
6988 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6989else
6990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991for as_dir in $PATH
6992do
6993 IFS=$as_save_IFS
6994 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006995 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08006996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07006997 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07006998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07006999 break 2
7000 fi
7001done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007002 done
Wink Savillefbaaef92010-05-27 16:25:37 -07007003IFS=$as_save_IFS
7004
7005fi
7006fi
7007RANLIB=$ac_cv_prog_RANLIB
7008if test -n "$RANLIB"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7010$as_echo "$RANLIB" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007011else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007014fi
7015
7016
7017fi
7018if test -z "$ac_cv_prog_RANLIB"; then
7019 ac_ct_RANLIB=$RANLIB
7020 # Extract the first word of "ranlib", so it can be a program name with args.
7021set dummy ranlib; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023$as_echo_n "checking for $ac_word... " >&6; }
7024if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7025 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07007026else
7027 if test -n "$ac_ct_RANLIB"; then
7028 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7029else
7030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031for as_dir in $PATH
7032do
7033 IFS=$as_save_IFS
7034 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007035 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08007036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07007037 ac_cv_prog_ac_ct_RANLIB="ranlib"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07007039 break 2
7040 fi
7041done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007042 done
Wink Savillefbaaef92010-05-27 16:25:37 -07007043IFS=$as_save_IFS
7044
7045fi
7046fi
7047ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7048if test -n "$ac_ct_RANLIB"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7050$as_echo "$ac_ct_RANLIB" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007051else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007054fi
7055
7056 if test "x$ac_ct_RANLIB" = x; then
7057 RANLIB=":"
7058 else
7059 case $cross_compiling:$ac_tool_warned in
7060yes:)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007061{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7062$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07007063ac_tool_warned=yes ;;
7064esac
7065 RANLIB=$ac_ct_RANLIB
7066 fi
7067else
7068 RANLIB="$ac_cv_prog_RANLIB"
7069fi
7070
7071test -z "$RANLIB" && RANLIB=:
7072
7073
7074
7075
7076
7077
7078# Determine commands to create old-style static archives.
7079old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7080old_postinstall_cmds='chmod 644 $oldlib'
7081old_postuninstall_cmds=
7082
7083if test -n "$RANLIB"; then
7084 case $host_os in
7085 openbsd*)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07007086 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
Wink Savillefbaaef92010-05-27 16:25:37 -07007087 ;;
7088 *)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07007089 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
Wink Savillefbaaef92010-05-27 16:25:37 -07007090 ;;
7091 esac
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07007092 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
Wink Savillefbaaef92010-05-27 16:25:37 -07007093fi
7094
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07007095case $host_os in
7096 darwin*)
7097 lock_old_archive_extraction=yes ;;
7098 *)
7099 lock_old_archive_extraction=no ;;
7100esac
7101
7102
7103
7104
7105
7106
Wink Savillefbaaef92010-05-27 16:25:37 -07007107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140# If no C compiler was specified, use CC.
7141LTCC=${LTCC-"$CC"}
7142
7143# If no C compiler flags were specified, use CFLAGS.
7144LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7145
7146# Allow CC to be a program name with arguments.
7147compiler=$CC
7148
7149
7150# Check for command to grab the raw symbol name followed by C symbol from nm.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7152$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7153if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7154 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07007155else
7156
7157# These are sane defaults that work on at least a few old systems.
7158# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7159
7160# Character class describing NM global symbol codes.
7161symcode='[BCDEGRST]'
7162
7163# Regexp to match symbols that can be accessed directly from C.
7164sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7165
7166# Define system-specific variables.
7167case $host_os in
7168aix*)
7169 symcode='[BCDT]'
7170 ;;
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07007171cygwin* | mingw* | pw32* | cegcc*)
Wink Savillefbaaef92010-05-27 16:25:37 -07007172 symcode='[ABCDGISTW]'
7173 ;;
7174hpux*)
7175 if test "$host_cpu" = ia64; then
7176 symcode='[ABCDEGRST]'
7177 fi
7178 ;;
7179irix* | nonstopux*)
7180 symcode='[BCDEGRST]'
7181 ;;
7182osf*)
7183 symcode='[BCDEGQRST]'
7184 ;;
7185solaris*)
7186 symcode='[BDRT]'
7187 ;;
7188sco3.2v5*)
7189 symcode='[DT]'
7190 ;;
7191sysv4.2uw2*)
7192 symcode='[DT]'
7193 ;;
7194sysv5* | sco5v6* | unixware* | OpenUNIX*)
7195 symcode='[ABDT]'
7196 ;;
7197sysv4)
7198 symcode='[DFNSTU]'
7199 ;;
7200esac
7201
7202# If we're using GNU nm, then use its standard symbol codes.
7203case `$NM -V 2>&1` in
7204*GNU* | *'with BFD'*)
7205 symcode='[ABCDGIRSTW]' ;;
7206esac
7207
7208# Transform an extracted symbol line into a proper C declaration.
7209# Some systems (esp. on ia64) link data and code symbols differently,
7210# so use this general approach.
7211lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7212
7213# Transform an extracted symbol line into symbol name and symbol address
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07007214lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7215lt_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'"
Wink Savillefbaaef92010-05-27 16:25:37 -07007216
7217# Handle CRLF in mingw tool chain
7218opt_cr=
7219case $build_os in
7220mingw*)
7221 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7222 ;;
7223esac
7224
7225# Try without a prefix underscore, then with it.
7226for ac_symprfx in "" "_"; do
7227
7228 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7229 symxfrm="\\1 $ac_symprfx\\2 \\2"
7230
7231 # Write the raw and C identifiers.
7232 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7233 # Fake it for dumpbin and say T for any non-static function
7234 # and D for any global variable.
7235 # Also find C++ and __fastcall symbols from MSVC++,
7236 # which start with @ or ?.
7237 lt_cv_sys_global_symbol_pipe="$AWK '"\
7238" {last_section=section; section=\$ 3};"\
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07007239" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
Wink Savillefbaaef92010-05-27 16:25:37 -07007240" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7241" \$ 0!~/External *\|/{next};"\
7242" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7243" {if(hide[section]) next};"\
7244" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7245" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7246" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7247" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7248" ' prfx=^$ac_symprfx"
7249 else
7250 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7251 fi
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07007252 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
Wink Savillefbaaef92010-05-27 16:25:37 -07007253
7254 # Check to see that the pipe works correctly.
7255 pipe_works=no
7256
7257 rm -f conftest*
7258 cat > conftest.$ac_ext <<_LT_EOF
7259#ifdef __cplusplus
7260extern "C" {
7261#endif
7262char nm_test_var;
7263void nm_test_func(void);
7264void nm_test_func(void){}
7265#ifdef __cplusplus
7266}
7267#endif
7268int main(){nm_test_var='a';nm_test_func();return(0);}
7269_LT_EOF
7270
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07007272 (eval $ac_compile) 2>&5
7273 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7275 test $ac_status = 0; }; then
Wink Savillefbaaef92010-05-27 16:25:37 -07007276 # Now try to grab the symbols.
7277 nlist=conftest.nm
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07007278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7279 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
Wink Savillefbaaef92010-05-27 16:25:37 -07007280 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7282 test $ac_status = 0; } && test -s "$nlist"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07007283 # Try sorting and uniquifying the output.
7284 if sort "$nlist" | uniq > "$nlist"T; then
7285 mv -f "$nlist"T "$nlist"
7286 else
7287 rm -f "$nlist"T
7288 fi
7289
7290 # Make sure that we snagged all the symbols we need.
7291 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7292 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7293 cat <<_LT_EOF > conftest.$ac_ext
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07007294/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7295#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7296/* DATA imports from DLLs on WIN32 con't be const, because runtime
7297 relocations are performed -- see ld's documentation on pseudo-relocs. */
7298# define LT_DLSYM_CONST
7299#elif defined(__osf__)
7300/* This system does not cope well with relocations in const data. */
7301# define LT_DLSYM_CONST
7302#else
7303# define LT_DLSYM_CONST const
7304#endif
7305
Wink Savillefbaaef92010-05-27 16:25:37 -07007306#ifdef __cplusplus
7307extern "C" {
7308#endif
7309
7310_LT_EOF
7311 # Now generate the symbol file.
7312 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7313
7314 cat <<_LT_EOF >> conftest.$ac_ext
7315
7316/* The mapping between symbol names and symbols. */
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07007317LT_DLSYM_CONST struct {
Wink Savillefbaaef92010-05-27 16:25:37 -07007318 const char *name;
7319 void *address;
7320}
7321lt__PROGRAM__LTX_preloaded_symbols[] =
7322{
7323 { "@PROGRAM@", (void *) 0 },
7324_LT_EOF
7325 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7326 cat <<\_LT_EOF >> conftest.$ac_ext
7327 {0, (void *) 0}
7328};
7329
7330/* This works around a problem in FreeBSD linker */
7331#ifdef FREEBSD_WORKAROUND
7332static const void *lt_preloaded_setup() {
7333 return lt__PROGRAM__LTX_preloaded_symbols;
7334}
7335#endif
7336
7337#ifdef __cplusplus
7338}
7339#endif
7340_LT_EOF
7341 # Now try linking the two files.
7342 mv conftest.$ac_objext conftstm.$ac_objext
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07007343 lt_globsym_save_LIBS=$LIBS
7344 lt_globsym_save_CFLAGS=$CFLAGS
Wink Savillefbaaef92010-05-27 16:25:37 -07007345 LIBS="conftstm.$ac_objext"
7346 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07007348 (eval $ac_link) 2>&5
7349 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7351 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
Wink Savillefbaaef92010-05-27 16:25:37 -07007352 pipe_works=yes
7353 fi
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07007354 LIBS=$lt_globsym_save_LIBS
7355 CFLAGS=$lt_globsym_save_CFLAGS
Wink Savillefbaaef92010-05-27 16:25:37 -07007356 else
7357 echo "cannot find nm_test_func in $nlist" >&5
7358 fi
7359 else
7360 echo "cannot find nm_test_var in $nlist" >&5
7361 fi
7362 else
7363 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7364 fi
7365 else
7366 echo "$progname: failed program was:" >&5
7367 cat conftest.$ac_ext >&5
7368 fi
7369 rm -rf conftest* conftst*
7370
7371 # Do not use the global_symbol_pipe unless it works.
7372 if test "$pipe_works" = yes; then
7373 break
7374 else
7375 lt_cv_sys_global_symbol_pipe=
7376 fi
7377done
7378
7379fi
7380
7381if test -z "$lt_cv_sys_global_symbol_pipe"; then
7382 lt_cv_sys_global_symbol_to_cdecl=
7383fi
7384if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7386$as_echo "failed" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007387else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7389$as_echo "ok" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007390fi
7391
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07007392# Response file support.
7393if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7394 nm_file_list_spec='@'
7395elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7396 nm_file_list_spec='@'
7397fi
Wink Savillefbaaef92010-05-27 16:25:37 -07007398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07007420
7421
7422
7423
7424
7425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7426$as_echo_n "checking for sysroot... " >&6; }
7427
7428# Check whether --with-sysroot was given.
7429if test "${with_sysroot+set}" = set; then :
7430 withval=$with_sysroot;
7431else
7432 with_sysroot=no
7433fi
7434
7435
7436lt_sysroot=
7437case ${with_sysroot} in #(
7438 yes)
7439 if test "$GCC" = yes; then
7440 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7441 fi
7442 ;; #(
7443 /*)
7444 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7445 ;; #(
7446 no|'')
7447 ;; #(
7448 *)
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7450$as_echo "${with_sysroot}" >&6; }
7451 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7452 ;;
7453esac
7454
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7456$as_echo "${lt_sysroot:-no}" >&6; }
7457
7458
7459
7460
7461
7462
Wink Savillefbaaef92010-05-27 16:25:37 -07007463# Check whether --enable-libtool-lock was given.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007464if test "${enable_libtool_lock+set}" = set; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07007465 enableval=$enable_libtool_lock;
7466fi
7467
7468test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7469
7470# Some flags need to be propagated to the compiler or linker for good
7471# libtool support.
7472case $host in
7473ia64-*-hpux*)
7474 # Find out which ABI we are using.
7475 echo 'int i;' > conftest.$ac_ext
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07007477 (eval $ac_compile) 2>&5
7478 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7480 test $ac_status = 0; }; then
Wink Savillefbaaef92010-05-27 16:25:37 -07007481 case `/usr/bin/file conftest.$ac_objext` in
7482 *ELF-32*)
7483 HPUX_IA64_MODE="32"
7484 ;;
7485 *ELF-64*)
7486 HPUX_IA64_MODE="64"
7487 ;;
7488 esac
7489 fi
7490 rm -rf conftest*
7491 ;;
7492*-*-irix6*)
7493 # Find out which ABI we are using.
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07007494 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07007496 (eval $ac_compile) 2>&5
7497 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7499 test $ac_status = 0; }; then
Wink Savillefbaaef92010-05-27 16:25:37 -07007500 if test "$lt_cv_prog_gnu_ld" = yes; then
7501 case `/usr/bin/file conftest.$ac_objext` in
7502 *32-bit*)
7503 LD="${LD-ld} -melf32bsmip"
7504 ;;
7505 *N32*)
7506 LD="${LD-ld} -melf32bmipn32"
7507 ;;
7508 *64-bit*)
7509 LD="${LD-ld} -melf64bmip"
7510 ;;
7511 esac
7512 else
7513 case `/usr/bin/file conftest.$ac_objext` in
7514 *32-bit*)
7515 LD="${LD-ld} -32"
7516 ;;
7517 *N32*)
7518 LD="${LD-ld} -n32"
7519 ;;
7520 *64-bit*)
7521 LD="${LD-ld} -64"
7522 ;;
7523 esac
7524 fi
7525 fi
7526 rm -rf conftest*
7527 ;;
7528
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08007529x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
Wink Savillefbaaef92010-05-27 16:25:37 -07007530s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7531 # Find out which ABI we are using.
7532 echo 'int i;' > conftest.$ac_ext
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07007534 (eval $ac_compile) 2>&5
7535 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7537 test $ac_status = 0; }; then
Wink Savillefbaaef92010-05-27 16:25:37 -07007538 case `/usr/bin/file conftest.o` in
7539 *32-bit*)
7540 case $host in
7541 x86_64-*kfreebsd*-gnu)
7542 LD="${LD-ld} -m elf_i386_fbsd"
7543 ;;
7544 x86_64-*linux*)
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08007545 case `/usr/bin/file conftest.o` in
7546 *x86-64*)
7547 LD="${LD-ld} -m elf32_x86_64"
7548 ;;
7549 *)
7550 LD="${LD-ld} -m elf_i386"
7551 ;;
7552 esac
Wink Savillefbaaef92010-05-27 16:25:37 -07007553 ;;
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08007554 powerpc64le-*)
7555 LD="${LD-ld} -m elf32lppclinux"
7556 ;;
7557 powerpc64-*)
Wink Savillefbaaef92010-05-27 16:25:37 -07007558 LD="${LD-ld} -m elf32ppclinux"
7559 ;;
7560 s390x-*linux*)
7561 LD="${LD-ld} -m elf_s390"
7562 ;;
7563 sparc64-*linux*)
7564 LD="${LD-ld} -m elf32_sparc"
7565 ;;
7566 esac
7567 ;;
7568 *64-bit*)
7569 case $host in
7570 x86_64-*kfreebsd*-gnu)
7571 LD="${LD-ld} -m elf_x86_64_fbsd"
7572 ;;
7573 x86_64-*linux*)
7574 LD="${LD-ld} -m elf_x86_64"
7575 ;;
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08007576 powerpcle-*)
7577 LD="${LD-ld} -m elf64lppc"
7578 ;;
7579 powerpc-*)
Wink Savillefbaaef92010-05-27 16:25:37 -07007580 LD="${LD-ld} -m elf64ppc"
7581 ;;
7582 s390*-*linux*|s390*-*tpf*)
7583 LD="${LD-ld} -m elf64_s390"
7584 ;;
7585 sparc*-*linux*)
7586 LD="${LD-ld} -m elf64_sparc"
7587 ;;
7588 esac
7589 ;;
7590 esac
7591 fi
7592 rm -rf conftest*
7593 ;;
7594
7595*-*-sco3.2v5*)
7596 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7597 SAVE_CFLAGS="$CFLAGS"
7598 CFLAGS="$CFLAGS -belf"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7600$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7601if ${lt_cv_cc_needs_belf+:} false; then :
7602 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07007603else
7604 ac_ext=c
7605ac_cpp='$CPP $CPPFLAGS'
7606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7608ac_compiler_gnu=$ac_cv_c_compiler_gnu
7609
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07007611/* end confdefs.h. */
7612
7613int
7614main ()
7615{
7616
7617 ;
7618 return 0;
7619}
7620_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007621if ac_fn_c_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07007622 lt_cv_cc_needs_belf=yes
7623else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007624 lt_cv_cc_needs_belf=no
Wink Savillefbaaef92010-05-27 16:25:37 -07007625fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007626rm -f core conftest.err conftest.$ac_objext \
7627 conftest$ac_exeext conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07007628 ac_ext=c
7629ac_cpp='$CPP $CPPFLAGS'
7630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7632ac_compiler_gnu=$ac_cv_c_compiler_gnu
7633
7634fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7636$as_echo "$lt_cv_cc_needs_belf" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007637 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7638 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7639 CFLAGS="$SAVE_CFLAGS"
7640 fi
7641 ;;
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07007642*-*solaris*)
Wink Savillefbaaef92010-05-27 16:25:37 -07007643 # Find out which ABI we are using.
7644 echo 'int i;' > conftest.$ac_ext
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07007646 (eval $ac_compile) 2>&5
7647 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7649 test $ac_status = 0; }; then
Wink Savillefbaaef92010-05-27 16:25:37 -07007650 case `/usr/bin/file conftest.o` in
7651 *64-bit*)
7652 case $lt_cv_prog_gnu_ld in
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07007653 yes*)
7654 case $host in
7655 i?86-*-solaris*)
7656 LD="${LD-ld} -m elf_x86_64"
7657 ;;
7658 sparc*-*-solaris*)
7659 LD="${LD-ld} -m elf64_sparc"
7660 ;;
7661 esac
7662 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7663 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7664 LD="${LD-ld}_sol2"
7665 fi
7666 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07007667 *)
7668 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7669 LD="${LD-ld} -64"
7670 fi
7671 ;;
7672 esac
7673 ;;
7674 esac
7675 fi
7676 rm -rf conftest*
7677 ;;
7678esac
7679
7680need_locks="$enable_libtool_lock"
7681
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07007682if test -n "$ac_tool_prefix"; then
7683 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7684set dummy ${ac_tool_prefix}mt; ac_word=$2
7685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7686$as_echo_n "checking for $ac_word... " >&6; }
7687if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7688 $as_echo_n "(cached) " >&6
7689else
7690 if test -n "$MANIFEST_TOOL"; then
7691 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7692else
7693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694for as_dir in $PATH
7695do
7696 IFS=$as_save_IFS
7697 test -z "$as_dir" && as_dir=.
7698 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08007699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07007700 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7702 break 2
7703 fi
7704done
7705 done
7706IFS=$as_save_IFS
7707
7708fi
7709fi
7710MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7711if test -n "$MANIFEST_TOOL"; then
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7713$as_echo "$MANIFEST_TOOL" >&6; }
7714else
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7716$as_echo "no" >&6; }
7717fi
7718
7719
7720fi
7721if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7722 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7723 # Extract the first word of "mt", so it can be a program name with args.
7724set dummy mt; ac_word=$2
7725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7726$as_echo_n "checking for $ac_word... " >&6; }
7727if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7728 $as_echo_n "(cached) " >&6
7729else
7730 if test -n "$ac_ct_MANIFEST_TOOL"; then
7731 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7732else
7733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734for as_dir in $PATH
7735do
7736 IFS=$as_save_IFS
7737 test -z "$as_dir" && as_dir=.
7738 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08007739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07007740 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7742 break 2
7743 fi
7744done
7745 done
7746IFS=$as_save_IFS
7747
7748fi
7749fi
7750ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7751if test -n "$ac_ct_MANIFEST_TOOL"; then
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7753$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7754else
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7756$as_echo "no" >&6; }
7757fi
7758
7759 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7760 MANIFEST_TOOL=":"
7761 else
7762 case $cross_compiling:$ac_tool_warned in
7763yes:)
7764{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7765$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7766ac_tool_warned=yes ;;
7767esac
7768 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7769 fi
7770else
7771 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7772fi
7773
7774test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7776$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7777if ${lt_cv_path_mainfest_tool+:} false; then :
7778 $as_echo_n "(cached) " >&6
7779else
7780 lt_cv_path_mainfest_tool=no
7781 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7782 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7783 cat conftest.err >&5
7784 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7785 lt_cv_path_mainfest_tool=yes
7786 fi
7787 rm -f conftest*
7788fi
7789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7790$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7791if test "x$lt_cv_path_mainfest_tool" != xyes; then
7792 MANIFEST_TOOL=:
7793fi
7794
7795
7796
7797
7798
Wink Savillefbaaef92010-05-27 16:25:37 -07007799
7800 case $host_os in
7801 rhapsody* | darwin*)
7802 if test -n "$ac_tool_prefix"; then
7803 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7804set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7806$as_echo_n "checking for $ac_word... " >&6; }
7807if ${ac_cv_prog_DSYMUTIL+:} false; then :
7808 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07007809else
7810 if test -n "$DSYMUTIL"; then
7811 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7812else
7813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814for as_dir in $PATH
7815do
7816 IFS=$as_save_IFS
7817 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007818 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08007819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07007820 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07007822 break 2
7823 fi
7824done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007825 done
Wink Savillefbaaef92010-05-27 16:25:37 -07007826IFS=$as_save_IFS
7827
7828fi
7829fi
7830DSYMUTIL=$ac_cv_prog_DSYMUTIL
7831if test -n "$DSYMUTIL"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7833$as_echo "$DSYMUTIL" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007834else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7836$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007837fi
7838
7839
7840fi
7841if test -z "$ac_cv_prog_DSYMUTIL"; then
7842 ac_ct_DSYMUTIL=$DSYMUTIL
7843 # Extract the first word of "dsymutil", so it can be a program name with args.
7844set dummy dsymutil; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7846$as_echo_n "checking for $ac_word... " >&6; }
7847if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7848 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07007849else
7850 if test -n "$ac_ct_DSYMUTIL"; then
7851 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7852else
7853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854for as_dir in $PATH
7855do
7856 IFS=$as_save_IFS
7857 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007858 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08007859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07007860 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07007862 break 2
7863 fi
7864done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007865 done
Wink Savillefbaaef92010-05-27 16:25:37 -07007866IFS=$as_save_IFS
7867
7868fi
7869fi
7870ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7871if test -n "$ac_ct_DSYMUTIL"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7873$as_echo "$ac_ct_DSYMUTIL" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007874else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007877fi
7878
7879 if test "x$ac_ct_DSYMUTIL" = x; then
7880 DSYMUTIL=":"
7881 else
7882 case $cross_compiling:$ac_tool_warned in
7883yes:)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007884{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7885$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07007886ac_tool_warned=yes ;;
7887esac
7888 DSYMUTIL=$ac_ct_DSYMUTIL
7889 fi
7890else
7891 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7892fi
7893
7894 if test -n "$ac_tool_prefix"; then
7895 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7896set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7898$as_echo_n "checking for $ac_word... " >&6; }
7899if ${ac_cv_prog_NMEDIT+:} false; then :
7900 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07007901else
7902 if test -n "$NMEDIT"; then
7903 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7904else
7905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906for as_dir in $PATH
7907do
7908 IFS=$as_save_IFS
7909 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007910 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08007911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07007912 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07007914 break 2
7915 fi
7916done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007917 done
Wink Savillefbaaef92010-05-27 16:25:37 -07007918IFS=$as_save_IFS
7919
7920fi
7921fi
7922NMEDIT=$ac_cv_prog_NMEDIT
7923if test -n "$NMEDIT"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7925$as_echo "$NMEDIT" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007926else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7928$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007929fi
7930
7931
7932fi
7933if test -z "$ac_cv_prog_NMEDIT"; then
7934 ac_ct_NMEDIT=$NMEDIT
7935 # Extract the first word of "nmedit", so it can be a program name with args.
7936set dummy nmedit; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7938$as_echo_n "checking for $ac_word... " >&6; }
7939if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7940 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07007941else
7942 if test -n "$ac_ct_NMEDIT"; then
7943 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7944else
7945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946for as_dir in $PATH
7947do
7948 IFS=$as_save_IFS
7949 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007950 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08007951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07007952 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07007954 break 2
7955 fi
7956done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007957 done
Wink Savillefbaaef92010-05-27 16:25:37 -07007958IFS=$as_save_IFS
7959
7960fi
7961fi
7962ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7963if test -n "$ac_ct_NMEDIT"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7965$as_echo "$ac_ct_NMEDIT" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007966else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07007969fi
7970
7971 if test "x$ac_ct_NMEDIT" = x; then
7972 NMEDIT=":"
7973 else
7974 case $cross_compiling:$ac_tool_warned in
7975yes:)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007976{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07007978ac_tool_warned=yes ;;
7979esac
7980 NMEDIT=$ac_ct_NMEDIT
7981 fi
7982else
7983 NMEDIT="$ac_cv_prog_NMEDIT"
7984fi
7985
7986 if test -n "$ac_tool_prefix"; then
7987 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7988set dummy ${ac_tool_prefix}lipo; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07007989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7990$as_echo_n "checking for $ac_word... " >&6; }
7991if ${ac_cv_prog_LIPO+:} false; then :
7992 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07007993else
7994 if test -n "$LIPO"; then
7995 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7996else
7997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998for as_dir in $PATH
7999do
8000 IFS=$as_save_IFS
8001 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008002 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08008003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07008004 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07008006 break 2
8007 fi
8008done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008009 done
Wink Savillefbaaef92010-05-27 16:25:37 -07008010IFS=$as_save_IFS
8011
8012fi
8013fi
8014LIPO=$ac_cv_prog_LIPO
8015if test -n "$LIPO"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8017$as_echo "$LIPO" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07008018else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8020$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07008021fi
8022
8023
8024fi
8025if test -z "$ac_cv_prog_LIPO"; then
8026 ac_ct_LIPO=$LIPO
8027 # Extract the first word of "lipo", so it can be a program name with args.
8028set dummy lipo; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8030$as_echo_n "checking for $ac_word... " >&6; }
8031if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8032 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07008033else
8034 if test -n "$ac_ct_LIPO"; then
8035 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8036else
8037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8038for as_dir in $PATH
8039do
8040 IFS=$as_save_IFS
8041 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008042 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08008043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07008044 ac_cv_prog_ac_ct_LIPO="lipo"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07008046 break 2
8047 fi
8048done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008049 done
Wink Savillefbaaef92010-05-27 16:25:37 -07008050IFS=$as_save_IFS
8051
8052fi
8053fi
8054ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8055if test -n "$ac_ct_LIPO"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8057$as_echo "$ac_ct_LIPO" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07008058else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8060$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07008061fi
8062
8063 if test "x$ac_ct_LIPO" = x; then
8064 LIPO=":"
8065 else
8066 case $cross_compiling:$ac_tool_warned in
8067yes:)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008068{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8069$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07008070ac_tool_warned=yes ;;
8071esac
8072 LIPO=$ac_ct_LIPO
8073 fi
8074else
8075 LIPO="$ac_cv_prog_LIPO"
8076fi
8077
8078 if test -n "$ac_tool_prefix"; then
8079 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8080set dummy ${ac_tool_prefix}otool; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8082$as_echo_n "checking for $ac_word... " >&6; }
8083if ${ac_cv_prog_OTOOL+:} false; then :
8084 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07008085else
8086 if test -n "$OTOOL"; then
8087 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8088else
8089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090for as_dir in $PATH
8091do
8092 IFS=$as_save_IFS
8093 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008094 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08008095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07008096 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07008098 break 2
8099 fi
8100done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008101 done
Wink Savillefbaaef92010-05-27 16:25:37 -07008102IFS=$as_save_IFS
8103
8104fi
8105fi
8106OTOOL=$ac_cv_prog_OTOOL
8107if test -n "$OTOOL"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8109$as_echo "$OTOOL" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07008110else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07008113fi
8114
8115
8116fi
8117if test -z "$ac_cv_prog_OTOOL"; then
8118 ac_ct_OTOOL=$OTOOL
8119 # Extract the first word of "otool", so it can be a program name with args.
8120set dummy otool; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8122$as_echo_n "checking for $ac_word... " >&6; }
8123if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8124 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07008125else
8126 if test -n "$ac_ct_OTOOL"; then
8127 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8128else
8129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130for as_dir in $PATH
8131do
8132 IFS=$as_save_IFS
8133 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008134 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08008135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07008136 ac_cv_prog_ac_ct_OTOOL="otool"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07008138 break 2
8139 fi
8140done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008141 done
Wink Savillefbaaef92010-05-27 16:25:37 -07008142IFS=$as_save_IFS
8143
8144fi
8145fi
8146ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8147if test -n "$ac_ct_OTOOL"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8149$as_echo "$ac_ct_OTOOL" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07008150else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07008153fi
8154
8155 if test "x$ac_ct_OTOOL" = x; then
8156 OTOOL=":"
8157 else
8158 case $cross_compiling:$ac_tool_warned in
8159yes:)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008160{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07008162ac_tool_warned=yes ;;
8163esac
8164 OTOOL=$ac_ct_OTOOL
8165 fi
8166else
8167 OTOOL="$ac_cv_prog_OTOOL"
8168fi
8169
8170 if test -n "$ac_tool_prefix"; then
8171 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8172set dummy ${ac_tool_prefix}otool64; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8174$as_echo_n "checking for $ac_word... " >&6; }
8175if ${ac_cv_prog_OTOOL64+:} false; then :
8176 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07008177else
8178 if test -n "$OTOOL64"; then
8179 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8180else
8181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182for as_dir in $PATH
8183do
8184 IFS=$as_save_IFS
8185 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008186 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08008187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07008188 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07008190 break 2
8191 fi
8192done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008193 done
Wink Savillefbaaef92010-05-27 16:25:37 -07008194IFS=$as_save_IFS
8195
8196fi
8197fi
8198OTOOL64=$ac_cv_prog_OTOOL64
8199if test -n "$OTOOL64"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8201$as_echo "$OTOOL64" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07008202else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07008205fi
8206
8207
8208fi
8209if test -z "$ac_cv_prog_OTOOL64"; then
8210 ac_ct_OTOOL64=$OTOOL64
8211 # Extract the first word of "otool64", so it can be a program name with args.
8212set dummy otool64; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214$as_echo_n "checking for $ac_word... " >&6; }
8215if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8216 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07008217else
8218 if test -n "$ac_ct_OTOOL64"; then
8219 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8220else
8221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222for as_dir in $PATH
8223do
8224 IFS=$as_save_IFS
8225 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008226 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08008227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07008228 ac_cv_prog_ac_ct_OTOOL64="otool64"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07008230 break 2
8231 fi
8232done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008233 done
Wink Savillefbaaef92010-05-27 16:25:37 -07008234IFS=$as_save_IFS
8235
8236fi
8237fi
8238ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8239if test -n "$ac_ct_OTOOL64"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8241$as_echo "$ac_ct_OTOOL64" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07008242else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07008245fi
8246
8247 if test "x$ac_ct_OTOOL64" = x; then
8248 OTOOL64=":"
8249 else
8250 case $cross_compiling:$ac_tool_warned in
8251yes:)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008252{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07008254ac_tool_warned=yes ;;
8255esac
8256 OTOOL64=$ac_ct_OTOOL64
8257 fi
8258else
8259 OTOOL64="$ac_cv_prog_OTOOL64"
8260fi
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8289$as_echo_n "checking for -single_module linker flag... " >&6; }
8290if ${lt_cv_apple_cc_single_mod+:} false; then :
8291 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07008292else
8293 lt_cv_apple_cc_single_mod=no
8294 if test -z "${LT_MULTI_MODULE}"; then
8295 # By default we will add the -single_module flag. You can override
8296 # by either setting the environment variable LT_MULTI_MODULE
8297 # non-empty at configure time, or by adding -multi_module to the
8298 # link flags.
8299 rm -rf libconftest.dylib*
8300 echo "int foo(void){return 1;}" > conftest.c
8301 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8302-dynamiclib -Wl,-single_module conftest.c" >&5
8303 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8304 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8305 _lt_result=$?
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07008306 # If there is a non-empty error log, and "single_module"
8307 # appears in it, assume the flag caused a linker warning
8308 if test -s conftest.err && $GREP single_module conftest.err; then
8309 cat conftest.err >&5
8310 # Otherwise, if the output was created with a 0 exit code from
8311 # the compiler, it worked.
8312 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
Wink Savillefbaaef92010-05-27 16:25:37 -07008313 lt_cv_apple_cc_single_mod=yes
8314 else
8315 cat conftest.err >&5
8316 fi
8317 rm -rf libconftest.dylib*
8318 rm -f conftest.*
8319 fi
8320fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8322$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07008323
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8325$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8326if ${lt_cv_ld_exported_symbols_list+:} false; then :
8327 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07008328else
8329 lt_cv_ld_exported_symbols_list=no
8330 save_LDFLAGS=$LDFLAGS
8331 echo "_main" > conftest.sym
8332 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07008334/* end confdefs.h. */
8335
8336int
8337main ()
8338{
8339
8340 ;
8341 return 0;
8342}
8343_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008344if ac_fn_c_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07008345 lt_cv_ld_exported_symbols_list=yes
8346else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008347 lt_cv_ld_exported_symbols_list=no
Wink Savillefbaaef92010-05-27 16:25:37 -07008348fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008349rm -f core conftest.err conftest.$ac_objext \
8350 conftest$ac_exeext conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -07008351 LDFLAGS="$save_LDFLAGS"
8352
8353fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8355$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07008356
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8358$as_echo_n "checking for -force_load linker flag... " >&6; }
8359if ${lt_cv_ld_force_load+:} false; then :
8360 $as_echo_n "(cached) " >&6
8361else
8362 lt_cv_ld_force_load=no
8363 cat > conftest.c << _LT_EOF
8364int forced_loaded() { return 2;}
8365_LT_EOF
8366 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8367 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8368 echo "$AR cru libconftest.a conftest.o" >&5
8369 $AR cru libconftest.a conftest.o 2>&5
8370 echo "$RANLIB libconftest.a" >&5
8371 $RANLIB libconftest.a 2>&5
8372 cat > conftest.c << _LT_EOF
8373int main() { return 0;}
8374_LT_EOF
8375 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8376 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8377 _lt_result=$?
8378 if test -s conftest.err && $GREP force_load conftest.err; then
8379 cat conftest.err >&5
8380 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8381 lt_cv_ld_force_load=yes
8382 else
8383 cat conftest.err >&5
8384 fi
8385 rm -f conftest.err libconftest.a conftest conftest.c
8386 rm -rf conftest.dSYM
8387
8388fi
8389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8390$as_echo "$lt_cv_ld_force_load" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07008391 case $host_os in
8392 rhapsody* | darwin1.[012])
8393 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8394 darwin1.*)
8395 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8396 darwin*) # darwin 5.x on
8397 # if running on 10.5 or later, the deployment target defaults
8398 # to the OS version, if on x86, and 10.4, the deployment
8399 # target defaults to 10.4. Don't you love it?
8400 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8401 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8402 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8403 10.[012]*)
8404 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8405 10.*)
8406 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8407 esac
8408 ;;
8409 esac
8410 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8411 _lt_dar_single_mod='$single_module'
8412 fi
8413 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8414 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8415 else
8416 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8417 fi
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07008418 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
Wink Savillefbaaef92010-05-27 16:25:37 -07008419 _lt_dsymutil='~$DSYMUTIL $lib || :'
8420 else
8421 _lt_dsymutil=
8422 fi
8423 ;;
8424 esac
8425
Wink Savillefbaaef92010-05-27 16:25:37 -07008426for ac_header in dlfcn.h
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008427do :
8428 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8429"
8430if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07008431 cat >>confdefs.h <<_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008432#define HAVE_DLFCN_H 1
Wink Savillefbaaef92010-05-27 16:25:37 -07008433_ACEOF
8434
8435fi
8436
8437done
8438
8439
8440
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07008441func_stripname_cnf ()
Wink Savillefbaaef92010-05-27 16:25:37 -07008442{
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07008443 case ${2} in
8444 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8445 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8446 esac
8447} # func_stripname_cnf
Wink Savillefbaaef92010-05-27 16:25:37 -07008448
Wink Savillefbaaef92010-05-27 16:25:37 -07008449
8450
8451
8452
8453# Set options
8454
8455
8456
8457 enable_dlopen=no
8458
8459
8460 enable_win32_dll=no
8461
8462
8463 # Check whether --enable-shared was given.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008464if test "${enable_shared+set}" = set; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07008465 enableval=$enable_shared; p=${PACKAGE-default}
8466 case $enableval in
8467 yes) enable_shared=yes ;;
8468 no) enable_shared=no ;;
8469 *)
8470 enable_shared=no
8471 # Look at the argument we got. We use all the common list separators.
8472 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8473 for pkg in $enableval; do
8474 IFS="$lt_save_ifs"
8475 if test "X$pkg" = "X$p"; then
8476 enable_shared=yes
8477 fi
8478 done
8479 IFS="$lt_save_ifs"
8480 ;;
8481 esac
8482else
8483 enable_shared=yes
8484fi
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494 # Check whether --enable-static was given.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008495if test "${enable_static+set}" = set; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07008496 enableval=$enable_static; p=${PACKAGE-default}
8497 case $enableval in
8498 yes) enable_static=yes ;;
8499 no) enable_static=no ;;
8500 *)
8501 enable_static=no
8502 # Look at the argument we got. We use all the common list separators.
8503 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8504 for pkg in $enableval; do
8505 IFS="$lt_save_ifs"
8506 if test "X$pkg" = "X$p"; then
8507 enable_static=yes
8508 fi
8509 done
8510 IFS="$lt_save_ifs"
8511 ;;
8512 esac
8513else
8514 enable_static=yes
8515fi
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526# Check whether --with-pic was given.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008527if test "${with_pic+set}" = set; then :
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07008528 withval=$with_pic; lt_p=${PACKAGE-default}
8529 case $withval in
8530 yes|no) pic_mode=$withval ;;
8531 *)
8532 pic_mode=default
8533 # Look at the argument we got. We use all the common list separators.
8534 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8535 for lt_pkg in $withval; do
8536 IFS="$lt_save_ifs"
8537 if test "X$lt_pkg" = "X$lt_p"; then
8538 pic_mode=yes
8539 fi
8540 done
8541 IFS="$lt_save_ifs"
8542 ;;
8543 esac
Wink Savillefbaaef92010-05-27 16:25:37 -07008544else
8545 pic_mode=default
8546fi
8547
8548
8549test -z "$pic_mode" && pic_mode=default
8550
8551
8552
8553
8554
8555
8556
8557 # Check whether --enable-fast-install was given.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008558if test "${enable_fast_install+set}" = set; then :
Wink Savillefbaaef92010-05-27 16:25:37 -07008559 enableval=$enable_fast_install; p=${PACKAGE-default}
8560 case $enableval in
8561 yes) enable_fast_install=yes ;;
8562 no) enable_fast_install=no ;;
8563 *)
8564 enable_fast_install=no
8565 # Look at the argument we got. We use all the common list separators.
8566 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8567 for pkg in $enableval; do
8568 IFS="$lt_save_ifs"
8569 if test "X$pkg" = "X$p"; then
8570 enable_fast_install=yes
8571 fi
8572 done
8573 IFS="$lt_save_ifs"
8574 ;;
8575 esac
8576else
8577 enable_fast_install=yes
8578fi
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590# This can be used to rebuild libtool when needed
8591LIBTOOL_DEPS="$ltmain"
8592
8593# Always use our own libtool.
8594LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07008620
8621
8622
8623
8624
Wink Savillefbaaef92010-05-27 16:25:37 -07008625test -z "$LN_S" && LN_S="ln -s"
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640if test -n "${ZSH_VERSION+set}" ; then
8641 setopt NO_GLOB_SUBST
8642fi
8643
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8645$as_echo_n "checking for objdir... " >&6; }
8646if ${lt_cv_objdir+:} false; then :
8647 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07008648else
8649 rm -f .libs 2>/dev/null
8650mkdir .libs 2>/dev/null
8651if test -d .libs; then
8652 lt_cv_objdir=.libs
8653else
8654 # MS-DOS does not allow filenames that begin with a dot.
8655 lt_cv_objdir=_libs
8656fi
8657rmdir .libs 2>/dev/null
8658fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8660$as_echo "$lt_cv_objdir" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07008661objdir=$lt_cv_objdir
8662
8663
8664
8665
8666
8667cat >>confdefs.h <<_ACEOF
8668#define LT_OBJDIR "$lt_cv_objdir/"
8669_ACEOF
8670
8671
8672
8673
Wink Savillefbaaef92010-05-27 16:25:37 -07008674case $host_os in
8675aix3*)
8676 # AIX sometimes has problems with the GCC collect2 program. For some
8677 # reason, if we set the COLLECT_NAMES environment variable, the problems
8678 # vanish in a puff of smoke.
8679 if test "X${COLLECT_NAMES+set}" != Xset; then
8680 COLLECT_NAMES=
8681 export COLLECT_NAMES
8682 fi
8683 ;;
8684esac
8685
Wink Savillefbaaef92010-05-27 16:25:37 -07008686# Global variables:
8687ofile=libtool
8688can_build_shared=yes
8689
8690# All known linkers require a `.a' archive for static linking (except MSVC,
8691# which needs '.lib').
8692libext=a
8693
8694with_gnu_ld="$lt_cv_prog_gnu_ld"
8695
8696old_CC="$CC"
8697old_CFLAGS="$CFLAGS"
8698
8699# Set sane defaults for various variables
8700test -z "$CC" && CC=cc
8701test -z "$LTCC" && LTCC=$CC
8702test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8703test -z "$LD" && LD=ld
8704test -z "$ac_objext" && ac_objext=o
8705
8706for cc_temp in $compiler""; do
8707 case $cc_temp in
8708 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8709 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8710 \-*) ;;
8711 *) break;;
8712 esac
8713done
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07008714cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Wink Savillefbaaef92010-05-27 16:25:37 -07008715
8716
8717# Only perform the check for file, if the check method requires it
8718test -z "$MAGIC_CMD" && MAGIC_CMD=file
8719case $deplibs_check_method in
8720file_magic*)
8721 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8723$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8724if ${lt_cv_path_MAGIC_CMD+:} false; then :
8725 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07008726else
8727 case $MAGIC_CMD in
8728[\\/*] | ?:[\\/]*)
8729 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8730 ;;
8731*)
8732 lt_save_MAGIC_CMD="$MAGIC_CMD"
8733 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8734 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8735 for ac_dir in $ac_dummy; do
8736 IFS="$lt_save_ifs"
8737 test -z "$ac_dir" && ac_dir=.
8738 if test -f $ac_dir/${ac_tool_prefix}file; then
8739 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8740 if test -n "$file_magic_test_file"; then
8741 case $deplibs_check_method in
8742 "file_magic "*)
8743 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8744 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8745 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8746 $EGREP "$file_magic_regex" > /dev/null; then
8747 :
8748 else
8749 cat <<_LT_EOF 1>&2
8750
8751*** Warning: the command libtool uses to detect shared libraries,
8752*** $file_magic_cmd, produces output that libtool cannot recognize.
8753*** The result is that libtool may fail to recognize shared libraries
8754*** as such. This will affect the creation of libtool libraries that
8755*** depend on shared libraries, but programs linked with such libtool
8756*** libraries will work regardless of this problem. Nevertheless, you
8757*** may want to report the problem to your system manager and/or to
8758*** [email protected]
8759
8760_LT_EOF
8761 fi ;;
8762 esac
8763 fi
8764 break
8765 fi
8766 done
8767 IFS="$lt_save_ifs"
8768 MAGIC_CMD="$lt_save_MAGIC_CMD"
8769 ;;
8770esac
8771fi
8772
8773MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8774if test -n "$MAGIC_CMD"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8776$as_echo "$MAGIC_CMD" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07008777else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8779$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07008780fi
8781
8782
8783
8784
8785
8786if test -z "$lt_cv_path_MAGIC_CMD"; then
8787 if test -n "$ac_tool_prefix"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8789$as_echo_n "checking for file... " >&6; }
8790if ${lt_cv_path_MAGIC_CMD+:} false; then :
8791 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07008792else
8793 case $MAGIC_CMD in
8794[\\/*] | ?:[\\/]*)
8795 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8796 ;;
8797*)
8798 lt_save_MAGIC_CMD="$MAGIC_CMD"
8799 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8800 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8801 for ac_dir in $ac_dummy; do
8802 IFS="$lt_save_ifs"
8803 test -z "$ac_dir" && ac_dir=.
8804 if test -f $ac_dir/file; then
8805 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8806 if test -n "$file_magic_test_file"; then
8807 case $deplibs_check_method in
8808 "file_magic "*)
8809 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8810 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8811 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8812 $EGREP "$file_magic_regex" > /dev/null; then
8813 :
8814 else
8815 cat <<_LT_EOF 1>&2
8816
8817*** Warning: the command libtool uses to detect shared libraries,
8818*** $file_magic_cmd, produces output that libtool cannot recognize.
8819*** The result is that libtool may fail to recognize shared libraries
8820*** as such. This will affect the creation of libtool libraries that
8821*** depend on shared libraries, but programs linked with such libtool
8822*** libraries will work regardless of this problem. Nevertheless, you
8823*** may want to report the problem to your system manager and/or to
8824*** [email protected]
8825
8826_LT_EOF
8827 fi ;;
8828 esac
8829 fi
8830 break
8831 fi
8832 done
8833 IFS="$lt_save_ifs"
8834 MAGIC_CMD="$lt_save_MAGIC_CMD"
8835 ;;
8836esac
8837fi
8838
8839MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8840if test -n "$MAGIC_CMD"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8842$as_echo "$MAGIC_CMD" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07008843else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8845$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07008846fi
8847
8848
8849 else
8850 MAGIC_CMD=:
8851 fi
8852fi
8853
8854 fi
8855 ;;
8856esac
8857
8858# Use C for the default configuration in the libtool script
8859
8860lt_save_CC="$CC"
8861ac_ext=c
8862ac_cpp='$CPP $CPPFLAGS'
8863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8865ac_compiler_gnu=$ac_cv_c_compiler_gnu
8866
8867
8868# Source file extension for C test sources.
8869ac_ext=c
8870
8871# Object file extension for compiled C test sources.
8872objext=o
8873objext=$objext
8874
8875# Code to be used in simple compile tests
8876lt_simple_compile_test_code="int some_variable = 0;"
8877
8878# Code to be used in simple link tests
8879lt_simple_link_test_code='int main(){return(0);}'
8880
8881
8882
8883
8884
8885
8886
8887# If no C compiler was specified, use CC.
8888LTCC=${LTCC-"$CC"}
8889
8890# If no C compiler flags were specified, use CFLAGS.
8891LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8892
8893# Allow CC to be a program name with arguments.
8894compiler=$CC
8895
8896# Save the default compiler, since it gets overwritten when the other
8897# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8898compiler_DEFAULT=$CC
8899
8900# save warnings/boilerplate of simple test code
8901ac_outfile=conftest.$ac_objext
8902echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8903eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8904_lt_compiler_boilerplate=`cat conftest.err`
8905$RM conftest*
8906
8907ac_outfile=conftest.$ac_objext
8908echo "$lt_simple_link_test_code" >conftest.$ac_ext
8909eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8910_lt_linker_boilerplate=`cat conftest.err`
8911$RM -r conftest*
8912
8913
8914## CAVEAT EMPTOR:
8915## There is no encapsulation within the following macros, do not change
8916## the running order or otherwise move them around unless you know exactly
8917## what you are doing...
8918if test -n "$compiler"; then
8919
8920lt_prog_compiler_no_builtin_flag=
8921
8922if test "$GCC" = yes; then
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07008923 case $cc_basename in
8924 nvcc*)
8925 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8926 *)
8927 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8928 esac
Wink Savillefbaaef92010-05-27 16:25:37 -07008929
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8931$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8932if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8933 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07008934else
8935 lt_cv_prog_compiler_rtti_exceptions=no
8936 ac_outfile=conftest.$ac_objext
8937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8938 lt_compiler_flag="-fno-rtti -fno-exceptions"
8939 # Insert the option either (1) after the last *FLAGS variable, or
8940 # (2) before a word containing "conftest.", or (3) at the end.
8941 # Note that $ac_compile itself does not contain backslashes and begins
8942 # with a dollar sign (not a hyphen), so the echo should work correctly.
8943 # The option is referenced via a variable to avoid confusing sed.
8944 lt_compile=`echo "$ac_compile" | $SED \
8945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8947 -e 's:$: $lt_compiler_flag:'`
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07008948 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Wink Savillefbaaef92010-05-27 16:25:37 -07008949 (eval "$lt_compile" 2>conftest.err)
8950 ac_status=$?
8951 cat conftest.err >&5
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07008952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07008953 if (exit $ac_status) && test -s "$ac_outfile"; then
8954 # The compiler can only warn and ignore the option if not recognized
8955 # So say no if there are warnings other than the usual output.
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07008956 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Wink Savillefbaaef92010-05-27 16:25:37 -07008957 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8958 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8959 lt_cv_prog_compiler_rtti_exceptions=yes
8960 fi
8961 fi
8962 $RM conftest*
8963
8964fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07008965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8966$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07008967
8968if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8969 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8970else
8971 :
8972fi
8973
8974fi
8975
8976
8977
8978
8979
8980
8981 lt_prog_compiler_wl=
8982lt_prog_compiler_pic=
8983lt_prog_compiler_static=
8984
Wink Savillefbaaef92010-05-27 16:25:37 -07008985
8986 if test "$GCC" = yes; then
8987 lt_prog_compiler_wl='-Wl,'
8988 lt_prog_compiler_static='-static'
8989
8990 case $host_os in
8991 aix*)
8992 # All AIX code is PIC.
8993 if test "$host_cpu" = ia64; then
8994 # AIX 5 now supports IA64 processor
8995 lt_prog_compiler_static='-Bstatic'
8996 fi
8997 ;;
8998
8999 amigaos*)
9000 case $host_cpu in
9001 powerpc)
9002 # see comment about AmigaOS4 .so support
9003 lt_prog_compiler_pic='-fPIC'
9004 ;;
9005 m68k)
9006 # FIXME: we need at least 68020 code to build shared libraries, but
9007 # adding the `-m68020' flag to GCC prevents building anything better,
9008 # like `-m68040'.
9009 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9010 ;;
9011 esac
9012 ;;
9013
9014 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9015 # PIC is the default for these OSes.
9016 ;;
9017
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009018 mingw* | cygwin* | pw32* | os2* | cegcc*)
Wink Savillefbaaef92010-05-27 16:25:37 -07009019 # This hack is so that the source file can tell whether it is being
9020 # built for inclusion in a dll (and should export symbols for example).
9021 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9022 # (--disable-auto-import) libraries
9023 lt_prog_compiler_pic='-DDLL_EXPORT'
9024 ;;
9025
9026 darwin* | rhapsody*)
9027 # PIC is the default on this platform
9028 # Common symbols not allowed in MH_DYLIB files
9029 lt_prog_compiler_pic='-fno-common'
9030 ;;
9031
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009032 haiku*)
9033 # PIC is the default for Haiku.
9034 # The "-static" flag exists, but is broken.
9035 lt_prog_compiler_static=
9036 ;;
9037
Wink Savillefbaaef92010-05-27 16:25:37 -07009038 hpux*)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009039 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9040 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9041 # sets the default TLS model and affects inlining.
Wink Savillefbaaef92010-05-27 16:25:37 -07009042 case $host_cpu in
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009043 hppa*64*)
Wink Savillefbaaef92010-05-27 16:25:37 -07009044 # +Z the default
9045 ;;
9046 *)
9047 lt_prog_compiler_pic='-fPIC'
9048 ;;
9049 esac
9050 ;;
9051
9052 interix[3-9]*)
9053 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9054 # Instead, we relocate shared libraries at runtime.
9055 ;;
9056
9057 msdosdjgpp*)
9058 # Just because we use GCC doesn't mean we suddenly get shared libraries
9059 # on systems that don't support them.
9060 lt_prog_compiler_can_build_shared=no
9061 enable_shared=no
9062 ;;
9063
9064 *nto* | *qnx*)
9065 # QNX uses GNU C++, but need to define -shared option too, otherwise
9066 # it will coredump.
9067 lt_prog_compiler_pic='-fPIC -shared'
9068 ;;
9069
9070 sysv4*MP*)
9071 if test -d /usr/nec; then
9072 lt_prog_compiler_pic=-Kconform_pic
9073 fi
9074 ;;
9075
9076 *)
9077 lt_prog_compiler_pic='-fPIC'
9078 ;;
9079 esac
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009080
9081 case $cc_basename in
9082 nvcc*) # Cuda Compiler Driver 2.2
9083 lt_prog_compiler_wl='-Xlinker '
9084 if test -n "$lt_prog_compiler_pic"; then
9085 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9086 fi
9087 ;;
9088 esac
Wink Savillefbaaef92010-05-27 16:25:37 -07009089 else
9090 # PORTME Check for flag to pass linker flags through the system compiler.
9091 case $host_os in
9092 aix*)
9093 lt_prog_compiler_wl='-Wl,'
9094 if test "$host_cpu" = ia64; then
9095 # AIX 5 now supports IA64 processor
9096 lt_prog_compiler_static='-Bstatic'
9097 else
9098 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9099 fi
9100 ;;
9101
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009102 mingw* | cygwin* | pw32* | os2* | cegcc*)
Wink Savillefbaaef92010-05-27 16:25:37 -07009103 # This hack is so that the source file can tell whether it is being
9104 # built for inclusion in a dll (and should export symbols for example).
9105 lt_prog_compiler_pic='-DDLL_EXPORT'
9106 ;;
9107
9108 hpux9* | hpux10* | hpux11*)
9109 lt_prog_compiler_wl='-Wl,'
9110 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9111 # not for PA HP-UX.
9112 case $host_cpu in
9113 hppa*64*|ia64*)
9114 # +Z the default
9115 ;;
9116 *)
9117 lt_prog_compiler_pic='+Z'
9118 ;;
9119 esac
9120 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9121 lt_prog_compiler_static='${wl}-a ${wl}archive'
9122 ;;
9123
9124 irix5* | irix6* | nonstopux*)
9125 lt_prog_compiler_wl='-Wl,'
9126 # PIC (with -KPIC) is the default.
9127 lt_prog_compiler_static='-non_shared'
9128 ;;
9129
Jeff Davidson0ddac1f2015-01-20 10:18:05 -08009130 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Wink Savillefbaaef92010-05-27 16:25:37 -07009131 case $cc_basename in
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009132 # old Intel for x86_64 which still supported -KPIC.
9133 ecc*)
Wink Savillefbaaef92010-05-27 16:25:37 -07009134 lt_prog_compiler_wl='-Wl,'
9135 lt_prog_compiler_pic='-KPIC'
9136 lt_prog_compiler_static='-static'
9137 ;;
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009138 # icc used to be incompatible with GCC.
9139 # ICC 10 doesn't accept -KPIC any more.
9140 icc* | ifort*)
9141 lt_prog_compiler_wl='-Wl,'
9142 lt_prog_compiler_pic='-fPIC'
9143 lt_prog_compiler_static='-static'
9144 ;;
9145 # Lahey Fortran 8.1.
9146 lf95*)
9147 lt_prog_compiler_wl='-Wl,'
9148 lt_prog_compiler_pic='--shared'
9149 lt_prog_compiler_static='--static'
9150 ;;
9151 nagfor*)
9152 # NAG Fortran compiler
9153 lt_prog_compiler_wl='-Wl,-Wl,,'
9154 lt_prog_compiler_pic='-PIC'
9155 lt_prog_compiler_static='-Bstatic'
9156 ;;
9157 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Wink Savillefbaaef92010-05-27 16:25:37 -07009158 # Portland Group compilers (*not* the Pentium gcc compiler,
9159 # which looks to be a dead project)
9160 lt_prog_compiler_wl='-Wl,'
9161 lt_prog_compiler_pic='-fpic'
9162 lt_prog_compiler_static='-Bstatic'
9163 ;;
9164 ccc*)
9165 lt_prog_compiler_wl='-Wl,'
9166 # All Alpha code is PIC.
9167 lt_prog_compiler_static='-non_shared'
9168 ;;
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009169 xl* | bgxl* | bgf* | mpixl*)
9170 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Wink Savillefbaaef92010-05-27 16:25:37 -07009171 lt_prog_compiler_wl='-Wl,'
9172 lt_prog_compiler_pic='-qpic'
9173 lt_prog_compiler_static='-qstaticlink'
9174 ;;
9175 *)
9176 case `$CC -V 2>&1 | sed 5q` in
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009177 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9178 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9179 lt_prog_compiler_pic='-KPIC'
9180 lt_prog_compiler_static='-Bstatic'
9181 lt_prog_compiler_wl=''
9182 ;;
9183 *Sun\ F* | *Sun*Fortran*)
9184 lt_prog_compiler_pic='-KPIC'
9185 lt_prog_compiler_static='-Bstatic'
9186 lt_prog_compiler_wl='-Qoption ld '
9187 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07009188 *Sun\ C*)
9189 # Sun C 5.9
9190 lt_prog_compiler_pic='-KPIC'
9191 lt_prog_compiler_static='-Bstatic'
9192 lt_prog_compiler_wl='-Wl,'
9193 ;;
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009194 *Intel*\ [CF]*Compiler*)
9195 lt_prog_compiler_wl='-Wl,'
9196 lt_prog_compiler_pic='-fPIC'
9197 lt_prog_compiler_static='-static'
9198 ;;
9199 *Portland\ Group*)
9200 lt_prog_compiler_wl='-Wl,'
9201 lt_prog_compiler_pic='-fpic'
Wink Savillefbaaef92010-05-27 16:25:37 -07009202 lt_prog_compiler_static='-Bstatic'
Wink Savillefbaaef92010-05-27 16:25:37 -07009203 ;;
9204 esac
9205 ;;
9206 esac
9207 ;;
9208
9209 newsos6)
9210 lt_prog_compiler_pic='-KPIC'
9211 lt_prog_compiler_static='-Bstatic'
9212 ;;
9213
9214 *nto* | *qnx*)
9215 # QNX uses GNU C++, but need to define -shared option too, otherwise
9216 # it will coredump.
9217 lt_prog_compiler_pic='-fPIC -shared'
9218 ;;
9219
9220 osf3* | osf4* | osf5*)
9221 lt_prog_compiler_wl='-Wl,'
9222 # All OSF/1 code is PIC.
9223 lt_prog_compiler_static='-non_shared'
9224 ;;
9225
9226 rdos*)
9227 lt_prog_compiler_static='-non_shared'
9228 ;;
9229
9230 solaris*)
9231 lt_prog_compiler_pic='-KPIC'
9232 lt_prog_compiler_static='-Bstatic'
9233 case $cc_basename in
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009234 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Wink Savillefbaaef92010-05-27 16:25:37 -07009235 lt_prog_compiler_wl='-Qoption ld ';;
9236 *)
9237 lt_prog_compiler_wl='-Wl,';;
9238 esac
9239 ;;
9240
9241 sunos4*)
9242 lt_prog_compiler_wl='-Qoption ld '
9243 lt_prog_compiler_pic='-PIC'
9244 lt_prog_compiler_static='-Bstatic'
9245 ;;
9246
9247 sysv4 | sysv4.2uw2* | sysv4.3*)
9248 lt_prog_compiler_wl='-Wl,'
9249 lt_prog_compiler_pic='-KPIC'
9250 lt_prog_compiler_static='-Bstatic'
9251 ;;
9252
9253 sysv4*MP*)
9254 if test -d /usr/nec ;then
9255 lt_prog_compiler_pic='-Kconform_pic'
9256 lt_prog_compiler_static='-Bstatic'
9257 fi
9258 ;;
9259
9260 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9261 lt_prog_compiler_wl='-Wl,'
9262 lt_prog_compiler_pic='-KPIC'
9263 lt_prog_compiler_static='-Bstatic'
9264 ;;
9265
9266 unicos*)
9267 lt_prog_compiler_wl='-Wl,'
9268 lt_prog_compiler_can_build_shared=no
9269 ;;
9270
9271 uts4*)
9272 lt_prog_compiler_pic='-pic'
9273 lt_prog_compiler_static='-Bstatic'
9274 ;;
9275
9276 *)
9277 lt_prog_compiler_can_build_shared=no
9278 ;;
9279 esac
9280 fi
9281
9282case $host_os in
9283 # For platforms which do not support PIC, -DPIC is meaningless:
9284 *djgpp*)
9285 lt_prog_compiler_pic=
9286 ;;
9287 *)
9288 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9289 ;;
9290esac
Wink Savillefbaaef92010-05-27 16:25:37 -07009291
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9293$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9294if ${lt_cv_prog_compiler_pic+:} false; then :
9295 $as_echo_n "(cached) " >&6
9296else
9297 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9298fi
9299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9300$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9301lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
Wink Savillefbaaef92010-05-27 16:25:37 -07009302
9303#
9304# Check to make sure the PIC flag actually works.
9305#
9306if test -n "$lt_prog_compiler_pic"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9308$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9309if ${lt_cv_prog_compiler_pic_works+:} false; then :
9310 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07009311else
9312 lt_cv_prog_compiler_pic_works=no
9313 ac_outfile=conftest.$ac_objext
9314 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9315 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9316 # Insert the option either (1) after the last *FLAGS variable, or
9317 # (2) before a word containing "conftest.", or (3) at the end.
9318 # Note that $ac_compile itself does not contain backslashes and begins
9319 # with a dollar sign (not a hyphen), so the echo should work correctly.
9320 # The option is referenced via a variable to avoid confusing sed.
9321 lt_compile=`echo "$ac_compile" | $SED \
9322 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9323 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9324 -e 's:$: $lt_compiler_flag:'`
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009325 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Wink Savillefbaaef92010-05-27 16:25:37 -07009326 (eval "$lt_compile" 2>conftest.err)
9327 ac_status=$?
9328 cat conftest.err >&5
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07009330 if (exit $ac_status) && test -s "$ac_outfile"; then
9331 # The compiler can only warn and ignore the option if not recognized
9332 # So say no if there are warnings other than the usual output.
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009333 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Wink Savillefbaaef92010-05-27 16:25:37 -07009334 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9335 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9336 lt_cv_prog_compiler_pic_works=yes
9337 fi
9338 fi
9339 $RM conftest*
9340
9341fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9343$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07009344
9345if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9346 case $lt_prog_compiler_pic in
9347 "" | " "*) ;;
9348 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9349 esac
9350else
9351 lt_prog_compiler_pic=
9352 lt_prog_compiler_can_build_shared=no
9353fi
9354
9355fi
9356
9357
9358
9359
9360
9361
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009362
9363
9364
9365
9366
Wink Savillefbaaef92010-05-27 16:25:37 -07009367#
9368# Check to make sure the static flag actually works.
9369#
9370wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9372$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9373if ${lt_cv_prog_compiler_static_works+:} false; then :
9374 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07009375else
9376 lt_cv_prog_compiler_static_works=no
9377 save_LDFLAGS="$LDFLAGS"
9378 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9379 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9380 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9381 # The linker can only warn and ignore the option if not recognized
9382 # So say no if there are warnings
9383 if test -s conftest.err; then
9384 # Append any errors to the config.log.
9385 cat conftest.err 1>&5
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009386 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Wink Savillefbaaef92010-05-27 16:25:37 -07009387 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9388 if diff conftest.exp conftest.er2 >/dev/null; then
9389 lt_cv_prog_compiler_static_works=yes
9390 fi
9391 else
9392 lt_cv_prog_compiler_static_works=yes
9393 fi
9394 fi
9395 $RM -r conftest*
9396 LDFLAGS="$save_LDFLAGS"
9397
9398fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9400$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07009401
9402if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9403 :
9404else
9405 lt_prog_compiler_static=
9406fi
9407
9408
9409
9410
9411
9412
9413
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9415$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9416if ${lt_cv_prog_compiler_c_o+:} false; then :
9417 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07009418else
9419 lt_cv_prog_compiler_c_o=no
9420 $RM -r conftest 2>/dev/null
9421 mkdir conftest
9422 cd conftest
9423 mkdir out
9424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9425
9426 lt_compiler_flag="-o out/conftest2.$ac_objext"
9427 # Insert the option either (1) after the last *FLAGS variable, or
9428 # (2) before a word containing "conftest.", or (3) at the end.
9429 # Note that $ac_compile itself does not contain backslashes and begins
9430 # with a dollar sign (not a hyphen), so the echo should work correctly.
9431 lt_compile=`echo "$ac_compile" | $SED \
9432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9434 -e 's:$: $lt_compiler_flag:'`
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009435 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Wink Savillefbaaef92010-05-27 16:25:37 -07009436 (eval "$lt_compile" 2>out/conftest.err)
9437 ac_status=$?
9438 cat out/conftest.err >&5
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07009440 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9441 then
9442 # The compiler can only warn and ignore the option if not recognized
9443 # So say no if there are warnings
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009444 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Wink Savillefbaaef92010-05-27 16:25:37 -07009445 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9446 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9447 lt_cv_prog_compiler_c_o=yes
9448 fi
9449 fi
9450 chmod u+w . 2>&5
9451 $RM conftest*
9452 # SGI C++ compiler will create directory out/ii_files/ for
9453 # template instantiation
9454 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9455 $RM out/* && rmdir out
9456 cd ..
9457 $RM -r conftest
9458 $RM conftest*
9459
9460fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9462$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07009463
9464
9465
9466
9467
9468
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9470$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9471if ${lt_cv_prog_compiler_c_o+:} false; then :
9472 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -07009473else
9474 lt_cv_prog_compiler_c_o=no
9475 $RM -r conftest 2>/dev/null
9476 mkdir conftest
9477 cd conftest
9478 mkdir out
9479 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9480
9481 lt_compiler_flag="-o out/conftest2.$ac_objext"
9482 # Insert the option either (1) after the last *FLAGS variable, or
9483 # (2) before a word containing "conftest.", or (3) at the end.
9484 # Note that $ac_compile itself does not contain backslashes and begins
9485 # with a dollar sign (not a hyphen), so the echo should work correctly.
9486 lt_compile=`echo "$ac_compile" | $SED \
9487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9489 -e 's:$: $lt_compiler_flag:'`
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009490 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Wink Savillefbaaef92010-05-27 16:25:37 -07009491 (eval "$lt_compile" 2>out/conftest.err)
9492 ac_status=$?
9493 cat out/conftest.err >&5
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -07009495 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9496 then
9497 # The compiler can only warn and ignore the option if not recognized
9498 # So say no if there are warnings
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009499 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Wink Savillefbaaef92010-05-27 16:25:37 -07009500 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9501 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9502 lt_cv_prog_compiler_c_o=yes
9503 fi
9504 fi
9505 chmod u+w . 2>&5
9506 $RM conftest*
9507 # SGI C++ compiler will create directory out/ii_files/ for
9508 # template instantiation
9509 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9510 $RM out/* && rmdir out
9511 cd ..
9512 $RM -r conftest
9513 $RM conftest*
9514
9515fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9517$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07009518
9519
9520
9521
9522hard_links="nottested"
9523if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9524 # do not overwrite the value of need_locks provided by the user
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9526$as_echo_n "checking if we can lock with hard links... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07009527 hard_links=yes
9528 $RM conftest*
9529 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9530 touch conftest.a
9531 ln conftest.a conftest.b 2>&5 || hard_links=no
9532 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9534$as_echo "$hard_links" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07009535 if test "$hard_links" = no; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9537$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -07009538 need_locks=warn
9539 fi
9540else
9541 need_locks=no
9542fi
9543
9544
9545
9546
9547
9548
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -07009549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9550$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -07009551
9552 runpath_var=
9553 allow_undefined_flag=
9554 always_export_symbols=no
9555 archive_cmds=
9556 archive_expsym_cmds=
9557 compiler_needs_object=no
9558 enable_shared_with_static_runtimes=no
9559 export_dynamic_flag_spec=
9560 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9561 hardcode_automatic=no
9562 hardcode_direct=no
9563 hardcode_direct_absolute=no
9564 hardcode_libdir_flag_spec=
Wink Savillefbaaef92010-05-27 16:25:37 -07009565 hardcode_libdir_separator=
9566 hardcode_minus_L=no
9567 hardcode_shlibpath_var=unsupported
9568 inherit_rpath=no
9569 link_all_deplibs=unknown
9570 module_cmds=
9571 module_expsym_cmds=
9572 old_archive_from_new_cmds=
9573 old_archive_from_expsyms_cmds=
9574 thread_safe_flag_spec=
9575 whole_archive_flag_spec=
9576 # include_expsyms should be a list of space-separated symbols to be *always*
9577 # included in the symbol list
9578 include_expsyms=
9579 # exclude_expsyms can be an extended regexp of symbols to exclude
9580 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9581 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9582 # as well as any symbol that contains `d'.
9583 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9584 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9585 # platforms (ab)use it in PIC code, but their linkers get confused if
9586 # the symbol is explicitly referenced. Since portable code cannot
9587 # rely on this symbol name, it's probably fine to never include it in
9588 # preloaded symbol tables.
9589 # Exclude shared library initialization/finalization symbols.
9590 extract_expsyms_cmds=
9591
9592 case $host_os in
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009593 cygwin* | mingw* | pw32* | cegcc*)
Wink Savillefbaaef92010-05-27 16:25:37 -07009594 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9595 # When not using gcc, we currently assume that we are using
9596 # Microsoft Visual C++.
9597 if test "$GCC" != yes; then
9598 with_gnu_ld=no
9599 fi
9600 ;;
9601 interix*)
9602 # we just hope/assume this is gcc and not c89 (= MSVC++)
9603 with_gnu_ld=yes
9604 ;;
9605 openbsd*)
9606 with_gnu_ld=no
9607 ;;
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009608 linux* | k*bsd*-gnu | gnu*)
9609 link_all_deplibs=no
9610 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07009611 esac
9612
9613 ld_shlibs=yes
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009614
9615 # On some targets, GNU ld is compatible enough with the native linker
9616 # that we're better off using the native interface for both.
9617 lt_use_gnu_ld_interface=no
Wink Savillefbaaef92010-05-27 16:25:37 -07009618 if test "$with_gnu_ld" = yes; then
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009619 case $host_os in
9620 aix*)
9621 # The AIX port of GNU ld has always aspired to compatibility
9622 # with the native linker. However, as the warning in the GNU ld
9623 # block says, versions before 2.19.5* couldn't really create working
9624 # shared libraries, regardless of the interface used.
9625 case `$LD -v 2>&1` in
9626 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9627 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9628 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9629 *)
9630 lt_use_gnu_ld_interface=yes
9631 ;;
9632 esac
9633 ;;
9634 *)
9635 lt_use_gnu_ld_interface=yes
9636 ;;
9637 esac
9638 fi
9639
9640 if test "$lt_use_gnu_ld_interface" = yes; then
Wink Savillefbaaef92010-05-27 16:25:37 -07009641 # If archive_cmds runs LD, not CC, wlarc should be empty
9642 wlarc='${wl}'
9643
9644 # Set some defaults for GNU ld with shared library support. These
9645 # are reset later if shared libraries are not supported. Putting them
9646 # here allows them to be overridden if necessary.
9647 runpath_var=LD_RUN_PATH
9648 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9649 export_dynamic_flag_spec='${wl}--export-dynamic'
9650 # ancient GNU ld didn't support --whole-archive et. al.
9651 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9652 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9653 else
9654 whole_archive_flag_spec=
9655 fi
9656 supports_anon_versioning=no
9657 case `$LD -v 2>&1` in
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009658 *GNU\ gold*) supports_anon_versioning=yes ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07009659 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9660 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9661 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9662 *\ 2.11.*) ;; # other 2.11 versions
9663 *) supports_anon_versioning=yes ;;
9664 esac
9665
9666 # See if GNU ld supports shared libraries.
9667 case $host_os in
9668 aix[3-9]*)
9669 # On AIX/PPC, the GNU linker is very broken
9670 if test "$host_cpu" != ia64; then
9671 ld_shlibs=no
9672 cat <<_LT_EOF 1>&2
9673
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009674*** Warning: the GNU linker, at least up to release 2.19, is reported
Wink Savillefbaaef92010-05-27 16:25:37 -07009675*** to be unable to reliably create shared libraries on AIX.
9676*** Therefore, libtool is disabling shared libraries support. If you
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009677*** really care for shared libraries, you may want to install binutils
9678*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9679*** You will then need to restart the configuration process.
Wink Savillefbaaef92010-05-27 16:25:37 -07009680
9681_LT_EOF
9682 fi
9683 ;;
9684
9685 amigaos*)
9686 case $host_cpu in
9687 powerpc)
9688 # see comment about AmigaOS4 .so support
9689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9690 archive_expsym_cmds=''
9691 ;;
9692 m68k)
9693 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)'
9694 hardcode_libdir_flag_spec='-L$libdir'
9695 hardcode_minus_L=yes
9696 ;;
9697 esac
9698 ;;
9699
9700 beos*)
9701 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9702 allow_undefined_flag=unsupported
9703 # Joseph Beckenbach <[email protected]> says some releases of gcc
9704 # support --undefined. This deserves some investigation. FIXME
9705 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9706 else
9707 ld_shlibs=no
9708 fi
9709 ;;
9710
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009711 cygwin* | mingw* | pw32* | cegcc*)
Wink Savillefbaaef92010-05-27 16:25:37 -07009712 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9713 # as there is no search path for DLLs.
9714 hardcode_libdir_flag_spec='-L$libdir'
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009715 export_dynamic_flag_spec='${wl}--export-all-symbols'
Wink Savillefbaaef92010-05-27 16:25:37 -07009716 allow_undefined_flag=unsupported
9717 always_export_symbols=no
9718 enable_shared_with_static_runtimes=yes
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009719 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'
9720 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
Wink Savillefbaaef92010-05-27 16:25:37 -07009721
9722 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9723 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9724 # If the export-symbols file already is a .def file (1st line
9725 # is EXPORTS), use it as is; otherwise, prepend...
9726 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9727 cp $export_symbols $output_objdir/$soname.def;
9728 else
9729 echo EXPORTS > $output_objdir/$soname.def;
9730 cat $export_symbols >> $output_objdir/$soname.def;
9731 fi~
9732 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9733 else
9734 ld_shlibs=no
9735 fi
9736 ;;
9737
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009738 haiku*)
9739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9740 link_all_deplibs=yes
9741 ;;
9742
Wink Savillefbaaef92010-05-27 16:25:37 -07009743 interix[3-9]*)
9744 hardcode_direct=no
9745 hardcode_shlibpath_var=no
9746 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9747 export_dynamic_flag_spec='${wl}-E'
9748 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9749 # Instead, shared libraries are loaded at an image base (0x10000000 by
9750 # default) and relocated if they conflict, which is a slow very memory
9751 # consuming and fragmenting process. To avoid this, we pick a random,
9752 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9753 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9754 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9755 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'
9756 ;;
9757
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009758 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
Wink Savillefbaaef92010-05-27 16:25:37 -07009759 tmp_diet=no
9760 if test "$host_os" = linux-dietlibc; then
9761 case $cc_basename in
9762 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9763 esac
9764 fi
9765 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9766 && test "$tmp_diet" = no
9767 then
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009768 tmp_addflag=' $pic_flag'
Wink Savillefbaaef92010-05-27 16:25:37 -07009769 tmp_sharedflag='-shared'
9770 case $cc_basename,$host_cpu in
9771 pgcc*) # Portland Group C compiler
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009772 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'
Wink Savillefbaaef92010-05-27 16:25:37 -07009773 tmp_addflag=' $pic_flag'
9774 ;;
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009775 pgf77* | pgf90* | pgf95* | pgfortran*)
9776 # Portland Group f77 and f90 compilers
9777 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'
Wink Savillefbaaef92010-05-27 16:25:37 -07009778 tmp_addflag=' $pic_flag -Mnomain' ;;
9779 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9780 tmp_addflag=' -i_dynamic' ;;
9781 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9782 tmp_addflag=' -i_dynamic -nofor_main' ;;
9783 ifc* | ifort*) # Intel Fortran compiler
9784 tmp_addflag=' -nofor_main' ;;
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009785 lf95*) # Lahey Fortran 8.1
9786 whole_archive_flag_spec=
9787 tmp_sharedflag='--shared' ;;
9788 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Wink Savillefbaaef92010-05-27 16:25:37 -07009789 tmp_sharedflag='-qmkshrobj'
9790 tmp_addflag= ;;
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009791 nvcc*) # Cuda Compiler Driver 2.2
9792 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'
9793 compiler_needs_object=yes
9794 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -07009795 esac
9796 case `$CC -V 2>&1 | sed 5q` in
9797 *Sun\ C*) # Sun C 5.9
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009798 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'
Wink Savillefbaaef92010-05-27 16:25:37 -07009799 compiler_needs_object=yes
9800 tmp_sharedflag='-G' ;;
9801 *Sun\ F*) # Sun Fortran 8.3
9802 tmp_sharedflag='-G' ;;
9803 esac
9804 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9805
9806 if test "x$supports_anon_versioning" = xyes; then
9807 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9808 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9809 echo "local: *; };" >> $output_objdir/$libname.ver~
9810 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9811 fi
9812
9813 case $cc_basename in
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009814 xlf* | bgf* | bgxlf* | mpixlf*)
Wink Savillefbaaef92010-05-27 16:25:37 -07009815 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9816 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009817 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9818 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Wink Savillefbaaef92010-05-27 16:25:37 -07009819 if test "x$supports_anon_versioning" = xyes; then
9820 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9821 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9822 echo "local: *; };" >> $output_objdir/$libname.ver~
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009823 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Wink Savillefbaaef92010-05-27 16:25:37 -07009824 fi
9825 ;;
9826 esac
9827 else
9828 ld_shlibs=no
9829 fi
9830 ;;
9831
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009832 netbsd* | netbsdelf*-gnu)
Wink Savillefbaaef92010-05-27 16:25:37 -07009833 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9834 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9835 wlarc=
9836 else
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009837 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9838 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Wink Savillefbaaef92010-05-27 16:25:37 -07009839 fi
9840 ;;
9841
9842 solaris*)
9843 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9844 ld_shlibs=no
9845 cat <<_LT_EOF 1>&2
9846
9847*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9848*** create shared libraries on Solaris systems. Therefore, libtool
9849*** is disabling shared libraries support. We urge you to upgrade GNU
9850*** binutils to release 2.9.1 or newer. Another option is to modify
9851*** your PATH or compiler configuration so that the native linker is
9852*** used, and then restart.
9853
9854_LT_EOF
9855 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009856 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9857 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Wink Savillefbaaef92010-05-27 16:25:37 -07009858 else
9859 ld_shlibs=no
9860 fi
9861 ;;
9862
9863 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9864 case `$LD -v 2>&1` in
9865 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9866 ld_shlibs=no
9867 cat <<_LT_EOF 1>&2
9868
9869*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9870*** reliably create shared libraries on SCO systems. Therefore, libtool
9871*** is disabling shared libraries support. We urge you to upgrade GNU
9872*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9873*** your PATH or compiler configuration so that the native linker is
9874*** used, and then restart.
9875
9876_LT_EOF
9877 ;;
9878 *)
9879 # For security reasons, it is highly recommended that you always
9880 # use absolute paths for naming shared libraries, and exclude the
9881 # DT_RUNPATH tag from executables and libraries. But doing so
9882 # requires that you compile everything twice, which is a pain.
9883 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9884 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9885 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9886 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9887 else
9888 ld_shlibs=no
9889 fi
9890 ;;
9891 esac
9892 ;;
9893
9894 sunos4*)
9895 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9896 wlarc=
9897 hardcode_direct=yes
9898 hardcode_shlibpath_var=no
9899 ;;
9900
9901 *)
9902 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009903 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9904 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Wink Savillefbaaef92010-05-27 16:25:37 -07009905 else
9906 ld_shlibs=no
9907 fi
9908 ;;
9909 esac
9910
9911 if test "$ld_shlibs" = no; then
9912 runpath_var=
9913 hardcode_libdir_flag_spec=
9914 export_dynamic_flag_spec=
9915 whole_archive_flag_spec=
9916 fi
9917 else
9918 # PORTME fill in a description of your system's linker (not GNU ld)
9919 case $host_os in
9920 aix3*)
9921 allow_undefined_flag=unsupported
9922 always_export_symbols=yes
9923 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'
9924 # Note: this linker hardcodes the directories in LIBPATH if there
9925 # are no directories specified by -L.
9926 hardcode_minus_L=yes
9927 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9928 # Neither direct hardcoding nor static linking is supported with a
9929 # broken collect2.
9930 hardcode_direct=unsupported
9931 fi
9932 ;;
9933
9934 aix[4-9]*)
9935 if test "$host_cpu" = ia64; then
9936 # On IA64, the linker does run time linking by default, so we don't
9937 # have to do anything special.
9938 aix_use_runtimelinking=no
9939 exp_sym_flag='-Bexport'
9940 no_entry_flag=""
9941 else
9942 # If we're using GNU nm, then we don't want the "-C" option.
9943 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009944 # Also, AIX nm treats weak defined symbols like other global
9945 # defined symbols, whereas GNU nm marks them as "W".
Wink Savillefbaaef92010-05-27 16:25:37 -07009946 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07009947 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'
Wink Savillefbaaef92010-05-27 16:25:37 -07009948 else
9949 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'
9950 fi
9951 aix_use_runtimelinking=no
9952
9953 # Test if we are trying to use run time linking or normal
9954 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9955 # need to do runtime linking.
9956 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9957 for ld_flag in $LDFLAGS; do
9958 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9959 aix_use_runtimelinking=yes
9960 break
9961 fi
9962 done
9963 ;;
9964 esac
9965
9966 exp_sym_flag='-bexport'
9967 no_entry_flag='-bnoentry'
9968 fi
9969
9970 # When large executables or shared objects are built, AIX ld can
9971 # have problems creating the table of contents. If linking a library
9972 # or program results in "error TOC overflow" add -mminimal-toc to
9973 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9974 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9975
9976 archive_cmds=''
9977 hardcode_direct=yes
9978 hardcode_direct_absolute=yes
9979 hardcode_libdir_separator=':'
9980 link_all_deplibs=yes
9981 file_list_spec='${wl}-f,'
9982
9983 if test "$GCC" = yes; then
9984 case $host_os in aix4.[012]|aix4.[012].*)
9985 # We only want to do this on AIX 4.2 and lower, the check
9986 # below for broken collect2 doesn't work under 4.3+
9987 collect2name=`${CC} -print-prog-name=collect2`
9988 if test -f "$collect2name" &&
9989 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9990 then
9991 # We have reworked collect2
9992 :
9993 else
9994 # We have old collect2
9995 hardcode_direct=unsupported
9996 # It fails to find uninstalled libraries when the uninstalled
9997 # path is not listed in the libpath. Setting hardcode_minus_L
9998 # to unsupported forces relinking
9999 hardcode_minus_L=yes
10000 hardcode_libdir_flag_spec='-L$libdir'
10001 hardcode_libdir_separator=
10002 fi
10003 ;;
10004 esac
10005 shared_flag='-shared'
10006 if test "$aix_use_runtimelinking" = yes; then
10007 shared_flag="$shared_flag "'${wl}-G'
10008 fi
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010009 link_all_deplibs=no
Wink Savillefbaaef92010-05-27 16:25:37 -070010010 else
10011 # not using gcc
10012 if test "$host_cpu" = ia64; then
10013 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10014 # chokes on -Wl,-G. The following line is correct:
10015 shared_flag='-G'
10016 else
10017 if test "$aix_use_runtimelinking" = yes; then
10018 shared_flag='${wl}-G'
10019 else
10020 shared_flag='${wl}-bM:SRE'
10021 fi
10022 fi
10023 fi
10024
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010025 export_dynamic_flag_spec='${wl}-bexpall'
Wink Savillefbaaef92010-05-27 16:25:37 -070010026 # It seems that -bexpall does not export symbols beginning with
10027 # underscore (_), so it is better to generate a list of symbols to export.
10028 always_export_symbols=yes
10029 if test "$aix_use_runtimelinking" = yes; then
10030 # Warning - without using the other runtime loading flags (-brtl),
10031 # -berok will link without error, but may produce a broken library.
10032 allow_undefined_flag='-berok'
10033 # Determine the default libpath from the value encoded in an
10034 # empty executable.
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010035 if test "${lt_cv_aix_libpath+set}" = set; then
10036 aix_libpath=$lt_cv_aix_libpath
10037else
10038 if ${lt_cv_aix_libpath_+:} false; then :
10039 $as_echo_n "(cached) " >&6
10040else
10041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070010042/* end confdefs.h. */
10043
10044int
10045main ()
10046{
10047
10048 ;
10049 return 0;
10050}
10051_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010052if ac_fn_c_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070010053
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010054 lt_aix_libpath_sed='
10055 /Import File Strings/,/^$/ {
10056 /^0/ {
10057 s/^0 *\([^ ]*\) *$/\1/
10058 p
10059 }
10060 }'
10061 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10062 # Check for a 64-bit object if we didn't find anything.
10063 if test -z "$lt_cv_aix_libpath_"; then
10064 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10065 fi
Wink Savillefbaaef92010-05-27 16:25:37 -070010066fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010067rm -f core conftest.err conftest.$ac_objext \
10068 conftest$ac_exeext conftest.$ac_ext
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010069 if test -z "$lt_cv_aix_libpath_"; then
10070 lt_cv_aix_libpath_="/usr/lib:/lib"
10071 fi
10072
10073fi
10074
10075 aix_libpath=$lt_cv_aix_libpath_
10076fi
Wink Savillefbaaef92010-05-27 16:25:37 -070010077
10078 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010079 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"
Wink Savillefbaaef92010-05-27 16:25:37 -070010080 else
10081 if test "$host_cpu" = ia64; then
10082 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10083 allow_undefined_flag="-z nodefs"
10084 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"
10085 else
10086 # Determine the default libpath from the value encoded in an
10087 # empty executable.
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010088 if test "${lt_cv_aix_libpath+set}" = set; then
10089 aix_libpath=$lt_cv_aix_libpath
10090else
10091 if ${lt_cv_aix_libpath_+:} false; then :
10092 $as_echo_n "(cached) " >&6
10093else
10094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070010095/* end confdefs.h. */
10096
10097int
10098main ()
10099{
10100
10101 ;
10102 return 0;
10103}
10104_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010105if ac_fn_c_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070010106
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010107 lt_aix_libpath_sed='
10108 /Import File Strings/,/^$/ {
10109 /^0/ {
10110 s/^0 *\([^ ]*\) *$/\1/
10111 p
10112 }
10113 }'
10114 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10115 # Check for a 64-bit object if we didn't find anything.
10116 if test -z "$lt_cv_aix_libpath_"; then
10117 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10118 fi
Wink Savillefbaaef92010-05-27 16:25:37 -070010119fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010120rm -f core conftest.err conftest.$ac_objext \
10121 conftest$ac_exeext conftest.$ac_ext
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010122 if test -z "$lt_cv_aix_libpath_"; then
10123 lt_cv_aix_libpath_="/usr/lib:/lib"
10124 fi
10125
10126fi
10127
10128 aix_libpath=$lt_cv_aix_libpath_
10129fi
Wink Savillefbaaef92010-05-27 16:25:37 -070010130
10131 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10132 # Warning - without using the other run time loading flags,
10133 # -berok will link without error, but may produce a broken library.
10134 no_undefined_flag=' ${wl}-bernotok'
10135 allow_undefined_flag=' ${wl}-berok'
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010136 if test "$with_gnu_ld" = yes; then
10137 # We only use this code for GNU lds that support --whole-archive.
10138 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10139 else
10140 # Exported symbols can be pulled into shared objects from archives
10141 whole_archive_flag_spec='$convenience'
10142 fi
Wink Savillefbaaef92010-05-27 16:25:37 -070010143 archive_cmds_need_lc=yes
10144 # This is similar to how AIX traditionally builds its shared libraries.
10145 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'
10146 fi
10147 fi
10148 ;;
10149
10150 amigaos*)
10151 case $host_cpu in
10152 powerpc)
10153 # see comment about AmigaOS4 .so support
10154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10155 archive_expsym_cmds=''
10156 ;;
10157 m68k)
10158 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)'
10159 hardcode_libdir_flag_spec='-L$libdir'
10160 hardcode_minus_L=yes
10161 ;;
10162 esac
10163 ;;
10164
10165 bsdi[45]*)
10166 export_dynamic_flag_spec=-rdynamic
10167 ;;
10168
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010169 cygwin* | mingw* | pw32* | cegcc*)
Wink Savillefbaaef92010-05-27 16:25:37 -070010170 # When not using gcc, we currently assume that we are using
10171 # Microsoft Visual C++.
10172 # hardcode_libdir_flag_spec is actually meaningless, as there is
10173 # no search path for DLLs.
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010174 case $cc_basename in
10175 cl*)
10176 # Native MSVC
10177 hardcode_libdir_flag_spec=' '
10178 allow_undefined_flag=unsupported
10179 always_export_symbols=yes
10180 file_list_spec='@'
10181 # Tell ltmain to make .lib files, not .a files.
10182 libext=lib
10183 # Tell ltmain to make .dll files, not .so files.
10184 shrext_cmds=".dll"
10185 # FIXME: Setting linknames here is a bad hack.
10186 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10187 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10188 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10189 else
10190 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10191 fi~
10192 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10193 linknames='
10194 # The linker will not automatically build a static lib if we build a DLL.
10195 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10196 enable_shared_with_static_runtimes=yes
10197 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10198 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10199 # Don't use ranlib
10200 old_postinstall_cmds='chmod 644 $oldlib'
10201 postlink_cmds='lt_outputfile="@OUTPUT@"~
10202 lt_tool_outputfile="@TOOL_OUTPUT@"~
10203 case $lt_outputfile in
10204 *.exe|*.EXE) ;;
10205 *)
10206 lt_outputfile="$lt_outputfile.exe"
10207 lt_tool_outputfile="$lt_tool_outputfile.exe"
10208 ;;
10209 esac~
10210 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10211 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10212 $RM "$lt_outputfile.manifest";
10213 fi'
10214 ;;
10215 *)
10216 # Assume MSVC wrapper
10217 hardcode_libdir_flag_spec=' '
10218 allow_undefined_flag=unsupported
10219 # Tell ltmain to make .lib files, not .a files.
10220 libext=lib
10221 # Tell ltmain to make .dll files, not .so files.
10222 shrext_cmds=".dll"
10223 # FIXME: Setting linknames here is a bad hack.
10224 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10225 # The linker will automatically build a .lib file if we build a DLL.
10226 old_archive_from_new_cmds='true'
10227 # FIXME: Should let the user specify the lib program.
10228 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10229 enable_shared_with_static_runtimes=yes
10230 ;;
10231 esac
Wink Savillefbaaef92010-05-27 16:25:37 -070010232 ;;
10233
10234 darwin* | rhapsody*)
10235
10236
10237 archive_cmds_need_lc=no
10238 hardcode_direct=no
10239 hardcode_automatic=yes
10240 hardcode_shlibpath_var=unsupported
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010241 if test "$lt_cv_ld_force_load" = "yes"; then
10242 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\"`'
10243
10244 else
10245 whole_archive_flag_spec=''
10246 fi
Wink Savillefbaaef92010-05-27 16:25:37 -070010247 link_all_deplibs=yes
10248 allow_undefined_flag="$_lt_dar_allow_undefined"
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010249 case $cc_basename in
10250 ifort*) _lt_dar_can_shared=yes ;;
10251 *) _lt_dar_can_shared=$GCC ;;
10252 esac
10253 if test "$_lt_dar_can_shared" = "yes"; then
10254 output_verbose_link_cmd=func_echo_all
Wink Savillefbaaef92010-05-27 16:25:37 -070010255 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10256 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10257 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}"
10258 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}"
10259
10260 else
10261 ld_shlibs=no
10262 fi
10263
10264 ;;
10265
10266 dgux*)
10267 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10268 hardcode_libdir_flag_spec='-L$libdir'
10269 hardcode_shlibpath_var=no
10270 ;;
10271
Wink Savillefbaaef92010-05-27 16:25:37 -070010272 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10273 # support. Future versions do this automatically, but an explicit c++rt0.o
10274 # does not break anything, and helps significantly (at the cost of a little
10275 # extra space).
10276 freebsd2.2*)
10277 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10278 hardcode_libdir_flag_spec='-R$libdir'
10279 hardcode_direct=yes
10280 hardcode_shlibpath_var=no
10281 ;;
10282
10283 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010284 freebsd2.*)
Wink Savillefbaaef92010-05-27 16:25:37 -070010285 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10286 hardcode_direct=yes
10287 hardcode_minus_L=yes
10288 hardcode_shlibpath_var=no
10289 ;;
10290
10291 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10292 freebsd* | dragonfly*)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010293 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Wink Savillefbaaef92010-05-27 16:25:37 -070010294 hardcode_libdir_flag_spec='-R$libdir'
10295 hardcode_direct=yes
10296 hardcode_shlibpath_var=no
10297 ;;
10298
10299 hpux9*)
10300 if test "$GCC" = yes; then
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010301 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'
Wink Savillefbaaef92010-05-27 16:25:37 -070010302 else
10303 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'
10304 fi
10305 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10306 hardcode_libdir_separator=:
10307 hardcode_direct=yes
10308
10309 # hardcode_minus_L: Not really in the search PATH,
10310 # but as the default location of the library.
10311 hardcode_minus_L=yes
10312 export_dynamic_flag_spec='${wl}-E'
10313 ;;
10314
10315 hpux10*)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010316 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10317 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Wink Savillefbaaef92010-05-27 16:25:37 -070010318 else
10319 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10320 fi
10321 if test "$with_gnu_ld" = no; then
10322 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Wink Savillefbaaef92010-05-27 16:25:37 -070010323 hardcode_libdir_separator=:
10324 hardcode_direct=yes
10325 hardcode_direct_absolute=yes
10326 export_dynamic_flag_spec='${wl}-E'
10327 # hardcode_minus_L: Not really in the search PATH,
10328 # but as the default location of the library.
10329 hardcode_minus_L=yes
10330 fi
10331 ;;
10332
10333 hpux11*)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010334 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
Wink Savillefbaaef92010-05-27 16:25:37 -070010335 case $host_cpu in
10336 hppa*64*)
10337 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10338 ;;
10339 ia64*)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010340 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Wink Savillefbaaef92010-05-27 16:25:37 -070010341 ;;
10342 *)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010343 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Wink Savillefbaaef92010-05-27 16:25:37 -070010344 ;;
10345 esac
10346 else
10347 case $host_cpu in
10348 hppa*64*)
10349 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10350 ;;
10351 ia64*)
10352 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10353 ;;
10354 *)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010355
10356 # Older versions of the 11.00 compiler do not understand -b yet
10357 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10359$as_echo_n "checking if $CC understands -b... " >&6; }
10360if ${lt_cv_prog_compiler__b+:} false; then :
10361 $as_echo_n "(cached) " >&6
10362else
10363 lt_cv_prog_compiler__b=no
10364 save_LDFLAGS="$LDFLAGS"
10365 LDFLAGS="$LDFLAGS -b"
10366 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10367 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10368 # The linker can only warn and ignore the option if not recognized
10369 # So say no if there are warnings
10370 if test -s conftest.err; then
10371 # Append any errors to the config.log.
10372 cat conftest.err 1>&5
10373 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10374 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10375 if diff conftest.exp conftest.er2 >/dev/null; then
10376 lt_cv_prog_compiler__b=yes
10377 fi
10378 else
10379 lt_cv_prog_compiler__b=yes
10380 fi
10381 fi
10382 $RM -r conftest*
10383 LDFLAGS="$save_LDFLAGS"
10384
10385fi
10386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10387$as_echo "$lt_cv_prog_compiler__b" >&6; }
10388
10389if test x"$lt_cv_prog_compiler__b" = xyes; then
10390 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10391else
10392 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10393fi
10394
Wink Savillefbaaef92010-05-27 16:25:37 -070010395 ;;
10396 esac
10397 fi
10398 if test "$with_gnu_ld" = no; then
10399 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10400 hardcode_libdir_separator=:
10401
10402 case $host_cpu in
10403 hppa*64*|ia64*)
10404 hardcode_direct=no
10405 hardcode_shlibpath_var=no
10406 ;;
10407 *)
10408 hardcode_direct=yes
10409 hardcode_direct_absolute=yes
10410 export_dynamic_flag_spec='${wl}-E'
10411
10412 # hardcode_minus_L: Not really in the search PATH,
10413 # but as the default location of the library.
10414 hardcode_minus_L=yes
10415 ;;
10416 esac
10417 fi
10418 ;;
10419
10420 irix5* | irix6* | nonstopux*)
10421 if test "$GCC" = yes; then
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010422 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'
Wink Savillefbaaef92010-05-27 16:25:37 -070010423 # Try to use the -exported_symbol ld option, if it does not
10424 # work, assume that -exports_file does not work either and
10425 # implicitly export all symbols.
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010426 # This should be the same for all languages, so no per-tag cache variable.
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10428$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10429if ${lt_cv_irix_exported_symbol+:} false; then :
10430 $as_echo_n "(cached) " >&6
10431else
10432 save_LDFLAGS="$LDFLAGS"
10433 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010435/* end confdefs.h. */
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010436int foo (void) { return 0; }
Wink Savillefbaaef92010-05-27 16:25:37 -070010437_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010438if ac_fn_c_try_link "$LINENO"; then :
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010439 lt_cv_irix_exported_symbol=yes
10440else
10441 lt_cv_irix_exported_symbol=no
Wink Savillefbaaef92010-05-27 16:25:37 -070010442fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010443rm -f core conftest.err conftest.$ac_objext \
10444 conftest$ac_exeext conftest.$ac_ext
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010445 LDFLAGS="$save_LDFLAGS"
10446fi
10447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10448$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10449 if test "$lt_cv_irix_exported_symbol" = yes; then
10450 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'
10451 fi
Wink Savillefbaaef92010-05-27 16:25:37 -070010452 else
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010453 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'
10454 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'
Wink Savillefbaaef92010-05-27 16:25:37 -070010455 fi
10456 archive_cmds_need_lc='no'
10457 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10458 hardcode_libdir_separator=:
10459 inherit_rpath=yes
10460 link_all_deplibs=yes
10461 ;;
10462
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010463 netbsd* | netbsdelf*-gnu)
Wink Savillefbaaef92010-05-27 16:25:37 -070010464 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10465 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10466 else
10467 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10468 fi
10469 hardcode_libdir_flag_spec='-R$libdir'
10470 hardcode_direct=yes
10471 hardcode_shlibpath_var=no
10472 ;;
10473
10474 newsos6)
10475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10476 hardcode_direct=yes
10477 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10478 hardcode_libdir_separator=:
10479 hardcode_shlibpath_var=no
10480 ;;
10481
10482 *nto* | *qnx*)
10483 ;;
10484
10485 openbsd*)
10486 if test -f /usr/libexec/ld.so; then
10487 hardcode_direct=yes
10488 hardcode_shlibpath_var=no
10489 hardcode_direct_absolute=yes
10490 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10491 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10492 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10493 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10494 export_dynamic_flag_spec='${wl}-E'
10495 else
10496 case $host_os in
10497 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10498 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10499 hardcode_libdir_flag_spec='-R$libdir'
10500 ;;
10501 *)
10502 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10503 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10504 ;;
10505 esac
10506 fi
10507 else
10508 ld_shlibs=no
10509 fi
10510 ;;
10511
10512 os2*)
10513 hardcode_libdir_flag_spec='-L$libdir'
10514 hardcode_minus_L=yes
10515 allow_undefined_flag=unsupported
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010516 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'
Wink Savillefbaaef92010-05-27 16:25:37 -070010517 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10518 ;;
10519
10520 osf3*)
10521 if test "$GCC" = yes; then
10522 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010523 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'
Wink Savillefbaaef92010-05-27 16:25:37 -070010524 else
10525 allow_undefined_flag=' -expect_unresolved \*'
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010526 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'
Wink Savillefbaaef92010-05-27 16:25:37 -070010527 fi
10528 archive_cmds_need_lc='no'
10529 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10530 hardcode_libdir_separator=:
10531 ;;
10532
10533 osf4* | osf5*) # as osf3* with the addition of -msym flag
10534 if test "$GCC" = yes; then
10535 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010536 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'
Wink Savillefbaaef92010-05-27 16:25:37 -070010537 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10538 else
10539 allow_undefined_flag=' -expect_unresolved \*'
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010540 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'
Wink Savillefbaaef92010-05-27 16:25:37 -070010541 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~
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010542 $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'
Wink Savillefbaaef92010-05-27 16:25:37 -070010543
10544 # Both c and cxx compiler support -rpath directly
10545 hardcode_libdir_flag_spec='-rpath $libdir'
10546 fi
10547 archive_cmds_need_lc='no'
10548 hardcode_libdir_separator=:
10549 ;;
10550
10551 solaris*)
10552 no_undefined_flag=' -z defs'
10553 if test "$GCC" = yes; then
10554 wlarc='${wl}'
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010555 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Wink Savillefbaaef92010-05-27 16:25:37 -070010556 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010557 $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'
Wink Savillefbaaef92010-05-27 16:25:37 -070010558 else
10559 case `$CC -V 2>&1` in
10560 *"Compilers 5.0"*)
10561 wlarc=''
10562 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10563 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10564 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10565 ;;
10566 *)
10567 wlarc='${wl}'
10568 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10569 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10570 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10571 ;;
10572 esac
10573 fi
10574 hardcode_libdir_flag_spec='-R$libdir'
10575 hardcode_shlibpath_var=no
10576 case $host_os in
10577 solaris2.[0-5] | solaris2.[0-5].*) ;;
10578 *)
10579 # The compiler driver will combine and reorder linker options,
10580 # but understands `-z linker_flag'. GCC discards it without `$wl',
10581 # but is careful enough not to reorder.
10582 # Supported since Solaris 2.6 (maybe 2.5.1?)
10583 if test "$GCC" = yes; then
10584 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10585 else
10586 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10587 fi
10588 ;;
10589 esac
10590 link_all_deplibs=yes
10591 ;;
10592
10593 sunos4*)
10594 if test "x$host_vendor" = xsequent; then
10595 # Use $CC to link under sequent, because it throws in some extra .o
10596 # files that make .init and .fini sections work.
10597 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10598 else
10599 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10600 fi
10601 hardcode_libdir_flag_spec='-L$libdir'
10602 hardcode_direct=yes
10603 hardcode_minus_L=yes
10604 hardcode_shlibpath_var=no
10605 ;;
10606
10607 sysv4)
10608 case $host_vendor in
10609 sni)
10610 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10611 hardcode_direct=yes # is this really true???
10612 ;;
10613 siemens)
10614 ## LD is ld it makes a PLAMLIB
10615 ## CC just makes a GrossModule.
10616 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10617 reload_cmds='$CC -r -o $output$reload_objs'
10618 hardcode_direct=no
10619 ;;
10620 motorola)
10621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10622 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10623 ;;
10624 esac
10625 runpath_var='LD_RUN_PATH'
10626 hardcode_shlibpath_var=no
10627 ;;
10628
10629 sysv4.3*)
10630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10631 hardcode_shlibpath_var=no
10632 export_dynamic_flag_spec='-Bexport'
10633 ;;
10634
10635 sysv4*MP*)
10636 if test -d /usr/nec; then
10637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10638 hardcode_shlibpath_var=no
10639 runpath_var=LD_RUN_PATH
10640 hardcode_runpath_var=yes
10641 ld_shlibs=yes
10642 fi
10643 ;;
10644
10645 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10646 no_undefined_flag='${wl}-z,text'
10647 archive_cmds_need_lc=no
10648 hardcode_shlibpath_var=no
10649 runpath_var='LD_RUN_PATH'
10650
10651 if test "$GCC" = yes; then
10652 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10653 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10654 else
10655 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10656 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10657 fi
10658 ;;
10659
10660 sysv5* | sco3.2v5* | sco5v6*)
10661 # Note: We can NOT use -z defs as we might desire, because we do not
10662 # link with -lc, and that would cause any symbols used from libc to
10663 # always be unresolved, which means just about no library would
10664 # ever link correctly. If we're not using GNU ld we use -z text
10665 # though, which does catch some bad symbols but isn't as heavy-handed
10666 # as -z defs.
10667 no_undefined_flag='${wl}-z,text'
10668 allow_undefined_flag='${wl}-z,nodefs'
10669 archive_cmds_need_lc=no
10670 hardcode_shlibpath_var=no
10671 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10672 hardcode_libdir_separator=':'
10673 link_all_deplibs=yes
10674 export_dynamic_flag_spec='${wl}-Bexport'
10675 runpath_var='LD_RUN_PATH'
10676
10677 if test "$GCC" = yes; then
10678 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10679 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10680 else
10681 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10682 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10683 fi
10684 ;;
10685
10686 uts4*)
10687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10688 hardcode_libdir_flag_spec='-L$libdir'
10689 hardcode_shlibpath_var=no
10690 ;;
10691
10692 *)
10693 ld_shlibs=no
10694 ;;
10695 esac
10696
10697 if test x$host_vendor = xsni; then
10698 case $host in
10699 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10700 export_dynamic_flag_spec='${wl}-Blargedynsym'
10701 ;;
10702 esac
10703 fi
10704 fi
10705
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10707$as_echo "$ld_shlibs" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070010708test "$ld_shlibs" = no && can_build_shared=no
10709
10710with_gnu_ld=$with_gnu_ld
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726#
10727# Do we need to explicitly link libc?
10728#
10729case "x$archive_cmds_need_lc" in
10730x|xyes)
10731 # Assume -lc should be added
10732 archive_cmds_need_lc=yes
10733
10734 if test "$enable_shared" = yes && test "$GCC" = yes; then
10735 case $archive_cmds in
10736 *'~'*)
10737 # FIXME: we may have to deal with multi-command sequences.
10738 ;;
10739 '$CC '*)
10740 # Test whether the compiler implicitly links with -lc since on some
10741 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10742 # to ld, don't add -lc before -lgcc.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10744$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010745if ${lt_cv_archive_cmds_need_lc+:} false; then :
10746 $as_echo_n "(cached) " >&6
10747else
10748 $RM conftest*
10749 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070010750
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Wink Savillefbaaef92010-05-27 16:25:37 -070010752 (eval $ac_compile) 2>&5
10753 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10755 test $ac_status = 0; } 2>conftest.err; then
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010756 soname=conftest
10757 lib=conftest
10758 libobjs=conftest.$ac_objext
10759 deplibs=
10760 wl=$lt_prog_compiler_wl
10761 pic_flag=$lt_prog_compiler_pic
10762 compiler_flags=-v
10763 linker_flags=-v
10764 verstring=
10765 output_objdir=.
10766 libname=conftest
10767 lt_save_allow_undefined_flag=$allow_undefined_flag
10768 allow_undefined_flag=
10769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
Wink Savillefbaaef92010-05-27 16:25:37 -070010770 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10771 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10773 test $ac_status = 0; }
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010774 then
10775 lt_cv_archive_cmds_need_lc=no
10776 else
10777 lt_cv_archive_cmds_need_lc=yes
10778 fi
10779 allow_undefined_flag=$lt_save_allow_undefined_flag
10780 else
10781 cat conftest.err 1>&5
10782 fi
10783 $RM conftest*
10784
10785fi
10786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10787$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10788 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
Wink Savillefbaaef92010-05-27 16:25:37 -070010789 ;;
10790 esac
10791 fi
10792 ;;
10793esac
10794
10795
10796
10797
10798
10799
10800
10801
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
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070010946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10947$as_echo_n "checking dynamic linker characteristics... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070010948
10949if test "$GCC" = yes; then
10950 case $host_os in
10951 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10952 *) lt_awk_arg="/^libraries:/" ;;
10953 esac
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010954 case $host_os in
10955 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10956 *) lt_sed_strip_eq="s,=/,/,g" ;;
10957 esac
10958 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10959 case $lt_search_path_spec in
10960 *\;*)
Wink Savillefbaaef92010-05-27 16:25:37 -070010961 # if the path contains ";" then we assume it to be the separator
10962 # otherwise default to the standard path separator (i.e. ":") - it is
10963 # assumed that no part of a normal pathname contains ";" but that should
10964 # okay in the real world where ";" in dirpaths is itself problematic.
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010965 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10966 ;;
10967 *)
10968 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10969 ;;
10970 esac
Wink Savillefbaaef92010-05-27 16:25:37 -070010971 # Ok, now we have the path, separated by spaces, we can step through it
10972 # and add multilib dir if necessary.
10973 lt_tmp_lt_search_path_spec=
10974 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10975 for lt_sys_path in $lt_search_path_spec; do
10976 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10977 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10978 else
10979 test -d "$lt_sys_path" && \
10980 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10981 fi
10982 done
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070010983 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Wink Savillefbaaef92010-05-27 16:25:37 -070010984BEGIN {RS=" "; FS="/|\n";} {
10985 lt_foo="";
10986 lt_count=0;
10987 for (lt_i = NF; lt_i > 0; lt_i--) {
10988 if ($lt_i != "" && $lt_i != ".") {
10989 if ($lt_i == "..") {
10990 lt_count++;
10991 } else {
10992 if (lt_count == 0) {
10993 lt_foo="/" $lt_i lt_foo;
10994 } else {
10995 lt_count--;
10996 }
10997 }
10998 }
10999 }
11000 if (lt_foo != "") { lt_freq[lt_foo]++; }
11001 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11002}'`
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011003 # AWK program above erroneously prepends '/' to C:/dos/paths
11004 # for these hosts.
11005 case $host_os in
11006 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11007 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11008 esac
11009 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
Wink Savillefbaaef92010-05-27 16:25:37 -070011010else
11011 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11012fi
11013library_names_spec=
11014libname_spec='lib$name'
11015soname_spec=
11016shrext_cmds=".so"
11017postinstall_cmds=
11018postuninstall_cmds=
11019finish_cmds=
11020finish_eval=
11021shlibpath_var=
11022shlibpath_overrides_runpath=unknown
11023version_type=none
11024dynamic_linker="$host_os ld.so"
11025sys_lib_dlsearch_path_spec="/lib /usr/lib"
11026need_lib_prefix=unknown
11027hardcode_into_libs=no
11028
11029# when you set need_version to no, make sure it does not cause -set_version
11030# flags to be left without arguments
11031need_version=unknown
11032
11033case $host_os in
11034aix3*)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011035 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070011036 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11037 shlibpath_var=LIBPATH
11038
11039 # AIX 3 has no versioning support, so we append a major version to the name.
11040 soname_spec='${libname}${release}${shared_ext}$major'
11041 ;;
11042
11043aix[4-9]*)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011044 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070011045 need_lib_prefix=no
11046 need_version=no
11047 hardcode_into_libs=yes
11048 if test "$host_cpu" = ia64; then
11049 # AIX 5 supports IA64
11050 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11051 shlibpath_var=LD_LIBRARY_PATH
11052 else
11053 # With GCC up to 2.95.x, collect2 would create an import file
11054 # for dependence libraries. The import file would start with
11055 # the line `#! .'. This would cause the generated library to
11056 # depend on `.', always an invalid library. This was fixed in
11057 # development snapshots of GCC prior to 3.0.
11058 case $host_os in
11059 aix4 | aix4.[01] | aix4.[01].*)
11060 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11061 echo ' yes '
11062 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11063 :
11064 else
11065 can_build_shared=no
11066 fi
11067 ;;
11068 esac
11069 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11070 # soname into executable. Probably we can add versioning support to
11071 # collect2, so additional links can be useful in future.
11072 if test "$aix_use_runtimelinking" = yes; then
11073 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11074 # instead of lib<name>.a to let people know that these are not
11075 # typical AIX shared libraries.
11076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11077 else
11078 # We preserve .a as extension for shared libraries through AIX4.2
11079 # and later when we are not doing run time linking.
11080 library_names_spec='${libname}${release}.a $libname.a'
11081 soname_spec='${libname}${release}${shared_ext}$major'
11082 fi
11083 shlibpath_var=LIBPATH
11084 fi
11085 ;;
11086
11087amigaos*)
11088 case $host_cpu in
11089 powerpc)
11090 # Since July 2007 AmigaOS4 officially supports .so libraries.
11091 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11093 ;;
11094 m68k)
11095 library_names_spec='$libname.ixlibrary $libname.a'
11096 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011097 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'
Wink Savillefbaaef92010-05-27 16:25:37 -070011098 ;;
11099 esac
11100 ;;
11101
11102beos*)
11103 library_names_spec='${libname}${shared_ext}'
11104 dynamic_linker="$host_os ld.so"
11105 shlibpath_var=LIBRARY_PATH
11106 ;;
11107
11108bsdi[45]*)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011109 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070011110 need_version=no
11111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11112 soname_spec='${libname}${release}${shared_ext}$major'
11113 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11114 shlibpath_var=LD_LIBRARY_PATH
11115 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11116 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11117 # the default ld.so.conf also contains /usr/contrib/lib and
11118 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11119 # libtool to hard-code these into programs
11120 ;;
11121
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011122cygwin* | mingw* | pw32* | cegcc*)
Wink Savillefbaaef92010-05-27 16:25:37 -070011123 version_type=windows
11124 shrext_cmds=".dll"
11125 need_version=no
11126 need_lib_prefix=no
11127
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011128 case $GCC,$cc_basename in
11129 yes,*)
11130 # gcc
Wink Savillefbaaef92010-05-27 16:25:37 -070011131 library_names_spec='$libname.dll.a'
11132 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11133 postinstall_cmds='base_file=`basename \${file}`~
11134 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11135 dldir=$destdir/`dirname \$dlpath`~
11136 test -d \$dldir || mkdir -p \$dldir~
11137 $install_prog $dir/$dlname \$dldir/$dlname~
11138 chmod a+x \$dldir/$dlname~
11139 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11140 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11141 fi'
11142 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11143 dlpath=$dir/\$dldll~
11144 $RM \$dlpath'
11145 shlibpath_overrides_runpath=yes
11146
11147 case $host_os in
11148 cygwin*)
11149 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11150 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011151
11152 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
Wink Savillefbaaef92010-05-27 16:25:37 -070011153 ;;
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011154 mingw* | cegcc*)
Wink Savillefbaaef92010-05-27 16:25:37 -070011155 # MinGW DLLs use traditional 'lib' prefix
11156 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Wink Savillefbaaef92010-05-27 16:25:37 -070011157 ;;
11158 pw32*)
11159 # pw32 DLLs use 'pw' prefix rather than 'lib'
11160 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11161 ;;
11162 esac
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011163 dynamic_linker='Win32 ld.exe'
11164 ;;
11165
11166 *,cl*)
11167 # Native MSVC
11168 libname_spec='$name'
11169 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11170 library_names_spec='${libname}.dll.lib'
11171
11172 case $build_os in
11173 mingw*)
11174 sys_lib_search_path_spec=
11175 lt_save_ifs=$IFS
11176 IFS=';'
11177 for lt_path in $LIB
11178 do
11179 IFS=$lt_save_ifs
11180 # Let DOS variable expansion print the short 8.3 style file name.
11181 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11182 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11183 done
11184 IFS=$lt_save_ifs
11185 # Convert to MSYS style.
11186 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11187 ;;
11188 cygwin*)
11189 # Convert to unix form, then to dos form, then back to unix form
11190 # but this time dos style (no spaces!) so that the unix form looks
11191 # like /cygdrive/c/PROGRA~1:/cygdr...
11192 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11193 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11194 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11195 ;;
11196 *)
11197 sys_lib_search_path_spec="$LIB"
11198 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11199 # It is most probably a Windows format PATH.
11200 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11201 else
11202 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11203 fi
11204 # FIXME: find the short name or the path components, as spaces are
11205 # common. (e.g. "Program Files" -> "PROGRA~1")
11206 ;;
11207 esac
11208
11209 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11210 postinstall_cmds='base_file=`basename \${file}`~
11211 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11212 dldir=$destdir/`dirname \$dlpath`~
11213 test -d \$dldir || mkdir -p \$dldir~
11214 $install_prog $dir/$dlname \$dldir/$dlname'
11215 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11216 dlpath=$dir/\$dldll~
11217 $RM \$dlpath'
11218 shlibpath_overrides_runpath=yes
11219 dynamic_linker='Win32 link.exe'
Wink Savillefbaaef92010-05-27 16:25:37 -070011220 ;;
11221
11222 *)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011223 # Assume MSVC wrapper
Wink Savillefbaaef92010-05-27 16:25:37 -070011224 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011225 dynamic_linker='Win32 ld.exe'
Wink Savillefbaaef92010-05-27 16:25:37 -070011226 ;;
11227 esac
Wink Savillefbaaef92010-05-27 16:25:37 -070011228 # FIXME: first we should search . and the directory the executable is in
11229 shlibpath_var=PATH
11230 ;;
11231
11232darwin* | rhapsody*)
11233 dynamic_linker="$host_os dyld"
11234 version_type=darwin
11235 need_lib_prefix=no
11236 need_version=no
11237 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11238 soname_spec='${libname}${release}${major}$shared_ext'
11239 shlibpath_overrides_runpath=yes
11240 shlibpath_var=DYLD_LIBRARY_PATH
11241 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11242
11243 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11244 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11245 ;;
11246
11247dgux*)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011248 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070011249 need_lib_prefix=no
11250 need_version=no
11251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11252 soname_spec='${libname}${release}${shared_ext}$major'
11253 shlibpath_var=LD_LIBRARY_PATH
11254 ;;
11255
Wink Savillefbaaef92010-05-27 16:25:37 -070011256freebsd* | dragonfly*)
11257 # DragonFly does not have aout. When/if they implement a new
11258 # versioning mechanism, adjust this.
11259 if test -x /usr/bin/objformat; then
11260 objformat=`/usr/bin/objformat`
11261 else
11262 case $host_os in
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011263 freebsd[23].*) objformat=aout ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070011264 *) objformat=elf ;;
11265 esac
11266 fi
11267 version_type=freebsd-$objformat
11268 case $version_type in
11269 freebsd-elf*)
11270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11271 need_version=no
11272 need_lib_prefix=no
11273 ;;
11274 freebsd-*)
11275 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11276 need_version=yes
11277 ;;
11278 esac
11279 shlibpath_var=LD_LIBRARY_PATH
11280 case $host_os in
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011281 freebsd2.*)
Wink Savillefbaaef92010-05-27 16:25:37 -070011282 shlibpath_overrides_runpath=yes
11283 ;;
11284 freebsd3.[01]* | freebsdelf3.[01]*)
11285 shlibpath_overrides_runpath=yes
11286 hardcode_into_libs=yes
11287 ;;
11288 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11289 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11290 shlibpath_overrides_runpath=no
11291 hardcode_into_libs=yes
11292 ;;
11293 *) # from 4.6 on, and DragonFly
11294 shlibpath_overrides_runpath=yes
11295 hardcode_into_libs=yes
11296 ;;
11297 esac
11298 ;;
11299
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011300haiku*)
11301 version_type=linux # correct to gnu/linux during the next big refactor
11302 need_lib_prefix=no
11303 need_version=no
11304 dynamic_linker="$host_os runtime_loader"
11305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11306 soname_spec='${libname}${release}${shared_ext}$major'
11307 shlibpath_var=LIBRARY_PATH
11308 shlibpath_overrides_runpath=yes
11309 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Wink Savillefbaaef92010-05-27 16:25:37 -070011310 hardcode_into_libs=yes
11311 ;;
11312
11313hpux9* | hpux10* | hpux11*)
11314 # Give a soname corresponding to the major version so that dld.sl refuses to
11315 # link against other versions.
11316 version_type=sunos
11317 need_lib_prefix=no
11318 need_version=no
11319 case $host_cpu in
11320 ia64*)
11321 shrext_cmds='.so'
11322 hardcode_into_libs=yes
11323 dynamic_linker="$host_os dld.so"
11324 shlibpath_var=LD_LIBRARY_PATH
11325 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11327 soname_spec='${libname}${release}${shared_ext}$major'
11328 if test "X$HPUX_IA64_MODE" = X32; then
11329 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11330 else
11331 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11332 fi
11333 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11334 ;;
11335 hppa*64*)
11336 shrext_cmds='.sl'
11337 hardcode_into_libs=yes
11338 dynamic_linker="$host_os dld.sl"
11339 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11340 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11342 soname_spec='${libname}${release}${shared_ext}$major'
11343 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11344 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11345 ;;
11346 *)
11347 shrext_cmds='.sl'
11348 dynamic_linker="$host_os dld.sl"
11349 shlibpath_var=SHLIB_PATH
11350 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11352 soname_spec='${libname}${release}${shared_ext}$major'
11353 ;;
11354 esac
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011355 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Wink Savillefbaaef92010-05-27 16:25:37 -070011356 postinstall_cmds='chmod 555 $lib'
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011357 # or fails outright, so override atomically:
11358 install_override_mode=555
Wink Savillefbaaef92010-05-27 16:25:37 -070011359 ;;
11360
11361interix[3-9]*)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011362 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070011363 need_lib_prefix=no
11364 need_version=no
11365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11366 soname_spec='${libname}${release}${shared_ext}$major'
11367 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11368 shlibpath_var=LD_LIBRARY_PATH
11369 shlibpath_overrides_runpath=no
11370 hardcode_into_libs=yes
11371 ;;
11372
11373irix5* | irix6* | nonstopux*)
11374 case $host_os in
11375 nonstopux*) version_type=nonstopux ;;
11376 *)
11377 if test "$lt_cv_prog_gnu_ld" = yes; then
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011378 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070011379 else
11380 version_type=irix
11381 fi ;;
11382 esac
11383 need_lib_prefix=no
11384 need_version=no
11385 soname_spec='${libname}${release}${shared_ext}$major'
11386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11387 case $host_os in
11388 irix5* | nonstopux*)
11389 libsuff= shlibsuff=
11390 ;;
11391 *)
11392 case $LD in # libtool.m4 will add one of these switches to LD
11393 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11394 libsuff= shlibsuff= libmagic=32-bit;;
11395 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11396 libsuff=32 shlibsuff=N32 libmagic=N32;;
11397 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11398 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11399 *) libsuff= shlibsuff= libmagic=never-match;;
11400 esac
11401 ;;
11402 esac
11403 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11404 shlibpath_overrides_runpath=no
11405 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11406 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11407 hardcode_into_libs=yes
11408 ;;
11409
11410# No shared lib support for Linux oldld, aout, or coff.
11411linux*oldld* | linux*aout* | linux*coff*)
11412 dynamic_linker=no
11413 ;;
11414
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011415# This must be glibc/ELF.
Jeff Davidson0ddac1f2015-01-20 10:18:05 -080011416linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011417 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070011418 need_lib_prefix=no
11419 need_version=no
11420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11421 soname_spec='${libname}${release}${shared_ext}$major'
11422 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11423 shlibpath_var=LD_LIBRARY_PATH
11424 shlibpath_overrides_runpath=no
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011425
Wink Savillefbaaef92010-05-27 16:25:37 -070011426 # Some binutils ld are patched to set DT_RUNPATH
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011427 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11428 $as_echo_n "(cached) " >&6
11429else
11430 lt_cv_shlibpath_overrides_runpath=no
11431 save_LDFLAGS=$LDFLAGS
11432 save_libdir=$libdir
11433 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11434 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070011436/* end confdefs.h. */
11437
11438int
11439main ()
11440{
11441
11442 ;
11443 return 0;
11444}
11445_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011446if ac_fn_c_try_link "$LINENO"; then :
11447 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011448 lt_cv_shlibpath_overrides_runpath=yes
Wink Savillefbaaef92010-05-27 16:25:37 -070011449fi
Wink Savillefbaaef92010-05-27 16:25:37 -070011450fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011451rm -f core conftest.err conftest.$ac_objext \
11452 conftest$ac_exeext conftest.$ac_ext
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011453 LDFLAGS=$save_LDFLAGS
11454 libdir=$save_libdir
11455
11456fi
11457
11458 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Wink Savillefbaaef92010-05-27 16:25:37 -070011459
11460 # This implies no fast_install, which is unacceptable.
11461 # Some rework will be needed to allow for fast_install
11462 # before this can be enabled.
11463 hardcode_into_libs=yes
11464
11465 # Append ld.so.conf contents to the search path
11466 if test -f /etc/ld.so.conf; then
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011467 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' ' '`
Wink Savillefbaaef92010-05-27 16:25:37 -070011468 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11469 fi
11470
11471 # We used to test for /lib/ld.so.1 and disable shared libraries on
11472 # powerpc, because MkLinux only supported shared libraries with the
11473 # GNU dynamic linker. Since this was broken with cross compilers,
11474 # most powerpc-linux boxes support dynamic linking these days and
11475 # people can always --disable-shared, the test was removed, and we
11476 # assume the GNU/Linux dynamic linker is in use.
11477 dynamic_linker='GNU/Linux ld.so'
11478 ;;
11479
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011480netbsdelf*-gnu)
11481 version_type=linux
11482 need_lib_prefix=no
11483 need_version=no
11484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11485 soname_spec='${libname}${release}${shared_ext}$major'
11486 shlibpath_var=LD_LIBRARY_PATH
11487 shlibpath_overrides_runpath=no
11488 hardcode_into_libs=yes
11489 dynamic_linker='NetBSD ld.elf_so'
11490 ;;
11491
Wink Savillefbaaef92010-05-27 16:25:37 -070011492netbsd*)
11493 version_type=sunos
11494 need_lib_prefix=no
11495 need_version=no
11496 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11498 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11499 dynamic_linker='NetBSD (a.out) ld.so'
11500 else
11501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11502 soname_spec='${libname}${release}${shared_ext}$major'
11503 dynamic_linker='NetBSD ld.elf_so'
11504 fi
11505 shlibpath_var=LD_LIBRARY_PATH
11506 shlibpath_overrides_runpath=yes
11507 hardcode_into_libs=yes
11508 ;;
11509
11510newsos6)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011511 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070011512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11513 shlibpath_var=LD_LIBRARY_PATH
11514 shlibpath_overrides_runpath=yes
11515 ;;
11516
11517*nto* | *qnx*)
11518 version_type=qnx
11519 need_lib_prefix=no
11520 need_version=no
11521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11522 soname_spec='${libname}${release}${shared_ext}$major'
11523 shlibpath_var=LD_LIBRARY_PATH
11524 shlibpath_overrides_runpath=no
11525 hardcode_into_libs=yes
11526 dynamic_linker='ldqnx.so'
11527 ;;
11528
11529openbsd*)
11530 version_type=sunos
11531 sys_lib_dlsearch_path_spec="/usr/lib"
11532 need_lib_prefix=no
11533 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11534 case $host_os in
11535 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11536 *) need_version=no ;;
11537 esac
11538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11539 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11540 shlibpath_var=LD_LIBRARY_PATH
11541 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11542 case $host_os in
11543 openbsd2.[89] | openbsd2.[89].*)
11544 shlibpath_overrides_runpath=no
11545 ;;
11546 *)
11547 shlibpath_overrides_runpath=yes
11548 ;;
11549 esac
11550 else
11551 shlibpath_overrides_runpath=yes
11552 fi
11553 ;;
11554
11555os2*)
11556 libname_spec='$name'
11557 shrext_cmds=".dll"
11558 need_lib_prefix=no
11559 library_names_spec='$libname${shared_ext} $libname.a'
11560 dynamic_linker='OS/2 ld.exe'
11561 shlibpath_var=LIBPATH
11562 ;;
11563
11564osf3* | osf4* | osf5*)
11565 version_type=osf
11566 need_lib_prefix=no
11567 need_version=no
11568 soname_spec='${libname}${release}${shared_ext}$major'
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11570 shlibpath_var=LD_LIBRARY_PATH
11571 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11572 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11573 ;;
11574
11575rdos*)
11576 dynamic_linker=no
11577 ;;
11578
11579solaris*)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011580 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070011581 need_lib_prefix=no
11582 need_version=no
11583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11584 soname_spec='${libname}${release}${shared_ext}$major'
11585 shlibpath_var=LD_LIBRARY_PATH
11586 shlibpath_overrides_runpath=yes
11587 hardcode_into_libs=yes
11588 # ldd complains unless libraries are executable
11589 postinstall_cmds='chmod +x $lib'
11590 ;;
11591
11592sunos4*)
11593 version_type=sunos
11594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11595 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11596 shlibpath_var=LD_LIBRARY_PATH
11597 shlibpath_overrides_runpath=yes
11598 if test "$with_gnu_ld" = yes; then
11599 need_lib_prefix=no
11600 fi
11601 need_version=yes
11602 ;;
11603
11604sysv4 | sysv4.3*)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011605 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070011606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11607 soname_spec='${libname}${release}${shared_ext}$major'
11608 shlibpath_var=LD_LIBRARY_PATH
11609 case $host_vendor in
11610 sni)
11611 shlibpath_overrides_runpath=no
11612 need_lib_prefix=no
11613 runpath_var=LD_RUN_PATH
11614 ;;
11615 siemens)
11616 need_lib_prefix=no
11617 ;;
11618 motorola)
11619 need_lib_prefix=no
11620 need_version=no
11621 shlibpath_overrides_runpath=no
11622 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11623 ;;
11624 esac
11625 ;;
11626
11627sysv4*MP*)
11628 if test -d /usr/nec ;then
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011629 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070011630 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11631 soname_spec='$libname${shared_ext}.$major'
11632 shlibpath_var=LD_LIBRARY_PATH
11633 fi
11634 ;;
11635
11636sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11637 version_type=freebsd-elf
11638 need_lib_prefix=no
11639 need_version=no
11640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11641 soname_spec='${libname}${release}${shared_ext}$major'
11642 shlibpath_var=LD_LIBRARY_PATH
11643 shlibpath_overrides_runpath=yes
11644 hardcode_into_libs=yes
11645 if test "$with_gnu_ld" = yes; then
11646 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11647 else
11648 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11649 case $host_os in
11650 sco3.2v5*)
11651 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11652 ;;
11653 esac
11654 fi
11655 sys_lib_dlsearch_path_spec='/usr/lib'
11656 ;;
11657
11658tpf*)
11659 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011660 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070011661 need_lib_prefix=no
11662 need_version=no
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Wink Savillefbaaef92010-05-27 16:25:37 -070011664 shlibpath_var=LD_LIBRARY_PATH
11665 shlibpath_overrides_runpath=no
11666 hardcode_into_libs=yes
11667 ;;
11668
11669uts4*)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011670 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070011671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11672 soname_spec='${libname}${release}${shared_ext}$major'
11673 shlibpath_var=LD_LIBRARY_PATH
11674 ;;
11675
11676*)
11677 dynamic_linker=no
11678 ;;
11679esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11681$as_echo "$dynamic_linker" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070011682test "$dynamic_linker" = no && can_build_shared=no
11683
11684variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11685if test "$GCC" = yes; then
11686 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11687fi
11688
11689if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11690 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11691fi
11692if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11693 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11694fi
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011782
11783
11784
11785
11786
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11788$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070011789hardcode_action=
11790if test -n "$hardcode_libdir_flag_spec" ||
11791 test -n "$runpath_var" ||
11792 test "X$hardcode_automatic" = "Xyes" ; then
11793
11794 # We can hardcode non-existent directories.
11795 if test "$hardcode_direct" != no &&
11796 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11797 # have to relink, otherwise we might link with an installed library
11798 # when we should be linking with a yet-to-be-installed one
11799 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11800 test "$hardcode_minus_L" != no; then
11801 # Linking always hardcodes the temporary library directory.
11802 hardcode_action=relink
11803 else
11804 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11805 hardcode_action=immediate
11806 fi
11807else
11808 # We cannot hardcode anything, or else we can only hardcode existing
11809 # directories.
11810 hardcode_action=unsupported
11811fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11813$as_echo "$hardcode_action" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070011814
11815if test "$hardcode_action" = relink ||
11816 test "$inherit_rpath" = yes; then
11817 # Fast installation is not supported
11818 enable_fast_install=no
11819elif test "$shlibpath_overrides_runpath" = yes ||
11820 test "$enable_shared" = no; then
11821 # Fast installation is not necessary
11822 enable_fast_install=needless
11823fi
11824
11825
11826
11827
11828
11829
11830 if test "x$enable_dlopen" != xyes; then
11831 enable_dlopen=unknown
11832 enable_dlopen_self=unknown
11833 enable_dlopen_self_static=unknown
11834else
11835 lt_cv_dlopen=no
11836 lt_cv_dlopen_libs=
11837
11838 case $host_os in
11839 beos*)
11840 lt_cv_dlopen="load_add_on"
11841 lt_cv_dlopen_libs=
11842 lt_cv_dlopen_self=yes
11843 ;;
11844
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070011845 mingw* | pw32* | cegcc*)
Wink Savillefbaaef92010-05-27 16:25:37 -070011846 lt_cv_dlopen="LoadLibrary"
11847 lt_cv_dlopen_libs=
11848 ;;
11849
11850 cygwin*)
11851 lt_cv_dlopen="dlopen"
11852 lt_cv_dlopen_libs=
11853 ;;
11854
11855 darwin*)
11856 # if libdl is installed we need to link against it
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11858$as_echo_n "checking for dlopen in -ldl... " >&6; }
11859if ${ac_cv_lib_dl_dlopen+:} false; then :
11860 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070011861else
11862 ac_check_lib_save_LIBS=$LIBS
11863LIBS="-ldl $LIBS"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070011865/* end confdefs.h. */
11866
11867/* Override any GCC internal prototype to avoid an error.
11868 Use char because int might match the return type of a GCC
11869 builtin and then its argument prototype would still apply. */
11870#ifdef __cplusplus
11871extern "C"
11872#endif
11873char dlopen ();
11874int
11875main ()
11876{
11877return dlopen ();
11878 ;
11879 return 0;
11880}
11881_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011882if ac_fn_c_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070011883 ac_cv_lib_dl_dlopen=yes
11884else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011885 ac_cv_lib_dl_dlopen=no
Wink Savillefbaaef92010-05-27 16:25:37 -070011886fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011887rm -f core conftest.err conftest.$ac_objext \
11888 conftest$ac_exeext conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070011889LIBS=$ac_check_lib_save_LIBS
11890fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11892$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11893if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070011894 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11895else
11896
11897 lt_cv_dlopen="dyld"
11898 lt_cv_dlopen_libs=
11899 lt_cv_dlopen_self=yes
11900
11901fi
11902
11903 ;;
11904
11905 *)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011906 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11907if test "x$ac_cv_func_shl_load" = xyes; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070011908 lt_cv_dlopen="shl_load"
11909else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11911$as_echo_n "checking for shl_load in -ldld... " >&6; }
11912if ${ac_cv_lib_dld_shl_load+:} false; then :
11913 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070011914else
11915 ac_check_lib_save_LIBS=$LIBS
11916LIBS="-ldld $LIBS"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070011918/* end confdefs.h. */
11919
11920/* Override any GCC internal prototype to avoid an error.
11921 Use char because int might match the return type of a GCC
11922 builtin and then its argument prototype would still apply. */
11923#ifdef __cplusplus
11924extern "C"
11925#endif
11926char shl_load ();
11927int
11928main ()
11929{
11930return shl_load ();
11931 ;
11932 return 0;
11933}
11934_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011935if ac_fn_c_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070011936 ac_cv_lib_dld_shl_load=yes
11937else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011938 ac_cv_lib_dld_shl_load=no
Wink Savillefbaaef92010-05-27 16:25:37 -070011939fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011940rm -f core conftest.err conftest.$ac_objext \
11941 conftest$ac_exeext conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070011942LIBS=$ac_check_lib_save_LIBS
11943fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11945$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11946if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070011947 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11948else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011949 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11950if test "x$ac_cv_func_dlopen" = xyes; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070011951 lt_cv_dlopen="dlopen"
11952else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11954$as_echo_n "checking for dlopen in -ldl... " >&6; }
11955if ${ac_cv_lib_dl_dlopen+:} false; then :
11956 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070011957else
11958 ac_check_lib_save_LIBS=$LIBS
11959LIBS="-ldl $LIBS"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070011961/* end confdefs.h. */
11962
11963/* Override any GCC internal prototype to avoid an error.
11964 Use char because int might match the return type of a GCC
11965 builtin and then its argument prototype would still apply. */
11966#ifdef __cplusplus
11967extern "C"
11968#endif
11969char dlopen ();
11970int
11971main ()
11972{
11973return dlopen ();
11974 ;
11975 return 0;
11976}
11977_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011978if ac_fn_c_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070011979 ac_cv_lib_dl_dlopen=yes
11980else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011981 ac_cv_lib_dl_dlopen=no
Wink Savillefbaaef92010-05-27 16:25:37 -070011982fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011983rm -f core conftest.err conftest.$ac_objext \
11984 conftest$ac_exeext conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070011985LIBS=$ac_check_lib_save_LIBS
11986fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11988$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11989if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070011990 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11991else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11993$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11994if ${ac_cv_lib_svld_dlopen+:} false; then :
11995 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070011996else
11997 ac_check_lib_save_LIBS=$LIBS
11998LIBS="-lsvld $LIBS"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070011999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070012000/* end confdefs.h. */
12001
12002/* Override any GCC internal prototype to avoid an error.
12003 Use char because int might match the return type of a GCC
12004 builtin and then its argument prototype would still apply. */
12005#ifdef __cplusplus
12006extern "C"
12007#endif
12008char dlopen ();
12009int
12010main ()
12011{
12012return dlopen ();
12013 ;
12014 return 0;
12015}
12016_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012017if ac_fn_c_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070012018 ac_cv_lib_svld_dlopen=yes
12019else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012020 ac_cv_lib_svld_dlopen=no
Wink Savillefbaaef92010-05-27 16:25:37 -070012021fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012022rm -f core conftest.err conftest.$ac_objext \
12023 conftest$ac_exeext conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070012024LIBS=$ac_check_lib_save_LIBS
12025fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12027$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12028if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070012029 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12030else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12032$as_echo_n "checking for dld_link in -ldld... " >&6; }
12033if ${ac_cv_lib_dld_dld_link+:} false; then :
12034 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070012035else
12036 ac_check_lib_save_LIBS=$LIBS
12037LIBS="-ldld $LIBS"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070012039/* end confdefs.h. */
12040
12041/* Override any GCC internal prototype to avoid an error.
12042 Use char because int might match the return type of a GCC
12043 builtin and then its argument prototype would still apply. */
12044#ifdef __cplusplus
12045extern "C"
12046#endif
12047char dld_link ();
12048int
12049main ()
12050{
12051return dld_link ();
12052 ;
12053 return 0;
12054}
12055_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012056if ac_fn_c_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070012057 ac_cv_lib_dld_dld_link=yes
12058else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012059 ac_cv_lib_dld_dld_link=no
Wink Savillefbaaef92010-05-27 16:25:37 -070012060fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012061rm -f core conftest.err conftest.$ac_objext \
12062 conftest$ac_exeext conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070012063LIBS=$ac_check_lib_save_LIBS
12064fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12066$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12067if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070012068 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12069fi
12070
12071
12072fi
12073
12074
12075fi
12076
12077
12078fi
12079
12080
12081fi
12082
12083
12084fi
12085
12086 ;;
12087 esac
12088
12089 if test "x$lt_cv_dlopen" != xno; then
12090 enable_dlopen=yes
12091 else
12092 enable_dlopen=no
12093 fi
12094
12095 case $lt_cv_dlopen in
12096 dlopen)
12097 save_CPPFLAGS="$CPPFLAGS"
12098 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12099
12100 save_LDFLAGS="$LDFLAGS"
12101 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12102
12103 save_LIBS="$LIBS"
12104 LIBS="$lt_cv_dlopen_libs $LIBS"
12105
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12107$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12108if ${lt_cv_dlopen_self+:} false; then :
12109 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070012110else
12111 if test "$cross_compiling" = yes; then :
12112 lt_cv_dlopen_self=cross
12113else
12114 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12115 lt_status=$lt_dlunknown
12116 cat > conftest.$ac_ext <<_LT_EOF
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070012117#line $LINENO "configure"
Wink Savillefbaaef92010-05-27 16:25:37 -070012118#include "confdefs.h"
12119
12120#if HAVE_DLFCN_H
12121#include <dlfcn.h>
12122#endif
12123
12124#include <stdio.h>
12125
12126#ifdef RTLD_GLOBAL
12127# define LT_DLGLOBAL RTLD_GLOBAL
12128#else
12129# ifdef DL_GLOBAL
12130# define LT_DLGLOBAL DL_GLOBAL
12131# else
12132# define LT_DLGLOBAL 0
12133# endif
12134#endif
12135
12136/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12137 find out it does not work in some platform. */
12138#ifndef LT_DLLAZY_OR_NOW
12139# ifdef RTLD_LAZY
12140# define LT_DLLAZY_OR_NOW RTLD_LAZY
12141# else
12142# ifdef DL_LAZY
12143# define LT_DLLAZY_OR_NOW DL_LAZY
12144# else
12145# ifdef RTLD_NOW
12146# define LT_DLLAZY_OR_NOW RTLD_NOW
12147# else
12148# ifdef DL_NOW
12149# define LT_DLLAZY_OR_NOW DL_NOW
12150# else
12151# define LT_DLLAZY_OR_NOW 0
12152# endif
12153# endif
12154# endif
12155# endif
12156#endif
12157
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070012158/* When -fvisbility=hidden is used, assume the code has been annotated
12159 correspondingly for the symbols needed. */
12160#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12161int fnord () __attribute__((visibility("default")));
Wink Savillefbaaef92010-05-27 16:25:37 -070012162#endif
12163
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070012164int fnord () { return 42; }
Wink Savillefbaaef92010-05-27 16:25:37 -070012165int main ()
12166{
12167 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12168 int status = $lt_dlunknown;
12169
12170 if (self)
12171 {
12172 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070012173 else
12174 {
12175 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12176 else puts (dlerror ());
12177 }
Wink Savillefbaaef92010-05-27 16:25:37 -070012178 /* dlclose (self); */
12179 }
12180 else
12181 puts (dlerror ());
12182
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070012183 return status;
Wink Savillefbaaef92010-05-27 16:25:37 -070012184}
12185_LT_EOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Wink Savillefbaaef92010-05-27 16:25:37 -070012187 (eval $ac_link) 2>&5
12188 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12190 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Wink Savillefbaaef92010-05-27 16:25:37 -070012191 (./conftest; exit; ) >&5 2>/dev/null
12192 lt_status=$?
12193 case x$lt_status in
12194 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12195 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12196 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12197 esac
12198 else :
12199 # compilation failed
12200 lt_cv_dlopen_self=no
12201 fi
12202fi
12203rm -fr conftest*
12204
12205
12206fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12208$as_echo "$lt_cv_dlopen_self" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070012209
12210 if test "x$lt_cv_dlopen_self" = xyes; then
12211 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12213$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12214if ${lt_cv_dlopen_self_static+:} false; then :
12215 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070012216else
12217 if test "$cross_compiling" = yes; then :
12218 lt_cv_dlopen_self_static=cross
12219else
12220 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12221 lt_status=$lt_dlunknown
12222 cat > conftest.$ac_ext <<_LT_EOF
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070012223#line $LINENO "configure"
Wink Savillefbaaef92010-05-27 16:25:37 -070012224#include "confdefs.h"
12225
12226#if HAVE_DLFCN_H
12227#include <dlfcn.h>
12228#endif
12229
12230#include <stdio.h>
12231
12232#ifdef RTLD_GLOBAL
12233# define LT_DLGLOBAL RTLD_GLOBAL
12234#else
12235# ifdef DL_GLOBAL
12236# define LT_DLGLOBAL DL_GLOBAL
12237# else
12238# define LT_DLGLOBAL 0
12239# endif
12240#endif
12241
12242/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12243 find out it does not work in some platform. */
12244#ifndef LT_DLLAZY_OR_NOW
12245# ifdef RTLD_LAZY
12246# define LT_DLLAZY_OR_NOW RTLD_LAZY
12247# else
12248# ifdef DL_LAZY
12249# define LT_DLLAZY_OR_NOW DL_LAZY
12250# else
12251# ifdef RTLD_NOW
12252# define LT_DLLAZY_OR_NOW RTLD_NOW
12253# else
12254# ifdef DL_NOW
12255# define LT_DLLAZY_OR_NOW DL_NOW
12256# else
12257# define LT_DLLAZY_OR_NOW 0
12258# endif
12259# endif
12260# endif
12261# endif
12262#endif
12263
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070012264/* When -fvisbility=hidden is used, assume the code has been annotated
12265 correspondingly for the symbols needed. */
12266#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12267int fnord () __attribute__((visibility("default")));
Wink Savillefbaaef92010-05-27 16:25:37 -070012268#endif
12269
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070012270int fnord () { return 42; }
Wink Savillefbaaef92010-05-27 16:25:37 -070012271int main ()
12272{
12273 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12274 int status = $lt_dlunknown;
12275
12276 if (self)
12277 {
12278 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070012279 else
12280 {
12281 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12282 else puts (dlerror ());
12283 }
Wink Savillefbaaef92010-05-27 16:25:37 -070012284 /* dlclose (self); */
12285 }
12286 else
12287 puts (dlerror ());
12288
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070012289 return status;
Wink Savillefbaaef92010-05-27 16:25:37 -070012290}
12291_LT_EOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Wink Savillefbaaef92010-05-27 16:25:37 -070012293 (eval $ac_link) 2>&5
12294 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12296 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Wink Savillefbaaef92010-05-27 16:25:37 -070012297 (./conftest; exit; ) >&5 2>/dev/null
12298 lt_status=$?
12299 case x$lt_status in
12300 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12301 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12302 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12303 esac
12304 else :
12305 # compilation failed
12306 lt_cv_dlopen_self_static=no
12307 fi
12308fi
12309rm -fr conftest*
12310
12311
12312fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12314$as_echo "$lt_cv_dlopen_self_static" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070012315 fi
12316
12317 CPPFLAGS="$save_CPPFLAGS"
12318 LDFLAGS="$save_LDFLAGS"
12319 LIBS="$save_LIBS"
12320 ;;
12321 esac
12322
12323 case $lt_cv_dlopen_self in
12324 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12325 *) enable_dlopen_self=unknown ;;
12326 esac
12327
12328 case $lt_cv_dlopen_self_static in
12329 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12330 *) enable_dlopen_self_static=unknown ;;
12331 esac
12332fi
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350striplib=
12351old_striplib=
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12353$as_echo_n "checking whether stripping libraries is possible... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070012354if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12355 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12356 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12358$as_echo "yes" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070012359else
12360# FIXME - insert some real tests, host_os isn't really good enough
12361 case $host_os in
12362 darwin*)
12363 if test -n "$STRIP" ; then
12364 striplib="$STRIP -x"
12365 old_striplib="$STRIP -S"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12367$as_echo "yes" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070012368 else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12370$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070012371 fi
12372 ;;
12373 *)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12375$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070012376 ;;
12377 esac
12378fi
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391 # Report which library types will actually be built
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12393$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12395$as_echo "$can_build_shared" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070012396
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12398$as_echo_n "checking whether to build shared libraries... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070012399 test "$can_build_shared" = "no" && enable_shared=no
12400
12401 # On AIX, shared libraries and static libraries use the same namespace, and
12402 # are all built from PIC.
12403 case $host_os in
12404 aix3*)
12405 test "$enable_shared" = yes && enable_static=no
12406 if test -n "$RANLIB"; then
12407 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12408 postinstall_cmds='$RANLIB $lib'
12409 fi
12410 ;;
12411
12412 aix[4-9]*)
12413 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12414 test "$enable_shared" = yes && enable_static=no
12415 fi
12416 ;;
12417 esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12419$as_echo "$enable_shared" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070012420
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12422$as_echo_n "checking whether to build static libraries... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070012423 # Make sure either enable_shared or enable_static is yes.
12424 test "$enable_shared" = yes || enable_static=yes
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12426$as_echo "$enable_static" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070012427
12428
12429
12430
12431fi
12432ac_ext=cpp
12433ac_cpp='$CXXCPP $CPPFLAGS'
12434ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12435ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12436ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12437
12438CC="$lt_save_CC"
12439
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070012440 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12441 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12442 (test "X$CXX" != "Xg++"))) ; then
12443 ac_ext=cpp
12444ac_cpp='$CXXCPP $CPPFLAGS'
12445ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12446ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12447ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12449$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12450if test -z "$CXXCPP"; then
12451 if ${ac_cv_prog_CXXCPP+:} false; then :
12452 $as_echo_n "(cached) " >&6
12453else
12454 # Double quotes because CXXCPP needs to be expanded
12455 for CXXCPP in "$CXX -E" "/lib/cpp"
12456 do
12457 ac_preproc_ok=false
12458for ac_cxx_preproc_warn_flag in '' yes
12459do
12460 # Use a header file that comes with gcc, so configuring glibc
12461 # with a fresh cross-compiler works.
12462 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12463 # <limits.h> exists even on freestanding compilers.
12464 # On the NeXT, cc -E runs the code through the compiler's parser,
12465 # not just through cpp. "Syntax error" is here to catch this case.
12466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467/* end confdefs.h. */
12468#ifdef __STDC__
12469# include <limits.h>
12470#else
12471# include <assert.h>
12472#endif
12473 Syntax error
12474_ACEOF
12475if ac_fn_cxx_try_cpp "$LINENO"; then :
12476
12477else
12478 # Broken: fails on valid input.
12479continue
12480fi
12481rm -f conftest.err conftest.i conftest.$ac_ext
12482
12483 # OK, works on sane cases. Now check whether nonexistent headers
12484 # can be detected and how.
12485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486/* end confdefs.h. */
12487#include <ac_nonexistent.h>
12488_ACEOF
12489if ac_fn_cxx_try_cpp "$LINENO"; then :
12490 # Broken: success on invalid input.
12491continue
12492else
12493 # Passes both tests.
12494ac_preproc_ok=:
12495break
12496fi
12497rm -f conftest.err conftest.i conftest.$ac_ext
12498
12499done
12500# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12501rm -f conftest.i conftest.err conftest.$ac_ext
12502if $ac_preproc_ok; then :
12503 break
12504fi
12505
12506 done
12507 ac_cv_prog_CXXCPP=$CXXCPP
12508
12509fi
12510 CXXCPP=$ac_cv_prog_CXXCPP
12511else
12512 ac_cv_prog_CXXCPP=$CXXCPP
12513fi
12514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12515$as_echo "$CXXCPP" >&6; }
12516ac_preproc_ok=false
12517for ac_cxx_preproc_warn_flag in '' yes
12518do
12519 # Use a header file that comes with gcc, so configuring glibc
12520 # with a fresh cross-compiler works.
12521 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12522 # <limits.h> exists even on freestanding compilers.
12523 # On the NeXT, cc -E runs the code through the compiler's parser,
12524 # not just through cpp. "Syntax error" is here to catch this case.
12525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526/* end confdefs.h. */
12527#ifdef __STDC__
12528# include <limits.h>
12529#else
12530# include <assert.h>
12531#endif
12532 Syntax error
12533_ACEOF
12534if ac_fn_cxx_try_cpp "$LINENO"; then :
12535
12536else
12537 # Broken: fails on valid input.
12538continue
12539fi
12540rm -f conftest.err conftest.i conftest.$ac_ext
12541
12542 # OK, works on sane cases. Now check whether nonexistent headers
12543 # can be detected and how.
12544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12545/* end confdefs.h. */
12546#include <ac_nonexistent.h>
12547_ACEOF
12548if ac_fn_cxx_try_cpp "$LINENO"; then :
12549 # Broken: success on invalid input.
12550continue
12551else
12552 # Passes both tests.
12553ac_preproc_ok=:
12554break
12555fi
12556rm -f conftest.err conftest.i conftest.$ac_ext
12557
12558done
12559# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12560rm -f conftest.i conftest.err conftest.$ac_ext
12561if $ac_preproc_ok; then :
12562
12563else
12564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12565$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12566as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12567See \`config.log' for more details" "$LINENO" 5; }
12568fi
12569
12570ac_ext=cpp
12571ac_cpp='$CXXCPP $CPPFLAGS'
12572ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12573ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12574ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12575
12576else
12577 _lt_caught_CXX_error=yes
12578fi
Wink Savillefbaaef92010-05-27 16:25:37 -070012579
12580ac_ext=cpp
12581ac_cpp='$CXXCPP $CPPFLAGS'
12582ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12583ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12584ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12585
12586archive_cmds_need_lc_CXX=no
12587allow_undefined_flag_CXX=
12588always_export_symbols_CXX=no
12589archive_expsym_cmds_CXX=
12590compiler_needs_object_CXX=no
12591export_dynamic_flag_spec_CXX=
12592hardcode_direct_CXX=no
12593hardcode_direct_absolute_CXX=no
12594hardcode_libdir_flag_spec_CXX=
Wink Savillefbaaef92010-05-27 16:25:37 -070012595hardcode_libdir_separator_CXX=
12596hardcode_minus_L_CXX=no
12597hardcode_shlibpath_var_CXX=unsupported
12598hardcode_automatic_CXX=no
12599inherit_rpath_CXX=no
12600module_cmds_CXX=
12601module_expsym_cmds_CXX=
12602link_all_deplibs_CXX=unknown
12603old_archive_cmds_CXX=$old_archive_cmds
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070012604reload_flag_CXX=$reload_flag
12605reload_cmds_CXX=$reload_cmds
Wink Savillefbaaef92010-05-27 16:25:37 -070012606no_undefined_flag_CXX=
12607whole_archive_flag_spec_CXX=
12608enable_shared_with_static_runtimes_CXX=no
12609
12610# Source file extension for C++ test sources.
12611ac_ext=cpp
12612
12613# Object file extension for compiled C++ test sources.
12614objext=o
12615objext_CXX=$objext
12616
12617# No sense in running all these tests if we already determined that
12618# the CXX compiler isn't working. Some variables (like enable_shared)
12619# are currently assumed to apply to all compilers on this platform,
12620# and will be corrupted by setting them based on a non-working compiler.
12621if test "$_lt_caught_CXX_error" != yes; then
12622 # Code to be used in simple compile tests
12623 lt_simple_compile_test_code="int some_variable = 0;"
12624
12625 # Code to be used in simple link tests
12626 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12627
12628 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12629
12630
12631
12632
12633
12634
12635# If no C compiler was specified, use CC.
12636LTCC=${LTCC-"$CC"}
12637
12638# If no C compiler flags were specified, use CFLAGS.
12639LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12640
12641# Allow CC to be a program name with arguments.
12642compiler=$CC
12643
12644
12645 # save warnings/boilerplate of simple test code
12646 ac_outfile=conftest.$ac_objext
12647echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12648eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12649_lt_compiler_boilerplate=`cat conftest.err`
12650$RM conftest*
12651
12652 ac_outfile=conftest.$ac_objext
12653echo "$lt_simple_link_test_code" >conftest.$ac_ext
12654eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12655_lt_linker_boilerplate=`cat conftest.err`
12656$RM -r conftest*
12657
12658
12659 # Allow CC to be a program name with arguments.
12660 lt_save_CC=$CC
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070012661 lt_save_CFLAGS=$CFLAGS
Wink Savillefbaaef92010-05-27 16:25:37 -070012662 lt_save_LD=$LD
12663 lt_save_GCC=$GCC
12664 GCC=$GXX
12665 lt_save_with_gnu_ld=$with_gnu_ld
12666 lt_save_path_LD=$lt_cv_path_LD
12667 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12668 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12669 else
12670 $as_unset lt_cv_prog_gnu_ld
12671 fi
12672 if test -n "${lt_cv_path_LDCXX+set}"; then
12673 lt_cv_path_LD=$lt_cv_path_LDCXX
12674 else
12675 $as_unset lt_cv_path_LD
12676 fi
12677 test -z "${LDCXX+set}" || LD=$LDCXX
12678 CC=${CXX-"c++"}
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070012679 CFLAGS=$CXXFLAGS
Wink Savillefbaaef92010-05-27 16:25:37 -070012680 compiler=$CC
12681 compiler_CXX=$CC
12682 for cc_temp in $compiler""; do
12683 case $cc_temp in
12684 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12685 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12686 \-*) ;;
12687 *) break;;
12688 esac
12689done
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070012690cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Wink Savillefbaaef92010-05-27 16:25:37 -070012691
12692
12693 if test -n "$compiler"; then
12694 # We don't want -fno-exception when compiling C++ code, so set the
12695 # no_builtin_flag separately
12696 if test "$GXX" = yes; then
12697 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12698 else
12699 lt_prog_compiler_no_builtin_flag_CXX=
12700 fi
12701
12702 if test "$GXX" = yes; then
12703 # Set up default GNU C++ configuration
12704
12705
12706
12707# Check whether --with-gnu-ld was given.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012708if test "${with_gnu_ld+set}" = set; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070012709 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12710else
12711 with_gnu_ld=no
12712fi
12713
12714ac_prog=ld
12715if test "$GCC" = yes; then
12716 # Check if gcc -print-prog-name=ld gives a path.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12718$as_echo_n "checking for ld used by $CC... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070012719 case $host in
12720 *-*-mingw*)
12721 # gcc leaves a trailing carriage return which upsets mingw
12722 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12723 *)
12724 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12725 esac
12726 case $ac_prog in
12727 # Accept absolute paths.
12728 [\\/]* | ?:[\\/]*)
12729 re_direlt='/[^/][^/]*/\.\./'
12730 # Canonicalize the pathname of ld
12731 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12732 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12733 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12734 done
12735 test -z "$LD" && LD="$ac_prog"
12736 ;;
12737 "")
12738 # If it fails, then pretend we aren't using GCC.
12739 ac_prog=ld
12740 ;;
12741 *)
12742 # If it is relative, then search for the first ld in PATH.
12743 with_gnu_ld=unknown
12744 ;;
12745 esac
12746elif test "$with_gnu_ld" = yes; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12748$as_echo_n "checking for GNU ld... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070012749else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12751$as_echo_n "checking for non-GNU ld... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070012752fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012753if ${lt_cv_path_LD+:} false; then :
12754 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070012755else
12756 if test -z "$LD"; then
12757 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12758 for ac_dir in $PATH; do
12759 IFS="$lt_save_ifs"
12760 test -z "$ac_dir" && ac_dir=.
12761 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12762 lt_cv_path_LD="$ac_dir/$ac_prog"
12763 # Check to see if the program is GNU ld. I'd rather use --version,
12764 # but apparently some variants of GNU ld only accept -v.
12765 # Break only if it was the GNU/non-GNU ld that we prefer.
12766 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12767 *GNU* | *'with BFD'*)
12768 test "$with_gnu_ld" != no && break
12769 ;;
12770 *)
12771 test "$with_gnu_ld" != yes && break
12772 ;;
12773 esac
12774 fi
12775 done
12776 IFS="$lt_save_ifs"
12777else
12778 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12779fi
12780fi
12781
12782LD="$lt_cv_path_LD"
12783if test -n "$LD"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12785$as_echo "$LD" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070012786else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12788$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070012789fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012790test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12792$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12793if ${lt_cv_prog_gnu_ld+:} false; then :
12794 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070012795else
12796 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12797case `$LD -v 2>&1 </dev/null` in
12798*GNU* | *'with BFD'*)
12799 lt_cv_prog_gnu_ld=yes
12800 ;;
12801*)
12802 lt_cv_prog_gnu_ld=no
12803 ;;
12804esac
12805fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12807$as_echo "$lt_cv_prog_gnu_ld" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070012808with_gnu_ld=$lt_cv_prog_gnu_ld
12809
12810
12811
12812
12813
12814
12815
12816 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12817 # archiving commands below assume that GNU ld is being used.
12818 if test "$with_gnu_ld" = yes; then
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070012819 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12820 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'
Wink Savillefbaaef92010-05-27 16:25:37 -070012821
12822 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12823 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12824
12825 # If archive_cmds runs LD, not CC, wlarc should be empty
12826 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12827 # investigate it a little bit more. (MM)
12828 wlarc='${wl}'
12829
12830 # ancient GNU ld didn't support --whole-archive et. al.
12831 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12832 $GREP 'no-whole-archive' > /dev/null; then
12833 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12834 else
12835 whole_archive_flag_spec_CXX=
12836 fi
12837 else
12838 with_gnu_ld=no
12839 wlarc=
12840
12841 # A generic and very simple default shared library creation
12842 # command for GNU C++ for the case where it uses the native
12843 # linker, instead of GNU ld. If possible, this setting should
12844 # overridden to take advantage of the native linker features on
12845 # the platform it is being used on.
12846 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12847 fi
12848
12849 # Commands to make compiler produce verbose output that lists
12850 # what "hidden" libraries, object files and flags are used when
12851 # linking a shared library.
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070012852 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
Wink Savillefbaaef92010-05-27 16:25:37 -070012853
12854 else
12855 GXX=no
12856 with_gnu_ld=no
12857 wlarc=
12858 fi
12859
12860 # PORTME: fill in a description of your system's C++ link characteristics
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12862$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070012863 ld_shlibs_CXX=yes
12864 case $host_os in
12865 aix3*)
12866 # FIXME: insert proper C++ library support
12867 ld_shlibs_CXX=no
12868 ;;
12869 aix[4-9]*)
12870 if test "$host_cpu" = ia64; then
12871 # On IA64, the linker does run time linking by default, so we don't
12872 # have to do anything special.
12873 aix_use_runtimelinking=no
12874 exp_sym_flag='-Bexport'
12875 no_entry_flag=""
12876 else
12877 aix_use_runtimelinking=no
12878
12879 # Test if we are trying to use run time linking or normal
12880 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12881 # need to do runtime linking.
12882 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12883 for ld_flag in $LDFLAGS; do
12884 case $ld_flag in
12885 *-brtl*)
12886 aix_use_runtimelinking=yes
12887 break
12888 ;;
12889 esac
12890 done
12891 ;;
12892 esac
12893
12894 exp_sym_flag='-bexport'
12895 no_entry_flag='-bnoentry'
12896 fi
12897
12898 # When large executables or shared objects are built, AIX ld can
12899 # have problems creating the table of contents. If linking a library
12900 # or program results in "error TOC overflow" add -mminimal-toc to
12901 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12902 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12903
12904 archive_cmds_CXX=''
12905 hardcode_direct_CXX=yes
12906 hardcode_direct_absolute_CXX=yes
12907 hardcode_libdir_separator_CXX=':'
12908 link_all_deplibs_CXX=yes
12909 file_list_spec_CXX='${wl}-f,'
12910
12911 if test "$GXX" = yes; then
12912 case $host_os in aix4.[012]|aix4.[012].*)
12913 # We only want to do this on AIX 4.2 and lower, the check
12914 # below for broken collect2 doesn't work under 4.3+
12915 collect2name=`${CC} -print-prog-name=collect2`
12916 if test -f "$collect2name" &&
12917 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12918 then
12919 # We have reworked collect2
12920 :
12921 else
12922 # We have old collect2
12923 hardcode_direct_CXX=unsupported
12924 # It fails to find uninstalled libraries when the uninstalled
12925 # path is not listed in the libpath. Setting hardcode_minus_L
12926 # to unsupported forces relinking
12927 hardcode_minus_L_CXX=yes
12928 hardcode_libdir_flag_spec_CXX='-L$libdir'
12929 hardcode_libdir_separator_CXX=
12930 fi
12931 esac
12932 shared_flag='-shared'
12933 if test "$aix_use_runtimelinking" = yes; then
12934 shared_flag="$shared_flag "'${wl}-G'
12935 fi
12936 else
12937 # not using gcc
12938 if test "$host_cpu" = ia64; then
12939 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12940 # chokes on -Wl,-G. The following line is correct:
12941 shared_flag='-G'
12942 else
12943 if test "$aix_use_runtimelinking" = yes; then
12944 shared_flag='${wl}-G'
12945 else
12946 shared_flag='${wl}-bM:SRE'
12947 fi
12948 fi
12949 fi
12950
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070012951 export_dynamic_flag_spec_CXX='${wl}-bexpall'
Wink Savillefbaaef92010-05-27 16:25:37 -070012952 # It seems that -bexpall does not export symbols beginning with
12953 # underscore (_), so it is better to generate a list of symbols to
12954 # export.
12955 always_export_symbols_CXX=yes
12956 if test "$aix_use_runtimelinking" = yes; then
12957 # Warning - without using the other runtime loading flags (-brtl),
12958 # -berok will link without error, but may produce a broken library.
12959 allow_undefined_flag_CXX='-berok'
12960 # Determine the default libpath from the value encoded in an empty
12961 # executable.
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070012962 if test "${lt_cv_aix_libpath+set}" = set; then
12963 aix_libpath=$lt_cv_aix_libpath
12964else
12965 if ${lt_cv_aix_libpath__CXX+:} false; then :
12966 $as_echo_n "(cached) " >&6
12967else
12968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070012969/* end confdefs.h. */
12970
12971int
12972main ()
12973{
12974
12975 ;
12976 return 0;
12977}
12978_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012979if ac_fn_cxx_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070012980
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070012981 lt_aix_libpath_sed='
12982 /Import File Strings/,/^$/ {
12983 /^0/ {
12984 s/^0 *\([^ ]*\) *$/\1/
12985 p
12986 }
12987 }'
12988 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12989 # Check for a 64-bit object if we didn't find anything.
12990 if test -z "$lt_cv_aix_libpath__CXX"; then
12991 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12992 fi
Wink Savillefbaaef92010-05-27 16:25:37 -070012993fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070012994rm -f core conftest.err conftest.$ac_objext \
12995 conftest$ac_exeext conftest.$ac_ext
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070012996 if test -z "$lt_cv_aix_libpath__CXX"; then
12997 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12998 fi
12999
13000fi
13001
13002 aix_libpath=$lt_cv_aix_libpath__CXX
13003fi
Wink Savillefbaaef92010-05-27 16:25:37 -070013004
13005 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13006
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013007 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"
Wink Savillefbaaef92010-05-27 16:25:37 -070013008 else
13009 if test "$host_cpu" = ia64; then
13010 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13011 allow_undefined_flag_CXX="-z nodefs"
13012 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"
13013 else
13014 # Determine the default libpath from the value encoded in an
13015 # empty executable.
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013016 if test "${lt_cv_aix_libpath+set}" = set; then
13017 aix_libpath=$lt_cv_aix_libpath
13018else
13019 if ${lt_cv_aix_libpath__CXX+:} false; then :
13020 $as_echo_n "(cached) " >&6
13021else
13022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070013023/* end confdefs.h. */
13024
13025int
13026main ()
13027{
13028
13029 ;
13030 return 0;
13031}
13032_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013033if ac_fn_cxx_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070013034
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013035 lt_aix_libpath_sed='
13036 /Import File Strings/,/^$/ {
13037 /^0/ {
13038 s/^0 *\([^ ]*\) *$/\1/
13039 p
13040 }
13041 }'
13042 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13043 # Check for a 64-bit object if we didn't find anything.
13044 if test -z "$lt_cv_aix_libpath__CXX"; then
13045 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13046 fi
Wink Savillefbaaef92010-05-27 16:25:37 -070013047fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013048rm -f core conftest.err conftest.$ac_objext \
13049 conftest$ac_exeext conftest.$ac_ext
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013050 if test -z "$lt_cv_aix_libpath__CXX"; then
13051 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13052 fi
13053
13054fi
13055
13056 aix_libpath=$lt_cv_aix_libpath__CXX
13057fi
Wink Savillefbaaef92010-05-27 16:25:37 -070013058
13059 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13060 # Warning - without using the other run time loading flags,
13061 # -berok will link without error, but may produce a broken library.
13062 no_undefined_flag_CXX=' ${wl}-bernotok'
13063 allow_undefined_flag_CXX=' ${wl}-berok'
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013064 if test "$with_gnu_ld" = yes; then
13065 # We only use this code for GNU lds that support --whole-archive.
13066 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13067 else
13068 # Exported symbols can be pulled into shared objects from archives
13069 whole_archive_flag_spec_CXX='$convenience'
13070 fi
Wink Savillefbaaef92010-05-27 16:25:37 -070013071 archive_cmds_need_lc_CXX=yes
13072 # This is similar to how AIX traditionally builds its shared
13073 # libraries.
13074 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'
13075 fi
13076 fi
13077 ;;
13078
13079 beos*)
13080 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13081 allow_undefined_flag_CXX=unsupported
13082 # Joseph Beckenbach <[email protected]> says some releases of gcc
13083 # support --undefined. This deserves some investigation. FIXME
13084 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13085 else
13086 ld_shlibs_CXX=no
13087 fi
13088 ;;
13089
13090 chorus*)
13091 case $cc_basename in
13092 *)
13093 # FIXME: insert proper C++ library support
13094 ld_shlibs_CXX=no
13095 ;;
13096 esac
13097 ;;
13098
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013099 cygwin* | mingw* | pw32* | cegcc*)
13100 case $GXX,$cc_basename in
13101 ,cl* | no,cl*)
13102 # Native MSVC
13103 # hardcode_libdir_flag_spec is actually meaningless, as there is
13104 # no search path for DLLs.
13105 hardcode_libdir_flag_spec_CXX=' '
13106 allow_undefined_flag_CXX=unsupported
13107 always_export_symbols_CXX=yes
13108 file_list_spec_CXX='@'
13109 # Tell ltmain to make .lib files, not .a files.
13110 libext=lib
13111 # Tell ltmain to make .dll files, not .so files.
13112 shrext_cmds=".dll"
13113 # FIXME: Setting linknames here is a bad hack.
13114 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13115 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13116 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13117 else
13118 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13119 fi~
13120 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13121 linknames='
13122 # The linker will not automatically build a static lib if we build a DLL.
13123 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13124 enable_shared_with_static_runtimes_CXX=yes
13125 # Don't use ranlib
13126 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13127 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13128 lt_tool_outputfile="@TOOL_OUTPUT@"~
13129 case $lt_outputfile in
13130 *.exe|*.EXE) ;;
13131 *)
13132 lt_outputfile="$lt_outputfile.exe"
13133 lt_tool_outputfile="$lt_tool_outputfile.exe"
13134 ;;
13135 esac~
13136 func_to_tool_file "$lt_outputfile"~
13137 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13138 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13139 $RM "$lt_outputfile.manifest";
13140 fi'
13141 ;;
13142 *)
13143 # g++
13144 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13145 # as there is no search path for DLLs.
13146 hardcode_libdir_flag_spec_CXX='-L$libdir'
13147 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13148 allow_undefined_flag_CXX=unsupported
13149 always_export_symbols_CXX=no
13150 enable_shared_with_static_runtimes_CXX=yes
Wink Savillefbaaef92010-05-27 16:25:37 -070013151
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013152 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13153 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'
13154 # If the export-symbols file already is a .def file (1st line
13155 # is EXPORTS), use it as is; otherwise, prepend...
13156 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13157 cp $export_symbols $output_objdir/$soname.def;
13158 else
13159 echo EXPORTS > $output_objdir/$soname.def;
13160 cat $export_symbols >> $output_objdir/$soname.def;
13161 fi~
13162 $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'
13163 else
13164 ld_shlibs_CXX=no
13165 fi
13166 ;;
13167 esac
13168 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070013169 darwin* | rhapsody*)
13170
13171
13172 archive_cmds_need_lc_CXX=no
13173 hardcode_direct_CXX=no
13174 hardcode_automatic_CXX=yes
13175 hardcode_shlibpath_var_CXX=unsupported
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013176 if test "$lt_cv_ld_force_load" = "yes"; then
13177 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\"`'
13178
13179 else
13180 whole_archive_flag_spec_CXX=''
13181 fi
Wink Savillefbaaef92010-05-27 16:25:37 -070013182 link_all_deplibs_CXX=yes
13183 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013184 case $cc_basename in
13185 ifort*) _lt_dar_can_shared=yes ;;
13186 *) _lt_dar_can_shared=$GCC ;;
13187 esac
13188 if test "$_lt_dar_can_shared" = "yes"; then
13189 output_verbose_link_cmd=func_echo_all
Wink Savillefbaaef92010-05-27 16:25:37 -070013190 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}"
13191 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13192 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}"
13193 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}"
13194 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13195 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}"
13196 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}"
13197 fi
13198
13199 else
13200 ld_shlibs_CXX=no
13201 fi
13202
13203 ;;
13204
13205 dgux*)
13206 case $cc_basename in
13207 ec++*)
13208 # FIXME: insert proper C++ library support
13209 ld_shlibs_CXX=no
13210 ;;
13211 ghcx*)
13212 # Green Hills C++ Compiler
13213 # FIXME: insert proper C++ library support
13214 ld_shlibs_CXX=no
13215 ;;
13216 *)
13217 # FIXME: insert proper C++ library support
13218 ld_shlibs_CXX=no
13219 ;;
13220 esac
13221 ;;
13222
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013223 freebsd2.*)
Wink Savillefbaaef92010-05-27 16:25:37 -070013224 # C++ shared libraries reported to be fairly broken before
13225 # switch to ELF
13226 ld_shlibs_CXX=no
13227 ;;
13228
13229 freebsd-elf*)
13230 archive_cmds_need_lc_CXX=no
13231 ;;
13232
13233 freebsd* | dragonfly*)
13234 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13235 # conventions
13236 ld_shlibs_CXX=yes
13237 ;;
13238
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013239 haiku*)
13240 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13241 link_all_deplibs_CXX=yes
13242 ;;
13243
Wink Savillefbaaef92010-05-27 16:25:37 -070013244 hpux9*)
13245 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13246 hardcode_libdir_separator_CXX=:
13247 export_dynamic_flag_spec_CXX='${wl}-E'
13248 hardcode_direct_CXX=yes
13249 hardcode_minus_L_CXX=yes # Not in the search PATH,
13250 # but as the default
13251 # location of the library.
13252
13253 case $cc_basename in
13254 CC*)
13255 # FIXME: insert proper C++ library support
13256 ld_shlibs_CXX=no
13257 ;;
13258 aCC*)
13259 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'
13260 # Commands to make compiler produce verbose output that lists
13261 # what "hidden" libraries, object files and flags are used when
13262 # linking a shared library.
13263 #
13264 # There doesn't appear to be a way to prevent this compiler from
13265 # explicitly linking system object files so we need to strip them
13266 # from the output so that they don't get included in the library
13267 # dependencies.
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013268 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"'
Wink Savillefbaaef92010-05-27 16:25:37 -070013269 ;;
13270 *)
13271 if test "$GXX" = yes; then
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013272 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'
Wink Savillefbaaef92010-05-27 16:25:37 -070013273 else
13274 # FIXME: insert proper C++ library support
13275 ld_shlibs_CXX=no
13276 fi
13277 ;;
13278 esac
13279 ;;
13280
13281 hpux10*|hpux11*)
13282 if test $with_gnu_ld = no; then
13283 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13284 hardcode_libdir_separator_CXX=:
13285
13286 case $host_cpu in
13287 hppa*64*|ia64*)
13288 ;;
13289 *)
13290 export_dynamic_flag_spec_CXX='${wl}-E'
13291 ;;
13292 esac
13293 fi
13294 case $host_cpu in
13295 hppa*64*|ia64*)
13296 hardcode_direct_CXX=no
13297 hardcode_shlibpath_var_CXX=no
13298 ;;
13299 *)
13300 hardcode_direct_CXX=yes
13301 hardcode_direct_absolute_CXX=yes
13302 hardcode_minus_L_CXX=yes # Not in the search PATH,
13303 # but as the default
13304 # location of the library.
13305 ;;
13306 esac
13307
13308 case $cc_basename in
13309 CC*)
13310 # FIXME: insert proper C++ library support
13311 ld_shlibs_CXX=no
13312 ;;
13313 aCC*)
13314 case $host_cpu in
13315 hppa*64*)
13316 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13317 ;;
13318 ia64*)
13319 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13320 ;;
13321 *)
13322 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13323 ;;
13324 esac
13325 # Commands to make compiler produce verbose output that lists
13326 # what "hidden" libraries, object files and flags are used when
13327 # linking a shared library.
13328 #
13329 # There doesn't appear to be a way to prevent this compiler from
13330 # explicitly linking system object files so we need to strip them
13331 # from the output so that they don't get included in the library
13332 # dependencies.
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013333 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"'
Wink Savillefbaaef92010-05-27 16:25:37 -070013334 ;;
13335 *)
13336 if test "$GXX" = yes; then
13337 if test $with_gnu_ld = no; then
13338 case $host_cpu in
13339 hppa*64*)
13340 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13341 ;;
13342 ia64*)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013343 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Wink Savillefbaaef92010-05-27 16:25:37 -070013344 ;;
13345 *)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013346 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'
Wink Savillefbaaef92010-05-27 16:25:37 -070013347 ;;
13348 esac
13349 fi
13350 else
13351 # FIXME: insert proper C++ library support
13352 ld_shlibs_CXX=no
13353 fi
13354 ;;
13355 esac
13356 ;;
13357
13358 interix[3-9]*)
13359 hardcode_direct_CXX=no
13360 hardcode_shlibpath_var_CXX=no
13361 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13362 export_dynamic_flag_spec_CXX='${wl}-E'
13363 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13364 # Instead, shared libraries are loaded at an image base (0x10000000 by
13365 # default) and relocated if they conflict, which is a slow very memory
13366 # consuming and fragmenting process. To avoid this, we pick a random,
13367 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13368 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13369 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'
13370 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'
13371 ;;
13372 irix5* | irix6*)
13373 case $cc_basename in
13374 CC*)
13375 # SGI C++
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013376 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'
Wink Savillefbaaef92010-05-27 16:25:37 -070013377
13378 # Archives containing C++ object files must be created using
13379 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13380 # necessary to make sure instantiated templates are included
13381 # in the archive.
13382 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13383 ;;
13384 *)
13385 if test "$GXX" = yes; then
13386 if test "$with_gnu_ld" = no; then
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013387 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'
Wink Savillefbaaef92010-05-27 16:25:37 -070013388 else
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013389 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'
Wink Savillefbaaef92010-05-27 16:25:37 -070013390 fi
13391 fi
13392 link_all_deplibs_CXX=yes
13393 ;;
13394 esac
13395 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13396 hardcode_libdir_separator_CXX=:
13397 inherit_rpath_CXX=yes
13398 ;;
13399
Jeff Davidson0ddac1f2015-01-20 10:18:05 -080013400 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Wink Savillefbaaef92010-05-27 16:25:37 -070013401 case $cc_basename in
13402 KCC*)
13403 # Kuck and Associates, Inc. (KAI) C++ Compiler
13404
13405 # KCC will only create a shared library if the output file
13406 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13407 # to its proper name (with version) after linking.
13408 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'
13409 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'
13410 # Commands to make compiler produce verbose output that lists
13411 # what "hidden" libraries, object files and flags are used when
13412 # linking a shared library.
13413 #
13414 # There doesn't appear to be a way to prevent this compiler from
13415 # explicitly linking system object files so we need to strip them
13416 # from the output so that they don't get included in the library
13417 # dependencies.
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013418 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"'
Wink Savillefbaaef92010-05-27 16:25:37 -070013419
13420 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13421 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13422
13423 # Archives containing C++ object files must be created using
13424 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13425 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13426 ;;
13427 icpc* | ecpc* )
13428 # Intel C++
13429 with_gnu_ld=yes
13430 # version 8.0 and above of icpc choke on multiply defined symbols
13431 # if we add $predep_objects and $postdep_objects, however 7.1 and
13432 # earlier do not add the objects themselves.
13433 case `$CC -V 2>&1` in
13434 *"Version 7."*)
13435 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13436 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'
13437 ;;
13438 *) # Version 8.0 or newer
13439 tmp_idyn=
13440 case $host_cpu in
13441 ia64*) tmp_idyn=' -i_dynamic';;
13442 esac
13443 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13444 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'
13445 ;;
13446 esac
13447 archive_cmds_need_lc_CXX=no
13448 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13449 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13450 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13451 ;;
13452 pgCC* | pgcpp*)
13453 # Portland Group C++ compiler
13454 case `$CC -V` in
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013455 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
Wink Savillefbaaef92010-05-27 16:25:37 -070013456 prelink_cmds_CXX='tpldir=Template.dir~
13457 rm -rf $tpldir~
13458 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013459 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
Wink Savillefbaaef92010-05-27 16:25:37 -070013460 old_archive_cmds_CXX='tpldir=Template.dir~
13461 rm -rf $tpldir~
13462 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013463 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
Wink Savillefbaaef92010-05-27 16:25:37 -070013464 $RANLIB $oldlib'
13465 archive_cmds_CXX='tpldir=Template.dir~
13466 rm -rf $tpldir~
13467 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013468 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
Wink Savillefbaaef92010-05-27 16:25:37 -070013469 archive_expsym_cmds_CXX='tpldir=Template.dir~
13470 rm -rf $tpldir~
13471 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013472 $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'
Wink Savillefbaaef92010-05-27 16:25:37 -070013473 ;;
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013474 *) # Version 6 and above use weak symbols
Wink Savillefbaaef92010-05-27 16:25:37 -070013475 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13476 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'
13477 ;;
13478 esac
13479
13480 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13481 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013482 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'
Wink Savillefbaaef92010-05-27 16:25:37 -070013483 ;;
13484 cxx*)
13485 # Compaq C++
13486 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13487 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'
13488
13489 runpath_var=LD_RUN_PATH
13490 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13491 hardcode_libdir_separator_CXX=:
13492
13493 # Commands to make compiler produce verbose output that lists
13494 # what "hidden" libraries, object files and flags are used when
13495 # linking a shared library.
13496 #
13497 # There doesn't appear to be a way to prevent this compiler from
13498 # explicitly linking system object files so we need to strip them
13499 # from the output so that they don't get included in the library
13500 # dependencies.
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013501 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'
Wink Savillefbaaef92010-05-27 16:25:37 -070013502 ;;
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013503 xl* | mpixl* | bgxl*)
Wink Savillefbaaef92010-05-27 16:25:37 -070013504 # IBM XL 8.0 on PPC, with GNU ld
13505 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13506 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13507 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13508 if test "x$supports_anon_versioning" = xyes; then
13509 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13510 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13511 echo "local: *; };" >> $output_objdir/$libname.ver~
13512 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13513 fi
13514 ;;
13515 *)
13516 case `$CC -V 2>&1 | sed 5q` in
13517 *Sun\ C*)
13518 # Sun C++ 5.9
13519 no_undefined_flag_CXX=' -zdefs'
13520 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13521 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'
13522 hardcode_libdir_flag_spec_CXX='-R$libdir'
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013523 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'
Wink Savillefbaaef92010-05-27 16:25:37 -070013524 compiler_needs_object_CXX=yes
13525
13526 # Not sure whether something based on
13527 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13528 # would be better.
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013529 output_verbose_link_cmd='func_echo_all'
Wink Savillefbaaef92010-05-27 16:25:37 -070013530
13531 # Archives containing C++ object files must be created using
13532 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13533 # necessary to make sure instantiated templates are included
13534 # in the archive.
13535 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13536 ;;
13537 esac
13538 ;;
13539 esac
13540 ;;
13541
13542 lynxos*)
13543 # FIXME: insert proper C++ library support
13544 ld_shlibs_CXX=no
13545 ;;
13546
13547 m88k*)
13548 # FIXME: insert proper C++ library support
13549 ld_shlibs_CXX=no
13550 ;;
13551
13552 mvs*)
13553 case $cc_basename in
13554 cxx*)
13555 # FIXME: insert proper C++ library support
13556 ld_shlibs_CXX=no
13557 ;;
13558 *)
13559 # FIXME: insert proper C++ library support
13560 ld_shlibs_CXX=no
13561 ;;
13562 esac
13563 ;;
13564
13565 netbsd*)
13566 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13567 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13568 wlarc=
13569 hardcode_libdir_flag_spec_CXX='-R$libdir'
13570 hardcode_direct_CXX=yes
13571 hardcode_shlibpath_var_CXX=no
13572 fi
13573 # Workaround some broken pre-1.5 toolchains
13574 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13575 ;;
13576
13577 *nto* | *qnx*)
13578 ld_shlibs_CXX=yes
13579 ;;
13580
13581 openbsd2*)
13582 # C++ shared libraries are fairly broken
13583 ld_shlibs_CXX=no
13584 ;;
13585
13586 openbsd*)
13587 if test -f /usr/libexec/ld.so; then
13588 hardcode_direct_CXX=yes
13589 hardcode_shlibpath_var_CXX=no
13590 hardcode_direct_absolute_CXX=yes
13591 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13592 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13593 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13594 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13595 export_dynamic_flag_spec_CXX='${wl}-E'
13596 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13597 fi
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013598 output_verbose_link_cmd=func_echo_all
Wink Savillefbaaef92010-05-27 16:25:37 -070013599 else
13600 ld_shlibs_CXX=no
13601 fi
13602 ;;
13603
13604 osf3* | osf4* | osf5*)
13605 case $cc_basename in
13606 KCC*)
13607 # Kuck and Associates, Inc. (KAI) C++ Compiler
13608
13609 # KCC will only create a shared library if the output file
13610 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13611 # to its proper name (with version) after linking.
13612 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'
13613
13614 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13615 hardcode_libdir_separator_CXX=:
13616
13617 # Archives containing C++ object files must be created using
13618 # the KAI C++ compiler.
13619 case $host in
13620 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13621 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13622 esac
13623 ;;
13624 RCC*)
13625 # Rational C++ 2.4.1
13626 # FIXME: insert proper C++ library support
13627 ld_shlibs_CXX=no
13628 ;;
13629 cxx*)
13630 case $host in
13631 osf3*)
13632 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013633 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'
Wink Savillefbaaef92010-05-27 16:25:37 -070013634 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13635 ;;
13636 *)
13637 allow_undefined_flag_CXX=' -expect_unresolved \*'
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013638 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'
Wink Savillefbaaef92010-05-27 16:25:37 -070013639 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13640 echo "-hidden">> $lib.exp~
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013641 $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~
Wink Savillefbaaef92010-05-27 16:25:37 -070013642 $RM $lib.exp'
13643 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13644 ;;
13645 esac
13646
13647 hardcode_libdir_separator_CXX=:
13648
13649 # Commands to make compiler produce verbose output that lists
13650 # what "hidden" libraries, object files and flags are used when
13651 # linking a shared library.
13652 #
13653 # There doesn't appear to be a way to prevent this compiler from
13654 # explicitly linking system object files so we need to strip them
13655 # from the output so that they don't get included in the library
13656 # dependencies.
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013657 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"'
Wink Savillefbaaef92010-05-27 16:25:37 -070013658 ;;
13659 *)
13660 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13661 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13662 case $host in
13663 osf3*)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013664 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'
Wink Savillefbaaef92010-05-27 16:25:37 -070013665 ;;
13666 *)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013667 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'
Wink Savillefbaaef92010-05-27 16:25:37 -070013668 ;;
13669 esac
13670
13671 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13672 hardcode_libdir_separator_CXX=:
13673
13674 # Commands to make compiler produce verbose output that lists
13675 # what "hidden" libraries, object files and flags are used when
13676 # linking a shared library.
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013677 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
Wink Savillefbaaef92010-05-27 16:25:37 -070013678
13679 else
13680 # FIXME: insert proper C++ library support
13681 ld_shlibs_CXX=no
13682 fi
13683 ;;
13684 esac
13685 ;;
13686
13687 psos*)
13688 # FIXME: insert proper C++ library support
13689 ld_shlibs_CXX=no
13690 ;;
13691
13692 sunos4*)
13693 case $cc_basename in
13694 CC*)
13695 # Sun C++ 4.x
13696 # FIXME: insert proper C++ library support
13697 ld_shlibs_CXX=no
13698 ;;
13699 lcc*)
13700 # Lucid
13701 # FIXME: insert proper C++ library support
13702 ld_shlibs_CXX=no
13703 ;;
13704 *)
13705 # FIXME: insert proper C++ library support
13706 ld_shlibs_CXX=no
13707 ;;
13708 esac
13709 ;;
13710
13711 solaris*)
13712 case $cc_basename in
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013713 CC* | sunCC*)
Wink Savillefbaaef92010-05-27 16:25:37 -070013714 # Sun C++ 4.2, 5.x and Centerline C++
13715 archive_cmds_need_lc_CXX=yes
13716 no_undefined_flag_CXX=' -zdefs'
13717 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13718 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13719 $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'
13720
13721 hardcode_libdir_flag_spec_CXX='-R$libdir'
13722 hardcode_shlibpath_var_CXX=no
13723 case $host_os in
13724 solaris2.[0-5] | solaris2.[0-5].*) ;;
13725 *)
13726 # The compiler driver will combine and reorder linker options,
13727 # but understands `-z linker_flag'.
13728 # Supported since Solaris 2.6 (maybe 2.5.1?)
13729 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13730 ;;
13731 esac
13732 link_all_deplibs_CXX=yes
13733
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013734 output_verbose_link_cmd='func_echo_all'
Wink Savillefbaaef92010-05-27 16:25:37 -070013735
13736 # Archives containing C++ object files must be created using
13737 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13738 # necessary to make sure instantiated templates are included
13739 # in the archive.
13740 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13741 ;;
13742 gcx*)
13743 # Green Hills C++ Compiler
13744 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13745
13746 # The C++ compiler must be used to create the archive.
13747 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13748 ;;
13749 *)
13750 # GNU C++ compiler with Solaris linker
13751 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13752 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13753 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013754 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Wink Savillefbaaef92010-05-27 16:25:37 -070013755 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013756 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
Wink Savillefbaaef92010-05-27 16:25:37 -070013757
13758 # Commands to make compiler produce verbose output that lists
13759 # what "hidden" libraries, object files and flags are used when
13760 # linking a shared library.
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013761 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
Wink Savillefbaaef92010-05-27 16:25:37 -070013762 else
13763 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13764 # platform.
13765 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13766 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13767 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13768
13769 # Commands to make compiler produce verbose output that lists
13770 # what "hidden" libraries, object files and flags are used when
13771 # linking a shared library.
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013772 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
Wink Savillefbaaef92010-05-27 16:25:37 -070013773 fi
13774
13775 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13776 case $host_os in
13777 solaris2.[0-5] | solaris2.[0-5].*) ;;
13778 *)
13779 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13780 ;;
13781 esac
13782 fi
13783 ;;
13784 esac
13785 ;;
13786
13787 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13788 no_undefined_flag_CXX='${wl}-z,text'
13789 archive_cmds_need_lc_CXX=no
13790 hardcode_shlibpath_var_CXX=no
13791 runpath_var='LD_RUN_PATH'
13792
13793 case $cc_basename in
13794 CC*)
13795 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13796 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13797 ;;
13798 *)
13799 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13800 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13801 ;;
13802 esac
13803 ;;
13804
13805 sysv5* | sco3.2v5* | sco5v6*)
13806 # Note: We can NOT use -z defs as we might desire, because we do not
13807 # link with -lc, and that would cause any symbols used from libc to
13808 # always be unresolved, which means just about no library would
13809 # ever link correctly. If we're not using GNU ld we use -z text
13810 # though, which does catch some bad symbols but isn't as heavy-handed
13811 # as -z defs.
13812 no_undefined_flag_CXX='${wl}-z,text'
13813 allow_undefined_flag_CXX='${wl}-z,nodefs'
13814 archive_cmds_need_lc_CXX=no
13815 hardcode_shlibpath_var_CXX=no
13816 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13817 hardcode_libdir_separator_CXX=':'
13818 link_all_deplibs_CXX=yes
13819 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13820 runpath_var='LD_RUN_PATH'
13821
13822 case $cc_basename in
13823 CC*)
13824 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13825 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013826 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13827 '"$old_archive_cmds_CXX"
13828 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13829 '"$reload_cmds_CXX"
Wink Savillefbaaef92010-05-27 16:25:37 -070013830 ;;
13831 *)
13832 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13833 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13834 ;;
13835 esac
13836 ;;
13837
13838 tandem*)
13839 case $cc_basename in
13840 NCC*)
13841 # NonStop-UX NCC 3.20
13842 # FIXME: insert proper C++ library support
13843 ld_shlibs_CXX=no
13844 ;;
13845 *)
13846 # FIXME: insert proper C++ library support
13847 ld_shlibs_CXX=no
13848 ;;
13849 esac
13850 ;;
13851
13852 vxworks*)
13853 # FIXME: insert proper C++ library support
13854 ld_shlibs_CXX=no
13855 ;;
13856
13857 *)
13858 # FIXME: insert proper C++ library support
13859 ld_shlibs_CXX=no
13860 ;;
13861 esac
13862
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13864$as_echo "$ld_shlibs_CXX" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070013865 test "$ld_shlibs_CXX" = no && can_build_shared=no
13866
13867 GCC_CXX="$GXX"
13868 LD_CXX="$LD"
13869
13870 ## CAVEAT EMPTOR:
13871 ## There is no encapsulation within the following macros, do not change
13872 ## the running order or otherwise move them around unless you know exactly
13873 ## what you are doing...
13874 # Dependencies to place before and after the object being linked:
13875predep_objects_CXX=
13876postdep_objects_CXX=
13877predeps_CXX=
13878postdeps_CXX=
13879compiler_lib_search_path_CXX=
13880
13881cat > conftest.$ac_ext <<_LT_EOF
13882class Foo
13883{
13884public:
13885 Foo (void) { a = 0; }
13886private:
13887 int a;
13888};
13889_LT_EOF
13890
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013891
13892_lt_libdeps_save_CFLAGS=$CFLAGS
13893case "$CC $CFLAGS " in #(
13894*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13895*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13896*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13897esac
13898
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013899if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Wink Savillefbaaef92010-05-27 16:25:37 -070013900 (eval $ac_compile) 2>&5
13901 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070013902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13903 test $ac_status = 0; }; then
Wink Savillefbaaef92010-05-27 16:25:37 -070013904 # Parse the compiler output and extract the necessary
13905 # objects, libraries and library flags.
13906
13907 # Sentinel used to keep track of whether or not we are before
13908 # the conftest object file.
13909 pre_test_object_deps_done=no
13910
13911 for p in `eval "$output_verbose_link_cmd"`; do
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013912 case ${prev}${p} in
Wink Savillefbaaef92010-05-27 16:25:37 -070013913
13914 -L* | -R* | -l*)
13915 # Some compilers place space between "-{L,R}" and the path.
13916 # Remove the space.
13917 if test $p = "-L" ||
13918 test $p = "-R"; then
13919 prev=$p
13920 continue
Wink Savillefbaaef92010-05-27 16:25:37 -070013921 fi
13922
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013923 # Expand the sysroot to ease extracting the directories later.
13924 if test -z "$prev"; then
13925 case $p in
13926 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13927 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13928 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13929 esac
13930 fi
13931 case $p in
13932 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13933 esac
Wink Savillefbaaef92010-05-27 16:25:37 -070013934 if test "$pre_test_object_deps_done" = no; then
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013935 case ${prev} in
13936 -L | -R)
Wink Savillefbaaef92010-05-27 16:25:37 -070013937 # Internal compiler library paths should come after those
13938 # provided the user. The postdeps already come after the
13939 # user supplied libs so there is no need to process them.
13940 if test -z "$compiler_lib_search_path_CXX"; then
13941 compiler_lib_search_path_CXX="${prev}${p}"
13942 else
13943 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13944 fi
13945 ;;
13946 # The "-l" case would never come before the object being
13947 # linked, so don't bother handling this case.
13948 esac
13949 else
13950 if test -z "$postdeps_CXX"; then
13951 postdeps_CXX="${prev}${p}"
13952 else
13953 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13954 fi
13955 fi
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013956 prev=
Wink Savillefbaaef92010-05-27 16:25:37 -070013957 ;;
13958
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013959 *.lto.$objext) ;; # Ignore GCC LTO objects
Wink Savillefbaaef92010-05-27 16:25:37 -070013960 *.$objext)
13961 # This assumes that the test object file only shows up
13962 # once in the compiler output.
13963 if test "$p" = "conftest.$objext"; then
13964 pre_test_object_deps_done=yes
13965 continue
13966 fi
13967
13968 if test "$pre_test_object_deps_done" = no; then
13969 if test -z "$predep_objects_CXX"; then
13970 predep_objects_CXX="$p"
13971 else
13972 predep_objects_CXX="$predep_objects_CXX $p"
13973 fi
13974 else
13975 if test -z "$postdep_objects_CXX"; then
13976 postdep_objects_CXX="$p"
13977 else
13978 postdep_objects_CXX="$postdep_objects_CXX $p"
13979 fi
13980 fi
13981 ;;
13982
13983 *) ;; # Ignore the rest.
13984
13985 esac
13986 done
13987
13988 # Clean up.
13989 rm -f a.out a.exe
13990else
13991 echo "libtool.m4: error: problem compiling CXX test program"
13992fi
13993
13994$RM -f confest.$objext
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070013995CFLAGS=$_lt_libdeps_save_CFLAGS
Wink Savillefbaaef92010-05-27 16:25:37 -070013996
13997# PORTME: override above test on systems where it is broken
13998case $host_os in
13999interix[3-9]*)
14000 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14001 # hack all around it, let's just trust "g++" to DTRT.
14002 predep_objects_CXX=
14003 postdep_objects_CXX=
14004 postdeps_CXX=
14005 ;;
14006
14007linux*)
14008 case `$CC -V 2>&1 | sed 5q` in
14009 *Sun\ C*)
14010 # Sun C++ 5.9
14011
14012 # The more standards-conforming stlport4 library is
14013 # incompatible with the Cstd library. Avoid specifying
14014 # it if it's in CXXFLAGS. Ignore libCrun as
14015 # -library=stlport4 depends on it.
14016 case " $CXX $CXXFLAGS " in
14017 *" -library=stlport4 "*)
14018 solaris_use_stlport4=yes
14019 ;;
14020 esac
14021
14022 if test "$solaris_use_stlport4" != yes; then
14023 postdeps_CXX='-library=Cstd -library=Crun'
14024 fi
14025 ;;
14026 esac
14027 ;;
14028
14029solaris*)
14030 case $cc_basename in
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014031 CC* | sunCC*)
Wink Savillefbaaef92010-05-27 16:25:37 -070014032 # The more standards-conforming stlport4 library is
14033 # incompatible with the Cstd library. Avoid specifying
14034 # it if it's in CXXFLAGS. Ignore libCrun as
14035 # -library=stlport4 depends on it.
14036 case " $CXX $CXXFLAGS " in
14037 *" -library=stlport4 "*)
14038 solaris_use_stlport4=yes
14039 ;;
14040 esac
14041
14042 # Adding this requires a known-good setup of shared libraries for
14043 # Sun compiler versions before 5.6, else PIC objects from an old
14044 # archive will be linked into the output, leading to subtle bugs.
14045 if test "$solaris_use_stlport4" != yes; then
14046 postdeps_CXX='-library=Cstd -library=Crun'
14047 fi
14048 ;;
14049 esac
14050 ;;
14051esac
14052
14053
14054case " $postdeps_CXX " in
14055*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14056esac
14057 compiler_lib_search_dirs_CXX=
14058if test -n "${compiler_lib_search_path_CXX}"; then
14059 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14060fi
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092 lt_prog_compiler_wl_CXX=
14093lt_prog_compiler_pic_CXX=
14094lt_prog_compiler_static_CXX=
14095
Wink Savillefbaaef92010-05-27 16:25:37 -070014096
14097 # C++ specific cases for pic, static, wl, etc.
14098 if test "$GXX" = yes; then
14099 lt_prog_compiler_wl_CXX='-Wl,'
14100 lt_prog_compiler_static_CXX='-static'
14101
14102 case $host_os in
14103 aix*)
14104 # All AIX code is PIC.
14105 if test "$host_cpu" = ia64; then
14106 # AIX 5 now supports IA64 processor
14107 lt_prog_compiler_static_CXX='-Bstatic'
14108 fi
14109 ;;
14110
14111 amigaos*)
14112 case $host_cpu in
14113 powerpc)
14114 # see comment about AmigaOS4 .so support
14115 lt_prog_compiler_pic_CXX='-fPIC'
14116 ;;
14117 m68k)
14118 # FIXME: we need at least 68020 code to build shared libraries, but
14119 # adding the `-m68020' flag to GCC prevents building anything better,
14120 # like `-m68040'.
14121 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14122 ;;
14123 esac
14124 ;;
14125
14126 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14127 # PIC is the default for these OSes.
14128 ;;
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014129 mingw* | cygwin* | os2* | pw32* | cegcc*)
Wink Savillefbaaef92010-05-27 16:25:37 -070014130 # This hack is so that the source file can tell whether it is being
14131 # built for inclusion in a dll (and should export symbols for example).
14132 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14133 # (--disable-auto-import) libraries
14134 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14135 ;;
14136 darwin* | rhapsody*)
14137 # PIC is the default on this platform
14138 # Common symbols not allowed in MH_DYLIB files
14139 lt_prog_compiler_pic_CXX='-fno-common'
14140 ;;
14141 *djgpp*)
14142 # DJGPP does not support shared libraries at all
14143 lt_prog_compiler_pic_CXX=
14144 ;;
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014145 haiku*)
14146 # PIC is the default for Haiku.
14147 # The "-static" flag exists, but is broken.
14148 lt_prog_compiler_static_CXX=
14149 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070014150 interix[3-9]*)
14151 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14152 # Instead, we relocate shared libraries at runtime.
14153 ;;
14154 sysv4*MP*)
14155 if test -d /usr/nec; then
14156 lt_prog_compiler_pic_CXX=-Kconform_pic
14157 fi
14158 ;;
14159 hpux*)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014160 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14161 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14162 # sets the default TLS model and affects inlining.
Wink Savillefbaaef92010-05-27 16:25:37 -070014163 case $host_cpu in
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014164 hppa*64*)
Wink Savillefbaaef92010-05-27 16:25:37 -070014165 ;;
14166 *)
14167 lt_prog_compiler_pic_CXX='-fPIC'
14168 ;;
14169 esac
14170 ;;
14171 *qnx* | *nto*)
14172 # QNX uses GNU C++, but need to define -shared option too, otherwise
14173 # it will coredump.
14174 lt_prog_compiler_pic_CXX='-fPIC -shared'
14175 ;;
14176 *)
14177 lt_prog_compiler_pic_CXX='-fPIC'
14178 ;;
14179 esac
14180 else
14181 case $host_os in
14182 aix[4-9]*)
14183 # All AIX code is PIC.
14184 if test "$host_cpu" = ia64; then
14185 # AIX 5 now supports IA64 processor
14186 lt_prog_compiler_static_CXX='-Bstatic'
14187 else
14188 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14189 fi
14190 ;;
14191 chorus*)
14192 case $cc_basename in
14193 cxch68*)
14194 # Green Hills C++ Compiler
14195 # _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"
14196 ;;
14197 esac
14198 ;;
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014199 mingw* | cygwin* | os2* | pw32* | cegcc*)
14200 # This hack is so that the source file can tell whether it is being
14201 # built for inclusion in a dll (and should export symbols for example).
14202 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14203 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070014204 dgux*)
14205 case $cc_basename in
14206 ec++*)
14207 lt_prog_compiler_pic_CXX='-KPIC'
14208 ;;
14209 ghcx*)
14210 # Green Hills C++ Compiler
14211 lt_prog_compiler_pic_CXX='-pic'
14212 ;;
14213 *)
14214 ;;
14215 esac
14216 ;;
14217 freebsd* | dragonfly*)
14218 # FreeBSD uses GNU C++
14219 ;;
14220 hpux9* | hpux10* | hpux11*)
14221 case $cc_basename in
14222 CC*)
14223 lt_prog_compiler_wl_CXX='-Wl,'
14224 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14225 if test "$host_cpu" != ia64; then
14226 lt_prog_compiler_pic_CXX='+Z'
14227 fi
14228 ;;
14229 aCC*)
14230 lt_prog_compiler_wl_CXX='-Wl,'
14231 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14232 case $host_cpu in
14233 hppa*64*|ia64*)
14234 # +Z the default
14235 ;;
14236 *)
14237 lt_prog_compiler_pic_CXX='+Z'
14238 ;;
14239 esac
14240 ;;
14241 *)
14242 ;;
14243 esac
14244 ;;
14245 interix*)
14246 # This is c89, which is MS Visual C++ (no shared libs)
14247 # Anyone wants to do a port?
14248 ;;
14249 irix5* | irix6* | nonstopux*)
14250 case $cc_basename in
14251 CC*)
14252 lt_prog_compiler_wl_CXX='-Wl,'
14253 lt_prog_compiler_static_CXX='-non_shared'
14254 # CC pic flag -KPIC is the default.
14255 ;;
14256 *)
14257 ;;
14258 esac
14259 ;;
Jeff Davidson0ddac1f2015-01-20 10:18:05 -080014260 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Wink Savillefbaaef92010-05-27 16:25:37 -070014261 case $cc_basename in
14262 KCC*)
14263 # KAI C++ Compiler
14264 lt_prog_compiler_wl_CXX='--backend -Wl,'
14265 lt_prog_compiler_pic_CXX='-fPIC'
14266 ;;
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014267 ecpc* )
14268 # old Intel C++ for x86_64 which still supported -KPIC.
Wink Savillefbaaef92010-05-27 16:25:37 -070014269 lt_prog_compiler_wl_CXX='-Wl,'
14270 lt_prog_compiler_pic_CXX='-KPIC'
14271 lt_prog_compiler_static_CXX='-static'
14272 ;;
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014273 icpc* )
14274 # Intel C++, used to be incompatible with GCC.
14275 # ICC 10 doesn't accept -KPIC any more.
14276 lt_prog_compiler_wl_CXX='-Wl,'
14277 lt_prog_compiler_pic_CXX='-fPIC'
14278 lt_prog_compiler_static_CXX='-static'
14279 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070014280 pgCC* | pgcpp*)
14281 # Portland Group C++ compiler
14282 lt_prog_compiler_wl_CXX='-Wl,'
14283 lt_prog_compiler_pic_CXX='-fpic'
14284 lt_prog_compiler_static_CXX='-Bstatic'
14285 ;;
14286 cxx*)
14287 # Compaq C++
14288 # Make sure the PIC flag is empty. It appears that all Alpha
14289 # Linux and Compaq Tru64 Unix objects are PIC.
14290 lt_prog_compiler_pic_CXX=
14291 lt_prog_compiler_static_CXX='-non_shared'
14292 ;;
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014293 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14294 # IBM XL 8.0, 9.0 on PPC and BlueGene
Wink Savillefbaaef92010-05-27 16:25:37 -070014295 lt_prog_compiler_wl_CXX='-Wl,'
14296 lt_prog_compiler_pic_CXX='-qpic'
14297 lt_prog_compiler_static_CXX='-qstaticlink'
14298 ;;
14299 *)
14300 case `$CC -V 2>&1 | sed 5q` in
14301 *Sun\ C*)
14302 # Sun C++ 5.9
14303 lt_prog_compiler_pic_CXX='-KPIC'
14304 lt_prog_compiler_static_CXX='-Bstatic'
14305 lt_prog_compiler_wl_CXX='-Qoption ld '
14306 ;;
14307 esac
14308 ;;
14309 esac
14310 ;;
14311 lynxos*)
14312 ;;
14313 m88k*)
14314 ;;
14315 mvs*)
14316 case $cc_basename in
14317 cxx*)
14318 lt_prog_compiler_pic_CXX='-W c,exportall'
14319 ;;
14320 *)
14321 ;;
14322 esac
14323 ;;
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014324 netbsd* | netbsdelf*-gnu)
Wink Savillefbaaef92010-05-27 16:25:37 -070014325 ;;
14326 *qnx* | *nto*)
14327 # QNX uses GNU C++, but need to define -shared option too, otherwise
14328 # it will coredump.
14329 lt_prog_compiler_pic_CXX='-fPIC -shared'
14330 ;;
14331 osf3* | osf4* | osf5*)
14332 case $cc_basename in
14333 KCC*)
14334 lt_prog_compiler_wl_CXX='--backend -Wl,'
14335 ;;
14336 RCC*)
14337 # Rational C++ 2.4.1
14338 lt_prog_compiler_pic_CXX='-pic'
14339 ;;
14340 cxx*)
14341 # Digital/Compaq C++
14342 lt_prog_compiler_wl_CXX='-Wl,'
14343 # Make sure the PIC flag is empty. It appears that all Alpha
14344 # Linux and Compaq Tru64 Unix objects are PIC.
14345 lt_prog_compiler_pic_CXX=
14346 lt_prog_compiler_static_CXX='-non_shared'
14347 ;;
14348 *)
14349 ;;
14350 esac
14351 ;;
14352 psos*)
14353 ;;
14354 solaris*)
14355 case $cc_basename in
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014356 CC* | sunCC*)
Wink Savillefbaaef92010-05-27 16:25:37 -070014357 # Sun C++ 4.2, 5.x and Centerline C++
14358 lt_prog_compiler_pic_CXX='-KPIC'
14359 lt_prog_compiler_static_CXX='-Bstatic'
14360 lt_prog_compiler_wl_CXX='-Qoption ld '
14361 ;;
14362 gcx*)
14363 # Green Hills C++ Compiler
14364 lt_prog_compiler_pic_CXX='-PIC'
14365 ;;
14366 *)
14367 ;;
14368 esac
14369 ;;
14370 sunos4*)
14371 case $cc_basename in
14372 CC*)
14373 # Sun C++ 4.x
14374 lt_prog_compiler_pic_CXX='-pic'
14375 lt_prog_compiler_static_CXX='-Bstatic'
14376 ;;
14377 lcc*)
14378 # Lucid
14379 lt_prog_compiler_pic_CXX='-pic'
14380 ;;
14381 *)
14382 ;;
14383 esac
14384 ;;
14385 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14386 case $cc_basename in
14387 CC*)
14388 lt_prog_compiler_wl_CXX='-Wl,'
14389 lt_prog_compiler_pic_CXX='-KPIC'
14390 lt_prog_compiler_static_CXX='-Bstatic'
14391 ;;
14392 esac
14393 ;;
14394 tandem*)
14395 case $cc_basename in
14396 NCC*)
14397 # NonStop-UX NCC 3.20
14398 lt_prog_compiler_pic_CXX='-KPIC'
14399 ;;
14400 *)
14401 ;;
14402 esac
14403 ;;
14404 vxworks*)
14405 ;;
14406 *)
14407 lt_prog_compiler_can_build_shared_CXX=no
14408 ;;
14409 esac
14410 fi
14411
14412case $host_os in
14413 # For platforms which do not support PIC, -DPIC is meaningless:
14414 *djgpp*)
14415 lt_prog_compiler_pic_CXX=
14416 ;;
14417 *)
14418 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14419 ;;
14420esac
Wink Savillefbaaef92010-05-27 16:25:37 -070014421
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14423$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14424if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14425 $as_echo_n "(cached) " >&6
14426else
14427 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14428fi
14429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14430$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14431lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
Wink Savillefbaaef92010-05-27 16:25:37 -070014432
14433#
14434# Check to make sure the PIC flag actually works.
14435#
14436if test -n "$lt_prog_compiler_pic_CXX"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14438$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14439if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14440 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070014441else
14442 lt_cv_prog_compiler_pic_works_CXX=no
14443 ac_outfile=conftest.$ac_objext
14444 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14445 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14446 # Insert the option either (1) after the last *FLAGS variable, or
14447 # (2) before a word containing "conftest.", or (3) at the end.
14448 # Note that $ac_compile itself does not contain backslashes and begins
14449 # with a dollar sign (not a hyphen), so the echo should work correctly.
14450 # The option is referenced via a variable to avoid confusing sed.
14451 lt_compile=`echo "$ac_compile" | $SED \
14452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14454 -e 's:$: $lt_compiler_flag:'`
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014455 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Wink Savillefbaaef92010-05-27 16:25:37 -070014456 (eval "$lt_compile" 2>conftest.err)
14457 ac_status=$?
14458 cat conftest.err >&5
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -070014460 if (exit $ac_status) && test -s "$ac_outfile"; then
14461 # The compiler can only warn and ignore the option if not recognized
14462 # So say no if there are warnings other than the usual output.
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014463 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Wink Savillefbaaef92010-05-27 16:25:37 -070014464 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14465 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14466 lt_cv_prog_compiler_pic_works_CXX=yes
14467 fi
14468 fi
14469 $RM conftest*
14470
14471fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14473$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070014474
14475if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14476 case $lt_prog_compiler_pic_CXX in
14477 "" | " "*) ;;
14478 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14479 esac
14480else
14481 lt_prog_compiler_pic_CXX=
14482 lt_prog_compiler_can_build_shared_CXX=no
14483fi
14484
14485fi
14486
14487
14488
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014489
14490
Wink Savillefbaaef92010-05-27 16:25:37 -070014491#
14492# Check to make sure the static flag actually works.
14493#
14494wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14496$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14497if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14498 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070014499else
14500 lt_cv_prog_compiler_static_works_CXX=no
14501 save_LDFLAGS="$LDFLAGS"
14502 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14503 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14504 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14505 # The linker can only warn and ignore the option if not recognized
14506 # So say no if there are warnings
14507 if test -s conftest.err; then
14508 # Append any errors to the config.log.
14509 cat conftest.err 1>&5
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014510 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Wink Savillefbaaef92010-05-27 16:25:37 -070014511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14512 if diff conftest.exp conftest.er2 >/dev/null; then
14513 lt_cv_prog_compiler_static_works_CXX=yes
14514 fi
14515 else
14516 lt_cv_prog_compiler_static_works_CXX=yes
14517 fi
14518 fi
14519 $RM -r conftest*
14520 LDFLAGS="$save_LDFLAGS"
14521
14522fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14524$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070014525
14526if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14527 :
14528else
14529 lt_prog_compiler_static_CXX=
14530fi
14531
14532
14533
14534
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14536$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14537if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14538 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070014539else
14540 lt_cv_prog_compiler_c_o_CXX=no
14541 $RM -r conftest 2>/dev/null
14542 mkdir conftest
14543 cd conftest
14544 mkdir out
14545 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14546
14547 lt_compiler_flag="-o out/conftest2.$ac_objext"
14548 # Insert the option either (1) after the last *FLAGS variable, or
14549 # (2) before a word containing "conftest.", or (3) at the end.
14550 # Note that $ac_compile itself does not contain backslashes and begins
14551 # with a dollar sign (not a hyphen), so the echo should work correctly.
14552 lt_compile=`echo "$ac_compile" | $SED \
14553 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14554 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14555 -e 's:$: $lt_compiler_flag:'`
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014556 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Wink Savillefbaaef92010-05-27 16:25:37 -070014557 (eval "$lt_compile" 2>out/conftest.err)
14558 ac_status=$?
14559 cat out/conftest.err >&5
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -070014561 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14562 then
14563 # The compiler can only warn and ignore the option if not recognized
14564 # So say no if there are warnings
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014565 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Wink Savillefbaaef92010-05-27 16:25:37 -070014566 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14567 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14568 lt_cv_prog_compiler_c_o_CXX=yes
14569 fi
14570 fi
14571 chmod u+w . 2>&5
14572 $RM conftest*
14573 # SGI C++ compiler will create directory out/ii_files/ for
14574 # template instantiation
14575 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14576 $RM out/* && rmdir out
14577 cd ..
14578 $RM -r conftest
14579 $RM conftest*
14580
14581fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14583$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070014584
14585
14586
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14588$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14589if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14590 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070014591else
14592 lt_cv_prog_compiler_c_o_CXX=no
14593 $RM -r conftest 2>/dev/null
14594 mkdir conftest
14595 cd conftest
14596 mkdir out
14597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14598
14599 lt_compiler_flag="-o out/conftest2.$ac_objext"
14600 # Insert the option either (1) after the last *FLAGS variable, or
14601 # (2) before a word containing "conftest.", or (3) at the end.
14602 # Note that $ac_compile itself does not contain backslashes and begins
14603 # with a dollar sign (not a hyphen), so the echo should work correctly.
14604 lt_compile=`echo "$ac_compile" | $SED \
14605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14607 -e 's:$: $lt_compiler_flag:'`
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014608 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Wink Savillefbaaef92010-05-27 16:25:37 -070014609 (eval "$lt_compile" 2>out/conftest.err)
14610 ac_status=$?
14611 cat out/conftest.err >&5
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -070014613 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14614 then
14615 # The compiler can only warn and ignore the option if not recognized
14616 # So say no if there are warnings
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014617 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Wink Savillefbaaef92010-05-27 16:25:37 -070014618 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14619 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14620 lt_cv_prog_compiler_c_o_CXX=yes
14621 fi
14622 fi
14623 chmod u+w . 2>&5
14624 $RM conftest*
14625 # SGI C++ compiler will create directory out/ii_files/ for
14626 # template instantiation
14627 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14628 $RM out/* && rmdir out
14629 cd ..
14630 $RM -r conftest
14631 $RM conftest*
14632
14633fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14635$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070014636
14637
14638
14639
14640hard_links="nottested"
14641if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14642 # do not overwrite the value of need_locks provided by the user
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14644$as_echo_n "checking if we can lock with hard links... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070014645 hard_links=yes
14646 $RM conftest*
14647 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14648 touch conftest.a
14649 ln conftest.a conftest.b 2>&5 || hard_links=no
14650 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14652$as_echo "$hard_links" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070014653 if test "$hard_links" = no; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14655$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -070014656 need_locks=warn
14657 fi
14658else
14659 need_locks=no
14660fi
14661
14662
14663
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14665$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070014666
14667 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014668 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Wink Savillefbaaef92010-05-27 16:25:37 -070014669 case $host_os in
14670 aix[4-9]*)
14671 # If we're using GNU nm, then we don't want the "-C" option.
14672 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014673 # Also, AIX nm treats weak defined symbols like other global defined
14674 # symbols, whereas GNU nm marks them as "W".
Wink Savillefbaaef92010-05-27 16:25:37 -070014675 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014676 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'
Wink Savillefbaaef92010-05-27 16:25:37 -070014677 else
14678 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'
14679 fi
14680 ;;
14681 pw32*)
14682 export_symbols_cmds_CXX="$ltdll_cmds"
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014683 ;;
14684 cygwin* | mingw* | cegcc*)
14685 case $cc_basename in
14686 cl*)
14687 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14688 ;;
14689 *)
14690 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'
14691 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14692 ;;
14693 esac
14694 ;;
14695 linux* | k*bsd*-gnu | gnu*)
14696 link_all_deplibs_CXX=no
14697 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070014698 *)
14699 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014700 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070014701 esac
Wink Savillefbaaef92010-05-27 16:25:37 -070014702
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14704$as_echo "$ld_shlibs_CXX" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070014705test "$ld_shlibs_CXX" = no && can_build_shared=no
14706
14707with_gnu_ld_CXX=$with_gnu_ld
14708
14709
14710
14711
14712
14713
14714#
14715# Do we need to explicitly link libc?
14716#
14717case "x$archive_cmds_need_lc_CXX" in
14718x|xyes)
14719 # Assume -lc should be added
14720 archive_cmds_need_lc_CXX=yes
14721
14722 if test "$enable_shared" = yes && test "$GCC" = yes; then
14723 case $archive_cmds_CXX in
14724 *'~'*)
14725 # FIXME: we may have to deal with multi-command sequences.
14726 ;;
14727 '$CC '*)
14728 # Test whether the compiler implicitly links with -lc since on some
14729 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14730 # to ld, don't add -lc before -lgcc.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14732$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014733if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14734 $as_echo_n "(cached) " >&6
14735else
14736 $RM conftest*
14737 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070014738
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Wink Savillefbaaef92010-05-27 16:25:37 -070014740 (eval $ac_compile) 2>&5
14741 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14743 test $ac_status = 0; } 2>conftest.err; then
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014744 soname=conftest
14745 lib=conftest
14746 libobjs=conftest.$ac_objext
14747 deplibs=
14748 wl=$lt_prog_compiler_wl_CXX
14749 pic_flag=$lt_prog_compiler_pic_CXX
14750 compiler_flags=-v
14751 linker_flags=-v
14752 verstring=
14753 output_objdir=.
14754 libname=conftest
14755 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14756 allow_undefined_flag_CXX=
14757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
Wink Savillefbaaef92010-05-27 16:25:37 -070014758 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14759 ac_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14761 test $ac_status = 0; }
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014762 then
14763 lt_cv_archive_cmds_need_lc_CXX=no
14764 else
14765 lt_cv_archive_cmds_need_lc_CXX=yes
14766 fi
14767 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14768 else
14769 cat conftest.err 1>&5
14770 fi
14771 $RM conftest*
14772
14773fi
14774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14775$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14776 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
Wink Savillefbaaef92010-05-27 16:25:37 -070014777 ;;
14778 esac
14779 fi
14780 ;;
14781esac
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070014844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14845$as_echo_n "checking dynamic linker characteristics... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070014846
14847library_names_spec=
14848libname_spec='lib$name'
14849soname_spec=
14850shrext_cmds=".so"
14851postinstall_cmds=
14852postuninstall_cmds=
14853finish_cmds=
14854finish_eval=
14855shlibpath_var=
14856shlibpath_overrides_runpath=unknown
14857version_type=none
14858dynamic_linker="$host_os ld.so"
14859sys_lib_dlsearch_path_spec="/lib /usr/lib"
14860need_lib_prefix=unknown
14861hardcode_into_libs=no
14862
14863# when you set need_version to no, make sure it does not cause -set_version
14864# flags to be left without arguments
14865need_version=unknown
14866
14867case $host_os in
14868aix3*)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014869 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070014870 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14871 shlibpath_var=LIBPATH
14872
14873 # AIX 3 has no versioning support, so we append a major version to the name.
14874 soname_spec='${libname}${release}${shared_ext}$major'
14875 ;;
14876
14877aix[4-9]*)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014878 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070014879 need_lib_prefix=no
14880 need_version=no
14881 hardcode_into_libs=yes
14882 if test "$host_cpu" = ia64; then
14883 # AIX 5 supports IA64
14884 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14885 shlibpath_var=LD_LIBRARY_PATH
14886 else
14887 # With GCC up to 2.95.x, collect2 would create an import file
14888 # for dependence libraries. The import file would start with
14889 # the line `#! .'. This would cause the generated library to
14890 # depend on `.', always an invalid library. This was fixed in
14891 # development snapshots of GCC prior to 3.0.
14892 case $host_os in
14893 aix4 | aix4.[01] | aix4.[01].*)
14894 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14895 echo ' yes '
14896 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14897 :
14898 else
14899 can_build_shared=no
14900 fi
14901 ;;
14902 esac
14903 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14904 # soname into executable. Probably we can add versioning support to
14905 # collect2, so additional links can be useful in future.
14906 if test "$aix_use_runtimelinking" = yes; then
14907 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14908 # instead of lib<name>.a to let people know that these are not
14909 # typical AIX shared libraries.
14910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14911 else
14912 # We preserve .a as extension for shared libraries through AIX4.2
14913 # and later when we are not doing run time linking.
14914 library_names_spec='${libname}${release}.a $libname.a'
14915 soname_spec='${libname}${release}${shared_ext}$major'
14916 fi
14917 shlibpath_var=LIBPATH
14918 fi
14919 ;;
14920
14921amigaos*)
14922 case $host_cpu in
14923 powerpc)
14924 # Since July 2007 AmigaOS4 officially supports .so libraries.
14925 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14927 ;;
14928 m68k)
14929 library_names_spec='$libname.ixlibrary $libname.a'
14930 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014931 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'
Wink Savillefbaaef92010-05-27 16:25:37 -070014932 ;;
14933 esac
14934 ;;
14935
14936beos*)
14937 library_names_spec='${libname}${shared_ext}'
14938 dynamic_linker="$host_os ld.so"
14939 shlibpath_var=LIBRARY_PATH
14940 ;;
14941
14942bsdi[45]*)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014943 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070014944 need_version=no
14945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14946 soname_spec='${libname}${release}${shared_ext}$major'
14947 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14948 shlibpath_var=LD_LIBRARY_PATH
14949 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14950 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14951 # the default ld.so.conf also contains /usr/contrib/lib and
14952 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14953 # libtool to hard-code these into programs
14954 ;;
14955
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014956cygwin* | mingw* | pw32* | cegcc*)
Wink Savillefbaaef92010-05-27 16:25:37 -070014957 version_type=windows
14958 shrext_cmds=".dll"
14959 need_version=no
14960 need_lib_prefix=no
14961
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014962 case $GCC,$cc_basename in
14963 yes,*)
14964 # gcc
Wink Savillefbaaef92010-05-27 16:25:37 -070014965 library_names_spec='$libname.dll.a'
14966 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14967 postinstall_cmds='base_file=`basename \${file}`~
14968 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14969 dldir=$destdir/`dirname \$dlpath`~
14970 test -d \$dldir || mkdir -p \$dldir~
14971 $install_prog $dir/$dlname \$dldir/$dlname~
14972 chmod a+x \$dldir/$dlname~
14973 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14974 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14975 fi'
14976 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14977 dlpath=$dir/\$dldll~
14978 $RM \$dlpath'
14979 shlibpath_overrides_runpath=yes
14980
14981 case $host_os in
14982 cygwin*)
14983 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14984 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014985
Wink Savillefbaaef92010-05-27 16:25:37 -070014986 ;;
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014987 mingw* | cegcc*)
Wink Savillefbaaef92010-05-27 16:25:37 -070014988 # MinGW DLLs use traditional 'lib' prefix
14989 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Wink Savillefbaaef92010-05-27 16:25:37 -070014990 ;;
14991 pw32*)
14992 # pw32 DLLs use 'pw' prefix rather than 'lib'
14993 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14994 ;;
14995 esac
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070014996 dynamic_linker='Win32 ld.exe'
14997 ;;
14998
14999 *,cl*)
15000 # Native MSVC
15001 libname_spec='$name'
15002 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15003 library_names_spec='${libname}.dll.lib'
15004
15005 case $build_os in
15006 mingw*)
15007 sys_lib_search_path_spec=
15008 lt_save_ifs=$IFS
15009 IFS=';'
15010 for lt_path in $LIB
15011 do
15012 IFS=$lt_save_ifs
15013 # Let DOS variable expansion print the short 8.3 style file name.
15014 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15015 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15016 done
15017 IFS=$lt_save_ifs
15018 # Convert to MSYS style.
15019 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15020 ;;
15021 cygwin*)
15022 # Convert to unix form, then to dos form, then back to unix form
15023 # but this time dos style (no spaces!) so that the unix form looks
15024 # like /cygdrive/c/PROGRA~1:/cygdr...
15025 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15026 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15027 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15028 ;;
15029 *)
15030 sys_lib_search_path_spec="$LIB"
15031 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15032 # It is most probably a Windows format PATH.
15033 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15034 else
15035 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15036 fi
15037 # FIXME: find the short name or the path components, as spaces are
15038 # common. (e.g. "Program Files" -> "PROGRA~1")
15039 ;;
15040 esac
15041
15042 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15043 postinstall_cmds='base_file=`basename \${file}`~
15044 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15045 dldir=$destdir/`dirname \$dlpath`~
15046 test -d \$dldir || mkdir -p \$dldir~
15047 $install_prog $dir/$dlname \$dldir/$dlname'
15048 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15049 dlpath=$dir/\$dldll~
15050 $RM \$dlpath'
15051 shlibpath_overrides_runpath=yes
15052 dynamic_linker='Win32 link.exe'
Wink Savillefbaaef92010-05-27 16:25:37 -070015053 ;;
15054
15055 *)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070015056 # Assume MSVC wrapper
Wink Savillefbaaef92010-05-27 16:25:37 -070015057 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070015058 dynamic_linker='Win32 ld.exe'
Wink Savillefbaaef92010-05-27 16:25:37 -070015059 ;;
15060 esac
Wink Savillefbaaef92010-05-27 16:25:37 -070015061 # FIXME: first we should search . and the directory the executable is in
15062 shlibpath_var=PATH
15063 ;;
15064
15065darwin* | rhapsody*)
15066 dynamic_linker="$host_os dyld"
15067 version_type=darwin
15068 need_lib_prefix=no
15069 need_version=no
15070 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15071 soname_spec='${libname}${release}${major}$shared_ext'
15072 shlibpath_overrides_runpath=yes
15073 shlibpath_var=DYLD_LIBRARY_PATH
15074 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15075
15076 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15077 ;;
15078
15079dgux*)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070015080 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070015081 need_lib_prefix=no
15082 need_version=no
15083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15084 soname_spec='${libname}${release}${shared_ext}$major'
15085 shlibpath_var=LD_LIBRARY_PATH
15086 ;;
15087
Wink Savillefbaaef92010-05-27 16:25:37 -070015088freebsd* | dragonfly*)
15089 # DragonFly does not have aout. When/if they implement a new
15090 # versioning mechanism, adjust this.
15091 if test -x /usr/bin/objformat; then
15092 objformat=`/usr/bin/objformat`
15093 else
15094 case $host_os in
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070015095 freebsd[23].*) objformat=aout ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070015096 *) objformat=elf ;;
15097 esac
15098 fi
15099 version_type=freebsd-$objformat
15100 case $version_type in
15101 freebsd-elf*)
15102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15103 need_version=no
15104 need_lib_prefix=no
15105 ;;
15106 freebsd-*)
15107 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15108 need_version=yes
15109 ;;
15110 esac
15111 shlibpath_var=LD_LIBRARY_PATH
15112 case $host_os in
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070015113 freebsd2.*)
Wink Savillefbaaef92010-05-27 16:25:37 -070015114 shlibpath_overrides_runpath=yes
15115 ;;
15116 freebsd3.[01]* | freebsdelf3.[01]*)
15117 shlibpath_overrides_runpath=yes
15118 hardcode_into_libs=yes
15119 ;;
15120 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15121 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15122 shlibpath_overrides_runpath=no
15123 hardcode_into_libs=yes
15124 ;;
15125 *) # from 4.6 on, and DragonFly
15126 shlibpath_overrides_runpath=yes
15127 hardcode_into_libs=yes
15128 ;;
15129 esac
15130 ;;
15131
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070015132haiku*)
15133 version_type=linux # correct to gnu/linux during the next big refactor
15134 need_lib_prefix=no
15135 need_version=no
15136 dynamic_linker="$host_os runtime_loader"
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15138 soname_spec='${libname}${release}${shared_ext}$major'
15139 shlibpath_var=LIBRARY_PATH
15140 shlibpath_overrides_runpath=yes
15141 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Wink Savillefbaaef92010-05-27 16:25:37 -070015142 hardcode_into_libs=yes
15143 ;;
15144
15145hpux9* | hpux10* | hpux11*)
15146 # Give a soname corresponding to the major version so that dld.sl refuses to
15147 # link against other versions.
15148 version_type=sunos
15149 need_lib_prefix=no
15150 need_version=no
15151 case $host_cpu in
15152 ia64*)
15153 shrext_cmds='.so'
15154 hardcode_into_libs=yes
15155 dynamic_linker="$host_os dld.so"
15156 shlibpath_var=LD_LIBRARY_PATH
15157 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15159 soname_spec='${libname}${release}${shared_ext}$major'
15160 if test "X$HPUX_IA64_MODE" = X32; then
15161 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15162 else
15163 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15164 fi
15165 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15166 ;;
15167 hppa*64*)
15168 shrext_cmds='.sl'
15169 hardcode_into_libs=yes
15170 dynamic_linker="$host_os dld.sl"
15171 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15172 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15174 soname_spec='${libname}${release}${shared_ext}$major'
15175 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15176 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15177 ;;
15178 *)
15179 shrext_cmds='.sl'
15180 dynamic_linker="$host_os dld.sl"
15181 shlibpath_var=SHLIB_PATH
15182 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15184 soname_spec='${libname}${release}${shared_ext}$major'
15185 ;;
15186 esac
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070015187 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Wink Savillefbaaef92010-05-27 16:25:37 -070015188 postinstall_cmds='chmod 555 $lib'
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070015189 # or fails outright, so override atomically:
15190 install_override_mode=555
Wink Savillefbaaef92010-05-27 16:25:37 -070015191 ;;
15192
15193interix[3-9]*)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070015194 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070015195 need_lib_prefix=no
15196 need_version=no
15197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15198 soname_spec='${libname}${release}${shared_ext}$major'
15199 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15200 shlibpath_var=LD_LIBRARY_PATH
15201 shlibpath_overrides_runpath=no
15202 hardcode_into_libs=yes
15203 ;;
15204
15205irix5* | irix6* | nonstopux*)
15206 case $host_os in
15207 nonstopux*) version_type=nonstopux ;;
15208 *)
15209 if test "$lt_cv_prog_gnu_ld" = yes; then
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070015210 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070015211 else
15212 version_type=irix
15213 fi ;;
15214 esac
15215 need_lib_prefix=no
15216 need_version=no
15217 soname_spec='${libname}${release}${shared_ext}$major'
15218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15219 case $host_os in
15220 irix5* | nonstopux*)
15221 libsuff= shlibsuff=
15222 ;;
15223 *)
15224 case $LD in # libtool.m4 will add one of these switches to LD
15225 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15226 libsuff= shlibsuff= libmagic=32-bit;;
15227 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15228 libsuff=32 shlibsuff=N32 libmagic=N32;;
15229 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15230 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15231 *) libsuff= shlibsuff= libmagic=never-match;;
15232 esac
15233 ;;
15234 esac
15235 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15236 shlibpath_overrides_runpath=no
15237 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15238 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15239 hardcode_into_libs=yes
15240 ;;
15241
15242# No shared lib support for Linux oldld, aout, or coff.
15243linux*oldld* | linux*aout* | linux*coff*)
15244 dynamic_linker=no
15245 ;;
15246
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070015247# This must be glibc/ELF.
Jeff Davidson0ddac1f2015-01-20 10:18:05 -080015248linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070015249 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070015250 need_lib_prefix=no
15251 need_version=no
15252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15253 soname_spec='${libname}${release}${shared_ext}$major'
15254 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15255 shlibpath_var=LD_LIBRARY_PATH
15256 shlibpath_overrides_runpath=no
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070015257
Wink Savillefbaaef92010-05-27 16:25:37 -070015258 # Some binutils ld are patched to set DT_RUNPATH
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070015259 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15260 $as_echo_n "(cached) " >&6
15261else
15262 lt_cv_shlibpath_overrides_runpath=no
15263 save_LDFLAGS=$LDFLAGS
15264 save_libdir=$libdir
15265 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15266 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070015268/* end confdefs.h. */
15269
15270int
15271main ()
15272{
15273
15274 ;
15275 return 0;
15276}
15277_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015278if ac_fn_cxx_try_link "$LINENO"; then :
15279 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070015280 lt_cv_shlibpath_overrides_runpath=yes
Wink Savillefbaaef92010-05-27 16:25:37 -070015281fi
Wink Savillefbaaef92010-05-27 16:25:37 -070015282fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015283rm -f core conftest.err conftest.$ac_objext \
15284 conftest$ac_exeext conftest.$ac_ext
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070015285 LDFLAGS=$save_LDFLAGS
15286 libdir=$save_libdir
15287
15288fi
15289
15290 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Wink Savillefbaaef92010-05-27 16:25:37 -070015291
15292 # This implies no fast_install, which is unacceptable.
15293 # Some rework will be needed to allow for fast_install
15294 # before this can be enabled.
15295 hardcode_into_libs=yes
15296
15297 # Append ld.so.conf contents to the search path
15298 if test -f /etc/ld.so.conf; then
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070015299 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' ' '`
Wink Savillefbaaef92010-05-27 16:25:37 -070015300 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15301 fi
15302
15303 # We used to test for /lib/ld.so.1 and disable shared libraries on
15304 # powerpc, because MkLinux only supported shared libraries with the
15305 # GNU dynamic linker. Since this was broken with cross compilers,
15306 # most powerpc-linux boxes support dynamic linking these days and
15307 # people can always --disable-shared, the test was removed, and we
15308 # assume the GNU/Linux dynamic linker is in use.
15309 dynamic_linker='GNU/Linux ld.so'
15310 ;;
15311
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070015312netbsdelf*-gnu)
15313 version_type=linux
15314 need_lib_prefix=no
15315 need_version=no
15316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15317 soname_spec='${libname}${release}${shared_ext}$major'
15318 shlibpath_var=LD_LIBRARY_PATH
15319 shlibpath_overrides_runpath=no
15320 hardcode_into_libs=yes
15321 dynamic_linker='NetBSD ld.elf_so'
15322 ;;
15323
Wink Savillefbaaef92010-05-27 16:25:37 -070015324netbsd*)
15325 version_type=sunos
15326 need_lib_prefix=no
15327 need_version=no
15328 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15330 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15331 dynamic_linker='NetBSD (a.out) ld.so'
15332 else
15333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15334 soname_spec='${libname}${release}${shared_ext}$major'
15335 dynamic_linker='NetBSD ld.elf_so'
15336 fi
15337 shlibpath_var=LD_LIBRARY_PATH
15338 shlibpath_overrides_runpath=yes
15339 hardcode_into_libs=yes
15340 ;;
15341
15342newsos6)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070015343 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070015344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15345 shlibpath_var=LD_LIBRARY_PATH
15346 shlibpath_overrides_runpath=yes
15347 ;;
15348
15349*nto* | *qnx*)
15350 version_type=qnx
15351 need_lib_prefix=no
15352 need_version=no
15353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15354 soname_spec='${libname}${release}${shared_ext}$major'
15355 shlibpath_var=LD_LIBRARY_PATH
15356 shlibpath_overrides_runpath=no
15357 hardcode_into_libs=yes
15358 dynamic_linker='ldqnx.so'
15359 ;;
15360
15361openbsd*)
15362 version_type=sunos
15363 sys_lib_dlsearch_path_spec="/usr/lib"
15364 need_lib_prefix=no
15365 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15366 case $host_os in
15367 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15368 *) need_version=no ;;
15369 esac
15370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15371 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15372 shlibpath_var=LD_LIBRARY_PATH
15373 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15374 case $host_os in
15375 openbsd2.[89] | openbsd2.[89].*)
15376 shlibpath_overrides_runpath=no
15377 ;;
15378 *)
15379 shlibpath_overrides_runpath=yes
15380 ;;
15381 esac
15382 else
15383 shlibpath_overrides_runpath=yes
15384 fi
15385 ;;
15386
15387os2*)
15388 libname_spec='$name'
15389 shrext_cmds=".dll"
15390 need_lib_prefix=no
15391 library_names_spec='$libname${shared_ext} $libname.a'
15392 dynamic_linker='OS/2 ld.exe'
15393 shlibpath_var=LIBPATH
15394 ;;
15395
15396osf3* | osf4* | osf5*)
15397 version_type=osf
15398 need_lib_prefix=no
15399 need_version=no
15400 soname_spec='${libname}${release}${shared_ext}$major'
15401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15402 shlibpath_var=LD_LIBRARY_PATH
15403 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15404 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15405 ;;
15406
15407rdos*)
15408 dynamic_linker=no
15409 ;;
15410
15411solaris*)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070015412 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070015413 need_lib_prefix=no
15414 need_version=no
15415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15416 soname_spec='${libname}${release}${shared_ext}$major'
15417 shlibpath_var=LD_LIBRARY_PATH
15418 shlibpath_overrides_runpath=yes
15419 hardcode_into_libs=yes
15420 # ldd complains unless libraries are executable
15421 postinstall_cmds='chmod +x $lib'
15422 ;;
15423
15424sunos4*)
15425 version_type=sunos
15426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15427 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15428 shlibpath_var=LD_LIBRARY_PATH
15429 shlibpath_overrides_runpath=yes
15430 if test "$with_gnu_ld" = yes; then
15431 need_lib_prefix=no
15432 fi
15433 need_version=yes
15434 ;;
15435
15436sysv4 | sysv4.3*)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070015437 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070015438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15439 soname_spec='${libname}${release}${shared_ext}$major'
15440 shlibpath_var=LD_LIBRARY_PATH
15441 case $host_vendor in
15442 sni)
15443 shlibpath_overrides_runpath=no
15444 need_lib_prefix=no
15445 runpath_var=LD_RUN_PATH
15446 ;;
15447 siemens)
15448 need_lib_prefix=no
15449 ;;
15450 motorola)
15451 need_lib_prefix=no
15452 need_version=no
15453 shlibpath_overrides_runpath=no
15454 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15455 ;;
15456 esac
15457 ;;
15458
15459sysv4*MP*)
15460 if test -d /usr/nec ;then
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070015461 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070015462 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15463 soname_spec='$libname${shared_ext}.$major'
15464 shlibpath_var=LD_LIBRARY_PATH
15465 fi
15466 ;;
15467
15468sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15469 version_type=freebsd-elf
15470 need_lib_prefix=no
15471 need_version=no
15472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15473 soname_spec='${libname}${release}${shared_ext}$major'
15474 shlibpath_var=LD_LIBRARY_PATH
15475 shlibpath_overrides_runpath=yes
15476 hardcode_into_libs=yes
15477 if test "$with_gnu_ld" = yes; then
15478 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15479 else
15480 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15481 case $host_os in
15482 sco3.2v5*)
15483 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15484 ;;
15485 esac
15486 fi
15487 sys_lib_dlsearch_path_spec='/usr/lib'
15488 ;;
15489
15490tpf*)
15491 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070015492 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070015493 need_lib_prefix=no
15494 need_version=no
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070015495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Wink Savillefbaaef92010-05-27 16:25:37 -070015496 shlibpath_var=LD_LIBRARY_PATH
15497 shlibpath_overrides_runpath=no
15498 hardcode_into_libs=yes
15499 ;;
15500
15501uts4*)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070015502 version_type=linux # correct to gnu/linux during the next big refactor
Wink Savillefbaaef92010-05-27 16:25:37 -070015503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15504 soname_spec='${libname}${release}${shared_ext}$major'
15505 shlibpath_var=LD_LIBRARY_PATH
15506 ;;
15507
15508*)
15509 dynamic_linker=no
15510 ;;
15511esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15513$as_echo "$dynamic_linker" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070015514test "$dynamic_linker" = no && can_build_shared=no
15515
15516variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15517if test "$GCC" = yes; then
15518 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15519fi
15520
15521if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15522 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15523fi
15524if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15525 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15526fi
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070015563
15564
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15566$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070015567hardcode_action_CXX=
15568if test -n "$hardcode_libdir_flag_spec_CXX" ||
15569 test -n "$runpath_var_CXX" ||
15570 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15571
15572 # We can hardcode non-existent directories.
15573 if test "$hardcode_direct_CXX" != no &&
15574 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15575 # have to relink, otherwise we might link with an installed library
15576 # when we should be linking with a yet-to-be-installed one
15577 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15578 test "$hardcode_minus_L_CXX" != no; then
15579 # Linking always hardcodes the temporary library directory.
15580 hardcode_action_CXX=relink
15581 else
15582 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15583 hardcode_action_CXX=immediate
15584 fi
15585else
15586 # We cannot hardcode anything, or else we can only hardcode existing
15587 # directories.
15588 hardcode_action_CXX=unsupported
15589fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15591$as_echo "$hardcode_action_CXX" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070015592
15593if test "$hardcode_action_CXX" = relink ||
15594 test "$inherit_rpath_CXX" = yes; then
15595 # Fast installation is not supported
15596 enable_fast_install=no
15597elif test "$shlibpath_overrides_runpath" = yes ||
15598 test "$enable_shared" = no; then
15599 # Fast installation is not necessary
15600 enable_fast_install=needless
15601fi
15602
15603
15604
15605
15606
15607
15608
15609 fi # test -n "$compiler"
15610
15611 CC=$lt_save_CC
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070015612 CFLAGS=$lt_save_CFLAGS
Wink Savillefbaaef92010-05-27 16:25:37 -070015613 LDCXX=$LD
15614 LD=$lt_save_LD
15615 GCC=$lt_save_GCC
15616 with_gnu_ld=$lt_save_with_gnu_ld
15617 lt_cv_path_LDCXX=$lt_cv_path_LD
15618 lt_cv_path_LD=$lt_save_path_LD
15619 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15620 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15621fi # test "$_lt_caught_CXX_error" != yes
15622
15623ac_ext=cpp
15624ac_cpp='$CXXCPP $CPPFLAGS'
15625ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15626ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15627ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070015641
15642
Wink Savillefbaaef92010-05-27 16:25:37 -070015643 ac_config_commands="$ac_config_commands libtool"
15644
15645
15646
15647
15648# Only expand once:
15649
15650
15651
15652# Checks for header files.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15654$as_echo_n "checking for ANSI C header files... " >&6; }
15655if ${ac_cv_header_stdc+:} false; then :
15656 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070015657else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070015659/* end confdefs.h. */
15660#include <stdlib.h>
15661#include <stdarg.h>
15662#include <string.h>
15663#include <float.h>
15664
15665int
15666main ()
15667{
15668
15669 ;
15670 return 0;
15671}
15672_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015673if ac_fn_cxx_try_compile "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070015674 ac_cv_header_stdc=yes
15675else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015676 ac_cv_header_stdc=no
Wink Savillefbaaef92010-05-27 16:25:37 -070015677fi
Wink Savillefbaaef92010-05-27 16:25:37 -070015678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15679
15680if test $ac_cv_header_stdc = yes; then
15681 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070015683/* end confdefs.h. */
15684#include <string.h>
15685
15686_ACEOF
15687if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015688 $EGREP "memchr" >/dev/null 2>&1; then :
15689
Wink Savillefbaaef92010-05-27 16:25:37 -070015690else
15691 ac_cv_header_stdc=no
15692fi
15693rm -f conftest*
15694
15695fi
15696
15697if test $ac_cv_header_stdc = yes; then
15698 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070015700/* end confdefs.h. */
15701#include <stdlib.h>
15702
15703_ACEOF
15704if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015705 $EGREP "free" >/dev/null 2>&1; then :
15706
Wink Savillefbaaef92010-05-27 16:25:37 -070015707else
15708 ac_cv_header_stdc=no
15709fi
15710rm -f conftest*
15711
15712fi
15713
15714if test $ac_cv_header_stdc = yes; then
15715 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015716 if test "$cross_compiling" = yes; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070015717 :
15718else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070015720/* end confdefs.h. */
15721#include <ctype.h>
15722#include <stdlib.h>
15723#if ((' ' & 0x0FF) == 0x020)
15724# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15725# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15726#else
15727# define ISLOWER(c) \
15728 (('a' <= (c) && (c) <= 'i') \
15729 || ('j' <= (c) && (c) <= 'r') \
15730 || ('s' <= (c) && (c) <= 'z'))
15731# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15732#endif
15733
15734#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15735int
15736main ()
15737{
15738 int i;
15739 for (i = 0; i < 256; i++)
15740 if (XOR (islower (i), ISLOWER (i))
15741 || toupper (i) != TOUPPER (i))
15742 return 2;
15743 return 0;
15744}
15745_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015746if ac_fn_cxx_try_run "$LINENO"; then :
15747
Wink Savillefbaaef92010-05-27 16:25:37 -070015748else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015749 ac_cv_header_stdc=no
Wink Savillefbaaef92010-05-27 16:25:37 -070015750fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015751rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15752 conftest.$ac_objext conftest.beam conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070015753fi
15754
Wink Savillefbaaef92010-05-27 16:25:37 -070015755fi
15756fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15758$as_echo "$ac_cv_header_stdc" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070015759if test $ac_cv_header_stdc = yes; then
15760
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015761$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Wink Savillefbaaef92010-05-27 16:25:37 -070015762
15763fi
15764
Wink Savillefbaaef92010-05-27 16:25:37 -070015765for ac_header in fcntl.h inttypes.h limits.h stdlib.h unistd.h
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015766do :
15767 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15768ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15769if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070015770 cat >>confdefs.h <<_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015771#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Wink Savillefbaaef92010-05-27 16:25:37 -070015772_ACEOF
15773
15774fi
15775
15776done
15777
15778
15779# Checks for library functions.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
15781$as_echo_n "checking for working memcmp... " >&6; }
15782if ${ac_cv_func_memcmp_working+:} false; then :
15783 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070015784else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015785 if test "$cross_compiling" = yes; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070015786 ac_cv_func_memcmp_working=no
15787else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070015789/* end confdefs.h. */
15790$ac_includes_default
15791int
15792main ()
15793{
15794
15795 /* Some versions of memcmp are not 8-bit clean. */
15796 char c0 = '\100', c1 = '\200', c2 = '\201';
15797 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
15798 return 1;
15799
15800 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
15801 or more and with at least one buffer not starting on a 4-byte boundary.
15802 William Lewis provided this test program. */
15803 {
15804 char foo[21];
15805 char bar[21];
15806 int i;
15807 for (i = 0; i < 4; i++)
15808 {
15809 char *a = foo + i;
15810 char *b = bar + i;
15811 strcpy (a, "--------01111111");
15812 strcpy (b, "--------10000000");
15813 if (memcmp (a, b, 16) >= 0)
15814 return 1;
15815 }
15816 return 0;
15817 }
15818
15819 ;
15820 return 0;
15821}
15822_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015823if ac_fn_cxx_try_run "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070015824 ac_cv_func_memcmp_working=yes
15825else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015826 ac_cv_func_memcmp_working=no
Wink Savillefbaaef92010-05-27 16:25:37 -070015827fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015828rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15829 conftest.$ac_objext conftest.beam conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070015830fi
15831
Wink Savillefbaaef92010-05-27 16:25:37 -070015832fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
15834$as_echo "$ac_cv_func_memcmp_working" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070015835test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
15836 *" memcmp.$ac_objext "* ) ;;
15837 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
15838 ;;
15839esac
15840
15841
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
15843$as_echo_n "checking for working strtod... " >&6; }
15844if ${ac_cv_func_strtod+:} false; then :
15845 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070015846else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015847 if test "$cross_compiling" = yes; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070015848 ac_cv_func_strtod=no
15849else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070015851/* end confdefs.h. */
15852
15853$ac_includes_default
15854#ifndef strtod
15855double strtod ();
15856#endif
15857int
15858main()
15859{
15860 {
15861 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
15862 char *string = " +69";
15863 char *term;
15864 double value;
15865 value = strtod (string, &term);
15866 if (value != 69 || term != (string + 4))
15867 return 1;
15868 }
15869
15870 {
15871 /* Under Solaris 2.4, strtod returns the wrong value for the
15872 terminating character under some conditions. */
15873 char *string = "NaN";
15874 char *term;
15875 strtod (string, &term);
15876 if (term != string && *(term - 1) == 0)
15877 return 1;
15878 }
15879 return 0;
15880}
15881
15882_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015883if ac_fn_cxx_try_run "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070015884 ac_cv_func_strtod=yes
15885else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015886 ac_cv_func_strtod=no
Wink Savillefbaaef92010-05-27 16:25:37 -070015887fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015888rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15889 conftest.$ac_objext conftest.beam conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070015890fi
15891
Wink Savillefbaaef92010-05-27 16:25:37 -070015892fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
15894$as_echo "$ac_cv_func_strtod" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070015895if test $ac_cv_func_strtod = no; then
15896 case " $LIBOBJS " in
15897 *" strtod.$ac_objext "* ) ;;
15898 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
15899 ;;
15900esac
15901
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015902ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
15903if test "x$ac_cv_func_pow" = xyes; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070015904
Wink Savillefbaaef92010-05-27 16:25:37 -070015905fi
15906
Wink Savillefbaaef92010-05-27 16:25:37 -070015907if test $ac_cv_func_pow = no; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
15909$as_echo_n "checking for pow in -lm... " >&6; }
15910if ${ac_cv_lib_m_pow+:} false; then :
15911 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070015912else
15913 ac_check_lib_save_LIBS=$LIBS
15914LIBS="-lm $LIBS"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070015916/* end confdefs.h. */
15917
15918/* Override any GCC internal prototype to avoid an error.
15919 Use char because int might match the return type of a GCC
15920 builtin and then its argument prototype would still apply. */
15921#ifdef __cplusplus
15922extern "C"
15923#endif
15924char pow ();
15925int
15926main ()
15927{
15928return pow ();
15929 ;
15930 return 0;
15931}
15932_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015933if ac_fn_cxx_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070015934 ac_cv_lib_m_pow=yes
15935else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015936 ac_cv_lib_m_pow=no
Wink Savillefbaaef92010-05-27 16:25:37 -070015937fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015938rm -f core conftest.err conftest.$ac_objext \
15939 conftest$ac_exeext conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070015940LIBS=$ac_check_lib_save_LIBS
15941fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
15943$as_echo "$ac_cv_lib_m_pow" >&6; }
15944if test "x$ac_cv_lib_m_pow" = xyes; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070015945 POW_LIB=-lm
15946else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
15948$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -070015949fi
15950
15951fi
15952
15953fi
15954
Wink Savillefbaaef92010-05-27 16:25:37 -070015955for ac_func in ftruncate memset mkdir strchr strerror strtol
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015956do :
15957 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15958ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
15959if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070015960 cat >>confdefs.h <<_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015961#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Wink Savillefbaaef92010-05-27 16:25:37 -070015962_ACEOF
15963
15964fi
15965done
15966
15967
Wink Savilled0332952010-05-29 13:00:38 -070015968# Check for zlib.
Wink Savillefbaaef92010-05-27 16:25:37 -070015969HAVE_ZLIB=0
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015970if test "$with_zlib" != no; then :
Wink Savilled0332952010-05-29 13:00:38 -070015971
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zlib version" >&5
15973$as_echo_n "checking zlib version... " >&6; }
Wink Savilled0332952010-05-29 13:00:38 -070015974
15975 # First check the zlib header version.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savilled0332952010-05-29 13:00:38 -070015977/* end confdefs.h. */
15978
15979 #include <zlib.h>
15980 #if !defined(ZLIB_VERNUM) || (ZLIB_VERNUM < 0x1204)
15981 # error zlib version too old
15982 #endif
15983
15984int
15985main ()
15986{
15987
15988 ;
15989 return 0;
15990}
15991_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015992if ac_fn_cxx_try_compile "$LINENO"; then :
Wink Savilled0332952010-05-29 13:00:38 -070015993
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (1.2.0.4 or later)" >&5
15995$as_echo "ok (1.2.0.4 or later)" >&6; }
Wink Savilled0332952010-05-29 13:00:38 -070015996
15997 # Also need to add -lz to the linker flags and make sure this succeeds.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070015998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
15999$as_echo_n "checking for library containing zlibVersion... " >&6; }
16000if ${ac_cv_search_zlibVersion+:} false; then :
16001 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070016002else
16003 ac_func_search_save_LIBS=$LIBS
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070016005/* end confdefs.h. */
16006
16007/* Override any GCC internal prototype to avoid an error.
16008 Use char because int might match the return type of a GCC
16009 builtin and then its argument prototype would still apply. */
16010#ifdef __cplusplus
16011extern "C"
16012#endif
16013char zlibVersion ();
16014int
16015main ()
16016{
16017return zlibVersion ();
16018 ;
16019 return 0;
16020}
16021_ACEOF
16022for ac_lib in '' z; do
16023 if test -z "$ac_lib"; then
16024 ac_res="none required"
16025 else
16026 ac_res=-l$ac_lib
16027 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16028 fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016029 if ac_fn_cxx_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070016030 ac_cv_search_zlibVersion=$ac_res
Wink Savillefbaaef92010-05-27 16:25:37 -070016031fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016032rm -f core conftest.err conftest.$ac_objext \
16033 conftest$ac_exeext
16034 if ${ac_cv_search_zlibVersion+:} false; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070016035 break
16036fi
16037done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016038if ${ac_cv_search_zlibVersion+:} false; then :
16039
Wink Savillefbaaef92010-05-27 16:25:37 -070016040else
16041 ac_cv_search_zlibVersion=no
16042fi
16043rm conftest.$ac_ext
16044LIBS=$ac_func_search_save_LIBS
16045fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
16047$as_echo "$ac_cv_search_zlibVersion" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070016048ac_res=$ac_cv_search_zlibVersion
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016049if test "$ac_res" != no; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070016050 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16051
Wink Savilled0332952010-05-29 13:00:38 -070016052
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016053$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
Wink Savillefbaaef92010-05-27 16:25:37 -070016054
Wink Savilled0332952010-05-29 13:00:38 -070016055 HAVE_ZLIB=1
16056
Wink Savillefbaaef92010-05-27 16:25:37 -070016057else
Wink Savilled0332952010-05-29 13:00:38 -070016058
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016059 if test "$with_zlib" != check; then :
Wink Savilled0332952010-05-29 13:00:38 -070016060
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016061 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16062$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16063as_fn_error $? "--with-zlib was given, but no working zlib library was found
16064See \`config.log' for more details" "$LINENO" 5; }
Wink Savilled0332952010-05-29 13:00:38 -070016065
Wink Savillefbaaef92010-05-27 16:25:37 -070016066fi
16067
Wink Savilled0332952010-05-29 13:00:38 -070016068fi
16069
16070
16071else
Wink Savilled0332952010-05-29 13:00:38 -070016072
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016073 if test "$with_zlib" = check; then :
Wink Savilled0332952010-05-29 13:00:38 -070016074
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: headers missing or too old (requires 1.2.0.4)" >&5
16076$as_echo "headers missing or too old (requires 1.2.0.4)" >&6; }
Wink Savilled0332952010-05-29 13:00:38 -070016077
16078else
16079
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16082as_fn_error $? "--with-zlib was given, but zlib headers were not present or were too old (requires 1.2.0.4)
16083See \`config.log' for more details" "$LINENO" 5; }
Wink Savilled0332952010-05-29 13:00:38 -070016084
16085fi
16086
Wink Savilled0332952010-05-29 13:00:38 -070016087fi
Wink Savilled0332952010-05-29 13:00:38 -070016088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16089
Wink Savillefbaaef92010-05-27 16:25:37 -070016090fi
Wink Savillefbaaef92010-05-27 16:25:37 -070016091 if test $HAVE_ZLIB = 1; then
16092 HAVE_ZLIB_TRUE=
16093 HAVE_ZLIB_FALSE='#'
16094else
16095 HAVE_ZLIB_TRUE='#'
16096 HAVE_ZLIB_FALSE=
16097fi
16098
16099
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016100if test "$with_protoc" != "no"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070016101
16102 PROTOC=$with_protoc
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070016103 if test "$with_protoc" = "yes"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070016104
16105 # No argument given. Use system protoc.
16106 PROTOC=protoc
16107
16108fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016109 if echo "$PROTOC" | grep -q '^[^/].*/'; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070016110
16111 # Does not start with a slash, but contains a slash. So, it's a relative
16112 # path (as opposed to an absolute path or an executable in $PATH).
16113 # Since it will actually be executed from the src directory, prefix with
16114 # the current directory. We also insert $ac_top_build_prefix in case this
16115 # is a nested package and --with-protoc was actually given on the outer
16116 # package's configure script.
16117 PROTOC=`pwd`/${ac_top_build_prefix}$PROTOC
16118
16119fi
16120
16121
Wink Savillefbaaef92010-05-27 16:25:37 -070016122fi
Wink Savillefbaaef92010-05-27 16:25:37 -070016123 if test "$with_protoc" != "no"; then
16124 USE_EXTERNAL_PROTOC_TRUE=
16125 USE_EXTERNAL_PROTOC_FALSE='#'
16126else
16127 USE_EXTERNAL_PROTOC_TRUE='#'
16128 USE_EXTERNAL_PROTOC_FALSE=
16129fi
16130
16131
16132
16133
16134
16135ac_ext=c
16136ac_cpp='$CPP $CPPFLAGS'
16137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16139ac_compiler_gnu=$ac_cv_c_compiler_gnu
16140
16141acx_pthread_ok=no
16142
16143# We used to check for pthread.h first, but this fails if pthread.h
16144# requires special compiler flags (e.g. on True64 or Sequent).
16145# It gets checked for in the link test anyway.
16146
16147# First of all, check if the user has set any of the PTHREAD_LIBS,
16148# etcetera environment variables, and if threads linking works using
16149# them:
16150if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16151 save_CFLAGS="$CFLAGS"
16152 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16153 save_LIBS="$LIBS"
16154 LIBS="$PTHREAD_LIBS $LIBS"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16156$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070016158/* end confdefs.h. */
16159
16160/* Override any GCC internal prototype to avoid an error.
16161 Use char because int might match the return type of a GCC
16162 builtin and then its argument prototype would still apply. */
16163#ifdef __cplusplus
16164extern "C"
16165#endif
16166char pthread_join ();
16167int
16168main ()
16169{
16170return pthread_join ();
16171 ;
16172 return 0;
16173}
16174_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016175if ac_fn_c_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070016176 acx_pthread_ok=yes
Wink Savillefbaaef92010-05-27 16:25:37 -070016177fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016178rm -f core conftest.err conftest.$ac_objext \
16179 conftest$ac_exeext conftest.$ac_ext
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16181$as_echo "$acx_pthread_ok" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070016182 if test x"$acx_pthread_ok" = xno; then
16183 PTHREAD_LIBS=""
16184 PTHREAD_CFLAGS=""
16185 fi
16186 LIBS="$save_LIBS"
16187 CFLAGS="$save_CFLAGS"
16188fi
16189
16190# We must check for the threads library under a number of different
16191# names; the ordering is very important because some systems
16192# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16193# libraries is broken (non-POSIX).
16194
16195# Create a list of thread flags to try. Items starting with a "-" are
16196# C compiler flags, and other items are library names, except for "none"
16197# which indicates that we try without any flags at all, and "pthread-config"
16198# which is a program returning the flags for the Pth emulation library.
16199
16200acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16201
16202# The ordering *is* (sometimes) important. Some notes on the
16203# individual items follow:
16204
16205# pthreads: AIX (must check this before -lpthread)
16206# none: in case threads are in libc; should be tried before -Kthread and
16207# other compiler flags to prevent continual compiler warnings
16208# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16209# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16210# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16211# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16212# -pthreads: Solaris/gcc
16213# -mthreads: Mingw32/gcc, Lynx/gcc
16214# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16215# doesn't hurt to check since this sometimes defines pthreads too;
16216# also defines -D_REENTRANT)
16217# ... -mt is also the pthreads flag for HP/aCC
16218# pthread: Linux, etcetera
16219# --thread-safe: KAI C++
16220# pthread-config: use pthread-config program (for GNU Pth library)
16221
16222case "${host_cpu}-${host_os}" in
16223 *solaris*)
16224
16225 # On Solaris (at least, for some versions), libc contains stubbed
16226 # (non-functional) versions of the pthreads routines, so link-based
16227 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
16228 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16229 # a function called by this macro, so we could check for that, but
16230 # who knows whether they'll stub that too in a future libc.) So,
16231 # we'll just look for -pthreads and -lpthread first:
16232
16233 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
16234 ;;
16235esac
16236
16237if test x"$acx_pthread_ok" = xno; then
16238for flag in $acx_pthread_flags; do
16239
16240 case $flag in
16241 none)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16243$as_echo_n "checking whether pthreads work without any flags... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070016244 ;;
16245
16246 -*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16248$as_echo_n "checking whether pthreads work with $flag... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070016249 PTHREAD_CFLAGS="$flag"
16250 ;;
16251
16252 pthread-config)
16253 # Extract the first word of "pthread-config", so it can be a program name with args.
16254set dummy pthread-config; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16256$as_echo_n "checking for $ac_word... " >&6; }
16257if ${ac_cv_prog_acx_pthread_config+:} false; then :
16258 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070016259else
16260 if test -n "$acx_pthread_config"; then
16261 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16262else
16263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16264for as_dir in $PATH
16265do
16266 IFS=$as_save_IFS
16267 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016268 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -080016269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Wink Savillefbaaef92010-05-27 16:25:37 -070016270 ac_cv_prog_acx_pthread_config="yes"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -070016272 break 2
16273 fi
16274done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016275 done
Wink Savillefbaaef92010-05-27 16:25:37 -070016276IFS=$as_save_IFS
16277
16278 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16279fi
16280fi
16281acx_pthread_config=$ac_cv_prog_acx_pthread_config
16282if test -n "$acx_pthread_config"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
16284$as_echo "$acx_pthread_config" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070016285else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16287$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070016288fi
16289
16290
16291 if test x"$acx_pthread_config" = xno; then continue; fi
16292 PTHREAD_CFLAGS="`pthread-config --cflags`"
16293 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16294 ;;
16295
16296 *)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16298$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070016299 PTHREAD_LIBS="-l$flag"
16300 ;;
16301 esac
16302
16303 save_LIBS="$LIBS"
16304 save_CFLAGS="$CFLAGS"
16305 LIBS="$PTHREAD_LIBS $LIBS"
16306 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16307
16308 # Check for various functions. We must include pthread.h,
16309 # since some functions may be macros. (On the Sequent, we
16310 # need a special flag -Kthread to make this header compile.)
16311 # We check for pthread_join because it is in -lpthread on IRIX
16312 # while pthread_create is in libc. We check for pthread_attr_init
16313 # due to DEC craziness with -lpthreads. We check for
16314 # pthread_cleanup_push because it is one of the few pthread
16315 # functions on Solaris that doesn't have a non-functional libc stub.
16316 # We try pthread_create on general principles.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070016318/* end confdefs.h. */
16319#include <pthread.h>
16320int
16321main ()
16322{
16323pthread_t th; pthread_join(th, 0);
16324 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16325 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16326 ;
16327 return 0;
16328}
16329_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016330if ac_fn_c_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070016331 acx_pthread_ok=yes
Wink Savillefbaaef92010-05-27 16:25:37 -070016332fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016333rm -f core conftest.err conftest.$ac_objext \
16334 conftest$ac_exeext conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070016335
16336 LIBS="$save_LIBS"
16337 CFLAGS="$save_CFLAGS"
16338
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16340$as_echo "$acx_pthread_ok" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070016341 if test "x$acx_pthread_ok" = xyes; then
16342 break;
16343 fi
16344
16345 PTHREAD_LIBS=""
16346 PTHREAD_CFLAGS=""
16347done
16348fi
16349
16350# Various other checks:
16351if test "x$acx_pthread_ok" = xyes; then
16352 save_LIBS="$LIBS"
16353 LIBS="$PTHREAD_LIBS $LIBS"
16354 save_CFLAGS="$CFLAGS"
16355 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16356
16357 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16359$as_echo_n "checking for joinable pthread attribute... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070016360 attr_name=unknown
16361 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070016363/* end confdefs.h. */
16364#include <pthread.h>
16365int
16366main ()
16367{
16368int attr=$attr; return attr;
16369 ;
16370 return 0;
16371}
16372_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016373if ac_fn_c_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070016374 attr_name=$attr; break
Wink Savillefbaaef92010-05-27 16:25:37 -070016375fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016376rm -f core conftest.err conftest.$ac_objext \
16377 conftest$ac_exeext conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070016378 done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16380$as_echo "$attr_name" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070016381 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16382
16383cat >>confdefs.h <<_ACEOF
16384#define PTHREAD_CREATE_JOINABLE $attr_name
16385_ACEOF
16386
16387 fi
16388
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16390$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070016391 flag=no
16392 case "${host_cpu}-${host_os}" in
16393 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16394 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16395 esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
16397$as_echo "${flag}" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070016398 if test "x$flag" != xno; then
16399 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16400 fi
16401
16402 LIBS="$save_LIBS"
16403 CFLAGS="$save_CFLAGS"
16404 # More AIX lossage: must compile with xlc_r or cc_r
16405 if test x"$GCC" != xyes; then
16406 for ac_prog in xlc_r cc_r
16407do
16408 # Extract the first word of "$ac_prog", so it can be a program name with args.
16409set dummy $ac_prog; ac_word=$2
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16411$as_echo_n "checking for $ac_word... " >&6; }
16412if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16413 $as_echo_n "(cached) " >&6
Wink Savillefbaaef92010-05-27 16:25:37 -070016414else
16415 if test -n "$PTHREAD_CC"; then
16416 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16417else
16418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16419for as_dir in $PATH
16420do
16421 IFS=$as_save_IFS
16422 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016423 for ac_exec_ext in '' $ac_executable_extensions; do
Jeff Davidson0ddac1f2015-01-20 10:18:05 -080016424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Wink Savillefbaaef92010-05-27 16:25:37 -070016425 ac_cv_prog_PTHREAD_CC="$ac_prog"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Wink Savillefbaaef92010-05-27 16:25:37 -070016427 break 2
16428 fi
16429done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016430 done
Wink Savillefbaaef92010-05-27 16:25:37 -070016431IFS=$as_save_IFS
16432
16433fi
16434fi
16435PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16436if test -n "$PTHREAD_CC"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16438$as_echo "$PTHREAD_CC" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070016439else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16441$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070016442fi
16443
16444
16445 test -n "$PTHREAD_CC" && break
16446done
16447test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
16448
16449 else
16450 PTHREAD_CC=$CC
16451 fi
16452
16453 # The next part tries to detect GCC inconsistency with -shared on some
16454 # architectures and systems. The problem is that in certain
16455 # configurations, when -shared is specified, GCC "forgets" to
16456 # internally use various flags which are still necessary.
16457
16458 #
16459 # Prepare the flags
16460 #
16461 save_CFLAGS="$CFLAGS"
16462 save_LIBS="$LIBS"
16463 save_CC="$CC"
16464
16465 # Try with the flags determined by the earlier checks.
16466 #
16467 # -Wl,-z,defs forces link-time symbol resolution, so that the
16468 # linking checks with -shared actually have any value
16469 #
16470 # FIXME: -fPIC is required for -shared on many architectures,
16471 # so we specify it here, but the right way would probably be to
16472 # properly detect whether it is actually required.
16473 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
16474 LIBS="$PTHREAD_LIBS $LIBS"
16475 CC="$PTHREAD_CC"
16476
16477 # In order not to create several levels of indentation, we test
16478 # the value of "$done" until we find the cure or run out of ideas.
16479 done="no"
16480
16481 # First, make sure the CFLAGS we added are actually accepted by our
16482 # compiler. If not (and OS X's ld, for instance, does not accept -z),
16483 # then we can't do this test.
16484 if test x"$done" = xno; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
16486$as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
16487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070016488/* end confdefs.h. */
16489
16490int
16491main ()
16492{
16493
16494 ;
16495 return 0;
16496}
16497_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016498if ac_fn_c_try_link "$LINENO"; then :
16499
Wink Savillefbaaef92010-05-27 16:25:37 -070016500else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016501 done=yes
Wink Savillefbaaef92010-05-27 16:25:37 -070016502fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016503rm -f core conftest.err conftest.$ac_objext \
16504 conftest$ac_exeext conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070016505
16506 if test "x$done" = xyes ; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16508$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070016509 else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16511$as_echo "yes" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070016512 fi
16513 fi
16514
16515 if test x"$done" = xno; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
16517$as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
16518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070016519/* end confdefs.h. */
16520#include <pthread.h>
16521int
16522main ()
16523{
16524pthread_t th; pthread_join(th, 0);
16525 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16526 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16527 ;
16528 return 0;
16529}
16530_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016531if ac_fn_c_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070016532 done=yes
Wink Savillefbaaef92010-05-27 16:25:37 -070016533fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016534rm -f core conftest.err conftest.$ac_objext \
16535 conftest$ac_exeext conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070016536
16537 if test "x$done" = xyes; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16539$as_echo "yes" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070016540 else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16542$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070016543 fi
16544 fi
16545
16546 #
16547 # Linux gcc on some architectures such as mips/mipsel forgets
16548 # about -lpthread
16549 #
16550 if test x"$done" = xno; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
16552$as_echo_n "checking whether -lpthread fixes that... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070016553 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070016555/* end confdefs.h. */
16556#include <pthread.h>
16557int
16558main ()
16559{
16560pthread_t th; pthread_join(th, 0);
16561 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16562 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16563 ;
16564 return 0;
16565}
16566_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016567if ac_fn_c_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070016568 done=yes
Wink Savillefbaaef92010-05-27 16:25:37 -070016569fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016570rm -f core conftest.err conftest.$ac_objext \
16571 conftest$ac_exeext conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070016572
16573 if test "x$done" = xyes; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16575$as_echo "yes" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070016576 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
16577 else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16579$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070016580 fi
16581 fi
16582 #
16583 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
16584 #
16585 if test x"$done" = xno; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
16587$as_echo_n "checking whether -lc_r fixes that... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070016588 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070016590/* end confdefs.h. */
16591#include <pthread.h>
16592int
16593main ()
16594{
16595pthread_t th; pthread_join(th, 0);
16596 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16597 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16598 ;
16599 return 0;
16600}
16601_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016602if ac_fn_c_try_link "$LINENO"; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070016603 done=yes
Wink Savillefbaaef92010-05-27 16:25:37 -070016604fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016605rm -f core conftest.err conftest.$ac_objext \
16606 conftest$ac_exeext conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070016607
16608 if test "x$done" = xyes; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16610$as_echo "yes" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070016611 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
16612 else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16614$as_echo "no" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070016615 fi
16616 fi
16617 if test x"$done" = xno; then
16618 # OK, we have run out of ideas
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
16620$as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -070016621
16622 # so it's not safe to assume that we may use pthreads
16623 acx_pthread_ok=no
16624 fi
16625
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070016626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether what we have so far is sufficient with -nostdlib" >&5
16627$as_echo_n "checking whether what we have so far is sufficient with -nostdlib... " >&6; }
16628 CFLAGS="-nostdlib $CFLAGS"
16629 # we need c with nostdlib
16630 LIBS="$LIBS -lc"
16631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16632/* end confdefs.h. */
16633#include <pthread.h>
16634int
16635main ()
16636{
16637pthread_t th; pthread_join(th, 0);
16638 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16639 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16640 ;
16641 return 0;
16642}
16643_ACEOF
16644if ac_fn_c_try_link "$LINENO"; then :
16645 done=yes
16646else
16647 done=no
16648fi
16649rm -f core conftest.err conftest.$ac_objext \
16650 conftest$ac_exeext conftest.$ac_ext
16651
16652 if test "x$done" = xyes; then
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16654$as_echo "yes" >&6; }
16655 else
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16657$as_echo "no" >&6; }
16658 fi
16659
16660 if test x"$done" = xno; then
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread saves the day" >&5
16662$as_echo_n "checking whether -lpthread saves the day... " >&6; }
16663 LIBS="-lpthread $LIBS"
16664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16665/* end confdefs.h. */
16666#include <pthread.h>
16667int
16668main ()
16669{
16670pthread_t th; pthread_join(th, 0);
16671 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16672 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16673 ;
16674 return 0;
16675}
16676_ACEOF
16677if ac_fn_c_try_link "$LINENO"; then :
16678 done=yes
16679else
16680 done=no
16681fi
16682rm -f core conftest.err conftest.$ac_objext \
16683 conftest$ac_exeext conftest.$ac_ext
16684
16685 if test "x$done" = xyes; then
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16687$as_echo "yes" >&6; }
16688 PTHREAD_LIBS="$PTHREAD_LIBS -lpthread"
16689 else
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16691$as_echo "no" >&6; }
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&5
16693$as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&2;}
16694 fi
16695 fi
16696
Wink Savillefbaaef92010-05-27 16:25:37 -070016697 CFLAGS="$save_CFLAGS"
16698 LIBS="$save_LIBS"
16699 CC="$save_CC"
16700else
16701 PTHREAD_CC="$CC"
16702fi
16703
16704
16705
16706
16707
16708# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16709if test x"$acx_pthread_ok" = xyes; then
16710
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016711$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
Wink Savillefbaaef92010-05-27 16:25:37 -070016712
16713 :
16714else
16715 acx_pthread_ok=no
16716
16717fi
16718ac_ext=cpp
16719ac_cpp='$CXXCPP $CPPFLAGS'
16720ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16721ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16722ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16723
16724
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070016725
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the location of hash_map" >&5
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016727$as_echo_n "checking the location of hash_map... " >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070016728
16729 ac_ext=cpp
16730ac_cpp='$CXXCPP $CPPFLAGS'
16731ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16732ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16733ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16734
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070016735 ac_cv_cxx_hash_map=""
16736 # First try unordered_map, but not on gcc's before 4.2 -- I've
16737 # seen unexplainable unordered_map bugs with -O2 on older gcc's.
16738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Wink Savillefbaaef92010-05-27 16:25:37 -070016739/* end confdefs.h. */
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070016740#if defined(__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 2))
16741 # error GCC too old for unordered_map
16742 #endif
16743
Wink Savillefbaaef92010-05-27 16:25:37 -070016744int
16745main ()
16746{
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070016747/* no program body necessary */
Wink Savillefbaaef92010-05-27 16:25:37 -070016748 ;
16749 return 0;
16750}
16751_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016752if ac_fn_cxx_try_compile "$LINENO"; then :
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070016753 stl_hash_old_gcc=no
16754else
16755 stl_hash_old_gcc=yes
Wink Savillefbaaef92010-05-27 16:25:37 -070016756fi
Wink Savillefbaaef92010-05-27 16:25:37 -070016757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070016758 for location in unordered_map tr1/unordered_map; do
16759 for namespace in std std::tr1; do
16760 if test -z "$ac_cv_cxx_hash_map" -a "$stl_hash_old_gcc" != yes; then
16761 # Some older gcc's have a buggy tr1, so test a bit of code.
16762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16763/* end confdefs.h. */
16764#include <$location>
16765int
16766main ()
16767{
16768const ${namespace}::unordered_map<int, int> t;
16769 return t.find(5) == t.end();
16770 ;
16771 return 0;
16772}
16773_ACEOF
16774if ac_fn_cxx_try_compile "$LINENO"; then :
16775 ac_cv_cxx_hash_map="<$location>";
16776 ac_cv_cxx_hash_namespace="$namespace";
16777 ac_cv_cxx_hash_map_class="unordered_map";
16778fi
16779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16780 fi
Wink Savillefbaaef92010-05-27 16:25:37 -070016781 done
16782 done
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070016783 # Now try hash_map
16784 for location in ext/hash_map hash_map; do
16785 for namespace in __gnu_cxx "" std stdext; do
16786 if test -z "$ac_cv_cxx_hash_map"; then
16787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16788/* end confdefs.h. */
16789#include <$location>
16790int
16791main ()
16792{
16793${namespace}::hash_map<int, int> t
16794 ;
16795 return 0;
16796}
16797_ACEOF
16798if ac_fn_cxx_try_compile "$LINENO"; then :
16799 ac_cv_cxx_hash_map="<$location>";
16800 ac_cv_cxx_hash_namespace="$namespace";
16801 ac_cv_cxx_hash_map_class="hash_map";
16802fi
16803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16804 fi
16805 done
16806 done
16807 ac_cv_cxx_hash_set=`echo "$ac_cv_cxx_hash_map" | sed s/map/set/`;
Wink Savilled0332952010-05-29 13:00:38 -070016808 ac_cv_cxx_hash_set_class=`echo "$ac_cv_cxx_hash_map_class" | sed s/map/set/`;
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070016809 if test -n "$ac_cv_cxx_hash_map"; then
Wink Savillefbaaef92010-05-27 16:25:37 -070016810
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016811$as_echo "#define HAVE_HASH_MAP 1" >>confdefs.h
Wink Savillefbaaef92010-05-27 16:25:37 -070016812
16813
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016814$as_echo "#define HAVE_HASH_SET 1" >>confdefs.h
Wink Savillefbaaef92010-05-27 16:25:37 -070016815
16816
16817cat >>confdefs.h <<_ACEOF
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070016818#define HASH_MAP_H $ac_cv_cxx_hash_map
Wink Savillefbaaef92010-05-27 16:25:37 -070016819_ACEOF
16820
16821
16822cat >>confdefs.h <<_ACEOF
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070016823#define HASH_SET_H $ac_cv_cxx_hash_set
16824_ACEOF
16825
16826
16827cat >>confdefs.h <<_ACEOF
16828#define HASH_NAMESPACE $ac_cv_cxx_hash_namespace
Wink Savilled0332952010-05-29 13:00:38 -070016829_ACEOF
16830
16831
16832cat >>confdefs.h <<_ACEOF
16833#define HASH_MAP_CLASS $ac_cv_cxx_hash_map_class
16834_ACEOF
16835
16836
16837cat >>confdefs.h <<_ACEOF
16838#define HASH_SET_CLASS $ac_cv_cxx_hash_set_class
Wink Savillefbaaef92010-05-27 16:25:37 -070016839_ACEOF
16840
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070016841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_hash_map" >&5
16842$as_echo "$ac_cv_cxx_hash_map" >&6; }
Wink Savillefbaaef92010-05-27 16:25:37 -070016843 else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16845$as_echo "" >&6; }
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find an STL hash_map" >&5
16847$as_echo "$as_me: WARNING: could not find an STL hash_map" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -070016848 fi
16849
16850
Jeff Davidsonafb4b722015-01-20 13:02:58 -080016851case "$target_os" in
16852 mingw* | cygwin* | win*)
16853 ;;
16854 *)
16855 # Need to link against rt on Solaris
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
16857$as_echo_n "checking for library containing sched_yield... " >&6; }
16858if ${ac_cv_search_sched_yield+:} false; then :
16859 $as_echo_n "(cached) " >&6
16860else
16861 ac_func_search_save_LIBS=$LIBS
16862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16863/* end confdefs.h. */
16864
16865/* Override any GCC internal prototype to avoid an error.
16866 Use char because int might match the return type of a GCC
16867 builtin and then its argument prototype would still apply. */
16868#ifdef __cplusplus
16869extern "C"
16870#endif
16871char sched_yield ();
16872int
16873main ()
16874{
16875return sched_yield ();
16876 ;
16877 return 0;
16878}
16879_ACEOF
16880for ac_lib in '' rt; do
16881 if test -z "$ac_lib"; then
16882 ac_res="none required"
16883 else
16884 ac_res=-l$ac_lib
16885 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16886 fi
16887 if ac_fn_cxx_try_link "$LINENO"; then :
16888 ac_cv_search_sched_yield=$ac_res
16889fi
16890rm -f core conftest.err conftest.$ac_objext \
16891 conftest$ac_exeext
16892 if ${ac_cv_search_sched_yield+:} false; then :
16893 break
16894fi
16895done
16896if ${ac_cv_search_sched_yield+:} false; then :
16897
16898else
16899 ac_cv_search_sched_yield=no
16900fi
16901rm conftest.$ac_ext
16902LIBS=$ac_func_search_save_LIBS
16903fi
16904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
16905$as_echo "$ac_cv_search_sched_yield" >&6; }
16906ac_res=$ac_cv_search_sched_yield
16907if test "$ac_res" != no; then :
16908 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16909
16910else
16911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16912$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16913as_fn_error $? "sched_yield was not found on your system
16914See \`config.log' for more details" "$LINENO" 5; }
16915fi
16916
16917 ;;
16918esac
16919
Wink Savilled0332952010-05-29 13:00:38 -070016920# HACK: Make gtest's configure script pick up our copy of CFLAGS and CXXFLAGS,
16921# since the flags added by ACX_CHECK_SUNCC must be used when compiling gtest
16922# too.
16923export CFLAGS
Wink Savillefbaaef92010-05-27 16:25:37 -070016924export CXXFLAGS
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016925
16926
Wink Savillefbaaef92010-05-27 16:25:37 -070016927subdirs="$subdirs gtest"
16928
16929
16930ac_config_files="$ac_config_files Makefile src/Makefile protobuf.pc protobuf-lite.pc"
16931
16932cat >confcache <<\_ACEOF
16933# This file is a shell script that caches the results of configure
16934# tests run on this system so they can be shared between configure
16935# scripts and configure runs, see configure's option --config-cache.
16936# It is not useful on other systems. If it contains results you don't
16937# want to keep, you may remove or edit it.
16938#
16939# config.status only pays attention to the cache file if you give it
16940# the --recheck option to rerun configure.
16941#
16942# `ac_cv_env_foo' variables (set or unset) will be overridden when
16943# loading this file, other *unset* `ac_cv_foo' will be assigned the
16944# following values.
16945
16946_ACEOF
16947
16948# The following way of writing the cache mishandles newlines in values,
16949# but we know of no workaround that is simple, portable, and efficient.
16950# So, we kill variables containing newlines.
16951# Ultrix sh set writes to stderr and can't be redirected directly,
16952# and sets the high bit in the cache file unless we assign to the vars.
16953(
16954 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16955 eval ac_val=\$$ac_var
16956 case $ac_val in #(
16957 *${as_nl}*)
16958 case $ac_var in #(
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016959 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16960$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070016961 esac
16962 case $ac_var in #(
16963 _ | IFS | as_nl) ;; #(
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016964 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16965 *) { eval $ac_var=; unset $ac_var;} ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070016966 esac ;;
16967 esac
16968 done
16969
16970 (set) 2>&1 |
16971 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16972 *${as_nl}ac_space=\ *)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016973 # `set' does not quote correctly, so add quotes: double-quote
16974 # substitution turns \\\\ into \\, and sed turns \\ into \.
Wink Savillefbaaef92010-05-27 16:25:37 -070016975 sed -n \
16976 "s/'/'\\\\''/g;
16977 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16978 ;; #(
16979 *)
16980 # `set' quotes correctly as required by POSIX, so do not add quotes.
16981 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16982 ;;
16983 esac |
16984 sort
16985) |
16986 sed '
16987 /^ac_cv_env_/b end
16988 t clear
16989 :clear
16990 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16991 t end
16992 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16993 :end' >>confcache
16994if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16995 if test -w "$cache_file"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070016996 if test "x$cache_file" != "x/dev/null"; then
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16998$as_echo "$as_me: updating cache $cache_file" >&6;}
16999 if test ! -f "$cache_file" || test -h "$cache_file"; then
17000 cat confcache >"$cache_file"
17001 else
17002 case $cache_file in #(
17003 */* | ?:*)
17004 mv -f confcache "$cache_file"$$ &&
17005 mv -f "$cache_file"$$ "$cache_file" ;; #(
17006 *)
17007 mv -f confcache "$cache_file" ;;
17008 esac
17009 fi
17010 fi
Wink Savillefbaaef92010-05-27 16:25:37 -070017011 else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017012 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17013$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Wink Savillefbaaef92010-05-27 16:25:37 -070017014 fi
17015fi
17016rm -f confcache
17017
17018test "x$prefix" = xNONE && prefix=$ac_default_prefix
17019# Let make expand exec_prefix.
17020test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17021
17022DEFS=-DHAVE_CONFIG_H
17023
17024ac_libobjs=
17025ac_ltlibobjs=
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017026U=
Wink Savillefbaaef92010-05-27 16:25:37 -070017027for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17028 # 1. Remove the extension, and $U if already installed.
17029 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017030 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Wink Savillefbaaef92010-05-27 16:25:37 -070017031 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17032 # will be set to the directory where LIBOBJS objects are built.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017033 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17034 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Wink Savillefbaaef92010-05-27 16:25:37 -070017035done
17036LIBOBJS=$ac_libobjs
17037
17038LTLIBOBJS=$ac_ltlibobjs
17039
17040
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070017041if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17042 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17043Usually this means the macro was only invoked conditionally." "$LINENO" 5
17044fi
Jeff Davidson0ddac1f2015-01-20 10:18:05 -080017045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17046$as_echo_n "checking that generated files are newer than configure... " >&6; }
17047 if test -n "$am_sleep_pid"; then
17048 # Hide warnings about reused PIDs.
17049 wait $am_sleep_pid 2>/dev/null
17050 fi
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17052$as_echo "done" >&6; }
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017053 if test -n "$EXEEXT"; then
17054 am__EXEEXT_TRUE=
17055 am__EXEEXT_FALSE='#'
17056else
17057 am__EXEEXT_TRUE='#'
17058 am__EXEEXT_FALSE=
Wink Savillefbaaef92010-05-27 16:25:37 -070017059fi
17060
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017061if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17062 as_fn_error $? "conditional \"AMDEP\" was never defined.
17063Usually this means the macro was only invoked conditionally." "$LINENO" 5
17064fi
17065if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17066 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17067Usually this means the macro was only invoked conditionally." "$LINENO" 5
17068fi
17069if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17070 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17071Usually this means the macro was only invoked conditionally." "$LINENO" 5
17072fi
17073if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
17074 as_fn_error $? "conditional \"GCC\" was never defined.
17075Usually this means the macro was only invoked conditionally." "$LINENO" 5
17076fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017077if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
17078 as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined.
17079Usually this means the macro was only invoked conditionally." "$LINENO" 5
17080fi
17081if test -z "${USE_EXTERNAL_PROTOC_TRUE}" && test -z "${USE_EXTERNAL_PROTOC_FALSE}"; then
17082 as_fn_error $? "conditional \"USE_EXTERNAL_PROTOC\" was never defined.
17083Usually this means the macro was only invoked conditionally." "$LINENO" 5
17084fi
17085
17086: "${CONFIG_STATUS=./config.status}"
17087ac_write_fail=0
Wink Savillefbaaef92010-05-27 16:25:37 -070017088ac_clean_files_save=$ac_clean_files
17089ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017090{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17091$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17092as_write_fail=0
17093cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Wink Savillefbaaef92010-05-27 16:25:37 -070017094#! $SHELL
17095# Generated by $as_me.
17096# Run this file to recreate the current configuration.
17097# Compiler output produced by configure, useful for debugging
17098# configure, is in config.log if it exists.
17099
17100debug=false
17101ac_cs_recheck=false
17102ac_cs_silent=false
Wink Savillefbaaef92010-05-27 16:25:37 -070017103
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017104SHELL=\${CONFIG_SHELL-$SHELL}
17105export SHELL
17106_ASEOF
17107cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17108## -------------------- ##
17109## M4sh Initialization. ##
17110## -------------------- ##
Wink Savillefbaaef92010-05-27 16:25:37 -070017111
17112# Be more Bourne compatible
17113DUALCASE=1; export DUALCASE # for MKS sh
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017114if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Wink Savillefbaaef92010-05-27 16:25:37 -070017115 emulate sh
17116 NULLCMD=:
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017117 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Wink Savillefbaaef92010-05-27 16:25:37 -070017118 # is contrary to our usage. Disable this feature.
17119 alias -g '${1+"$@"}'='"$@"'
17120 setopt NO_GLOB_SUBST
17121else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017122 case `(set -o) 2>/dev/null` in #(
17123 *posix*) :
17124 set -o posix ;; #(
17125 *) :
17126 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070017127esac
Wink Savillefbaaef92010-05-27 16:25:37 -070017128fi
17129
17130
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017131as_nl='
17132'
17133export as_nl
17134# Printing a long string crashes Solaris 7 /usr/bin/printf.
17135as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17136as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17137as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17138# Prefer a ksh shell builtin over an external printf program on Solaris,
17139# but without wasting forks for bash or zsh.
17140if test -z "$BASH_VERSION$ZSH_VERSION" \
17141 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17142 as_echo='print -r --'
17143 as_echo_n='print -rn --'
17144elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17145 as_echo='printf %s\n'
17146 as_echo_n='printf %s'
17147else
17148 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17149 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17150 as_echo_n='/usr/ucb/echo -n'
17151 else
17152 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17153 as_echo_n_body='eval
17154 arg=$1;
17155 case $arg in #(
17156 *"$as_nl"*)
17157 expr "X$arg" : "X\\(.*\\)$as_nl";
17158 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17159 esac;
17160 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17161 '
17162 export as_echo_n_body
17163 as_echo_n='sh -c $as_echo_n_body as_echo'
17164 fi
17165 export as_echo_body
17166 as_echo='sh -c $as_echo_body as_echo'
17167fi
Wink Savillefbaaef92010-05-27 16:25:37 -070017168
17169# The user is always right.
17170if test "${PATH_SEPARATOR+set}" != set; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017171 PATH_SEPARATOR=:
17172 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17173 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17174 PATH_SEPARATOR=';'
17175 }
Wink Savillefbaaef92010-05-27 16:25:37 -070017176fi
17177
17178
17179# IFS
17180# We need space, tab and new line, in precisely that order. Quoting is
17181# there to prevent editors from complaining about space-tab.
17182# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17183# splitting by setting IFS to empty value.)
Wink Savillefbaaef92010-05-27 16:25:37 -070017184IFS=" "" $as_nl"
17185
17186# Find who we are. Look in the path if we contain no directory separator.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017187as_myself=
17188case $0 in #((
Wink Savillefbaaef92010-05-27 16:25:37 -070017189 *[\\/]* ) as_myself=$0 ;;
17190 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17191for as_dir in $PATH
17192do
17193 IFS=$as_save_IFS
17194 test -z "$as_dir" && as_dir=.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017195 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17196 done
Wink Savillefbaaef92010-05-27 16:25:37 -070017197IFS=$as_save_IFS
17198
17199 ;;
17200esac
17201# We did not find ourselves, most probably we were run as `sh COMMAND'
17202# in which case we are not to be found in the path.
17203if test "x$as_myself" = x; then
17204 as_myself=$0
17205fi
17206if test ! -f "$as_myself"; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017207 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17208 exit 1
Wink Savillefbaaef92010-05-27 16:25:37 -070017209fi
17210
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017211# Unset variables that we do not need and which cause bugs (e.g. in
17212# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17213# suppresses any "Segmentation fault" message there. '((' could
17214# trigger a bug in pdksh 5.2.14.
17215for as_var in BASH_ENV ENV MAIL MAILPATH
17216do eval test x\${$as_var+set} = xset \
17217 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Wink Savillefbaaef92010-05-27 16:25:37 -070017218done
17219PS1='$ '
17220PS2='> '
17221PS4='+ '
17222
17223# NLS nuisances.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017224LC_ALL=C
17225export LC_ALL
17226LANGUAGE=C
17227export LANGUAGE
Wink Savillefbaaef92010-05-27 16:25:37 -070017228
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017229# CDPATH.
17230(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17231
17232
17233# as_fn_error STATUS ERROR [LINENO LOG_FD]
17234# ----------------------------------------
17235# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17236# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17237# script with STATUS, using 1 if that was 0.
17238as_fn_error ()
17239{
17240 as_status=$1; test $as_status -eq 0 && as_status=1
17241 if test "$4"; then
17242 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17243 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17244 fi
17245 $as_echo "$as_me: error: $2" >&2
17246 as_fn_exit $as_status
17247} # as_fn_error
17248
17249
17250# as_fn_set_status STATUS
17251# -----------------------
17252# Set $? to STATUS, without forking.
17253as_fn_set_status ()
17254{
17255 return $1
17256} # as_fn_set_status
17257
17258# as_fn_exit STATUS
17259# -----------------
17260# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17261as_fn_exit ()
17262{
17263 set +e
17264 as_fn_set_status $1
17265 exit $1
17266} # as_fn_exit
17267
17268# as_fn_unset VAR
17269# ---------------
17270# Portably unset VAR.
17271as_fn_unset ()
17272{
17273 { eval $1=; unset $1;}
17274}
17275as_unset=as_fn_unset
17276# as_fn_append VAR VALUE
17277# ----------------------
17278# Append the text in VALUE to the end of the definition contained in VAR. Take
17279# advantage of any shell optimizations that allow amortized linear growth over
17280# repeated appends, instead of the typical quadratic growth present in naive
17281# implementations.
17282if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17283 eval 'as_fn_append ()
17284 {
17285 eval $1+=\$2
17286 }'
17287else
17288 as_fn_append ()
17289 {
17290 eval $1=\$$1\$2
17291 }
17292fi # as_fn_append
17293
17294# as_fn_arith ARG...
17295# ------------------
17296# Perform arithmetic evaluation on the ARGs, and store the result in the
17297# global $as_val. Take advantage of shells that can avoid forks. The arguments
17298# must be portable across $(()) and expr.
17299if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17300 eval 'as_fn_arith ()
17301 {
17302 as_val=$(( $* ))
17303 }'
17304else
17305 as_fn_arith ()
17306 {
17307 as_val=`expr "$@" || test $? -eq 1`
17308 }
17309fi # as_fn_arith
17310
17311
Wink Savillefbaaef92010-05-27 16:25:37 -070017312if expr a : '\(a\)' >/dev/null 2>&1 &&
17313 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17314 as_expr=expr
17315else
17316 as_expr=false
17317fi
17318
17319if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17320 as_basename=basename
17321else
17322 as_basename=false
17323fi
17324
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017325if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17326 as_dirname=dirname
17327else
17328 as_dirname=false
17329fi
Wink Savillefbaaef92010-05-27 16:25:37 -070017330
Wink Savillefbaaef92010-05-27 16:25:37 -070017331as_me=`$as_basename -- "$0" ||
17332$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17333 X"$0" : 'X\(//\)$' \| \
17334 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017335$as_echo X/"$0" |
Wink Savillefbaaef92010-05-27 16:25:37 -070017336 sed '/^.*\/\([^/][^/]*\)\/*$/{
17337 s//\1/
17338 q
17339 }
17340 /^X\/\(\/\/\)$/{
17341 s//\1/
17342 q
17343 }
17344 /^X\/\(\/\).*/{
17345 s//\1/
17346 q
17347 }
17348 s/.*/./; q'`
17349
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017350# Avoid depending upon Character Ranges.
17351as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17352as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17353as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17354as_cr_digits='0123456789'
17355as_cr_alnum=$as_cr_Letters$as_cr_digits
Wink Savillefbaaef92010-05-27 16:25:37 -070017356
17357ECHO_C= ECHO_N= ECHO_T=
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017358case `echo -n x` in #(((((
Wink Savillefbaaef92010-05-27 16:25:37 -070017359-n*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017360 case `echo 'xy\c'` in
Wink Savillefbaaef92010-05-27 16:25:37 -070017361 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017362 xy) ECHO_C='\c';;
17363 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17364 ECHO_T=' ';;
Wink Savillefbaaef92010-05-27 16:25:37 -070017365 esac;;
17366*)
17367 ECHO_N='-n';;
17368esac
17369
Wink Savillefbaaef92010-05-27 16:25:37 -070017370rm -f conf$$ conf$$.exe conf$$.file
17371if test -d conf$$.dir; then
17372 rm -f conf$$.dir/conf$$.file
17373else
17374 rm -f conf$$.dir
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017375 mkdir conf$$.dir 2>/dev/null
Wink Savillefbaaef92010-05-27 16:25:37 -070017376fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017377if (echo >conf$$.file) 2>/dev/null; then
17378 if ln -s conf$$.file conf$$ 2>/dev/null; then
17379 as_ln_s='ln -s'
17380 # ... but there are two gotchas:
17381 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17382 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Jeff Davidson0ddac1f2015-01-20 10:18:05 -080017383 # In both cases, we have to default to `cp -pR'.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017384 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Jeff Davidson0ddac1f2015-01-20 10:18:05 -080017385 as_ln_s='cp -pR'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017386 elif ln conf$$.file conf$$ 2>/dev/null; then
17387 as_ln_s=ln
17388 else
Jeff Davidson0ddac1f2015-01-20 10:18:05 -080017389 as_ln_s='cp -pR'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017390 fi
Wink Savillefbaaef92010-05-27 16:25:37 -070017391else
Jeff Davidson0ddac1f2015-01-20 10:18:05 -080017392 as_ln_s='cp -pR'
Wink Savillefbaaef92010-05-27 16:25:37 -070017393fi
17394rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17395rmdir conf$$.dir 2>/dev/null
17396
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017397
17398# as_fn_mkdir_p
17399# -------------
17400# Create "$as_dir" as a directory, including parents if necessary.
17401as_fn_mkdir_p ()
17402{
17403
17404 case $as_dir in #(
17405 -*) as_dir=./$as_dir;;
17406 esac
17407 test -d "$as_dir" || eval $as_mkdir_p || {
17408 as_dirs=
17409 while :; do
17410 case $as_dir in #(
17411 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17412 *) as_qdir=$as_dir;;
17413 esac
17414 as_dirs="'$as_qdir' $as_dirs"
17415 as_dir=`$as_dirname -- "$as_dir" ||
17416$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17417 X"$as_dir" : 'X\(//\)[^/]' \| \
17418 X"$as_dir" : 'X\(//\)$' \| \
17419 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17420$as_echo X"$as_dir" |
17421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17422 s//\1/
17423 q
17424 }
17425 /^X\(\/\/\)[^/].*/{
17426 s//\1/
17427 q
17428 }
17429 /^X\(\/\/\)$/{
17430 s//\1/
17431 q
17432 }
17433 /^X\(\/\).*/{
17434 s//\1/
17435 q
17436 }
17437 s/.*/./; q'`
17438 test -d "$as_dir" && break
17439 done
17440 test -z "$as_dirs" || eval "mkdir $as_dirs"
17441 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17442
17443
17444} # as_fn_mkdir_p
Wink Savillefbaaef92010-05-27 16:25:37 -070017445if mkdir -p . 2>/dev/null; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017446 as_mkdir_p='mkdir -p "$as_dir"'
Wink Savillefbaaef92010-05-27 16:25:37 -070017447else
17448 test -d ./-p && rmdir ./-p
17449 as_mkdir_p=false
17450fi
17451
Jeff Davidson0ddac1f2015-01-20 10:18:05 -080017452
17453# as_fn_executable_p FILE
17454# -----------------------
17455# Test if FILE is an executable regular file.
17456as_fn_executable_p ()
17457{
17458 test -f "$1" && test -x "$1"
17459} # as_fn_executable_p
17460as_test_x='test -x'
17461as_executable_p=as_fn_executable_p
Wink Savillefbaaef92010-05-27 16:25:37 -070017462
17463# Sed expression to map a string onto a valid CPP name.
17464as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17465
17466# Sed expression to map a string onto a valid variable name.
17467as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17468
17469
17470exec 6>&1
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017471## ----------------------------------- ##
17472## Main body of $CONFIG_STATUS script. ##
17473## ----------------------------------- ##
17474_ASEOF
17475test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Wink Savillefbaaef92010-05-27 16:25:37 -070017476
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17478# Save the log message, to keep $0 and so on meaningful, and to
Wink Savillefbaaef92010-05-27 16:25:37 -070017479# report actual input values of CONFIG_FILES etc. instead of their
17480# values after options handling.
17481ac_log="
Jeff Davidsonafb4b722015-01-20 13:02:58 -080017482This file was extended by Protocol Buffers $as_me 2.6.1, which was
Jeff Davidson0ddac1f2015-01-20 10:18:05 -080017483generated by GNU Autoconf 2.69. Invocation command line was
Wink Savillefbaaef92010-05-27 16:25:37 -070017484
17485 CONFIG_FILES = $CONFIG_FILES
17486 CONFIG_HEADERS = $CONFIG_HEADERS
17487 CONFIG_LINKS = $CONFIG_LINKS
17488 CONFIG_COMMANDS = $CONFIG_COMMANDS
17489 $ $0 $@
17490
17491on `(hostname || uname -n) 2>/dev/null | sed 1q`
17492"
17493
17494_ACEOF
17495
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017496case $ac_config_files in *"
17497"*) set x $ac_config_files; shift; ac_config_files=$*;;
17498esac
17499
17500case $ac_config_headers in *"
17501"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17502esac
17503
17504
17505cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Wink Savillefbaaef92010-05-27 16:25:37 -070017506# Files that config.status was made for.
17507config_files="$ac_config_files"
17508config_headers="$ac_config_headers"
17509config_commands="$ac_config_commands"
17510
17511_ACEOF
17512
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017513cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Wink Savillefbaaef92010-05-27 16:25:37 -070017514ac_cs_usage="\
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017515\`$as_me' instantiates files and other configuration actions
17516from templates according to the current configuration. Unless the files
17517and actions are specified as TAGs, all are instantiated by default.
Wink Savillefbaaef92010-05-27 16:25:37 -070017518
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017519Usage: $0 [OPTION]... [TAG]...
Wink Savillefbaaef92010-05-27 16:25:37 -070017520
17521 -h, --help print this help, then exit
17522 -V, --version print version number and configuration settings, then exit
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017523 --config print configuration, then exit
17524 -q, --quiet, --silent
17525 do not print progress messages
Wink Savillefbaaef92010-05-27 16:25:37 -070017526 -d, --debug don't remove temporary files
17527 --recheck update $as_me by reconfiguring in the same conditions
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017528 --file=FILE[:TEMPLATE]
17529 instantiate the configuration file FILE
17530 --header=FILE[:TEMPLATE]
17531 instantiate the configuration header FILE
Wink Savillefbaaef92010-05-27 16:25:37 -070017532
17533Configuration files:
17534$config_files
17535
17536Configuration headers:
17537$config_headers
17538
17539Configuration commands:
17540$config_commands
17541
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017542Report bugs to <[email protected]>."
Wink Savillefbaaef92010-05-27 16:25:37 -070017543
17544_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017545cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17546ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Wink Savillefbaaef92010-05-27 16:25:37 -070017547ac_cs_version="\\
Jeff Davidsonafb4b722015-01-20 13:02:58 -080017548Protocol Buffers config.status 2.6.1
Jeff Davidson0ddac1f2015-01-20 10:18:05 -080017549configured by $0, generated by GNU Autoconf 2.69,
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017550 with options \\"\$ac_cs_config\\"
Wink Savillefbaaef92010-05-27 16:25:37 -070017551
Jeff Davidson0ddac1f2015-01-20 10:18:05 -080017552Copyright (C) 2012 Free Software Foundation, Inc.
Wink Savillefbaaef92010-05-27 16:25:37 -070017553This config.status script is free software; the Free Software Foundation
17554gives unlimited permission to copy, distribute and modify it."
17555
17556ac_pwd='$ac_pwd'
17557srcdir='$srcdir'
17558INSTALL='$INSTALL'
17559MKDIR_P='$MKDIR_P'
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017560AWK='$AWK'
17561test -n "\$AWK" || AWK=awk
Wink Savillefbaaef92010-05-27 16:25:37 -070017562_ACEOF
17563
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017564cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17565# The default lists apply if the user does not specify any file.
Wink Savillefbaaef92010-05-27 16:25:37 -070017566ac_need_defaults=:
17567while test $# != 0
17568do
17569 case $1 in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017570 --*=?*)
Wink Savillefbaaef92010-05-27 16:25:37 -070017571 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17572 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17573 ac_shift=:
17574 ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017575 --*=)
17576 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17577 ac_optarg=
17578 ac_shift=:
17579 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070017580 *)
17581 ac_option=$1
17582 ac_optarg=$2
17583 ac_shift=shift
17584 ;;
17585 esac
17586
17587 case $ac_option in
17588 # Handling of the options.
17589 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17590 ac_cs_recheck=: ;;
17591 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017592 $as_echo "$ac_cs_version"; exit ;;
17593 --config | --confi | --conf | --con | --co | --c )
17594 $as_echo "$ac_cs_config"; exit ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070017595 --debug | --debu | --deb | --de | --d | -d )
17596 debug=: ;;
17597 --file | --fil | --fi | --f )
17598 $ac_shift
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017599 case $ac_optarg in
17600 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17601 '') as_fn_error $? "missing file argument" ;;
17602 esac
17603 as_fn_append CONFIG_FILES " '$ac_optarg'"
Wink Savillefbaaef92010-05-27 16:25:37 -070017604 ac_need_defaults=false;;
17605 --header | --heade | --head | --hea )
17606 $ac_shift
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017607 case $ac_optarg in
17608 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17609 esac
17610 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Wink Savillefbaaef92010-05-27 16:25:37 -070017611 ac_need_defaults=false;;
17612 --he | --h)
17613 # Conflict between --help and --header
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017614 as_fn_error $? "ambiguous option: \`$1'
17615Try \`$0 --help' for more information.";;
Wink Savillefbaaef92010-05-27 16:25:37 -070017616 --help | --hel | -h )
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017617 $as_echo "$ac_cs_usage"; exit ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070017618 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17619 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17620 ac_cs_silent=: ;;
17621
17622 # This is an error.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017623 -*) as_fn_error $? "unrecognized option: \`$1'
17624Try \`$0 --help' for more information." ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070017625
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017626 *) as_fn_append ac_config_targets " $1"
Wink Savillefbaaef92010-05-27 16:25:37 -070017627 ac_need_defaults=false ;;
17628
17629 esac
17630 shift
17631done
17632
17633ac_configure_extra_args=
17634
17635if $ac_cs_silent; then
17636 exec 6>/dev/null
17637 ac_configure_extra_args="$ac_configure_extra_args --silent"
17638fi
17639
17640_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017641cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Wink Savillefbaaef92010-05-27 16:25:37 -070017642if \$ac_cs_recheck; then
Jeff Davidson0ddac1f2015-01-20 10:18:05 -080017643 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017644 shift
17645 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17646 CONFIG_SHELL='$SHELL'
Wink Savillefbaaef92010-05-27 16:25:37 -070017647 export CONFIG_SHELL
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017648 exec "\$@"
Wink Savillefbaaef92010-05-27 16:25:37 -070017649fi
17650
17651_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017652cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Wink Savillefbaaef92010-05-27 16:25:37 -070017653exec 5>>config.log
17654{
17655 echo
17656 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17657## Running $as_me. ##
17658_ASBOX
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017659 $as_echo "$ac_log"
Wink Savillefbaaef92010-05-27 16:25:37 -070017660} >&5
17661
17662_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070017663cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Wink Savillefbaaef92010-05-27 16:25:37 -070017664#
17665# INIT-COMMANDS
17666#
17667AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17668
17669
17670# The HP-UX ksh and POSIX shell print the target directory to stdout
17671# if CDPATH is set.
17672(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17673
17674sed_quote_subst='$sed_quote_subst'
17675double_quote_subst='$double_quote_subst'
17676delay_variable_subst='$delay_variable_subst'
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070017677macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17678macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17679enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17680enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17681pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17682enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17683SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17684ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17685PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17686host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17687host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17688host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17689build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17690build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17691build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17692SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17693Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17694GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17695EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17696FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17697LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17698NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17699LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17700max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17701ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17702exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17703lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17704lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17705lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17706lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17707lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17708reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17709reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17710OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17711deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17712file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17713file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17714want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17715DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17716sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17717AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17718AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17719archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17720STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17721RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17722old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17723old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17724old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17725lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17726CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17727CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17728compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17729GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17730lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17731lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17732lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17733lt_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"`'
17734nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17735lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17736objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17737MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17738lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17739lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17740lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17741lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17742lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17743need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17744MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17745DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17746NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17747LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17748OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17749OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17750libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17751shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17752extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17753archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17754enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17755export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17756whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17757compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17758old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17759old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17760archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17761archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17762module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17763module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17764with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17765allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17766no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17767hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17768hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17769hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17770hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17771hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17772hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17773hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17774inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17775link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17776always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17777export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17778exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17779include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17780prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17781postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17782file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17783variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17784need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17785need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17786version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17787runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17788shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17789shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17790libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17791library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17792soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17793install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17794postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17795postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17796finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17797finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17798hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17799sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17800sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17801hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17802enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17803enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17804enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17805old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17806striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17807compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17808predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17809postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17810predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17811postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17812compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17813LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17814reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17815reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17816old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17817compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17818GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17819lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17820lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17821lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17822lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17823lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17824archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17825enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17826export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17827whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17828compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17829old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17830old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17831archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17832archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17833module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17834module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17835with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17836allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17837no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17838hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17839hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17840hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17841hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17842hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17843hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17844hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17845inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17846link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17847always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17848export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17849exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17850include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17851prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17852postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17853file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17854hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17855compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17856predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17857postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17858predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17859postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17860compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
Wink Savillefbaaef92010-05-27 16:25:37 -070017861
17862LTCC='$LTCC'
17863LTCFLAGS='$LTCFLAGS'
17864compiler='$compiler_DEFAULT'
17865
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070017866# A function that is used when there is no print builtin or printf.
17867func_fallback_echo ()
17868{
17869 eval 'cat <<_LTECHO_EOF
17870\$1
17871_LTECHO_EOF'
17872}
17873
Wink Savillefbaaef92010-05-27 16:25:37 -070017874# Quote evaled strings.
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070017875for var in SHELL \
17876ECHO \
17877PATH_SEPARATOR \
17878SED \
Wink Savillefbaaef92010-05-27 16:25:37 -070017879GREP \
17880EGREP \
17881FGREP \
17882LD \
17883NM \
17884LN_S \
17885lt_SP2NL \
17886lt_NL2SP \
17887reload_flag \
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070017888OBJDUMP \
Wink Savillefbaaef92010-05-27 16:25:37 -070017889deplibs_check_method \
17890file_magic_cmd \
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070017891file_magic_glob \
17892want_nocaseglob \
17893DLLTOOL \
17894sharedlib_from_linklib_cmd \
Wink Savillefbaaef92010-05-27 16:25:37 -070017895AR \
17896AR_FLAGS \
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070017897archiver_list_spec \
Wink Savillefbaaef92010-05-27 16:25:37 -070017898STRIP \
17899RANLIB \
17900CC \
17901CFLAGS \
17902compiler \
17903lt_cv_sys_global_symbol_pipe \
17904lt_cv_sys_global_symbol_to_cdecl \
17905lt_cv_sys_global_symbol_to_c_name_address \
17906lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070017907nm_file_list_spec \
Wink Savillefbaaef92010-05-27 16:25:37 -070017908lt_prog_compiler_no_builtin_flag \
Wink Savillefbaaef92010-05-27 16:25:37 -070017909lt_prog_compiler_pic \
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070017910lt_prog_compiler_wl \
Wink Savillefbaaef92010-05-27 16:25:37 -070017911lt_prog_compiler_static \
17912lt_cv_prog_compiler_c_o \
17913need_locks \
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070017914MANIFEST_TOOL \
Wink Savillefbaaef92010-05-27 16:25:37 -070017915DSYMUTIL \
17916NMEDIT \
17917LIPO \
17918OTOOL \
17919OTOOL64 \
17920shrext_cmds \
17921export_dynamic_flag_spec \
17922whole_archive_flag_spec \
17923compiler_needs_object \
17924with_gnu_ld \
17925allow_undefined_flag \
17926no_undefined_flag \
17927hardcode_libdir_flag_spec \
Wink Savillefbaaef92010-05-27 16:25:37 -070017928hardcode_libdir_separator \
Wink Savillefbaaef92010-05-27 16:25:37 -070017929exclude_expsyms \
17930include_expsyms \
17931file_list_spec \
17932variables_saved_for_relink \
17933libname_spec \
17934library_names_spec \
17935soname_spec \
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070017936install_override_mode \
Wink Savillefbaaef92010-05-27 16:25:37 -070017937finish_eval \
17938old_striplib \
17939striplib \
17940compiler_lib_search_dirs \
17941predep_objects \
17942postdep_objects \
17943predeps \
17944postdeps \
17945compiler_lib_search_path \
17946LD_CXX \
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070017947reload_flag_CXX \
Wink Savillefbaaef92010-05-27 16:25:37 -070017948compiler_CXX \
17949lt_prog_compiler_no_builtin_flag_CXX \
Wink Savillefbaaef92010-05-27 16:25:37 -070017950lt_prog_compiler_pic_CXX \
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070017951lt_prog_compiler_wl_CXX \
Wink Savillefbaaef92010-05-27 16:25:37 -070017952lt_prog_compiler_static_CXX \
17953lt_cv_prog_compiler_c_o_CXX \
17954export_dynamic_flag_spec_CXX \
17955whole_archive_flag_spec_CXX \
17956compiler_needs_object_CXX \
17957with_gnu_ld_CXX \
17958allow_undefined_flag_CXX \
17959no_undefined_flag_CXX \
17960hardcode_libdir_flag_spec_CXX \
Wink Savillefbaaef92010-05-27 16:25:37 -070017961hardcode_libdir_separator_CXX \
Wink Savillefbaaef92010-05-27 16:25:37 -070017962exclude_expsyms_CXX \
17963include_expsyms_CXX \
17964file_list_spec_CXX \
17965compiler_lib_search_dirs_CXX \
17966predep_objects_CXX \
17967postdep_objects_CXX \
17968predeps_CXX \
17969postdeps_CXX \
17970compiler_lib_search_path_CXX; do
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070017971 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Wink Savillefbaaef92010-05-27 16:25:37 -070017972 *[\\\\\\\`\\"\\\$]*)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070017973 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
Wink Savillefbaaef92010-05-27 16:25:37 -070017974 ;;
17975 *)
17976 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17977 ;;
17978 esac
17979done
17980
17981# Double-quote double-evaled strings.
17982for var in reload_cmds \
17983old_postinstall_cmds \
17984old_postuninstall_cmds \
17985old_archive_cmds \
17986extract_expsyms_cmds \
17987old_archive_from_new_cmds \
17988old_archive_from_expsyms_cmds \
17989archive_cmds \
17990archive_expsym_cmds \
17991module_cmds \
17992module_expsym_cmds \
17993export_symbols_cmds \
17994prelink_cmds \
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070017995postlink_cmds \
Wink Savillefbaaef92010-05-27 16:25:37 -070017996postinstall_cmds \
17997postuninstall_cmds \
17998finish_cmds \
17999sys_lib_search_path_spec \
18000sys_lib_dlsearch_path_spec \
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070018001reload_cmds_CXX \
Wink Savillefbaaef92010-05-27 16:25:37 -070018002old_archive_cmds_CXX \
18003old_archive_from_new_cmds_CXX \
18004old_archive_from_expsyms_cmds_CXX \
18005archive_cmds_CXX \
18006archive_expsym_cmds_CXX \
18007module_cmds_CXX \
18008module_expsym_cmds_CXX \
18009export_symbols_cmds_CXX \
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070018010prelink_cmds_CXX \
18011postlink_cmds_CXX; do
18012 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Wink Savillefbaaef92010-05-27 16:25:37 -070018013 *[\\\\\\\`\\"\\\$]*)
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070018014 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
Wink Savillefbaaef92010-05-27 16:25:37 -070018015 ;;
18016 *)
18017 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18018 ;;
18019 esac
18020done
18021
Wink Savillefbaaef92010-05-27 16:25:37 -070018022ac_aux_dir='$ac_aux_dir'
18023xsi_shell='$xsi_shell'
18024lt_shell_append='$lt_shell_append'
18025
18026# See if we are running on zsh, and set the options which allow our
18027# commands through without removal of \ escapes INIT.
18028if test -n "\${ZSH_VERSION+set}" ; then
18029 setopt NO_GLOB_SUBST
18030fi
18031
18032
18033 PACKAGE='$PACKAGE'
18034 VERSION='$VERSION'
18035 TIMESTAMP='$TIMESTAMP'
18036 RM='$RM'
18037 ofile='$ofile'
18038
18039
18040
18041
18042
18043
18044_ACEOF
18045
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018046cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Wink Savillefbaaef92010-05-27 16:25:37 -070018047
18048# Handling of arguments.
18049for ac_config_target in $ac_config_targets
18050do
18051 case $ac_config_target in
18052 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18053 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18054 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18055 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18056 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18057 "protobuf.pc") CONFIG_FILES="$CONFIG_FILES protobuf.pc" ;;
18058 "protobuf-lite.pc") CONFIG_FILES="$CONFIG_FILES protobuf-lite.pc" ;;
18059
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018060 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Wink Savillefbaaef92010-05-27 16:25:37 -070018061 esac
18062done
18063
18064
18065# If the user did not use the arguments to specify the items to instantiate,
18066# then the envvar interface is used. Set only those that are not.
18067# We use the long form for the default assignment because of an extremely
18068# bizarre bug on SunOS 4.1.3.
18069if $ac_need_defaults; then
18070 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18071 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18072 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18073fi
18074
18075# Have a temporary directory for convenience. Make it in the build tree
18076# simply because there is no reason against having it here, and in addition,
18077# creating and moving files from /tmp can sometimes cause problems.
18078# Hook for its removal unless debugging.
18079# Note that there is a small window in which the directory will not be cleaned:
18080# after its creation but before its name has been assigned to `$tmp'.
18081$debug ||
18082{
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018083 tmp= ac_tmp=
Wink Savillefbaaef92010-05-27 16:25:37 -070018084 trap 'exit_status=$?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018085 : "${ac_tmp:=$tmp}"
18086 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Wink Savillefbaaef92010-05-27 16:25:37 -070018087' 0
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018088 trap 'as_fn_exit 1' 1 2 13 15
Wink Savillefbaaef92010-05-27 16:25:37 -070018089}
18090# Create a (secure) tmp directory for tmp files.
18091
18092{
18093 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018094 test -d "$tmp"
Wink Savillefbaaef92010-05-27 16:25:37 -070018095} ||
18096{
18097 tmp=./conf$$-$RANDOM
18098 (umask 077 && mkdir "$tmp")
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018099} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18100ac_tmp=$tmp
Wink Savillefbaaef92010-05-27 16:25:37 -070018101
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018102# Set up the scripts for CONFIG_FILES section.
18103# No need to generate them if there are no CONFIG_FILES.
18104# This happens for instance with `./config.status config.h'.
Wink Savillefbaaef92010-05-27 16:25:37 -070018105if test -n "$CONFIG_FILES"; then
18106
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018107
18108ac_cr=`echo X | tr X '\015'`
18109# On cygwin, bash can eat \r inside `` if the user requested igncr.
18110# But we know of no other shell where ac_cr would be empty at this
18111# point, so we can use a bashism as a fallback.
18112if test "x$ac_cr" = x; then
18113 eval ac_cr=\$\'\\r\'
18114fi
18115ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18116if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18117 ac_cs_awk_cr='\\r'
18118else
18119 ac_cs_awk_cr=$ac_cr
18120fi
18121
18122echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Wink Savillefbaaef92010-05-27 16:25:37 -070018123_ACEOF
18124
18125
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018126{
18127 echo "cat >conf$$subs.awk <<_ACEOF" &&
18128 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18129 echo "_ACEOF"
18130} >conf$$subs.sh ||
18131 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18132ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Wink Savillefbaaef92010-05-27 16:25:37 -070018133ac_delim='%!_!# '
18134for ac_last_try in false false false false false :; do
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018135 . ./conf$$subs.sh ||
18136 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -070018137
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018138 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18139 if test $ac_delim_n = $ac_delim_num; then
Wink Savillefbaaef92010-05-27 16:25:37 -070018140 break
18141 elif $ac_last_try; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018142 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -070018143 else
18144 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18145 fi
18146done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018147rm -f conf$$subs.sh
Wink Savillefbaaef92010-05-27 16:25:37 -070018148
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018149cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18150cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Wink Savillefbaaef92010-05-27 16:25:37 -070018151_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018152sed -n '
18153h
18154s/^/S["/; s/!.*/"]=/
18155p
18156g
18157s/^[^!]*!//
18158:repl
18159t repl
18160s/'"$ac_delim"'$//
18161t delim
18162:nl
18163h
18164s/\(.\{148\}\)..*/\1/
18165t more1
18166s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18167p
18168n
18169b repl
18170:more1
18171s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18172p
18173g
18174s/.\{148\}//
18175t nl
18176:delim
18177h
18178s/\(.\{148\}\)..*/\1/
18179t more2
18180s/["\\]/\\&/g; s/^/"/; s/$/"/
18181p
18182b
18183:more2
18184s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18185p
18186g
18187s/.\{148\}//
18188t delim
18189' <conf$$subs.awk | sed '
18190/^[^""]/{
18191 N
18192 s/\n//
18193}
18194' >>$CONFIG_STATUS || ac_write_fail=1
18195rm -f conf$$subs.awk
18196cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18197_ACAWK
18198cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18199 for (key in S) S_is_set[key] = 1
18200 FS = ""
18201
18202}
18203{
18204 line = $ 0
18205 nfields = split(line, field, "@")
18206 substed = 0
18207 len = length(field[1])
18208 for (i = 2; i < nfields; i++) {
18209 key = field[i]
18210 keylen = length(key)
18211 if (S_is_set[key]) {
18212 value = S[key]
18213 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18214 len += length(value) + length(field[++i])
18215 substed = 1
18216 } else
18217 len += 1 + keylen
18218 }
18219
18220 print line
18221}
18222
18223_ACAWK
18224_ACEOF
18225cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18226if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18227 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18228else
18229 cat
18230fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18231 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -070018232_ACEOF
18233
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018234# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18235# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Wink Savillefbaaef92010-05-27 16:25:37 -070018236# trailing colons and then remove the whole line if VPATH becomes empty
18237# (actually we leave an empty line to preserve line numbers).
18238if test "x$srcdir" = x.; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018239 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18240h
18241s///
18242s/^/:/
18243s/[ ]*$/:/
18244s/:\$(srcdir):/:/g
18245s/:\${srcdir}:/:/g
18246s/:@srcdir@:/:/g
18247s/^:*//
Wink Savillefbaaef92010-05-27 16:25:37 -070018248s/:*$//
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018249x
18250s/\(=[ ]*\).*/\1/
18251G
18252s/\n//
Wink Savillefbaaef92010-05-27 16:25:37 -070018253s/^[^=]*=[ ]*$//
18254}'
18255fi
18256
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Wink Savillefbaaef92010-05-27 16:25:37 -070018258fi # test -n "$CONFIG_FILES"
18259
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018260# Set up the scripts for CONFIG_HEADERS section.
18261# No need to generate them if there are no CONFIG_HEADERS.
18262# This happens for instance with `./config.status Makefile'.
18263if test -n "$CONFIG_HEADERS"; then
18264cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18265BEGIN {
18266_ACEOF
Wink Savillefbaaef92010-05-27 16:25:37 -070018267
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018268# Transform confdefs.h into an awk script `defines.awk', embedded as
18269# here-document in config.status, that substitutes the proper values into
18270# config.h.in to produce config.h.
18271
18272# Create a delimiter string that does not exist in confdefs.h, to ease
18273# handling of long lines.
18274ac_delim='%!_!# '
18275for ac_last_try in false false :; do
18276 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18277 if test -z "$ac_tt"; then
18278 break
18279 elif $ac_last_try; then
18280 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18281 else
18282 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18283 fi
18284done
18285
18286# For the awk script, D is an array of macro values keyed by name,
18287# likewise P contains macro parameters if any. Preserve backslash
18288# newline sequences.
18289
18290ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18291sed -n '
18292s/.\{148\}/&'"$ac_delim"'/g
18293t rset
18294:rset
18295s/^[ ]*#[ ]*define[ ][ ]*/ /
18296t def
18297d
18298:def
18299s/\\$//
18300t bsnl
18301s/["\\]/\\&/g
18302s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18303D["\1"]=" \3"/p
18304s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18305d
18306:bsnl
18307s/["\\]/\\&/g
18308s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18309D["\1"]=" \3\\\\\\n"\\/p
18310t cont
18311s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18312t cont
18313d
18314:cont
18315n
18316s/.\{148\}/&'"$ac_delim"'/g
18317t clear
18318:clear
18319s/\\$//
18320t bsnlc
18321s/["\\]/\\&/g; s/^/"/; s/$/"/p
18322d
18323:bsnlc
18324s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18325b cont
18326' <confdefs.h | sed '
18327s/'"$ac_delim"'/"\\\
18328"/g' >>$CONFIG_STATUS || ac_write_fail=1
18329
18330cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18331 for (key in D) D_is_set[key] = 1
18332 FS = ""
18333}
18334/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18335 line = \$ 0
18336 split(line, arg, " ")
18337 if (arg[1] == "#") {
18338 defundef = arg[2]
18339 mac1 = arg[3]
18340 } else {
18341 defundef = substr(arg[1], 2)
18342 mac1 = arg[2]
18343 }
18344 split(mac1, mac2, "(") #)
18345 macro = mac2[1]
18346 prefix = substr(line, 1, index(line, defundef) - 1)
18347 if (D_is_set[macro]) {
18348 # Preserve the white space surrounding the "#".
18349 print prefix "define", macro P[macro] D[macro]
18350 next
18351 } else {
18352 # Replace #undef with comments. This is necessary, for example,
18353 # in the case of _POSIX_SOURCE, which is predefined and required
18354 # on some systems where configure will not decide to define it.
18355 if (defundef == "undef") {
18356 print "/*", prefix defundef, macro, "*/"
18357 next
18358 }
18359 }
18360}
18361{ print }
18362_ACAWK
18363_ACEOF
18364cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18365 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18366fi # test -n "$CONFIG_HEADERS"
18367
18368
18369eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18370shift
18371for ac_tag
Wink Savillefbaaef92010-05-27 16:25:37 -070018372do
18373 case $ac_tag in
18374 :[FHLC]) ac_mode=$ac_tag; continue;;
18375 esac
18376 case $ac_mode$ac_tag in
18377 :[FHL]*:*);;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018378 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Wink Savillefbaaef92010-05-27 16:25:37 -070018379 :[FH]-) ac_tag=-:-;;
18380 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18381 esac
18382 ac_save_IFS=$IFS
18383 IFS=:
18384 set x $ac_tag
18385 IFS=$ac_save_IFS
18386 shift
18387 ac_file=$1
18388 shift
18389
18390 case $ac_mode in
18391 :L) ac_source=$1;;
18392 :[FH])
18393 ac_file_inputs=
18394 for ac_f
18395 do
18396 case $ac_f in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018397 -) ac_f="$ac_tmp/stdin";;
Wink Savillefbaaef92010-05-27 16:25:37 -070018398 *) # Look for the file first in the build tree, then in the source tree
18399 # (if the path is not absolute). The absolute path cannot be DOS-style,
18400 # because $ac_f cannot contain `:'.
18401 test -f "$ac_f" ||
18402 case $ac_f in
18403 [\\/$]*) false;;
18404 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18405 esac ||
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018406 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Wink Savillefbaaef92010-05-27 16:25:37 -070018407 esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018408 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18409 as_fn_append ac_file_inputs " '$ac_f'"
Wink Savillefbaaef92010-05-27 16:25:37 -070018410 done
18411
18412 # Let's still pretend it is `configure' which instantiates (i.e., don't
18413 # use $as_me), people would be surprised to read:
18414 # /* config.h. Generated by config.status. */
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018415 configure_input='Generated from '`
18416 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18417 `' by configure.'
Wink Savillefbaaef92010-05-27 16:25:37 -070018418 if test x"$ac_file" != x-; then
18419 configure_input="$ac_file. $configure_input"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018420 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18421$as_echo "$as_me: creating $ac_file" >&6;}
Wink Savillefbaaef92010-05-27 16:25:37 -070018422 fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018423 # Neutralize special characters interpreted by sed in replacement strings.
18424 case $configure_input in #(
18425 *\&* | *\|* | *\\* )
18426 ac_sed_conf_input=`$as_echo "$configure_input" |
18427 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18428 *) ac_sed_conf_input=$configure_input;;
18429 esac
Wink Savillefbaaef92010-05-27 16:25:37 -070018430
18431 case $ac_tag in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018432 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18433 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070018434 esac
18435 ;;
18436 esac
18437
18438 ac_dir=`$as_dirname -- "$ac_file" ||
18439$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18440 X"$ac_file" : 'X\(//\)[^/]' \| \
18441 X"$ac_file" : 'X\(//\)$' \| \
18442 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018443$as_echo X"$ac_file" |
Wink Savillefbaaef92010-05-27 16:25:37 -070018444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18445 s//\1/
18446 q
18447 }
18448 /^X\(\/\/\)[^/].*/{
18449 s//\1/
18450 q
18451 }
18452 /^X\(\/\/\)$/{
18453 s//\1/
18454 q
18455 }
18456 /^X\(\/\).*/{
18457 s//\1/
18458 q
18459 }
18460 s/.*/./; q'`
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018461 as_dir="$ac_dir"; as_fn_mkdir_p
Wink Savillefbaaef92010-05-27 16:25:37 -070018462 ac_builddir=.
18463
18464case "$ac_dir" in
18465.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18466*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018467 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Wink Savillefbaaef92010-05-27 16:25:37 -070018468 # A ".." for each directory in $ac_dir_suffix.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018469 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Wink Savillefbaaef92010-05-27 16:25:37 -070018470 case $ac_top_builddir_sub in
18471 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18472 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18473 esac ;;
18474esac
18475ac_abs_top_builddir=$ac_pwd
18476ac_abs_builddir=$ac_pwd$ac_dir_suffix
18477# for backward compatibility:
18478ac_top_builddir=$ac_top_build_prefix
18479
18480case $srcdir in
18481 .) # We are building in place.
18482 ac_srcdir=.
18483 ac_top_srcdir=$ac_top_builddir_sub
18484 ac_abs_top_srcdir=$ac_pwd ;;
18485 [\\/]* | ?:[\\/]* ) # Absolute name.
18486 ac_srcdir=$srcdir$ac_dir_suffix;
18487 ac_top_srcdir=$srcdir
18488 ac_abs_top_srcdir=$srcdir ;;
18489 *) # Relative name.
18490 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18491 ac_top_srcdir=$ac_top_build_prefix$srcdir
18492 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18493esac
18494ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18495
18496
18497 case $ac_mode in
18498 :F)
18499 #
18500 # CONFIG_FILE
18501 #
18502
18503 case $INSTALL in
18504 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18505 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18506 esac
18507 ac_MKDIR_P=$MKDIR_P
18508 case $MKDIR_P in
18509 [\\/$]* | ?:[\\/]* ) ;;
18510 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18511 esac
18512_ACEOF
18513
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018514cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Wink Savillefbaaef92010-05-27 16:25:37 -070018515# If the template does not know about datarootdir, expand it.
18516# FIXME: This hack should be removed a few years after 2.60.
18517ac_datarootdir_hack=; ac_datarootdir_seen=
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018518ac_sed_dataroot='
18519/datarootdir/ {
Wink Savillefbaaef92010-05-27 16:25:37 -070018520 p
18521 q
18522}
18523/@datadir@/p
18524/@docdir@/p
18525/@infodir@/p
18526/@localedir@/p
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018527/@mandir@/p'
18528case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Wink Savillefbaaef92010-05-27 16:25:37 -070018529*datarootdir*) ac_datarootdir_seen=yes;;
18530*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18532$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -070018533_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018534cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Wink Savillefbaaef92010-05-27 16:25:37 -070018535 ac_datarootdir_hack='
18536 s&@datadir@&$datadir&g
18537 s&@docdir@&$docdir&g
18538 s&@infodir@&$infodir&g
18539 s&@localedir@&$localedir&g
18540 s&@mandir@&$mandir&g
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018541 s&\\\${datarootdir}&$datarootdir&g' ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070018542esac
18543_ACEOF
18544
18545# Neutralize VPATH when `$srcdir' = `.'.
18546# Shell code in configure.ac might set extrasub.
18547# FIXME: do we really want to maintain this feature?
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018548cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18549ac_sed_extra="$ac_vpsub
Wink Savillefbaaef92010-05-27 16:25:37 -070018550$extrasub
18551_ACEOF
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018552cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Wink Savillefbaaef92010-05-27 16:25:37 -070018553:t
18554/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018555s|@configure_input@|$ac_sed_conf_input|;t t
Wink Savillefbaaef92010-05-27 16:25:37 -070018556s&@top_builddir@&$ac_top_builddir_sub&;t t
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018557s&@top_build_prefix@&$ac_top_build_prefix&;t t
Wink Savillefbaaef92010-05-27 16:25:37 -070018558s&@srcdir@&$ac_srcdir&;t t
18559s&@abs_srcdir@&$ac_abs_srcdir&;t t
18560s&@top_srcdir@&$ac_top_srcdir&;t t
18561s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18562s&@builddir@&$ac_builddir&;t t
18563s&@abs_builddir@&$ac_abs_builddir&;t t
18564s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18565s&@INSTALL@&$ac_INSTALL&;t t
18566s&@MKDIR_P@&$ac_MKDIR_P&;t t
18567$ac_datarootdir_hack
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018568"
18569eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18570 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -070018571
18572test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018573 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18574 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18575 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18577which seems to be undefined. Please make sure it is defined" >&5
18578$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18579which seems to be undefined. Please make sure it is defined" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -070018580
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018581 rm -f "$ac_tmp/stdin"
Wink Savillefbaaef92010-05-27 16:25:37 -070018582 case $ac_file in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018583 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18584 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18585 esac \
18586 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -070018587 ;;
18588 :H)
18589 #
18590 # CONFIG_HEADER
18591 #
Wink Savillefbaaef92010-05-27 16:25:37 -070018592 if test x"$ac_file" != x-; then
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018593 {
18594 $as_echo "/* $configure_input */" \
18595 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18596 } >"$ac_tmp/config.h" \
18597 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18598 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18600$as_echo "$as_me: $ac_file is unchanged" >&6;}
Wink Savillefbaaef92010-05-27 16:25:37 -070018601 else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018602 rm -f "$ac_file"
18603 mv "$ac_tmp/config.h" "$ac_file" \
18604 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -070018605 fi
18606 else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018607 $as_echo "/* $configure_input */" \
18608 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18609 || as_fn_error $? "could not create -" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -070018610 fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018611# Compute "$ac_file"'s index in $config_headers.
18612_am_arg="$ac_file"
Wink Savillefbaaef92010-05-27 16:25:37 -070018613_am_stamp_count=1
18614for _am_header in $config_headers :; do
18615 case $_am_header in
18616 $_am_arg | $_am_arg:* )
18617 break ;;
18618 * )
18619 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18620 esac
18621done
18622echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18623$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18624 X"$_am_arg" : 'X\(//\)[^/]' \| \
18625 X"$_am_arg" : 'X\(//\)$' \| \
18626 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018627$as_echo X"$_am_arg" |
Wink Savillefbaaef92010-05-27 16:25:37 -070018628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18629 s//\1/
18630 q
18631 }
18632 /^X\(\/\/\)[^/].*/{
18633 s//\1/
18634 q
18635 }
18636 /^X\(\/\/\)$/{
18637 s//\1/
18638 q
18639 }
18640 /^X\(\/\).*/{
18641 s//\1/
18642 q
18643 }
18644 s/.*/./; q'`/stamp-h$_am_stamp_count
18645 ;;
18646
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018647 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18648$as_echo "$as_me: executing $ac_file commands" >&6;}
Wink Savillefbaaef92010-05-27 16:25:37 -070018649 ;;
18650 esac
18651
18652
18653 case $ac_file$ac_mode in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018654 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
Jeff Davidson0ddac1f2015-01-20 10:18:05 -080018655 # Older Autoconf quotes --file arguments for eval, but not when files
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018656 # are listed without --file. Let's play safe and only enable the eval
18657 # if we detect the quoting.
18658 case $CONFIG_FILES in
18659 *\'*) eval set x "$CONFIG_FILES" ;;
18660 *) set x $CONFIG_FILES ;;
18661 esac
18662 shift
18663 for mf
18664 do
18665 # Strip MF so we end up with the name of the file.
18666 mf=`echo "$mf" | sed -e 's/:.*$//'`
18667 # Check whether this is an Automake generated Makefile or not.
Jeff Davidson0ddac1f2015-01-20 10:18:05 -080018668 # We used to match only the files named 'Makefile.in', but
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018669 # some people rename them; so instead we look at the file content.
18670 # Grep'ing the first line is not enough: some people post-process
18671 # each Makefile.in and add a new line on top of each file to say so.
18672 # Grep'ing the whole file is not good either: AIX grep has a line
18673 # limit of 2048, but all sed's we know have understand at least 4000.
18674 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18675 dirpart=`$as_dirname -- "$mf" ||
Wink Savillefbaaef92010-05-27 16:25:37 -070018676$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18677 X"$mf" : 'X\(//\)[^/]' \| \
18678 X"$mf" : 'X\(//\)$' \| \
18679 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018680$as_echo X"$mf" |
Wink Savillefbaaef92010-05-27 16:25:37 -070018681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18682 s//\1/
18683 q
18684 }
18685 /^X\(\/\/\)[^/].*/{
18686 s//\1/
18687 q
18688 }
18689 /^X\(\/\/\)$/{
18690 s//\1/
18691 q
18692 }
18693 /^X\(\/\).*/{
18694 s//\1/
18695 q
18696 }
18697 s/.*/./; q'`
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018698 else
18699 continue
18700 fi
18701 # Extract the definition of DEPDIR, am__include, and am__quote
Jeff Davidson0ddac1f2015-01-20 10:18:05 -080018702 # from the Makefile without running 'make'.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018703 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18704 test -z "$DEPDIR" && continue
18705 am__include=`sed -n 's/^am__include = //p' < "$mf"`
Jeff Davidson0ddac1f2015-01-20 10:18:05 -080018706 test -z "$am__include" && continue
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018707 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018708 # Find all dependency output files, they are included files with
18709 # $(DEPDIR) in their names. We invoke sed twice because it is the
18710 # simplest approach to changing $(DEPDIR) to its actual value in the
18711 # expansion.
18712 for file in `sed -n "
18713 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Jeff Davidson0ddac1f2015-01-20 10:18:05 -080018714 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018715 # Make sure the directory exists.
18716 test -f "$dirpart/$file" && continue
18717 fdir=`$as_dirname -- "$file" ||
Wink Savillefbaaef92010-05-27 16:25:37 -070018718$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18719 X"$file" : 'X\(//\)[^/]' \| \
18720 X"$file" : 'X\(//\)$' \| \
18721 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018722$as_echo X"$file" |
Wink Savillefbaaef92010-05-27 16:25:37 -070018723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18724 s//\1/
18725 q
18726 }
18727 /^X\(\/\/\)[^/].*/{
18728 s//\1/
18729 q
18730 }
18731 /^X\(\/\/\)$/{
18732 s//\1/
18733 q
18734 }
18735 /^X\(\/\).*/{
18736 s//\1/
18737 q
18738 }
18739 s/.*/./; q'`
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018740 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18741 # echo "creating $dirpart/$file"
18742 echo '# dummy' > "$dirpart/$file"
Wink Savillefbaaef92010-05-27 16:25:37 -070018743 done
Wink Savillefbaaef92010-05-27 16:25:37 -070018744 done
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070018745}
Wink Savillefbaaef92010-05-27 16:25:37 -070018746 ;;
18747 "libtool":C)
18748
18749 # See if we are running on zsh, and set the options which allow our
18750 # commands through without removal of \ escapes.
18751 if test -n "${ZSH_VERSION+set}" ; then
18752 setopt NO_GLOB_SUBST
18753 fi
18754
18755 cfgfile="${ofile}T"
18756 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18757 $RM "$cfgfile"
18758
18759 cat <<_LT_EOF >> "$cfgfile"
18760#! $SHELL
18761
18762# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18763# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18764# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18765# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18766#
18767# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070018768# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18769# Foundation, Inc.
Wink Savillefbaaef92010-05-27 16:25:37 -070018770# Written by Gordon Matzigkeit, 1996
18771#
18772# This file is part of GNU Libtool.
18773#
18774# GNU Libtool is free software; you can redistribute it and/or
18775# modify it under the terms of the GNU General Public License as
18776# published by the Free Software Foundation; either version 2 of
18777# the License, or (at your option) any later version.
18778#
18779# As a special exception to the GNU General Public License,
18780# if you distribute this file as part of a program or library that
18781# is built using GNU Libtool, you may include this file under the
18782# same distribution terms that you use for the rest of that program.
18783#
18784# GNU Libtool is distributed in the hope that it will be useful,
18785# but WITHOUT ANY WARRANTY; without even the implied warranty of
18786# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18787# GNU General Public License for more details.
18788#
18789# You should have received a copy of the GNU General Public License
18790# along with GNU Libtool; see the file COPYING. If not, a copy
18791# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18792# obtained by writing to the Free Software Foundation, Inc.,
18793# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18794
18795
18796# The names of the tagged configurations supported by this script.
18797available_tags="CXX "
18798
18799# ### BEGIN LIBTOOL CONFIG
18800
18801# Which release of libtool.m4 was used?
18802macro_version=$macro_version
18803macro_revision=$macro_revision
18804
18805# Whether or not to build shared libraries.
18806build_libtool_libs=$enable_shared
18807
18808# Whether or not to build static libraries.
18809build_old_libs=$enable_static
18810
18811# What type of objects to build.
18812pic_mode=$pic_mode
18813
18814# Whether or not to optimize for fast installation.
18815fast_install=$enable_fast_install
18816
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070018817# Shell to use when invoking shell scripts.
18818SHELL=$lt_SHELL
18819
18820# An echo program that protects backslashes.
18821ECHO=$lt_ECHO
18822
18823# The PATH separator for the build system.
18824PATH_SEPARATOR=$lt_PATH_SEPARATOR
18825
Wink Savillefbaaef92010-05-27 16:25:37 -070018826# The host system.
18827host_alias=$host_alias
18828host=$host
18829host_os=$host_os
18830
18831# The build system.
18832build_alias=$build_alias
18833build=$build
18834build_os=$build_os
18835
18836# A sed program that does not truncate output.
18837SED=$lt_SED
18838
18839# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18840Xsed="\$SED -e 1s/^X//"
18841
18842# A grep program that handles long lines.
18843GREP=$lt_GREP
18844
18845# An ERE matcher.
18846EGREP=$lt_EGREP
18847
18848# A literal string matcher.
18849FGREP=$lt_FGREP
18850
18851# A BSD- or MS-compatible name lister.
18852NM=$lt_NM
18853
18854# Whether we need soft or hard links.
18855LN_S=$lt_LN_S
18856
18857# What is the maximum length of a command?
18858max_cmd_len=$max_cmd_len
18859
18860# Object file suffix (normally "o").
18861objext=$ac_objext
18862
18863# Executable file suffix (normally "").
18864exeext=$exeext
18865
18866# whether the shell understands "unset".
18867lt_unset=$lt_unset
18868
18869# turn spaces into newlines.
18870SP2NL=$lt_lt_SP2NL
18871
18872# turn newlines into spaces.
18873NL2SP=$lt_lt_NL2SP
18874
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070018875# convert \$build file names to \$host format.
18876to_host_file_cmd=$lt_cv_to_host_file_cmd
18877
18878# convert \$build files to toolchain format.
18879to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18880
18881# An object symbol dumper.
18882OBJDUMP=$lt_OBJDUMP
Wink Savillefbaaef92010-05-27 16:25:37 -070018883
18884# Method to check whether dependent libraries are shared objects.
18885deplibs_check_method=$lt_deplibs_check_method
18886
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070018887# Command to use when deplibs_check_method = "file_magic".
Wink Savillefbaaef92010-05-27 16:25:37 -070018888file_magic_cmd=$lt_file_magic_cmd
18889
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070018890# How to find potential files when deplibs_check_method = "file_magic".
18891file_magic_glob=$lt_file_magic_glob
18892
18893# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18894want_nocaseglob=$lt_want_nocaseglob
18895
18896# DLL creation program.
18897DLLTOOL=$lt_DLLTOOL
18898
18899# Command to associate shared and link libraries.
18900sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18901
Wink Savillefbaaef92010-05-27 16:25:37 -070018902# The archiver.
18903AR=$lt_AR
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070018904
18905# Flags to create an archive.
Wink Savillefbaaef92010-05-27 16:25:37 -070018906AR_FLAGS=$lt_AR_FLAGS
18907
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070018908# How to feed a file listing to the archiver.
18909archiver_list_spec=$lt_archiver_list_spec
18910
Wink Savillefbaaef92010-05-27 16:25:37 -070018911# A symbol stripping program.
18912STRIP=$lt_STRIP
18913
18914# Commands used to install an old-style archive.
18915RANLIB=$lt_RANLIB
18916old_postinstall_cmds=$lt_old_postinstall_cmds
18917old_postuninstall_cmds=$lt_old_postuninstall_cmds
18918
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070018919# Whether to use a lock for old archive extraction.
18920lock_old_archive_extraction=$lock_old_archive_extraction
18921
Wink Savillefbaaef92010-05-27 16:25:37 -070018922# A C compiler.
18923LTCC=$lt_CC
18924
18925# LTCC compiler flags.
18926LTCFLAGS=$lt_CFLAGS
18927
18928# Take the output of nm and produce a listing of raw symbols and C names.
18929global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18930
18931# Transform the output of nm in a proper C declaration.
18932global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18933
18934# Transform the output of nm in a C name address pair.
18935global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18936
18937# Transform the output of nm in a C name address pair when lib prefix is needed.
18938global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18939
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070018940# Specify filename containing input files for \$NM.
18941nm_file_list_spec=$lt_nm_file_list_spec
18942
18943# The root where to search for dependent libraries,and in which our libraries should be installed.
18944lt_sysroot=$lt_sysroot
18945
Wink Savillefbaaef92010-05-27 16:25:37 -070018946# The name of the directory that contains temporary libtool files.
18947objdir=$objdir
18948
Wink Savillefbaaef92010-05-27 16:25:37 -070018949# Used to examine libraries when file_magic_cmd begins with "file".
18950MAGIC_CMD=$MAGIC_CMD
18951
18952# Must we lock files when doing compilation?
18953need_locks=$lt_need_locks
18954
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070018955# Manifest tool.
18956MANIFEST_TOOL=$lt_MANIFEST_TOOL
18957
Wink Savillefbaaef92010-05-27 16:25:37 -070018958# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18959DSYMUTIL=$lt_DSYMUTIL
18960
18961# Tool to change global to local symbols on Mac OS X.
18962NMEDIT=$lt_NMEDIT
18963
18964# Tool to manipulate fat objects and archives on Mac OS X.
18965LIPO=$lt_LIPO
18966
18967# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18968OTOOL=$lt_OTOOL
18969
18970# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18971OTOOL64=$lt_OTOOL64
18972
18973# Old archive suffix (normally "a").
18974libext=$libext
18975
18976# Shared library suffix (normally ".so").
18977shrext_cmds=$lt_shrext_cmds
18978
18979# The commands to extract the exported symbol list from a shared archive.
18980extract_expsyms_cmds=$lt_extract_expsyms_cmds
18981
18982# Variables whose values should be saved in libtool wrapper scripts and
18983# restored at link time.
18984variables_saved_for_relink=$lt_variables_saved_for_relink
18985
18986# Do we need the "lib" prefix for modules?
18987need_lib_prefix=$need_lib_prefix
18988
18989# Do we need a version for libraries?
18990need_version=$need_version
18991
18992# Library versioning type.
18993version_type=$version_type
18994
18995# Shared library runtime path variable.
18996runpath_var=$runpath_var
18997
18998# Shared library path variable.
18999shlibpath_var=$shlibpath_var
19000
19001# Is shlibpath searched before the hard-coded library search path?
19002shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19003
19004# Format of library name prefix.
19005libname_spec=$lt_libname_spec
19006
19007# List of archive names. First name is the real one, the rest are links.
19008# The last name is the one that the linker finds with -lNAME
19009library_names_spec=$lt_library_names_spec
19010
19011# The coded name of the library, if different from the real name.
19012soname_spec=$lt_soname_spec
19013
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070019014# Permission mode override for installation of shared libraries.
19015install_override_mode=$lt_install_override_mode
19016
Wink Savillefbaaef92010-05-27 16:25:37 -070019017# Command to use after installation of a shared archive.
19018postinstall_cmds=$lt_postinstall_cmds
19019
19020# Command to use after uninstallation of a shared archive.
19021postuninstall_cmds=$lt_postuninstall_cmds
19022
19023# Commands used to finish a libtool library installation in a directory.
19024finish_cmds=$lt_finish_cmds
19025
19026# As "finish_cmds", except a single script fragment to be evaled but
19027# not shown.
19028finish_eval=$lt_finish_eval
19029
19030# Whether we should hardcode library paths into libraries.
19031hardcode_into_libs=$hardcode_into_libs
19032
19033# Compile-time system search path for libraries.
19034sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19035
19036# Run-time system search path for libraries.
19037sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19038
19039# Whether dlopen is supported.
19040dlopen_support=$enable_dlopen
19041
19042# Whether dlopen of programs is supported.
19043dlopen_self=$enable_dlopen_self
19044
19045# Whether dlopen of statically linked programs is supported.
19046dlopen_self_static=$enable_dlopen_self_static
19047
19048# Commands to strip libraries.
19049old_striplib=$lt_old_striplib
19050striplib=$lt_striplib
19051
19052
19053# The linker used to build libraries.
19054LD=$lt_LD
19055
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070019056# How to create reloadable object files.
19057reload_flag=$lt_reload_flag
19058reload_cmds=$lt_reload_cmds
19059
Wink Savillefbaaef92010-05-27 16:25:37 -070019060# Commands used to build an old-style archive.
19061old_archive_cmds=$lt_old_archive_cmds
19062
19063# A language specific compiler.
19064CC=$lt_compiler
19065
19066# Is the compiler the GNU compiler?
19067with_gcc=$GCC
19068
19069# Compiler flag to turn off builtin functions.
19070no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19071
Wink Savillefbaaef92010-05-27 16:25:37 -070019072# Additional compiler flags for building library objects.
19073pic_flag=$lt_lt_prog_compiler_pic
19074
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070019075# How to pass a linker flag through the compiler.
19076wl=$lt_lt_prog_compiler_wl
19077
Wink Savillefbaaef92010-05-27 16:25:37 -070019078# Compiler flag to prevent dynamic linking.
19079link_static_flag=$lt_lt_prog_compiler_static
19080
19081# Does compiler simultaneously support -c and -o options?
19082compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19083
19084# Whether or not to add -lc for building shared libraries.
19085build_libtool_need_lc=$archive_cmds_need_lc
19086
19087# Whether or not to disallow shared libs when runtime libs are static.
19088allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19089
19090# Compiler flag to allow reflexive dlopens.
19091export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19092
19093# Compiler flag to generate shared objects directly from archives.
19094whole_archive_flag_spec=$lt_whole_archive_flag_spec
19095
19096# Whether the compiler copes with passing no objects directly.
19097compiler_needs_object=$lt_compiler_needs_object
19098
19099# Create an old-style archive from a shared archive.
19100old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19101
19102# Create a temporary old-style archive to link instead of a shared archive.
19103old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19104
19105# Commands used to build a shared archive.
19106archive_cmds=$lt_archive_cmds
19107archive_expsym_cmds=$lt_archive_expsym_cmds
19108
19109# Commands used to build a loadable module if different from building
19110# a shared archive.
19111module_cmds=$lt_module_cmds
19112module_expsym_cmds=$lt_module_expsym_cmds
19113
19114# Whether we are building with GNU ld or not.
19115with_gnu_ld=$lt_with_gnu_ld
19116
19117# Flag that allows shared libraries with undefined symbols to be built.
19118allow_undefined_flag=$lt_allow_undefined_flag
19119
19120# Flag that enforces no undefined symbols.
19121no_undefined_flag=$lt_no_undefined_flag
19122
19123# Flag to hardcode \$libdir into a binary during linking.
19124# This must work even if \$libdir does not exist
19125hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19126
Wink Savillefbaaef92010-05-27 16:25:37 -070019127# Whether we need a single "-rpath" flag with a separated argument.
19128hardcode_libdir_separator=$lt_hardcode_libdir_separator
19129
19130# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19131# DIR into the resulting binary.
19132hardcode_direct=$hardcode_direct
19133
19134# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19135# DIR into the resulting binary and the resulting library dependency is
19136# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19137# library is relocated.
19138hardcode_direct_absolute=$hardcode_direct_absolute
19139
19140# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19141# into the resulting binary.
19142hardcode_minus_L=$hardcode_minus_L
19143
19144# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19145# into the resulting binary.
19146hardcode_shlibpath_var=$hardcode_shlibpath_var
19147
19148# Set to "yes" if building a shared library automatically hardcodes DIR
19149# into the library and all subsequent libraries and executables linked
19150# against it.
19151hardcode_automatic=$hardcode_automatic
19152
19153# Set to yes if linker adds runtime paths of dependent libraries
19154# to runtime path list.
19155inherit_rpath=$inherit_rpath
19156
19157# Whether libtool must link a program against all its dependency libraries.
19158link_all_deplibs=$link_all_deplibs
19159
Wink Savillefbaaef92010-05-27 16:25:37 -070019160# Set to "yes" if exported symbols are required.
19161always_export_symbols=$always_export_symbols
19162
19163# The commands to list exported symbols.
19164export_symbols_cmds=$lt_export_symbols_cmds
19165
19166# Symbols that should not be listed in the preloaded symbols.
19167exclude_expsyms=$lt_exclude_expsyms
19168
19169# Symbols that must always be exported.
19170include_expsyms=$lt_include_expsyms
19171
19172# Commands necessary for linking programs (against libraries) with templates.
19173prelink_cmds=$lt_prelink_cmds
19174
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070019175# Commands necessary for finishing linking programs.
19176postlink_cmds=$lt_postlink_cmds
19177
Wink Savillefbaaef92010-05-27 16:25:37 -070019178# Specify filename containing input files.
19179file_list_spec=$lt_file_list_spec
19180
19181# How to hardcode a shared library path into an executable.
19182hardcode_action=$hardcode_action
19183
19184# The directories searched by this compiler when creating a shared library.
19185compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19186
19187# Dependencies to place before and after the objects being linked to
19188# create a shared library.
19189predep_objects=$lt_predep_objects
19190postdep_objects=$lt_postdep_objects
19191predeps=$lt_predeps
19192postdeps=$lt_postdeps
19193
19194# The library search path used internally by the compiler when linking
19195# a shared library.
19196compiler_lib_search_path=$lt_compiler_lib_search_path
19197
19198# ### END LIBTOOL CONFIG
19199
19200_LT_EOF
19201
19202 case $host_os in
19203 aix3*)
19204 cat <<\_LT_EOF >> "$cfgfile"
19205# AIX sometimes has problems with the GCC collect2 program. For some
19206# reason, if we set the COLLECT_NAMES environment variable, the problems
19207# vanish in a puff of smoke.
19208if test "X${COLLECT_NAMES+set}" != Xset; then
19209 COLLECT_NAMES=
19210 export COLLECT_NAMES
19211fi
19212_LT_EOF
19213 ;;
19214 esac
19215
19216
19217ltmain="$ac_aux_dir/ltmain.sh"
19218
19219
19220 # We use sed instead of cat because bash on DJGPP gets confused if
19221 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19222 # text mode, it properly converts lines to CR/LF. This bash problem
19223 # is reportedly fixed, but why not run on old versions too?
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070019224 sed '$q' "$ltmain" >> "$cfgfile" \
19225 || (rm -f "$cfgfile"; exit 1)
Wink Savillefbaaef92010-05-27 16:25:37 -070019226
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070019227 if test x"$xsi_shell" = xyes; then
19228 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19229func_dirname ()\
19230{\
19231\ case ${1} in\
19232\ */*) func_dirname_result="${1%/*}${2}" ;;\
19233\ * ) func_dirname_result="${3}" ;;\
19234\ esac\
19235} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19236 && mv -f "$cfgfile.tmp" "$cfgfile" \
19237 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19238test 0 -eq $? || _lt_function_replace_fail=:
Wink Savillefbaaef92010-05-27 16:25:37 -070019239
19240
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070019241 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19242func_basename ()\
19243{\
19244\ func_basename_result="${1##*/}"\
19245} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19246 && mv -f "$cfgfile.tmp" "$cfgfile" \
19247 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19248test 0 -eq $? || _lt_function_replace_fail=:
Wink Savillefbaaef92010-05-27 16:25:37 -070019249
19250
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070019251 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19252func_dirname_and_basename ()\
19253{\
19254\ case ${1} in\
19255\ */*) func_dirname_result="${1%/*}${2}" ;;\
19256\ * ) func_dirname_result="${3}" ;;\
19257\ esac\
19258\ func_basename_result="${1##*/}"\
19259} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19260 && mv -f "$cfgfile.tmp" "$cfgfile" \
19261 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19262test 0 -eq $? || _lt_function_replace_fail=:
Wink Savillefbaaef92010-05-27 16:25:37 -070019263
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070019264
19265 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19266func_stripname ()\
19267{\
19268\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19269\ # positional parameters, so assign one to ordinary parameter first.\
19270\ func_stripname_result=${3}\
19271\ func_stripname_result=${func_stripname_result#"${1}"}\
19272\ func_stripname_result=${func_stripname_result%"${2}"}\
19273} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19274 && mv -f "$cfgfile.tmp" "$cfgfile" \
19275 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19276test 0 -eq $? || _lt_function_replace_fail=:
19277
19278
19279 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19280func_split_long_opt ()\
19281{\
19282\ func_split_long_opt_name=${1%%=*}\
19283\ func_split_long_opt_arg=${1#*=}\
19284} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19285 && mv -f "$cfgfile.tmp" "$cfgfile" \
19286 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19287test 0 -eq $? || _lt_function_replace_fail=:
19288
19289
19290 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19291func_split_short_opt ()\
19292{\
19293\ func_split_short_opt_arg=${1#??}\
19294\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19295} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19296 && mv -f "$cfgfile.tmp" "$cfgfile" \
19297 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19298test 0 -eq $? || _lt_function_replace_fail=:
19299
19300
19301 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19302func_lo2o ()\
19303{\
19304\ case ${1} in\
19305\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19306\ *) func_lo2o_result=${1} ;;\
19307\ esac\
19308} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19309 && mv -f "$cfgfile.tmp" "$cfgfile" \
19310 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19311test 0 -eq $? || _lt_function_replace_fail=:
19312
19313
19314 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19315func_xform ()\
19316{\
19317 func_xform_result=${1%.*}.lo\
19318} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19319 && mv -f "$cfgfile.tmp" "$cfgfile" \
19320 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19321test 0 -eq $? || _lt_function_replace_fail=:
19322
19323
19324 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19325func_arith ()\
19326{\
19327 func_arith_result=$(( $* ))\
19328} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19329 && mv -f "$cfgfile.tmp" "$cfgfile" \
19330 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19331test 0 -eq $? || _lt_function_replace_fail=:
19332
19333
19334 sed -e '/^func_len ()$/,/^} # func_len /c\
19335func_len ()\
19336{\
19337 func_len_result=${#1}\
19338} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19339 && mv -f "$cfgfile.tmp" "$cfgfile" \
19340 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19341test 0 -eq $? || _lt_function_replace_fail=:
19342
19343fi
19344
19345if test x"$lt_shell_append" = xyes; then
19346 sed -e '/^func_append ()$/,/^} # func_append /c\
19347func_append ()\
19348{\
19349 eval "${1}+=\\${2}"\
19350} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19351 && mv -f "$cfgfile.tmp" "$cfgfile" \
19352 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19353test 0 -eq $? || _lt_function_replace_fail=:
19354
19355
19356 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19357func_append_quoted ()\
19358{\
19359\ func_quote_for_eval "${2}"\
19360\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19361} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19362 && mv -f "$cfgfile.tmp" "$cfgfile" \
19363 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19364test 0 -eq $? || _lt_function_replace_fail=:
19365
19366
19367 # Save a `func_append' function call where possible by direct use of '+='
19368 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19369 && mv -f "$cfgfile.tmp" "$cfgfile" \
19370 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19371 test 0 -eq $? || _lt_function_replace_fail=:
19372else
19373 # Save a `func_append' function call even when '+=' is not available
19374 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19375 && mv -f "$cfgfile.tmp" "$cfgfile" \
19376 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19377 test 0 -eq $? || _lt_function_replace_fail=:
19378fi
19379
19380if test x"$_lt_function_replace_fail" = x":"; then
19381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19382$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19383fi
19384
19385
19386 mv -f "$cfgfile" "$ofile" ||
Wink Savillefbaaef92010-05-27 16:25:37 -070019387 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19388 chmod +x "$ofile"
19389
19390
19391 cat <<_LT_EOF >> "$ofile"
19392
19393# ### BEGIN LIBTOOL TAG CONFIG: CXX
19394
19395# The linker used to build libraries.
19396LD=$lt_LD_CXX
19397
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070019398# How to create reloadable object files.
19399reload_flag=$lt_reload_flag_CXX
19400reload_cmds=$lt_reload_cmds_CXX
19401
Wink Savillefbaaef92010-05-27 16:25:37 -070019402# Commands used to build an old-style archive.
19403old_archive_cmds=$lt_old_archive_cmds_CXX
19404
19405# A language specific compiler.
19406CC=$lt_compiler_CXX
19407
19408# Is the compiler the GNU compiler?
19409with_gcc=$GCC_CXX
19410
19411# Compiler flag to turn off builtin functions.
19412no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19413
Wink Savillefbaaef92010-05-27 16:25:37 -070019414# Additional compiler flags for building library objects.
19415pic_flag=$lt_lt_prog_compiler_pic_CXX
19416
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070019417# How to pass a linker flag through the compiler.
19418wl=$lt_lt_prog_compiler_wl_CXX
19419
Wink Savillefbaaef92010-05-27 16:25:37 -070019420# Compiler flag to prevent dynamic linking.
19421link_static_flag=$lt_lt_prog_compiler_static_CXX
19422
19423# Does compiler simultaneously support -c and -o options?
19424compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19425
19426# Whether or not to add -lc for building shared libraries.
19427build_libtool_need_lc=$archive_cmds_need_lc_CXX
19428
19429# Whether or not to disallow shared libs when runtime libs are static.
19430allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19431
19432# Compiler flag to allow reflexive dlopens.
19433export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19434
19435# Compiler flag to generate shared objects directly from archives.
19436whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19437
19438# Whether the compiler copes with passing no objects directly.
19439compiler_needs_object=$lt_compiler_needs_object_CXX
19440
19441# Create an old-style archive from a shared archive.
19442old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19443
19444# Create a temporary old-style archive to link instead of a shared archive.
19445old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19446
19447# Commands used to build a shared archive.
19448archive_cmds=$lt_archive_cmds_CXX
19449archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19450
19451# Commands used to build a loadable module if different from building
19452# a shared archive.
19453module_cmds=$lt_module_cmds_CXX
19454module_expsym_cmds=$lt_module_expsym_cmds_CXX
19455
19456# Whether we are building with GNU ld or not.
19457with_gnu_ld=$lt_with_gnu_ld_CXX
19458
19459# Flag that allows shared libraries with undefined symbols to be built.
19460allow_undefined_flag=$lt_allow_undefined_flag_CXX
19461
19462# Flag that enforces no undefined symbols.
19463no_undefined_flag=$lt_no_undefined_flag_CXX
19464
19465# Flag to hardcode \$libdir into a binary during linking.
19466# This must work even if \$libdir does not exist
19467hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19468
Wink Savillefbaaef92010-05-27 16:25:37 -070019469# Whether we need a single "-rpath" flag with a separated argument.
19470hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19471
19472# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19473# DIR into the resulting binary.
19474hardcode_direct=$hardcode_direct_CXX
19475
19476# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19477# DIR into the resulting binary and the resulting library dependency is
19478# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19479# library is relocated.
19480hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19481
19482# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19483# into the resulting binary.
19484hardcode_minus_L=$hardcode_minus_L_CXX
19485
19486# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19487# into the resulting binary.
19488hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19489
19490# Set to "yes" if building a shared library automatically hardcodes DIR
19491# into the library and all subsequent libraries and executables linked
19492# against it.
19493hardcode_automatic=$hardcode_automatic_CXX
19494
19495# Set to yes if linker adds runtime paths of dependent libraries
19496# to runtime path list.
19497inherit_rpath=$inherit_rpath_CXX
19498
19499# Whether libtool must link a program against all its dependency libraries.
19500link_all_deplibs=$link_all_deplibs_CXX
19501
Wink Savillefbaaef92010-05-27 16:25:37 -070019502# Set to "yes" if exported symbols are required.
19503always_export_symbols=$always_export_symbols_CXX
19504
19505# The commands to list exported symbols.
19506export_symbols_cmds=$lt_export_symbols_cmds_CXX
19507
19508# Symbols that should not be listed in the preloaded symbols.
19509exclude_expsyms=$lt_exclude_expsyms_CXX
19510
19511# Symbols that must always be exported.
19512include_expsyms=$lt_include_expsyms_CXX
19513
19514# Commands necessary for linking programs (against libraries) with templates.
19515prelink_cmds=$lt_prelink_cmds_CXX
19516
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070019517# Commands necessary for finishing linking programs.
19518postlink_cmds=$lt_postlink_cmds_CXX
19519
Wink Savillefbaaef92010-05-27 16:25:37 -070019520# Specify filename containing input files.
19521file_list_spec=$lt_file_list_spec_CXX
19522
19523# How to hardcode a shared library path into an executable.
19524hardcode_action=$hardcode_action_CXX
19525
19526# The directories searched by this compiler when creating a shared library.
19527compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19528
19529# Dependencies to place before and after the objects being linked to
19530# create a shared library.
19531predep_objects=$lt_predep_objects_CXX
19532postdep_objects=$lt_postdep_objects_CXX
19533predeps=$lt_predeps_CXX
19534postdeps=$lt_postdeps_CXX
19535
19536# The library search path used internally by the compiler when linking
19537# a shared library.
19538compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19539
19540# ### END LIBTOOL TAG CONFIG: CXX
19541_LT_EOF
19542
19543 ;;
19544
19545 esac
19546done # for ac_tag
19547
19548
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070019549as_fn_exit 0
Wink Savillefbaaef92010-05-27 16:25:37 -070019550_ACEOF
Wink Savillefbaaef92010-05-27 16:25:37 -070019551ac_clean_files=$ac_clean_files_save
19552
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070019553test $ac_write_fail = 0 ||
19554 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19555
Wink Savillefbaaef92010-05-27 16:25:37 -070019556
19557# configure is writing to config.log, and then calls config.status.
19558# config.status does its own redirection, appending to config.log.
19559# Unfortunately, on DOS this fails, as config.log is still kept open
19560# by configure, so config.status won't be able to write to it; its
19561# output is simply discarded. So we exec the FD to /dev/null,
19562# effectively closing config.log, so it can be properly (re)opened and
19563# appended to by config.status. When coming back to configure, we
19564# need to make the FD available again.
19565if test "$no_create" != yes; then
19566 ac_cs_success=:
19567 ac_config_status_args=
19568 test "$silent" = yes &&
19569 ac_config_status_args="$ac_config_status_args --quiet"
19570 exec 5>/dev/null
19571 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19572 exec 5>>config.log
19573 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19574 # would make configure fail if this is the last instruction.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070019575 $ac_cs_success || as_fn_exit 1
Wink Savillefbaaef92010-05-27 16:25:37 -070019576fi
19577
19578#
19579# CONFIG_SUBDIRS section.
19580#
19581if test "$no_recursion" != yes; then
19582
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070019583 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19584 # so they do not pile up.
Wink Savillefbaaef92010-05-27 16:25:37 -070019585 ac_sub_configure_args=
19586 ac_prev=
19587 eval "set x $ac_configure_args"
19588 shift
19589 for ac_arg
19590 do
19591 if test -n "$ac_prev"; then
19592 ac_prev=
19593 continue
19594 fi
19595 case $ac_arg in
19596 -cache-file | --cache-file | --cache-fil | --cache-fi \
19597 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19598 ac_prev=cache_file ;;
19599 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19600 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19601 | --c=*)
19602 ;;
19603 --config-cache | -C)
19604 ;;
19605 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19606 ac_prev=srcdir ;;
19607 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19608 ;;
19609 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19610 ac_prev=prefix ;;
19611 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19612 ;;
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070019613 --disable-option-checking)
19614 ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070019615 *)
19616 case $ac_arg in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070019617 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070019618 esac
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070019619 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070019620 esac
19621 done
19622
19623 # Always prepend --prefix to ensure using the same prefix
19624 # in subdir configurations.
19625 ac_arg="--prefix=$prefix"
19626 case $ac_arg in
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070019627 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Wink Savillefbaaef92010-05-27 16:25:37 -070019628 esac
19629 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19630
19631 # Pass --silent
19632 if test "$silent" = yes; then
19633 ac_sub_configure_args="--silent $ac_sub_configure_args"
19634 fi
19635
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070019636 # Always prepend --disable-option-checking to silence warnings, since
19637 # different subdirs can have different --enable and --with options.
19638 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19639
Wink Savillefbaaef92010-05-27 16:25:37 -070019640 ac_popdir=`pwd`
19641 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19642
19643 # Do not complain, so a configure script can configure whichever
19644 # parts of a large source tree are present.
19645 test -d "$srcdir/$ac_dir" || continue
19646
19647 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070019648 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19649 $as_echo "$ac_msg" >&6
19650 as_dir="$ac_dir"; as_fn_mkdir_p
Wink Savillefbaaef92010-05-27 16:25:37 -070019651 ac_builddir=.
19652
19653case "$ac_dir" in
19654.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19655*)
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070019656 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Wink Savillefbaaef92010-05-27 16:25:37 -070019657 # A ".." for each directory in $ac_dir_suffix.
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070019658 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Wink Savillefbaaef92010-05-27 16:25:37 -070019659 case $ac_top_builddir_sub in
19660 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19661 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19662 esac ;;
19663esac
19664ac_abs_top_builddir=$ac_pwd
19665ac_abs_builddir=$ac_pwd$ac_dir_suffix
19666# for backward compatibility:
19667ac_top_builddir=$ac_top_build_prefix
19668
19669case $srcdir in
19670 .) # We are building in place.
19671 ac_srcdir=.
19672 ac_top_srcdir=$ac_top_builddir_sub
19673 ac_abs_top_srcdir=$ac_pwd ;;
19674 [\\/]* | ?:[\\/]* ) # Absolute name.
19675 ac_srcdir=$srcdir$ac_dir_suffix;
19676 ac_top_srcdir=$srcdir
19677 ac_abs_top_srcdir=$srcdir ;;
19678 *) # Relative name.
19679 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19680 ac_top_srcdir=$ac_top_build_prefix$srcdir
19681 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19682esac
19683ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19684
19685
19686 cd "$ac_dir"
19687
19688 # Check for guested configure; otherwise get Cygnus style configure.
19689 if test -f "$ac_srcdir/configure.gnu"; then
19690 ac_sub_configure=$ac_srcdir/configure.gnu
19691 elif test -f "$ac_srcdir/configure"; then
19692 ac_sub_configure=$ac_srcdir/configure
19693 elif test -f "$ac_srcdir/configure.in"; then
19694 # This should be Cygnus configure.
19695 ac_sub_configure=$ac_aux_dir/configure
19696 else
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070019697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19698$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
Wink Savillefbaaef92010-05-27 16:25:37 -070019699 ac_sub_configure=
19700 fi
19701
19702 # The recursion is here.
19703 if test -n "$ac_sub_configure"; then
19704 # Make the cache file name correct relative to the subdirectory.
19705 case $cache_file in
19706 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19707 *) # Relative name.
19708 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19709 esac
19710
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070019711 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19712$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
Wink Savillefbaaef92010-05-27 16:25:37 -070019713 # The eval makes quoting arguments work.
19714 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19715 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070019716 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
Wink Savillefbaaef92010-05-27 16:25:37 -070019717 fi
19718
19719 cd "$ac_popdir"
19720 done
19721fi
Ulas Kirazci64d8d8f2013-03-14 16:44:33 -070019722if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19724$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19725fi
Wink Savillefbaaef92010-05-27 16:25:37 -070019726