blob: 4a4e0e9e83fffc04b53c553e93800201d461d0fa [file] [log] [blame]
Jeff Thompson39128c62013-06-19 14:08:51 -07001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for ndn-cpp 0.5.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
Jeff Thompson4f031642013-08-05 11:03:16 -0700198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1"
Jeff Thompson39128c62013-06-19 14:08:51 -0700208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542else
543 as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
Jeff Thompson4f031642013-08-05 11:03:16 -0700564SHELL=${CONFIG_SHELL-/bin/sh}
565
Jeff Thompson39128c62013-06-19 14:08:51 -0700566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='ndn-cpp'
589PACKAGE_TARNAME='ndn-cpp'
590PACKAGE_VERSION='0.5'
591PACKAGE_STRING='ndn-cpp 0.5'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL='https://github.com/named-data/ndn-cpp'
594
Jeff Thompson4f031642013-08-05 11:03:16 -0700595# Factoring default headers for most tests.
596ac_includes_default="\
597#include <stdio.h>
598#ifdef HAVE_SYS_TYPES_H
599# include <sys/types.h>
600#endif
601#ifdef HAVE_SYS_STAT_H
602# include <sys/stat.h>
603#endif
604#ifdef STDC_HEADERS
605# include <stdlib.h>
606# include <stddef.h>
607#else
608# ifdef HAVE_STDLIB_H
609# include <stdlib.h>
610# endif
611#endif
612#ifdef HAVE_STRING_H
613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614# include <memory.h>
615# endif
616# include <string.h>
617#endif
618#ifdef HAVE_STRINGS_H
619# include <strings.h>
620#endif
621#ifdef HAVE_INTTYPES_H
622# include <inttypes.h>
623#endif
624#ifdef HAVE_STDINT_H
625# include <stdint.h>
626#endif
627#ifdef HAVE_UNISTD_H
628# include <unistd.h>
629#endif"
630
Jeff Thompson39128c62013-06-19 14:08:51 -0700631ac_subst_vars='am__EXEEXT_FALSE
632am__EXEEXT_TRUE
633LTLIBOBJS
634LIBOBJS
Jeff Thompsonca45e552013-06-26 17:40:06 -0700635DOXYGEN_PAPER_SIZE
636DX_COND_latex_FALSE
637DX_COND_latex_TRUE
638DX_COND_pdf_FALSE
639DX_COND_pdf_TRUE
640DX_PDFLATEX
641DX_FLAG_pdf
642DX_COND_ps_FALSE
643DX_COND_ps_TRUE
644DX_EGREP
645DX_DVIPS
646DX_MAKEINDEX
647DX_LATEX
648DX_FLAG_ps
649DX_COND_html_FALSE
650DX_COND_html_TRUE
651DX_FLAG_html
652DX_COND_chi_FALSE
653DX_COND_chi_TRUE
654DX_FLAG_chi
655DX_COND_chm_FALSE
656DX_COND_chm_TRUE
657DX_HHC
658DX_FLAG_chm
659DX_COND_xml_FALSE
660DX_COND_xml_TRUE
661DX_FLAG_xml
662DX_COND_rtf_FALSE
663DX_COND_rtf_TRUE
664DX_FLAG_rtf
665DX_COND_man_FALSE
666DX_COND_man_TRUE
667DX_FLAG_man
668DX_COND_dot_FALSE
669DX_COND_dot_TRUE
670DX_DOT
671DX_FLAG_dot
672DX_COND_doc_FALSE
673DX_COND_doc_TRUE
674DX_PERL
675DX_DOXYGEN
676DX_FLAG_doc
677DX_ENV
678DX_DOCDIR
679DX_CONFIG
680DX_PROJECT
Jeff Thompson1b8f4c92013-06-19 16:18:46 -0700681HAVE_CXX11
Jeff Thompson4f031642013-08-05 11:03:16 -0700682CXXCPP
Jeff Thompson39128c62013-06-19 14:08:51 -0700683am__fastdepCXX_FALSE
684am__fastdepCXX_TRUE
685CXXDEPMODE
Jeff Thompson4f031642013-08-05 11:03:16 -0700686ac_ct_CXX
687CXXFLAGS
688CXX
689CPP
690OTOOL64
691OTOOL
692LIPO
693NMEDIT
694DSYMUTIL
695MANIFEST_TOOL
696RANLIB
697DLLTOOL
698OBJDUMP
699LN_S
700NM
701ac_ct_DUMPBIN
702DUMPBIN
703LD
704FGREP
705EGREP
706GREP
707SED
708host_os
709host_vendor
710host_cpu
711host
712build_os
713build_vendor
714build_cpu
715build
716LIBTOOL
717am__fastdepCC_FALSE
718am__fastdepCC_TRUE
719CCDEPMODE
Jeff Thompson39128c62013-06-19 14:08:51 -0700720am__nodep
721AMDEPBACKSLASH
722AMDEP_FALSE
723AMDEP_TRUE
724am__quote
725am__include
726DEPDIR
727OBJEXT
728EXEEXT
Jeff Thompson4f031642013-08-05 11:03:16 -0700729ac_ct_CC
Jeff Thompson39128c62013-06-19 14:08:51 -0700730CPPFLAGS
731LDFLAGS
Jeff Thompson4f031642013-08-05 11:03:16 -0700732CFLAGS
733CC
734ac_ct_AR
735AR
Jeff Thompson47053ad2013-08-05 10:36:53 -0700736MAINT
737MAINTAINER_MODE_FALSE
738MAINTAINER_MODE_TRUE
Jeff Thompson39128c62013-06-19 14:08:51 -0700739AM_BACKSLASH
740AM_DEFAULT_VERBOSITY
741AM_DEFAULT_V
742AM_V
743am__untar
744am__tar
745AMTAR
746am__leading_dot
747SET_MAKE
748AWK
749mkdir_p
750MKDIR_P
751INSTALL_STRIP_PROGRAM
752STRIP
753install_sh
754MAKEINFO
755AUTOHEADER
756AUTOMAKE
757AUTOCONF
758ACLOCAL
759VERSION
760PACKAGE
761CYGPATH_W
762am__isrc
763INSTALL_DATA
764INSTALL_SCRIPT
765INSTALL_PROGRAM
766target_alias
767host_alias
768build_alias
769LIBS
770ECHO_T
771ECHO_N
772ECHO_C
773DEFS
774mandir
775localedir
776libdir
777psdir
778pdfdir
779dvidir
780htmldir
781infodir
782docdir
783oldincludedir
784includedir
785localstatedir
786sharedstatedir
787sysconfdir
788datadir
789datarootdir
790libexecdir
791sbindir
792bindir
793program_transform_name
794prefix
795exec_prefix
796PACKAGE_URL
797PACKAGE_BUGREPORT
798PACKAGE_STRING
799PACKAGE_VERSION
800PACKAGE_TARNAME
801PACKAGE_NAME
802PATH_SEPARATOR
803SHELL'
804ac_subst_files=''
805ac_user_opts='
806enable_option_checking
807enable_silent_rules
Jeff Thompson47053ad2013-08-05 10:36:53 -0700808enable_maintainer_mode
Jeff Thompson39128c62013-06-19 14:08:51 -0700809enable_dependency_tracking
Jeff Thompson4f031642013-08-05 11:03:16 -0700810enable_shared
811enable_static
812with_pic
813enable_fast_install
814with_gnu_ld
815with_sysroot
816enable_libtool_lock
Jeff Thompsonca45e552013-06-26 17:40:06 -0700817enable_doxygen_doc
818enable_doxygen_dot
819enable_doxygen_man
820enable_doxygen_rtf
821enable_doxygen_xml
822enable_doxygen_chm
823enable_doxygen_chi
824enable_doxygen_html
825enable_doxygen_ps
826enable_doxygen_pdf
Jeff Thompson39128c62013-06-19 14:08:51 -0700827'
828 ac_precious_vars='build_alias
829host_alias
830target_alias
Jeff Thompson4f031642013-08-05 11:03:16 -0700831CC
832CFLAGS
Jeff Thompson39128c62013-06-19 14:08:51 -0700833LDFLAGS
834LIBS
835CPPFLAGS
Jeff Thompson4f031642013-08-05 11:03:16 -0700836CPP
837CXX
838CXXFLAGS
Jeff Thompson36174062013-06-21 16:03:44 -0700839CCC
Jeff Thompson4f031642013-08-05 11:03:16 -0700840CXXCPP
Jeff Thompsonca45e552013-06-26 17:40:06 -0700841DOXYGEN_PAPER_SIZE'
Jeff Thompson39128c62013-06-19 14:08:51 -0700842
843
844# Initialize some variables set by options.
845ac_init_help=
846ac_init_version=false
847ac_unrecognized_opts=
848ac_unrecognized_sep=
849# The variables have the same names as the options, with
850# dashes changed to underlines.
851cache_file=/dev/null
852exec_prefix=NONE
853no_create=
854no_recursion=
855prefix=NONE
856program_prefix=NONE
857program_suffix=NONE
858program_transform_name=s,x,x,
859silent=
860site=
861srcdir=
862verbose=
863x_includes=NONE
864x_libraries=NONE
865
866# Installation directory options.
867# These are left unexpanded so users can "make install exec_prefix=/foo"
868# and all the variables that are supposed to be based on exec_prefix
869# by default will actually change.
870# Use braces instead of parens because sh, perl, etc. also accept them.
871# (The list follows the same order as the GNU Coding Standards.)
872bindir='${exec_prefix}/bin'
873sbindir='${exec_prefix}/sbin'
874libexecdir='${exec_prefix}/libexec'
875datarootdir='${prefix}/share'
876datadir='${datarootdir}'
877sysconfdir='${prefix}/etc'
878sharedstatedir='${prefix}/com'
879localstatedir='${prefix}/var'
880includedir='${prefix}/include'
881oldincludedir='/usr/include'
882docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
883infodir='${datarootdir}/info'
884htmldir='${docdir}'
885dvidir='${docdir}'
886pdfdir='${docdir}'
887psdir='${docdir}'
888libdir='${exec_prefix}/lib'
889localedir='${datarootdir}/locale'
890mandir='${datarootdir}/man'
891
892ac_prev=
893ac_dashdash=
894for ac_option
895do
896 # If the previous option needs an argument, assign it.
897 if test -n "$ac_prev"; then
898 eval $ac_prev=\$ac_option
899 ac_prev=
900 continue
901 fi
902
903 case $ac_option in
904 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 *=) ac_optarg= ;;
906 *) ac_optarg=yes ;;
907 esac
908
909 # Accept the important Cygnus configure options, so we can diagnose typos.
910
911 case $ac_dashdash$ac_option in
912 --)
913 ac_dashdash=yes ;;
914
915 -bindir | --bindir | --bindi | --bind | --bin | --bi)
916 ac_prev=bindir ;;
917 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
918 bindir=$ac_optarg ;;
919
920 -build | --build | --buil | --bui | --bu)
921 ac_prev=build_alias ;;
922 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
923 build_alias=$ac_optarg ;;
924
925 -cache-file | --cache-file | --cache-fil | --cache-fi \
926 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
927 ac_prev=cache_file ;;
928 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
929 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
930 cache_file=$ac_optarg ;;
931
932 --config-cache | -C)
933 cache_file=config.cache ;;
934
935 -datadir | --datadir | --datadi | --datad)
936 ac_prev=datadir ;;
937 -datadir=* | --datadir=* | --datadi=* | --datad=*)
938 datadir=$ac_optarg ;;
939
940 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
941 | --dataroo | --dataro | --datar)
942 ac_prev=datarootdir ;;
943 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
944 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
945 datarootdir=$ac_optarg ;;
946
947 -disable-* | --disable-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 as_fn_error $? "invalid feature name: $ac_useropt"
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
955 *"
956"enable_$ac_useropt"
957"*) ;;
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
960 esac
961 eval enable_$ac_useropt=no ;;
962
963 -docdir | --docdir | --docdi | --doc | --do)
964 ac_prev=docdir ;;
965 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
966 docdir=$ac_optarg ;;
967
968 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
969 ac_prev=dvidir ;;
970 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
971 dvidir=$ac_optarg ;;
972
973 -enable-* | --enable-*)
974 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977 as_fn_error $? "invalid feature name: $ac_useropt"
978 ac_useropt_orig=$ac_useropt
979 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980 case $ac_user_opts in
981 *"
982"enable_$ac_useropt"
983"*) ;;
984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
985 ac_unrecognized_sep=', ';;
986 esac
987 eval enable_$ac_useropt=\$ac_optarg ;;
988
989 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
990 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
991 | --exec | --exe | --ex)
992 ac_prev=exec_prefix ;;
993 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
994 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
995 | --exec=* | --exe=* | --ex=*)
996 exec_prefix=$ac_optarg ;;
997
998 -gas | --gas | --ga | --g)
999 # Obsolete; use --with-gas.
1000 with_gas=yes ;;
1001
1002 -help | --help | --hel | --he | -h)
1003 ac_init_help=long ;;
1004 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1005 ac_init_help=recursive ;;
1006 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1007 ac_init_help=short ;;
1008
1009 -host | --host | --hos | --ho)
1010 ac_prev=host_alias ;;
1011 -host=* | --host=* | --hos=* | --ho=*)
1012 host_alias=$ac_optarg ;;
1013
1014 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1015 ac_prev=htmldir ;;
1016 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1017 | --ht=*)
1018 htmldir=$ac_optarg ;;
1019
1020 -includedir | --includedir | --includedi | --included | --include \
1021 | --includ | --inclu | --incl | --inc)
1022 ac_prev=includedir ;;
1023 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1024 | --includ=* | --inclu=* | --incl=* | --inc=*)
1025 includedir=$ac_optarg ;;
1026
1027 -infodir | --infodir | --infodi | --infod | --info | --inf)
1028 ac_prev=infodir ;;
1029 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1030 infodir=$ac_optarg ;;
1031
1032 -libdir | --libdir | --libdi | --libd)
1033 ac_prev=libdir ;;
1034 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1035 libdir=$ac_optarg ;;
1036
1037 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1038 | --libexe | --libex | --libe)
1039 ac_prev=libexecdir ;;
1040 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1041 | --libexe=* | --libex=* | --libe=*)
1042 libexecdir=$ac_optarg ;;
1043
1044 -localedir | --localedir | --localedi | --localed | --locale)
1045 ac_prev=localedir ;;
1046 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1047 localedir=$ac_optarg ;;
1048
1049 -localstatedir | --localstatedir | --localstatedi | --localstated \
1050 | --localstate | --localstat | --localsta | --localst | --locals)
1051 ac_prev=localstatedir ;;
1052 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1053 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1054 localstatedir=$ac_optarg ;;
1055
1056 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1057 ac_prev=mandir ;;
1058 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1059 mandir=$ac_optarg ;;
1060
1061 -nfp | --nfp | --nf)
1062 # Obsolete; use --without-fp.
1063 with_fp=no ;;
1064
1065 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1066 | --no-cr | --no-c | -n)
1067 no_create=yes ;;
1068
1069 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1070 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1071 no_recursion=yes ;;
1072
1073 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1074 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1075 | --oldin | --oldi | --old | --ol | --o)
1076 ac_prev=oldincludedir ;;
1077 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1078 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1079 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1080 oldincludedir=$ac_optarg ;;
1081
1082 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1083 ac_prev=prefix ;;
1084 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1085 prefix=$ac_optarg ;;
1086
1087 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1088 | --program-pre | --program-pr | --program-p)
1089 ac_prev=program_prefix ;;
1090 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1091 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1092 program_prefix=$ac_optarg ;;
1093
1094 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1095 | --program-suf | --program-su | --program-s)
1096 ac_prev=program_suffix ;;
1097 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1098 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1099 program_suffix=$ac_optarg ;;
1100
1101 -program-transform-name | --program-transform-name \
1102 | --program-transform-nam | --program-transform-na \
1103 | --program-transform-n | --program-transform- \
1104 | --program-transform | --program-transfor \
1105 | --program-transfo | --program-transf \
1106 | --program-trans | --program-tran \
1107 | --progr-tra | --program-tr | --program-t)
1108 ac_prev=program_transform_name ;;
1109 -program-transform-name=* | --program-transform-name=* \
1110 | --program-transform-nam=* | --program-transform-na=* \
1111 | --program-transform-n=* | --program-transform-=* \
1112 | --program-transform=* | --program-transfor=* \
1113 | --program-transfo=* | --program-transf=* \
1114 | --program-trans=* | --program-tran=* \
1115 | --progr-tra=* | --program-tr=* | --program-t=*)
1116 program_transform_name=$ac_optarg ;;
1117
1118 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1119 ac_prev=pdfdir ;;
1120 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1121 pdfdir=$ac_optarg ;;
1122
1123 -psdir | --psdir | --psdi | --psd | --ps)
1124 ac_prev=psdir ;;
1125 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1126 psdir=$ac_optarg ;;
1127
1128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1129 | -silent | --silent | --silen | --sile | --sil)
1130 silent=yes ;;
1131
1132 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1133 ac_prev=sbindir ;;
1134 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1135 | --sbi=* | --sb=*)
1136 sbindir=$ac_optarg ;;
1137
1138 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1139 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1140 | --sharedst | --shareds | --shared | --share | --shar \
1141 | --sha | --sh)
1142 ac_prev=sharedstatedir ;;
1143 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1144 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1145 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1146 | --sha=* | --sh=*)
1147 sharedstatedir=$ac_optarg ;;
1148
1149 -site | --site | --sit)
1150 ac_prev=site ;;
1151 -site=* | --site=* | --sit=*)
1152 site=$ac_optarg ;;
1153
1154 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1155 ac_prev=srcdir ;;
1156 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1157 srcdir=$ac_optarg ;;
1158
1159 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1160 | --syscon | --sysco | --sysc | --sys | --sy)
1161 ac_prev=sysconfdir ;;
1162 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1163 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1164 sysconfdir=$ac_optarg ;;
1165
1166 -target | --target | --targe | --targ | --tar | --ta | --t)
1167 ac_prev=target_alias ;;
1168 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1169 target_alias=$ac_optarg ;;
1170
1171 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1172 verbose=yes ;;
1173
1174 -version | --version | --versio | --versi | --vers | -V)
1175 ac_init_version=: ;;
1176
1177 -with-* | --with-*)
1178 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error $? "invalid package name: $ac_useropt"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1185 *"
1186"with_$ac_useropt"
1187"*) ;;
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1190 esac
1191 eval with_$ac_useropt=\$ac_optarg ;;
1192
1193 -without-* | --without-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: $ac_useropt"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1201 *"
1202"with_$ac_useropt"
1203"*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=no ;;
1208
1209 --x)
1210 # Obsolete; use --with-x.
1211 with_x=yes ;;
1212
1213 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214 | --x-incl | --x-inc | --x-in | --x-i)
1215 ac_prev=x_includes ;;
1216 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218 x_includes=$ac_optarg ;;
1219
1220 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222 ac_prev=x_libraries ;;
1223 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225 x_libraries=$ac_optarg ;;
1226
1227 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1228Try \`$0 --help' for more information"
1229 ;;
1230
1231 *=*)
1232 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1233 # Reject names that are not valid shell variable names.
1234 case $ac_envvar in #(
1235 '' | [0-9]* | *[!_$as_cr_alnum]* )
1236 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1237 esac
1238 eval $ac_envvar=\$ac_optarg
1239 export $ac_envvar ;;
1240
1241 *)
1242 # FIXME: should be removed in autoconf 3.0.
1243 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1244 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1246 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1247 ;;
1248
1249 esac
1250done
1251
1252if test -n "$ac_prev"; then
1253 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254 as_fn_error $? "missing argument to $ac_option"
1255fi
1256
1257if test -n "$ac_unrecognized_opts"; then
1258 case $enable_option_checking in
1259 no) ;;
1260 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1261 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262 esac
1263fi
1264
1265# Check all directory arguments for consistency.
1266for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267 datadir sysconfdir sharedstatedir localstatedir includedir \
1268 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269 libdir localedir mandir
1270do
1271 eval ac_val=\$$ac_var
1272 # Remove trailing slashes.
1273 case $ac_val in
1274 */ )
1275 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276 eval $ac_var=\$ac_val;;
1277 esac
1278 # Be sure to have absolute directory names.
1279 case $ac_val in
1280 [\\/$]* | ?:[\\/]* ) continue;;
1281 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1282 esac
1283 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1284done
1285
1286# There might be people who depend on the old broken behavior: `$host'
1287# used to hold the argument of --host etc.
1288# FIXME: To remove some day.
1289build=$build_alias
1290host=$host_alias
1291target=$target_alias
1292
1293# FIXME: To remove some day.
1294if test "x$host_alias" != x; then
1295 if test "x$build_alias" = x; then
1296 cross_compiling=maybe
1297 elif test "x$build_alias" != "x$host_alias"; then
1298 cross_compiling=yes
1299 fi
1300fi
1301
1302ac_tool_prefix=
1303test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304
1305test "$silent" = yes && exec 6>/dev/null
1306
1307
1308ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309ac_ls_di=`ls -di .` &&
1310ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311 as_fn_error $? "working directory cannot be determined"
1312test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313 as_fn_error $? "pwd does not report name of working directory"
1314
1315
1316# Find the source files, if location was not specified.
1317if test -z "$srcdir"; then
1318 ac_srcdir_defaulted=yes
1319 # Try the directory containing this script, then the parent directory.
1320 ac_confdir=`$as_dirname -- "$as_myself" ||
1321$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322 X"$as_myself" : 'X\(//\)[^/]' \| \
1323 X"$as_myself" : 'X\(//\)$' \| \
1324 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325$as_echo X"$as_myself" |
1326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\/\)[^/].*/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\/\)$/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\).*/{
1339 s//\1/
1340 q
1341 }
1342 s/.*/./; q'`
1343 srcdir=$ac_confdir
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 srcdir=..
1346 fi
1347else
1348 ac_srcdir_defaulted=no
1349fi
1350if test ! -r "$srcdir/$ac_unique_file"; then
1351 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1353fi
1354ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355ac_abs_confdir=`(
1356 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1357 pwd)`
1358# When building in place, set srcdir=.
1359if test "$ac_abs_confdir" = "$ac_pwd"; then
1360 srcdir=.
1361fi
1362# Remove unnecessary trailing slashes from srcdir.
1363# Double slashes in file names in object file debugging info
1364# mess up M-x gdb in Emacs.
1365case $srcdir in
1366*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367esac
1368for ac_var in $ac_precious_vars; do
1369 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1370 eval ac_env_${ac_var}_value=\$${ac_var}
1371 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373done
1374
1375#
1376# Report the --help message.
1377#
1378if test "$ac_init_help" = "long"; then
1379 # Omit some internal or obsolete options to make the list less imposing.
1380 # This message is too long to be a string in the A/UX 3.1 sh.
1381 cat <<_ACEOF
1382\`configure' configures ndn-cpp 0.5 to adapt to many kinds of systems.
1383
1384Usage: $0 [OPTION]... [VAR=VALUE]...
1385
1386To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387VAR=VALUE. See below for descriptions of some of the useful variables.
1388
1389Defaults for the options are specified in brackets.
1390
1391Configuration:
1392 -h, --help display this help and exit
1393 --help=short display options specific to this package
1394 --help=recursive display the short help of all the included packages
1395 -V, --version display version information and exit
1396 -q, --quiet, --silent do not print \`checking ...' messages
1397 --cache-file=FILE cache test results in FILE [disabled]
1398 -C, --config-cache alias for \`--cache-file=config.cache'
1399 -n, --no-create do not create output files
1400 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1401
1402Installation directories:
1403 --prefix=PREFIX install architecture-independent files in PREFIX
1404 [$ac_default_prefix]
1405 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1406 [PREFIX]
1407
1408By default, \`make install' will install all the files in
1409\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1410an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1411for instance \`--prefix=\$HOME'.
1412
1413For better control, use the options below.
1414
1415Fine tuning of the installation directories:
1416 --bindir=DIR user executables [EPREFIX/bin]
1417 --sbindir=DIR system admin executables [EPREFIX/sbin]
1418 --libexecdir=DIR program executables [EPREFIX/libexec]
1419 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1420 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1421 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1422 --libdir=DIR object code libraries [EPREFIX/lib]
1423 --includedir=DIR C header files [PREFIX/include]
1424 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1425 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1426 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1427 --infodir=DIR info documentation [DATAROOTDIR/info]
1428 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1429 --mandir=DIR man documentation [DATAROOTDIR/man]
1430 --docdir=DIR documentation root [DATAROOTDIR/doc/ndn-cpp]
1431 --htmldir=DIR html documentation [DOCDIR]
1432 --dvidir=DIR dvi documentation [DOCDIR]
1433 --pdfdir=DIR pdf documentation [DOCDIR]
1434 --psdir=DIR ps documentation [DOCDIR]
1435_ACEOF
1436
1437 cat <<\_ACEOF
1438
1439Program names:
1440 --program-prefix=PREFIX prepend PREFIX to installed program names
1441 --program-suffix=SUFFIX append SUFFIX to installed program names
1442 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
Jeff Thompson4f031642013-08-05 11:03:16 -07001443
1444System types:
1445 --build=BUILD configure for building on BUILD [guessed]
1446 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Jeff Thompson39128c62013-06-19 14:08:51 -07001447_ACEOF
1448fi
1449
1450if test -n "$ac_init_help"; then
1451 case $ac_init_help in
1452 short | recursive ) echo "Configuration of ndn-cpp 0.5:";;
1453 esac
1454 cat <<\_ACEOF
1455
1456Optional Features:
1457 --disable-option-checking ignore unrecognized --enable/--with options
1458 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1459 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1460 --enable-silent-rules less verbose build output (undo: "make V=1")
1461 --disable-silent-rules verbose build output (undo: "make V=0")
Jeff Thompson47053ad2013-08-05 10:36:53 -07001462 --enable-maintainer-mode
1463 enable make rules and dependencies not useful (and
1464 sometimes confusing) to the casual installer
Jeff Thompson39128c62013-06-19 14:08:51 -07001465 --enable-dependency-tracking
1466 do not reject slow dependency extractors
1467 --disable-dependency-tracking
1468 speeds up one-time build
Jeff Thompson4f031642013-08-05 11:03:16 -07001469 --enable-shared[=PKGS] build shared libraries [default=yes]
1470 --enable-static[=PKGS] build static libraries [default=yes]
1471 --enable-fast-install[=PKGS]
1472 optimize for fast installation [default=yes]
1473 --disable-libtool-lock avoid locking (might break parallel builds)
Jeff Thompsonca45e552013-06-26 17:40:06 -07001474 --disable-doxygen-doc don't generate any doxygen documentation
1475 --enable-doxygen-dot generate graphics for doxygen documentation
1476 --enable-doxygen-man generate doxygen manual pages
1477 --enable-doxygen-rtf generate doxygen RTF documentation
1478 --enable-doxygen-xml generate doxygen XML documentation
1479 --enable-doxygen-chm generate doxygen compressed HTML help documentation
1480 --enable-doxygen-chi generate doxygen seperate compressed HTML help index
1481 file
1482 --disable-doxygen-html don't generate doxygen plain HTML documentation
1483 --enable-doxygen-ps generate doxygen PostScript documentation
1484 --enable-doxygen-pdf generate doxygen PDF documentation
Jeff Thompson39128c62013-06-19 14:08:51 -07001485
Jeff Thompson4f031642013-08-05 11:03:16 -07001486Optional Packages:
1487 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1488 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1489 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1490 both]
1491 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1492 --with-sysroot=DIR Search for dependent libraries within DIR
1493 (or the compiler's sysroot if not specified).
1494
Jeff Thompson39128c62013-06-19 14:08:51 -07001495Some influential environment variables:
Jeff Thompson4f031642013-08-05 11:03:16 -07001496 CC C compiler command
1497 CFLAGS C compiler flags
Jeff Thompson39128c62013-06-19 14:08:51 -07001498 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1499 nonstandard directory <lib dir>
1500 LIBS libraries to pass to the linker, e.g. -l<library>
1501 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1502 you have headers in a nonstandard directory <include dir>
Jeff Thompson4f031642013-08-05 11:03:16 -07001503 CPP C preprocessor
1504 CXX C++ compiler command
1505 CXXFLAGS C++ compiler flags
1506 CXXCPP C++ preprocessor
Jeff Thompsonca45e552013-06-26 17:40:06 -07001507 DOXYGEN_PAPER_SIZE
1508 a4wide (default), a4, letter, legal or executive
Jeff Thompson39128c62013-06-19 14:08:51 -07001509
1510Use these variables to override the choices made by `configure' or to help
1511it to find libraries and programs with nonstandard names/locations.
1512
1513Report bugs to the package provider.
1514ndn-cpp home page: <https://github.com/named-data/ndn-cpp>.
1515_ACEOF
1516ac_status=$?
1517fi
1518
1519if test "$ac_init_help" = "recursive"; then
1520 # If there are subdirs, report their specific --help.
1521 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1522 test -d "$ac_dir" ||
1523 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1524 continue
1525 ac_builddir=.
1526
1527case "$ac_dir" in
1528.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529*)
1530 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1531 # A ".." for each directory in $ac_dir_suffix.
1532 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1533 case $ac_top_builddir_sub in
1534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1536 esac ;;
1537esac
1538ac_abs_top_builddir=$ac_pwd
1539ac_abs_builddir=$ac_pwd$ac_dir_suffix
1540# for backward compatibility:
1541ac_top_builddir=$ac_top_build_prefix
1542
1543case $srcdir in
1544 .) # We are building in place.
1545 ac_srcdir=.
1546 ac_top_srcdir=$ac_top_builddir_sub
1547 ac_abs_top_srcdir=$ac_pwd ;;
1548 [\\/]* | ?:[\\/]* ) # Absolute name.
1549 ac_srcdir=$srcdir$ac_dir_suffix;
1550 ac_top_srcdir=$srcdir
1551 ac_abs_top_srcdir=$srcdir ;;
1552 *) # Relative name.
1553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1554 ac_top_srcdir=$ac_top_build_prefix$srcdir
1555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1556esac
1557ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1558
1559 cd "$ac_dir" || { ac_status=$?; continue; }
1560 # Check for guested configure.
1561 if test -f "$ac_srcdir/configure.gnu"; then
1562 echo &&
1563 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1564 elif test -f "$ac_srcdir/configure"; then
1565 echo &&
1566 $SHELL "$ac_srcdir/configure" --help=recursive
1567 else
1568 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1569 fi || ac_status=$?
1570 cd "$ac_pwd" || { ac_status=$?; break; }
1571 done
1572fi
1573
1574test -n "$ac_init_help" && exit $ac_status
1575if $ac_init_version; then
1576 cat <<\_ACEOF
1577ndn-cpp configure 0.5
1578generated by GNU Autoconf 2.69
1579
1580Copyright (C) 2012 Free Software Foundation, Inc.
1581This configure script is free software; the Free Software Foundation
1582gives unlimited permission to copy, distribute and modify it.
1583_ACEOF
1584 exit
1585fi
1586
1587## ------------------------ ##
1588## Autoconf initialization. ##
1589## ------------------------ ##
1590
Jeff Thompson4f031642013-08-05 11:03:16 -07001591# ac_fn_c_try_compile LINENO
1592# --------------------------
1593# Try to compile conftest.$ac_ext, and return whether this succeeded.
1594ac_fn_c_try_compile ()
1595{
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 rm -f conftest.$ac_objext
1598 if { { ac_try="$ac_compile"
1599case "(($ac_try" in
1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601 *) ac_try_echo=$ac_try;;
1602esac
1603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604$as_echo "$ac_try_echo"; } >&5
1605 (eval "$ac_compile") 2>conftest.err
1606 ac_status=$?
1607 if test -s conftest.err; then
1608 grep -v '^ *+' conftest.err >conftest.er1
1609 cat conftest.er1 >&5
1610 mv -f conftest.er1 conftest.err
1611 fi
1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613 test $ac_status = 0; } && {
1614 test -z "$ac_c_werror_flag" ||
1615 test ! -s conftest.err
1616 } && test -s conftest.$ac_objext; then :
1617 ac_retval=0
1618else
1619 $as_echo "$as_me: failed program was:" >&5
1620sed 's/^/| /' conftest.$ac_ext >&5
1621
1622 ac_retval=1
1623fi
1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625 as_fn_set_status $ac_retval
1626
1627} # ac_fn_c_try_compile
1628
1629# ac_fn_c_try_link LINENO
1630# -----------------------
1631# Try to link conftest.$ac_ext, and return whether this succeeded.
1632ac_fn_c_try_link ()
1633{
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 rm -f conftest.$ac_objext conftest$ac_exeext
1636 if { { ac_try="$ac_link"
1637case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1640esac
1641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642$as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_link") 2>conftest.err
1644 ac_status=$?
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1649 fi
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } && {
1652 test -z "$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1654 } && test -s conftest$ac_exeext && {
1655 test "$cross_compiling" = yes ||
1656 test -x conftest$ac_exeext
1657 }; then :
1658 ac_retval=0
1659else
1660 $as_echo "$as_me: failed program was:" >&5
1661sed 's/^/| /' conftest.$ac_ext >&5
1662
1663 ac_retval=1
1664fi
1665 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1666 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1667 # interfere with the next link command; also delete a directory that is
1668 # left behind by Apple's compiler. We do this before executing the actions.
1669 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 as_fn_set_status $ac_retval
1672
1673} # ac_fn_c_try_link
1674
1675# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1676# -------------------------------------------------------
1677# Tests whether HEADER exists and can be compiled using the include files in
1678# INCLUDES, setting the cache variable VAR accordingly.
1679ac_fn_c_check_header_compile ()
1680{
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1683$as_echo_n "checking for $2... " >&6; }
1684if eval \${$3+:} false; then :
1685 $as_echo_n "(cached) " >&6
1686else
1687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688/* end confdefs.h. */
1689$4
1690#include <$2>
1691_ACEOF
1692if ac_fn_c_try_compile "$LINENO"; then :
1693 eval "$3=yes"
1694else
1695 eval "$3=no"
1696fi
1697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1698fi
1699eval ac_res=\$$3
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701$as_echo "$ac_res" >&6; }
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703
1704} # ac_fn_c_check_header_compile
1705
1706# ac_fn_c_try_cpp LINENO
1707# ----------------------
1708# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1709ac_fn_c_try_cpp ()
1710{
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 if { { ac_try="$ac_cpp conftest.$ac_ext"
1713case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716esac
1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718$as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1720 ac_status=$?
1721 if test -s conftest.err; then
1722 grep -v '^ *+' conftest.err >conftest.er1
1723 cat conftest.er1 >&5
1724 mv -f conftest.er1 conftest.err
1725 fi
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } > conftest.i && {
1728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1729 test ! -s conftest.err
1730 }; then :
1731 ac_retval=0
1732else
1733 $as_echo "$as_me: failed program was:" >&5
1734sed 's/^/| /' conftest.$ac_ext >&5
1735
1736 ac_retval=1
1737fi
1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 as_fn_set_status $ac_retval
1740
1741} # ac_fn_c_try_cpp
1742
1743# ac_fn_c_try_run LINENO
1744# ----------------------
1745# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1746# that executables *can* be run.
1747ac_fn_c_try_run ()
1748{
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 if { { ac_try="$ac_link"
1751case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1754esac
1755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756$as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_link") 2>&5
1758 ac_status=$?
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1761 { { case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764esac
1765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766$as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_try") 2>&5
1768 ac_status=$?
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; }; }; then :
1771 ac_retval=0
1772else
1773 $as_echo "$as_me: program exited with status $ac_status" >&5
1774 $as_echo "$as_me: failed program was:" >&5
1775sed 's/^/| /' conftest.$ac_ext >&5
1776
1777 ac_retval=$ac_status
1778fi
1779 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 as_fn_set_status $ac_retval
1782
1783} # ac_fn_c_try_run
1784
1785# ac_fn_c_check_func LINENO FUNC VAR
1786# ----------------------------------
1787# Tests whether FUNC exists, setting the cache variable VAR accordingly
1788ac_fn_c_check_func ()
1789{
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792$as_echo_n "checking for $2... " >&6; }
1793if eval \${$3+:} false; then :
1794 $as_echo_n "(cached) " >&6
1795else
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797/* end confdefs.h. */
1798/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1800#define $2 innocuous_$2
1801
1802/* System header to define __stub macros and hopefully few prototypes,
1803 which can conflict with char $2 (); below.
1804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1805 <limits.h> exists even on freestanding compilers. */
1806
1807#ifdef __STDC__
1808# include <limits.h>
1809#else
1810# include <assert.h>
1811#endif
1812
1813#undef $2
1814
1815/* Override any GCC internal prototype to avoid an error.
1816 Use char because int might match the return type of a GCC
1817 builtin and then its argument prototype would still apply. */
1818#ifdef __cplusplus
1819extern "C"
1820#endif
1821char $2 ();
1822/* The GNU C library defines this for functions which it implements
1823 to always fail with ENOSYS. Some functions are actually named
1824 something starting with __ and the normal name is an alias. */
1825#if defined __stub_$2 || defined __stub___$2
1826choke me
1827#endif
1828
1829int
1830main ()
1831{
1832return $2 ();
1833 ;
1834 return 0;
1835}
1836_ACEOF
1837if ac_fn_c_try_link "$LINENO"; then :
1838 eval "$3=yes"
1839else
1840 eval "$3=no"
1841fi
1842rm -f core conftest.err conftest.$ac_objext \
1843 conftest$ac_exeext conftest.$ac_ext
1844fi
1845eval ac_res=\$$3
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847$as_echo "$ac_res" >&6; }
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849
1850} # ac_fn_c_check_func
1851
Jeff Thompson39128c62013-06-19 14:08:51 -07001852# ac_fn_cxx_try_compile LINENO
1853# ----------------------------
1854# Try to compile conftest.$ac_ext, and return whether this succeeded.
1855ac_fn_cxx_try_compile ()
1856{
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 rm -f conftest.$ac_objext
1859 if { { ac_try="$ac_compile"
1860case "(($ac_try" in
1861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1862 *) ac_try_echo=$ac_try;;
1863esac
1864eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865$as_echo "$ac_try_echo"; } >&5
1866 (eval "$ac_compile") 2>conftest.err
1867 ac_status=$?
1868 if test -s conftest.err; then
1869 grep -v '^ *+' conftest.err >conftest.er1
1870 cat conftest.er1 >&5
1871 mv -f conftest.er1 conftest.err
1872 fi
1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; } && {
1875 test -z "$ac_cxx_werror_flag" ||
1876 test ! -s conftest.err
1877 } && test -s conftest.$ac_objext; then :
1878 ac_retval=0
1879else
1880 $as_echo "$as_me: failed program was:" >&5
1881sed 's/^/| /' conftest.$ac_ext >&5
1882
1883 ac_retval=1
1884fi
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886 as_fn_set_status $ac_retval
1887
1888} # ac_fn_cxx_try_compile
Jeff Thompson36174062013-06-21 16:03:44 -07001889
Jeff Thompson4f031642013-08-05 11:03:16 -07001890# ac_fn_cxx_try_cpp LINENO
1891# ------------------------
1892# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1893ac_fn_cxx_try_cpp ()
Jeff Thompson36174062013-06-21 16:03:44 -07001894{
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Jeff Thompson4f031642013-08-05 11:03:16 -07001896 if { { ac_try="$ac_cpp conftest.$ac_ext"
Jeff Thompson36174062013-06-21 16:03:44 -07001897case "(($ac_try" in
1898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899 *) ac_try_echo=$ac_try;;
1900esac
1901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902$as_echo "$ac_try_echo"; } >&5
Jeff Thompson4f031642013-08-05 11:03:16 -07001903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1904 ac_status=$?
1905 if test -s conftest.err; then
1906 grep -v '^ *+' conftest.err >conftest.er1
1907 cat conftest.er1 >&5
1908 mv -f conftest.er1 conftest.err
1909 fi
1910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1911 test $ac_status = 0; } > conftest.i && {
1912 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1913 test ! -s conftest.err
1914 }; then :
1915 ac_retval=0
1916else
1917 $as_echo "$as_me: failed program was:" >&5
1918sed 's/^/| /' conftest.$ac_ext >&5
1919
1920 ac_retval=1
1921fi
1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923 as_fn_set_status $ac_retval
1924
1925} # ac_fn_cxx_try_cpp
1926
1927# ac_fn_cxx_try_link LINENO
1928# -------------------------
1929# Try to link conftest.$ac_ext, and return whether this succeeded.
1930ac_fn_cxx_try_link ()
1931{
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 rm -f conftest.$ac_objext conftest$ac_exeext
1934 if { { ac_try="$ac_link"
1935case "(($ac_try" in
1936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1937 *) ac_try_echo=$ac_try;;
1938esac
1939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1940$as_echo "$ac_try_echo"; } >&5
1941 (eval "$ac_link") 2>conftest.err
Jeff Thompson36174062013-06-21 16:03:44 -07001942 ac_status=$?
1943 if test -s conftest.err; then
1944 grep -v '^ *+' conftest.err >conftest.er1
1945 cat conftest.er1 >&5
1946 mv -f conftest.er1 conftest.err
1947 fi
1948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1949 test $ac_status = 0; } && {
Jeff Thompson4f031642013-08-05 11:03:16 -07001950 test -z "$ac_cxx_werror_flag" ||
Jeff Thompson36174062013-06-21 16:03:44 -07001951 test ! -s conftest.err
Jeff Thompson4f031642013-08-05 11:03:16 -07001952 } && test -s conftest$ac_exeext && {
1953 test "$cross_compiling" = yes ||
1954 test -x conftest$ac_exeext
1955 }; then :
Jeff Thompson36174062013-06-21 16:03:44 -07001956 ac_retval=0
1957else
1958 $as_echo "$as_me: failed program was:" >&5
1959sed 's/^/| /' conftest.$ac_ext >&5
1960
1961 ac_retval=1
1962fi
Jeff Thompson4f031642013-08-05 11:03:16 -07001963 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1964 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1965 # interfere with the next link command; also delete a directory that is
1966 # left behind by Apple's compiler. We do this before executing the actions.
1967 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Jeff Thompson36174062013-06-21 16:03:44 -07001968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969 as_fn_set_status $ac_retval
1970
Jeff Thompson4f031642013-08-05 11:03:16 -07001971} # ac_fn_cxx_try_link
Jeff Thompson39128c62013-06-19 14:08:51 -07001972cat >config.log <<_ACEOF
1973This file contains any messages produced by compilers while
1974running configure, to aid debugging if configure makes a mistake.
1975
1976It was created by ndn-cpp $as_me 0.5, which was
1977generated by GNU Autoconf 2.69. Invocation command line was
1978
1979 $ $0 $@
1980
1981_ACEOF
1982exec 5>>config.log
1983{
1984cat <<_ASUNAME
1985## --------- ##
1986## Platform. ##
1987## --------- ##
1988
1989hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1990uname -m = `(uname -m) 2>/dev/null || echo unknown`
1991uname -r = `(uname -r) 2>/dev/null || echo unknown`
1992uname -s = `(uname -s) 2>/dev/null || echo unknown`
1993uname -v = `(uname -v) 2>/dev/null || echo unknown`
1994
1995/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1996/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1997
1998/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1999/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2000/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2001/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2002/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2003/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2004/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2005
2006_ASUNAME
2007
2008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009for as_dir in $PATH
2010do
2011 IFS=$as_save_IFS
2012 test -z "$as_dir" && as_dir=.
2013 $as_echo "PATH: $as_dir"
2014 done
2015IFS=$as_save_IFS
2016
2017} >&5
2018
2019cat >&5 <<_ACEOF
2020
2021
2022## ----------- ##
2023## Core tests. ##
2024## ----------- ##
2025
2026_ACEOF
2027
2028
2029# Keep a trace of the command line.
2030# Strip out --no-create and --no-recursion so they do not pile up.
2031# Strip out --silent because we don't want to record it for future runs.
2032# Also quote any args containing shell meta-characters.
2033# Make two passes to allow for proper duplicate-argument suppression.
2034ac_configure_args=
2035ac_configure_args0=
2036ac_configure_args1=
2037ac_must_keep_next=false
2038for ac_pass in 1 2
2039do
2040 for ac_arg
2041 do
2042 case $ac_arg in
2043 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2045 | -silent | --silent | --silen | --sile | --sil)
2046 continue ;;
2047 *\'*)
2048 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2049 esac
2050 case $ac_pass in
2051 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2052 2)
2053 as_fn_append ac_configure_args1 " '$ac_arg'"
2054 if test $ac_must_keep_next = true; then
2055 ac_must_keep_next=false # Got value, back to normal.
2056 else
2057 case $ac_arg in
2058 *=* | --config-cache | -C | -disable-* | --disable-* \
2059 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2060 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2061 | -with-* | --with-* | -without-* | --without-* | --x)
2062 case "$ac_configure_args0 " in
2063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2064 esac
2065 ;;
2066 -* ) ac_must_keep_next=true ;;
2067 esac
2068 fi
2069 as_fn_append ac_configure_args " '$ac_arg'"
2070 ;;
2071 esac
2072 done
2073done
2074{ ac_configure_args0=; unset ac_configure_args0;}
2075{ ac_configure_args1=; unset ac_configure_args1;}
2076
2077# When interrupted or exit'd, cleanup temporary files, and complete
2078# config.log. We remove comments because anyway the quotes in there
2079# would cause problems or look ugly.
2080# WARNING: Use '\'' to represent an apostrophe within the trap.
2081# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2082trap 'exit_status=$?
2083 # Save into config.log some information that might help in debugging.
2084 {
2085 echo
2086
2087 $as_echo "## ---------------- ##
2088## Cache variables. ##
2089## ---------------- ##"
2090 echo
2091 # The following way of writing the cache mishandles newlines in values,
2092(
2093 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2094 eval ac_val=\$$ac_var
2095 case $ac_val in #(
2096 *${as_nl}*)
2097 case $ac_var in #(
2098 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2099$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2100 esac
2101 case $ac_var in #(
2102 _ | IFS | as_nl) ;; #(
2103 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2104 *) { eval $ac_var=; unset $ac_var;} ;;
2105 esac ;;
2106 esac
2107 done
2108 (set) 2>&1 |
2109 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2110 *${as_nl}ac_space=\ *)
2111 sed -n \
2112 "s/'\''/'\''\\\\'\'''\''/g;
2113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2114 ;; #(
2115 *)
2116 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2117 ;;
2118 esac |
2119 sort
2120)
2121 echo
2122
2123 $as_echo "## ----------------- ##
2124## Output variables. ##
2125## ----------------- ##"
2126 echo
2127 for ac_var in $ac_subst_vars
2128 do
2129 eval ac_val=\$$ac_var
2130 case $ac_val in
2131 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2132 esac
2133 $as_echo "$ac_var='\''$ac_val'\''"
2134 done | sort
2135 echo
2136
2137 if test -n "$ac_subst_files"; then
2138 $as_echo "## ------------------- ##
2139## File substitutions. ##
2140## ------------------- ##"
2141 echo
2142 for ac_var in $ac_subst_files
2143 do
2144 eval ac_val=\$$ac_var
2145 case $ac_val in
2146 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2147 esac
2148 $as_echo "$ac_var='\''$ac_val'\''"
2149 done | sort
2150 echo
2151 fi
2152
2153 if test -s confdefs.h; then
2154 $as_echo "## ----------- ##
2155## confdefs.h. ##
2156## ----------- ##"
2157 echo
2158 cat confdefs.h
2159 echo
2160 fi
2161 test "$ac_signal" != 0 &&
2162 $as_echo "$as_me: caught signal $ac_signal"
2163 $as_echo "$as_me: exit $exit_status"
2164 } >&5
2165 rm -f core *.core core.conftest.* &&
2166 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2167 exit $exit_status
2168' 0
2169for ac_signal in 1 2 13 15; do
2170 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2171done
2172ac_signal=0
2173
2174# confdefs.h avoids OS command line length limits that DEFS can exceed.
2175rm -f -r conftest* confdefs.h
2176
2177$as_echo "/* confdefs.h */" > confdefs.h
2178
2179# Predefined preprocessor variables.
2180
2181cat >>confdefs.h <<_ACEOF
2182#define PACKAGE_NAME "$PACKAGE_NAME"
2183_ACEOF
2184
2185cat >>confdefs.h <<_ACEOF
2186#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2187_ACEOF
2188
2189cat >>confdefs.h <<_ACEOF
2190#define PACKAGE_VERSION "$PACKAGE_VERSION"
2191_ACEOF
2192
2193cat >>confdefs.h <<_ACEOF
2194#define PACKAGE_STRING "$PACKAGE_STRING"
2195_ACEOF
2196
2197cat >>confdefs.h <<_ACEOF
2198#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2199_ACEOF
2200
2201cat >>confdefs.h <<_ACEOF
2202#define PACKAGE_URL "$PACKAGE_URL"
2203_ACEOF
2204
2205
2206# Let the site file select an alternate cache file if it wants to.
2207# Prefer an explicitly selected file to automatically selected ones.
2208ac_site_file1=NONE
2209ac_site_file2=NONE
2210if test -n "$CONFIG_SITE"; then
2211 # We do not want a PATH search for config.site.
2212 case $CONFIG_SITE in #((
2213 -*) ac_site_file1=./$CONFIG_SITE;;
2214 */*) ac_site_file1=$CONFIG_SITE;;
2215 *) ac_site_file1=./$CONFIG_SITE;;
2216 esac
2217elif test "x$prefix" != xNONE; then
2218 ac_site_file1=$prefix/share/config.site
2219 ac_site_file2=$prefix/etc/config.site
2220else
2221 ac_site_file1=$ac_default_prefix/share/config.site
2222 ac_site_file2=$ac_default_prefix/etc/config.site
2223fi
2224for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2225do
2226 test "x$ac_site_file" = xNONE && continue
2227 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2229$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2230 sed 's/^/| /' "$ac_site_file" >&5
2231 . "$ac_site_file" \
2232 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2234as_fn_error $? "failed to load site script $ac_site_file
2235See \`config.log' for more details" "$LINENO" 5; }
2236 fi
2237done
2238
2239if test -r "$cache_file"; then
2240 # Some versions of bash will fail to source /dev/null (special files
2241 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2242 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2244$as_echo "$as_me: loading cache $cache_file" >&6;}
2245 case $cache_file in
2246 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2247 *) . "./$cache_file";;
2248 esac
2249 fi
2250else
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2252$as_echo "$as_me: creating cache $cache_file" >&6;}
2253 >$cache_file
2254fi
2255
2256# Check that the precious variables saved in the cache have kept the same
2257# value.
2258ac_cache_corrupted=false
2259for ac_var in $ac_precious_vars; do
2260 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2261 eval ac_new_set=\$ac_env_${ac_var}_set
2262 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2263 eval ac_new_val=\$ac_env_${ac_var}_value
2264 case $ac_old_set,$ac_new_set in
2265 set,)
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2267$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2268 ac_cache_corrupted=: ;;
2269 ,set)
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2271$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2272 ac_cache_corrupted=: ;;
2273 ,);;
2274 *)
2275 if test "x$ac_old_val" != "x$ac_new_val"; then
2276 # differences in whitespace do not lead to failure.
2277 ac_old_val_w=`echo x $ac_old_val`
2278 ac_new_val_w=`echo x $ac_new_val`
2279 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2281$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2282 ac_cache_corrupted=:
2283 else
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2285$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2286 eval $ac_var=\$ac_old_val
2287 fi
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2289$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2291$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2292 fi;;
2293 esac
2294 # Pass precious variables to config.status.
2295 if test "$ac_new_set" = set; then
2296 case $ac_new_val in
2297 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2298 *) ac_arg=$ac_var=$ac_new_val ;;
2299 esac
2300 case " $ac_configure_args " in
2301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2302 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2303 esac
2304 fi
2305done
2306if $ac_cache_corrupted; then
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2310$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2311 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2312fi
2313## -------------------- ##
2314## Main body of script. ##
2315## -------------------- ##
2316
2317ac_ext=c
2318ac_cpp='$CPP $CPPFLAGS'
2319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2321ac_compiler_gnu=$ac_cv_c_compiler_gnu
2322
2323
2324
2325am__api_version='1.13'
2326
2327ac_aux_dir=
2328for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2329 if test -f "$ac_dir/install-sh"; then
2330 ac_aux_dir=$ac_dir
2331 ac_install_sh="$ac_aux_dir/install-sh -c"
2332 break
2333 elif test -f "$ac_dir/install.sh"; then
2334 ac_aux_dir=$ac_dir
2335 ac_install_sh="$ac_aux_dir/install.sh -c"
2336 break
2337 elif test -f "$ac_dir/shtool"; then
2338 ac_aux_dir=$ac_dir
2339 ac_install_sh="$ac_aux_dir/shtool install -c"
2340 break
2341 fi
2342done
2343if test -z "$ac_aux_dir"; then
2344 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2345fi
2346
2347# These three variables are undocumented and unsupported,
2348# and are intended to be withdrawn in a future Autoconf release.
2349# They can cause serious problems if a builder's source tree is in a directory
2350# whose full name contains unusual characters.
2351ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2352ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2353ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2354
2355
2356# Find a good install program. We prefer a C program (faster),
2357# so one script is as good as another. But avoid the broken or
2358# incompatible versions:
2359# SysV /etc/install, /usr/sbin/install
2360# SunOS /usr/etc/install
2361# IRIX /sbin/install
2362# AIX /bin/install
2363# AmigaOS /C/install, which installs bootblocks on floppy discs
2364# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2365# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2366# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2367# OS/2's system install, which has a completely different semantic
2368# ./install, which can be erroneously created by make from ./install.sh.
2369# Reject install programs that cannot install multiple files.
2370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2371$as_echo_n "checking for a BSD-compatible install... " >&6; }
2372if test -z "$INSTALL"; then
2373if ${ac_cv_path_install+:} false; then :
2374 $as_echo_n "(cached) " >&6
2375else
2376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377for as_dir in $PATH
2378do
2379 IFS=$as_save_IFS
2380 test -z "$as_dir" && as_dir=.
2381 # Account for people who put trailing slashes in PATH elements.
2382case $as_dir/ in #((
2383 ./ | .// | /[cC]/* | \
2384 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2385 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2386 /usr/ucb/* ) ;;
2387 *)
2388 # OSF1 and SCO ODT 3.0 have their own names for install.
2389 # Don't use installbsd from OSF since it installs stuff as root
2390 # by default.
2391 for ac_prog in ginstall scoinst install; do
2392 for ac_exec_ext in '' $ac_executable_extensions; do
2393 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2394 if test $ac_prog = install &&
2395 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2396 # AIX install. It has an incompatible calling convention.
2397 :
2398 elif test $ac_prog = install &&
2399 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2400 # program-specific install script used by HP pwplus--don't use.
2401 :
2402 else
2403 rm -rf conftest.one conftest.two conftest.dir
2404 echo one > conftest.one
2405 echo two > conftest.two
2406 mkdir conftest.dir
2407 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2408 test -s conftest.one && test -s conftest.two &&
2409 test -s conftest.dir/conftest.one &&
2410 test -s conftest.dir/conftest.two
2411 then
2412 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2413 break 3
2414 fi
2415 fi
2416 fi
2417 done
2418 done
2419 ;;
2420esac
2421
2422 done
2423IFS=$as_save_IFS
2424
2425rm -rf conftest.one conftest.two conftest.dir
2426
2427fi
2428 if test "${ac_cv_path_install+set}" = set; then
2429 INSTALL=$ac_cv_path_install
2430 else
2431 # As a last resort, use the slow shell script. Don't cache a
2432 # value for INSTALL within a source directory, because that will
2433 # break other packages using the cache if that directory is
2434 # removed, or if the value is a relative name.
2435 INSTALL=$ac_install_sh
2436 fi
2437fi
2438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2439$as_echo "$INSTALL" >&6; }
2440
2441# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2442# It thinks the first close brace ends the variable substitution.
2443test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2444
2445test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2446
2447test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2448
2449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2450$as_echo_n "checking whether build environment is sane... " >&6; }
2451# Reject unsafe characters in $srcdir or the absolute working directory
2452# name. Accept space and tab only in the latter.
2453am_lf='
2454'
2455case `pwd` in
2456 *[\\\"\#\$\&\'\`$am_lf]*)
2457 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2458esac
2459case $srcdir in
2460 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2461 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2462esac
2463
2464# Do 'set' in a subshell so we don't clobber the current shell's
2465# arguments. Must try -L first in case configure is actually a
2466# symlink; some systems play weird games with the mod time of symlinks
2467# (eg FreeBSD returns the mod time of the symlink's containing
2468# directory).
2469if (
2470 am_has_slept=no
2471 for am_try in 1 2; do
2472 echo "timestamp, slept: $am_has_slept" > conftest.file
2473 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2474 if test "$*" = "X"; then
2475 # -L didn't work.
2476 set X `ls -t "$srcdir/configure" conftest.file`
2477 fi
2478 if test "$*" != "X $srcdir/configure conftest.file" \
2479 && test "$*" != "X conftest.file $srcdir/configure"; then
2480
2481 # If neither matched, then we have a broken ls. This can happen
2482 # if, for instance, CONFIG_SHELL is bash and it inherits a
2483 # broken ls alias from the environment. This has actually
2484 # happened. Such a system could not be considered "sane".
2485 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2486 alias in your environment" "$LINENO" 5
2487 fi
2488 if test "$2" = conftest.file || test $am_try -eq 2; then
2489 break
2490 fi
2491 # Just in case.
2492 sleep 1
2493 am_has_slept=yes
2494 done
2495 test "$2" = conftest.file
2496 )
2497then
2498 # Ok.
2499 :
2500else
2501 as_fn_error $? "newly created file is older than distributed files!
2502Check your system clock" "$LINENO" 5
2503fi
2504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2505$as_echo "yes" >&6; }
2506# If we didn't sleep, we still need to ensure time stamps of config.status and
2507# generated files are strictly newer.
2508am_sleep_pid=
2509if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2510 ( sleep 1 ) &
2511 am_sleep_pid=$!
2512fi
2513
2514rm -f conftest.file
2515
2516test "$program_prefix" != NONE &&
2517 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2518# Use a double $ so make ignores it.
2519test "$program_suffix" != NONE &&
2520 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2521# Double any \ or $.
2522# By default was `s,x,x', remove it if useless.
2523ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2524program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2525
2526# expand $ac_aux_dir to an absolute path
2527am_aux_dir=`cd $ac_aux_dir && pwd`
2528
2529if test x"${MISSING+set}" != xset; then
2530 case $am_aux_dir in
2531 *\ * | *\ *)
2532 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2533 *)
2534 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2535 esac
2536fi
2537# Use eval to expand $SHELL
2538if eval "$MISSING --is-lightweight"; then
2539 am_missing_run="$MISSING "
2540else
2541 am_missing_run=
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2543$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2544fi
2545
2546if test x"${install_sh}" != xset; then
2547 case $am_aux_dir in
2548 *\ * | *\ *)
2549 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2550 *)
2551 install_sh="\${SHELL} $am_aux_dir/install-sh"
2552 esac
2553fi
2554
2555# Installed binaries are usually stripped using 'strip' when the user
2556# run "make install-strip". However 'strip' might not be the right
2557# tool to use in cross-compilation environments, therefore Automake
2558# will honor the 'STRIP' environment variable to overrule this program.
2559if test "$cross_compiling" != no; then
2560 if test -n "$ac_tool_prefix"; then
2561 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2562set dummy ${ac_tool_prefix}strip; ac_word=$2
2563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2564$as_echo_n "checking for $ac_word... " >&6; }
2565if ${ac_cv_prog_STRIP+:} false; then :
2566 $as_echo_n "(cached) " >&6
2567else
2568 if test -n "$STRIP"; then
2569 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2570else
2571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572for as_dir in $PATH
2573do
2574 IFS=$as_save_IFS
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2578 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2580 break 2
2581 fi
2582done
2583 done
2584IFS=$as_save_IFS
2585
2586fi
2587fi
2588STRIP=$ac_cv_prog_STRIP
2589if test -n "$STRIP"; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2591$as_echo "$STRIP" >&6; }
2592else
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2594$as_echo "no" >&6; }
2595fi
2596
2597
2598fi
2599if test -z "$ac_cv_prog_STRIP"; then
2600 ac_ct_STRIP=$STRIP
2601 # Extract the first word of "strip", so it can be a program name with args.
2602set dummy strip; ac_word=$2
2603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2604$as_echo_n "checking for $ac_word... " >&6; }
2605if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2606 $as_echo_n "(cached) " >&6
2607else
2608 if test -n "$ac_ct_STRIP"; then
2609 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2610else
2611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612for as_dir in $PATH
2613do
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2618 ac_cv_prog_ac_ct_STRIP="strip"
2619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 break 2
2621 fi
2622done
2623 done
2624IFS=$as_save_IFS
2625
2626fi
2627fi
2628ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2629if test -n "$ac_ct_STRIP"; then
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2631$as_echo "$ac_ct_STRIP" >&6; }
2632else
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2634$as_echo "no" >&6; }
2635fi
2636
2637 if test "x$ac_ct_STRIP" = x; then
2638 STRIP=":"
2639 else
2640 case $cross_compiling:$ac_tool_warned in
2641yes:)
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2644ac_tool_warned=yes ;;
2645esac
2646 STRIP=$ac_ct_STRIP
2647 fi
2648else
2649 STRIP="$ac_cv_prog_STRIP"
2650fi
2651
2652fi
2653INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2654
2655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2656$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2657if test -z "$MKDIR_P"; then
2658 if ${ac_cv_path_mkdir+:} false; then :
2659 $as_echo_n "(cached) " >&6
2660else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2663do
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 for ac_prog in mkdir gmkdir; do
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2669 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2670 'mkdir (GNU coreutils) '* | \
2671 'mkdir (coreutils) '* | \
2672 'mkdir (fileutils) '4.1*)
2673 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2674 break 3;;
2675 esac
2676 done
2677 done
2678 done
2679IFS=$as_save_IFS
2680
2681fi
2682
2683 test -d ./--version && rmdir ./--version
2684 if test "${ac_cv_path_mkdir+set}" = set; then
2685 MKDIR_P="$ac_cv_path_mkdir -p"
2686 else
2687 # As a last resort, use the slow shell script. Don't cache a
2688 # value for MKDIR_P within a source directory, because that will
2689 # break other packages using the cache if that directory is
2690 # removed, or if the value is a relative name.
2691 MKDIR_P="$ac_install_sh -d"
2692 fi
2693fi
2694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2695$as_echo "$MKDIR_P" >&6; }
2696
2697for ac_prog in gawk mawk nawk awk
2698do
2699 # Extract the first word of "$ac_prog", so it can be a program name with args.
2700set dummy $ac_prog; ac_word=$2
2701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2702$as_echo_n "checking for $ac_word... " >&6; }
2703if ${ac_cv_prog_AWK+:} false; then :
2704 $as_echo_n "(cached) " >&6
2705else
2706 if test -n "$AWK"; then
2707 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2708else
2709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710for as_dir in $PATH
2711do
2712 IFS=$as_save_IFS
2713 test -z "$as_dir" && as_dir=.
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2716 ac_cv_prog_AWK="$ac_prog"
2717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 break 2
2719 fi
2720done
2721 done
2722IFS=$as_save_IFS
2723
2724fi
2725fi
2726AWK=$ac_cv_prog_AWK
2727if test -n "$AWK"; then
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2729$as_echo "$AWK" >&6; }
2730else
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2732$as_echo "no" >&6; }
2733fi
2734
2735
2736 test -n "$AWK" && break
2737done
2738
2739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2740$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2741set x ${MAKE-make}
2742ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2743if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2744 $as_echo_n "(cached) " >&6
2745else
2746 cat >conftest.make <<\_ACEOF
2747SHELL = /bin/sh
2748all:
2749 @echo '@@@%%%=$(MAKE)=@@@%%%'
2750_ACEOF
2751# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2752case `${MAKE-make} -f conftest.make 2>/dev/null` in
2753 *@@@%%%=?*=@@@%%%*)
2754 eval ac_cv_prog_make_${ac_make}_set=yes;;
2755 *)
2756 eval ac_cv_prog_make_${ac_make}_set=no;;
2757esac
2758rm -f conftest.make
2759fi
2760if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2762$as_echo "yes" >&6; }
2763 SET_MAKE=
2764else
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2766$as_echo "no" >&6; }
2767 SET_MAKE="MAKE=${MAKE-make}"
2768fi
2769
2770rm -rf .tst 2>/dev/null
2771mkdir .tst 2>/dev/null
2772if test -d .tst; then
2773 am__leading_dot=.
2774else
2775 am__leading_dot=_
2776fi
2777rmdir .tst 2>/dev/null
2778
2779# Check whether --enable-silent-rules was given.
2780if test "${enable_silent_rules+set}" = set; then :
2781 enableval=$enable_silent_rules;
2782fi
2783
2784case $enable_silent_rules in # (((
2785 yes) AM_DEFAULT_VERBOSITY=0;;
2786 no) AM_DEFAULT_VERBOSITY=1;;
2787 *) AM_DEFAULT_VERBOSITY=1;;
2788esac
2789am_make=${MAKE-make}
2790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2791$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2792if ${am_cv_make_support_nested_variables+:} false; then :
2793 $as_echo_n "(cached) " >&6
2794else
2795 if $as_echo 'TRUE=$(BAR$(V))
2796BAR0=false
2797BAR1=true
2798V=1
2799am__doit:
2800 @$(TRUE)
2801.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2802 am_cv_make_support_nested_variables=yes
2803else
2804 am_cv_make_support_nested_variables=no
2805fi
2806fi
2807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2808$as_echo "$am_cv_make_support_nested_variables" >&6; }
2809if test $am_cv_make_support_nested_variables = yes; then
2810 AM_V='$(V)'
2811 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2812else
2813 AM_V=$AM_DEFAULT_VERBOSITY
2814 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2815fi
2816AM_BACKSLASH='\'
2817
2818if test "`cd $srcdir && pwd`" != "`pwd`"; then
2819 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2820 # is not polluted with repeated "-I."
2821 am__isrc=' -I$(srcdir)'
2822 # test to see if srcdir already configured
2823 if test -f $srcdir/config.status; then
2824 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2825 fi
2826fi
2827
2828# test whether we have cygpath
2829if test -z "$CYGPATH_W"; then
2830 if (cygpath --version) >/dev/null 2>/dev/null; then
2831 CYGPATH_W='cygpath -w'
2832 else
2833 CYGPATH_W=echo
2834 fi
2835fi
2836
2837
2838# Define the identity of the package.
2839 PACKAGE='ndn-cpp'
2840 VERSION='0.5'
2841
2842
2843# Some tools Automake needs.
2844
2845ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2846
2847
2848AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2849
2850
2851AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2852
2853
2854AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2855
2856
2857MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2858
2859# For better backward compatibility. To be removed once Automake 1.9.x
2860# dies out for good. For more background, see:
2861# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2862# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2863mkdir_p='$(MKDIR_P)'
2864
2865# We need awk for the "check" target. The system "awk" is bad on
2866# some platforms.
2867# Always define AMTAR for backward compatibility. Yes, it's still used
2868# in the wild :-( We should find a proper way to deprecate it ...
2869AMTAR='$${TAR-tar}'
2870
2871
2872# We'll loop over all known methods to create a tar archive until one works.
2873_am_tools='gnutar pax cpio none'
2874
2875am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2876
2877
2878
2879
2880
2881
2882
2883ac_config_headers="$ac_config_headers config.h"
2884
Jeff Thompson47053ad2013-08-05 10:36:53 -07002885
2886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2887$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2888 # Check whether --enable-maintainer-mode was given.
2889if test "${enable_maintainer_mode+set}" = set; then :
2890 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2891else
2892 USE_MAINTAINER_MODE=no
2893fi
2894
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2896$as_echo "$USE_MAINTAINER_MODE" >&6; }
2897 if test $USE_MAINTAINER_MODE = yes; then
2898 MAINTAINER_MODE_TRUE=
2899 MAINTAINER_MODE_FALSE='#'
2900else
2901 MAINTAINER_MODE_TRUE='#'
2902 MAINTAINER_MODE_FALSE=
2903fi
2904
2905 MAINT=$MAINTAINER_MODE_TRUE
2906
2907
Jeff Thompson39128c62013-06-19 14:08:51 -07002908DEPDIR="${am__leading_dot}deps"
2909
2910ac_config_commands="$ac_config_commands depfiles"
2911
2912
2913am_make=${MAKE-make}
2914cat > confinc << 'END'
2915am__doit:
2916 @echo this is the am__doit target
2917.PHONY: am__doit
2918END
2919# If we don't find an include directive, just comment out the code.
2920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2921$as_echo_n "checking for style of include used by $am_make... " >&6; }
2922am__include="#"
2923am__quote=
2924_am_result=none
2925# First try GNU make style include.
2926echo "include confinc" > confmf
2927# Ignore all kinds of additional output from 'make'.
2928case `$am_make -s -f confmf 2> /dev/null` in #(
2929*the\ am__doit\ target*)
2930 am__include=include
2931 am__quote=
2932 _am_result=GNU
2933 ;;
2934esac
2935# Now try BSD make style include.
2936if test "$am__include" = "#"; then
2937 echo '.include "confinc"' > confmf
2938 case `$am_make -s -f confmf 2> /dev/null` in #(
2939 *the\ am__doit\ target*)
2940 am__include=.include
2941 am__quote="\""
2942 _am_result=BSD
2943 ;;
2944 esac
2945fi
2946
2947
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2949$as_echo "$_am_result" >&6; }
2950rm -f confinc confmf
2951
2952# Check whether --enable-dependency-tracking was given.
2953if test "${enable_dependency_tracking+set}" = set; then :
2954 enableval=$enable_dependency_tracking;
2955fi
2956
2957if test "x$enable_dependency_tracking" != xno; then
2958 am_depcomp="$ac_aux_dir/depcomp"
2959 AMDEPBACKSLASH='\'
2960 am__nodep='_no'
2961fi
2962 if test "x$enable_dependency_tracking" != xno; then
2963 AMDEP_TRUE=
2964 AMDEP_FALSE='#'
2965else
2966 AMDEP_TRUE='#'
2967 AMDEP_FALSE=
2968fi
2969
2970
Jeff Thompson36174062013-06-21 16:03:44 -07002971ac_ext=c
2972ac_cpp='$CPP $CPPFLAGS'
2973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2975ac_compiler_gnu=$ac_cv_c_compiler_gnu
2976if test -n "$ac_tool_prefix"; then
2977 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2978set dummy ${ac_tool_prefix}gcc; ac_word=$2
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980$as_echo_n "checking for $ac_word... " >&6; }
2981if ${ac_cv_prog_CC+:} false; then :
2982 $as_echo_n "(cached) " >&6
2983else
2984 if test -n "$CC"; then
2985 ac_cv_prog_CC="$CC" # Let the user override the test.
2986else
2987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988for as_dir in $PATH
2989do
2990 IFS=$as_save_IFS
2991 test -z "$as_dir" && as_dir=.
2992 for ac_exec_ext in '' $ac_executable_extensions; do
2993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2994 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 break 2
2997 fi
2998done
2999 done
3000IFS=$as_save_IFS
3001
3002fi
3003fi
3004CC=$ac_cv_prog_CC
3005if test -n "$CC"; then
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3007$as_echo "$CC" >&6; }
3008else
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010$as_echo "no" >&6; }
3011fi
3012
3013
3014fi
3015if test -z "$ac_cv_prog_CC"; then
3016 ac_ct_CC=$CC
3017 # Extract the first word of "gcc", so it can be a program name with args.
3018set dummy gcc; ac_word=$2
3019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020$as_echo_n "checking for $ac_word... " >&6; }
3021if ${ac_cv_prog_ac_ct_CC+:} false; then :
3022 $as_echo_n "(cached) " >&6
3023else
3024 if test -n "$ac_ct_CC"; then
3025 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3026else
3027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028for as_dir in $PATH
3029do
3030 IFS=$as_save_IFS
3031 test -z "$as_dir" && as_dir=.
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3034 ac_cv_prog_ac_ct_CC="gcc"
3035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3036 break 2
3037 fi
3038done
3039 done
3040IFS=$as_save_IFS
3041
3042fi
3043fi
3044ac_ct_CC=$ac_cv_prog_ac_ct_CC
3045if test -n "$ac_ct_CC"; then
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3047$as_echo "$ac_ct_CC" >&6; }
3048else
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050$as_echo "no" >&6; }
3051fi
3052
3053 if test "x$ac_ct_CC" = x; then
3054 CC=""
3055 else
3056 case $cross_compiling:$ac_tool_warned in
3057yes:)
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3060ac_tool_warned=yes ;;
3061esac
3062 CC=$ac_ct_CC
3063 fi
3064else
3065 CC="$ac_cv_prog_CC"
3066fi
3067
3068if test -z "$CC"; then
3069 if test -n "$ac_tool_prefix"; then
3070 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3071set dummy ${ac_tool_prefix}cc; ac_word=$2
3072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3073$as_echo_n "checking for $ac_word... " >&6; }
3074if ${ac_cv_prog_CC+:} false; then :
3075 $as_echo_n "(cached) " >&6
3076else
3077 if test -n "$CC"; then
3078 ac_cv_prog_CC="$CC" # Let the user override the test.
3079else
3080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081for as_dir in $PATH
3082do
3083 IFS=$as_save_IFS
3084 test -z "$as_dir" && as_dir=.
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3087 ac_cv_prog_CC="${ac_tool_prefix}cc"
3088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3089 break 2
3090 fi
3091done
3092 done
3093IFS=$as_save_IFS
3094
3095fi
3096fi
3097CC=$ac_cv_prog_CC
3098if test -n "$CC"; then
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3100$as_echo "$CC" >&6; }
3101else
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103$as_echo "no" >&6; }
3104fi
3105
3106
3107 fi
3108fi
3109if test -z "$CC"; then
3110 # Extract the first word of "cc", so it can be a program name with args.
3111set dummy cc; ac_word=$2
3112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113$as_echo_n "checking for $ac_word... " >&6; }
3114if ${ac_cv_prog_CC+:} false; then :
3115 $as_echo_n "(cached) " >&6
3116else
3117 if test -n "$CC"; then
3118 ac_cv_prog_CC="$CC" # Let the user override the test.
3119else
3120 ac_prog_rejected=no
3121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122for as_dir in $PATH
3123do
3124 IFS=$as_save_IFS
3125 test -z "$as_dir" && as_dir=.
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3128 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3129 ac_prog_rejected=yes
3130 continue
3131 fi
3132 ac_cv_prog_CC="cc"
3133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 break 2
3135 fi
3136done
3137 done
3138IFS=$as_save_IFS
3139
3140if test $ac_prog_rejected = yes; then
3141 # We found a bogon in the path, so make sure we never use it.
3142 set dummy $ac_cv_prog_CC
3143 shift
3144 if test $# != 0; then
3145 # We chose a different compiler from the bogus one.
3146 # However, it has the same basename, so the bogon will be chosen
3147 # first if we set CC to just the basename; use the full file name.
3148 shift
3149 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3150 fi
3151fi
3152fi
3153fi
3154CC=$ac_cv_prog_CC
3155if test -n "$CC"; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3157$as_echo "$CC" >&6; }
3158else
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160$as_echo "no" >&6; }
3161fi
3162
3163
3164fi
3165if test -z "$CC"; then
3166 if test -n "$ac_tool_prefix"; then
3167 for ac_prog in cl.exe
3168 do
3169 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3170set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172$as_echo_n "checking for $ac_word... " >&6; }
3173if ${ac_cv_prog_CC+:} false; then :
3174 $as_echo_n "(cached) " >&6
3175else
3176 if test -n "$CC"; then
3177 ac_cv_prog_CC="$CC" # Let the user override the test.
3178else
3179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180for as_dir in $PATH
3181do
3182 IFS=$as_save_IFS
3183 test -z "$as_dir" && as_dir=.
3184 for ac_exec_ext in '' $ac_executable_extensions; do
3185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3186 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3188 break 2
3189 fi
3190done
3191 done
3192IFS=$as_save_IFS
3193
3194fi
3195fi
3196CC=$ac_cv_prog_CC
3197if test -n "$CC"; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3199$as_echo "$CC" >&6; }
3200else
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202$as_echo "no" >&6; }
3203fi
3204
3205
3206 test -n "$CC" && break
3207 done
3208fi
3209if test -z "$CC"; then
3210 ac_ct_CC=$CC
3211 for ac_prog in cl.exe
3212do
3213 # Extract the first word of "$ac_prog", so it can be a program name with args.
3214set dummy $ac_prog; ac_word=$2
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216$as_echo_n "checking for $ac_word... " >&6; }
3217if ${ac_cv_prog_ac_ct_CC+:} false; then :
3218 $as_echo_n "(cached) " >&6
3219else
3220 if test -n "$ac_ct_CC"; then
3221 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3222else
3223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224for as_dir in $PATH
3225do
3226 IFS=$as_save_IFS
3227 test -z "$as_dir" && as_dir=.
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230 ac_cv_prog_ac_ct_CC="$ac_prog"
3231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3232 break 2
3233 fi
3234done
3235 done
3236IFS=$as_save_IFS
3237
3238fi
3239fi
3240ac_ct_CC=$ac_cv_prog_ac_ct_CC
3241if test -n "$ac_ct_CC"; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3243$as_echo "$ac_ct_CC" >&6; }
3244else
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246$as_echo "no" >&6; }
3247fi
3248
3249
3250 test -n "$ac_ct_CC" && break
3251done
3252
3253 if test "x$ac_ct_CC" = x; then
3254 CC=""
3255 else
3256 case $cross_compiling:$ac_tool_warned in
3257yes:)
3258{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3260ac_tool_warned=yes ;;
3261esac
3262 CC=$ac_ct_CC
3263 fi
3264fi
3265
3266fi
3267
3268
3269test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3270$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3271as_fn_error $? "no acceptable C compiler found in \$PATH
3272See \`config.log' for more details" "$LINENO" 5; }
3273
3274# Provide some information about the compiler.
3275$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3276set X $ac_compile
3277ac_compiler=$2
3278for ac_option in --version -v -V -qversion; do
3279 { { ac_try="$ac_compiler $ac_option >&5"
3280case "(($ac_try" in
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3283esac
3284eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3285$as_echo "$ac_try_echo"; } >&5
3286 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3287 ac_status=$?
3288 if test -s conftest.err; then
3289 sed '10a\
3290... rest of stderr output deleted ...
3291 10q' conftest.err >conftest.er1
3292 cat conftest.er1 >&5
3293 fi
3294 rm -f conftest.er1 conftest.err
3295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3296 test $ac_status = 0; }
3297done
3298
Jeff Thompson4f031642013-08-05 11:03:16 -07003299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3300/* end confdefs.h. */
3301
3302int
3303main ()
3304{
3305
3306 ;
3307 return 0;
3308}
3309_ACEOF
3310ac_clean_files_save=$ac_clean_files
3311ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3312# Try to create an executable without -o first, disregard a.out.
3313# It will help us diagnose broken compilers, and finding out an intuition
3314# of exeext.
3315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3316$as_echo_n "checking whether the C compiler works... " >&6; }
3317ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3318
3319# The possible output files:
3320ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3321
3322ac_rmfiles=
3323for ac_file in $ac_files
3324do
3325 case $ac_file in
3326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3327 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3328 esac
3329done
3330rm -f $ac_rmfiles
3331
3332if { { ac_try="$ac_link_default"
3333case "(($ac_try" in
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3336esac
3337eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3338$as_echo "$ac_try_echo"; } >&5
3339 (eval "$ac_link_default") 2>&5
3340 ac_status=$?
3341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3342 test $ac_status = 0; }; then :
3343 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3344# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3345# in a Makefile. We should not override ac_cv_exeext if it was cached,
3346# so that the user can short-circuit this test for compilers unknown to
3347# Autoconf.
3348for ac_file in $ac_files ''
3349do
3350 test -f "$ac_file" || continue
3351 case $ac_file in
3352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3353 ;;
3354 [ab].out )
3355 # We found the default executable, but exeext='' is most
3356 # certainly right.
3357 break;;
3358 *.* )
3359 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3360 then :; else
3361 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3362 fi
3363 # We set ac_cv_exeext here because the later test for it is not
3364 # safe: cross compilers may not add the suffix if given an `-o'
3365 # argument, so we may need to know it at that point already.
3366 # Even if this section looks crufty: it has the advantage of
3367 # actually working.
3368 break;;
3369 * )
3370 break;;
3371 esac
3372done
3373test "$ac_cv_exeext" = no && ac_cv_exeext=
3374
3375else
3376 ac_file=''
3377fi
3378if test -z "$ac_file"; then :
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380$as_echo "no" >&6; }
3381$as_echo "$as_me: failed program was:" >&5
3382sed 's/^/| /' conftest.$ac_ext >&5
3383
3384{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3386as_fn_error 77 "C compiler cannot create executables
3387See \`config.log' for more details" "$LINENO" 5; }
3388else
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3390$as_echo "yes" >&6; }
3391fi
3392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3393$as_echo_n "checking for C compiler default output file name... " >&6; }
3394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3395$as_echo "$ac_file" >&6; }
3396ac_exeext=$ac_cv_exeext
3397
3398rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3399ac_clean_files=$ac_clean_files_save
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3401$as_echo_n "checking for suffix of executables... " >&6; }
3402if { { ac_try="$ac_link"
3403case "(($ac_try" in
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3406esac
3407eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408$as_echo "$ac_try_echo"; } >&5
3409 (eval "$ac_link") 2>&5
3410 ac_status=$?
3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412 test $ac_status = 0; }; then :
3413 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3414# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3415# work properly (i.e., refer to `conftest.exe'), while it won't with
3416# `rm'.
3417for ac_file in conftest.exe conftest conftest.*; do
3418 test -f "$ac_file" || continue
3419 case $ac_file in
3420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3421 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3422 break;;
3423 * ) break;;
3424 esac
3425done
3426else
3427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3429as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3430See \`config.log' for more details" "$LINENO" 5; }
3431fi
3432rm -f conftest conftest$ac_cv_exeext
3433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3434$as_echo "$ac_cv_exeext" >&6; }
3435
3436rm -f conftest.$ac_ext
3437EXEEXT=$ac_cv_exeext
3438ac_exeext=$EXEEXT
3439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440/* end confdefs.h. */
3441#include <stdio.h>
3442int
3443main ()
3444{
3445FILE *f = fopen ("conftest.out", "w");
3446 return ferror (f) || fclose (f) != 0;
3447
3448 ;
3449 return 0;
3450}
3451_ACEOF
3452ac_clean_files="$ac_clean_files conftest.out"
3453# Check that the compiler produces executables we can run. If not, either
3454# the compiler is broken, or we cross compile.
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3456$as_echo_n "checking whether we are cross compiling... " >&6; }
3457if test "$cross_compiling" != yes; then
3458 { { ac_try="$ac_link"
3459case "(($ac_try" in
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3462esac
3463eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464$as_echo "$ac_try_echo"; } >&5
3465 (eval "$ac_link") 2>&5
3466 ac_status=$?
3467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468 test $ac_status = 0; }
3469 if { ac_try='./conftest$ac_cv_exeext'
3470 { { case "(($ac_try" in
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3473esac
3474eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3475$as_echo "$ac_try_echo"; } >&5
3476 (eval "$ac_try") 2>&5
3477 ac_status=$?
3478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3479 test $ac_status = 0; }; }; then
3480 cross_compiling=no
3481 else
3482 if test "$cross_compiling" = maybe; then
3483 cross_compiling=yes
3484 else
3485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3487as_fn_error $? "cannot run C compiled programs.
3488If you meant to cross compile, use \`--host'.
3489See \`config.log' for more details" "$LINENO" 5; }
3490 fi
3491 fi
3492fi
3493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3494$as_echo "$cross_compiling" >&6; }
3495
3496rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3497ac_clean_files=$ac_clean_files_save
3498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3499$as_echo_n "checking for suffix of object files... " >&6; }
3500if ${ac_cv_objext+:} false; then :
3501 $as_echo_n "(cached) " >&6
3502else
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504/* end confdefs.h. */
3505
3506int
3507main ()
3508{
3509
3510 ;
3511 return 0;
3512}
3513_ACEOF
3514rm -f conftest.o conftest.obj
3515if { { ac_try="$ac_compile"
3516case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519esac
3520eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3521$as_echo "$ac_try_echo"; } >&5
3522 (eval "$ac_compile") 2>&5
3523 ac_status=$?
3524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3525 test $ac_status = 0; }; then :
3526 for ac_file in conftest.o conftest.obj conftest.*; do
3527 test -f "$ac_file" || continue;
3528 case $ac_file in
3529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3530 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3531 break;;
3532 esac
3533done
3534else
3535 $as_echo "$as_me: failed program was:" >&5
3536sed 's/^/| /' conftest.$ac_ext >&5
3537
3538{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3540as_fn_error $? "cannot compute suffix of object files: cannot compile
3541See \`config.log' for more details" "$LINENO" 5; }
3542fi
3543rm -f conftest.$ac_cv_objext conftest.$ac_ext
3544fi
3545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3546$as_echo "$ac_cv_objext" >&6; }
3547OBJEXT=$ac_cv_objext
3548ac_objext=$OBJEXT
Jeff Thompson36174062013-06-21 16:03:44 -07003549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3550$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3551if ${ac_cv_c_compiler_gnu+:} false; then :
3552 $as_echo_n "(cached) " >&6
3553else
3554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555/* end confdefs.h. */
3556
3557int
3558main ()
3559{
3560#ifndef __GNUC__
3561 choke me
3562#endif
3563
3564 ;
3565 return 0;
3566}
3567_ACEOF
3568if ac_fn_c_try_compile "$LINENO"; then :
3569 ac_compiler_gnu=yes
3570else
3571 ac_compiler_gnu=no
3572fi
3573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574ac_cv_c_compiler_gnu=$ac_compiler_gnu
3575
3576fi
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3578$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3579if test $ac_compiler_gnu = yes; then
3580 GCC=yes
3581else
3582 GCC=
3583fi
3584ac_test_CFLAGS=${CFLAGS+set}
3585ac_save_CFLAGS=$CFLAGS
3586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3587$as_echo_n "checking whether $CC accepts -g... " >&6; }
3588if ${ac_cv_prog_cc_g+:} false; then :
3589 $as_echo_n "(cached) " >&6
3590else
3591 ac_save_c_werror_flag=$ac_c_werror_flag
3592 ac_c_werror_flag=yes
3593 ac_cv_prog_cc_g=no
3594 CFLAGS="-g"
3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596/* end confdefs.h. */
3597
3598int
3599main ()
3600{
3601
3602 ;
3603 return 0;
3604}
3605_ACEOF
3606if ac_fn_c_try_compile "$LINENO"; then :
3607 ac_cv_prog_cc_g=yes
3608else
3609 CFLAGS=""
3610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611/* end confdefs.h. */
3612
3613int
3614main ()
3615{
3616
3617 ;
3618 return 0;
3619}
3620_ACEOF
3621if ac_fn_c_try_compile "$LINENO"; then :
3622
3623else
3624 ac_c_werror_flag=$ac_save_c_werror_flag
3625 CFLAGS="-g"
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627/* end confdefs.h. */
3628
3629int
3630main ()
3631{
3632
3633 ;
3634 return 0;
3635}
3636_ACEOF
3637if ac_fn_c_try_compile "$LINENO"; then :
3638 ac_cv_prog_cc_g=yes
3639fi
3640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641fi
3642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3643fi
3644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3645 ac_c_werror_flag=$ac_save_c_werror_flag
3646fi
3647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3648$as_echo "$ac_cv_prog_cc_g" >&6; }
3649if test "$ac_test_CFLAGS" = set; then
3650 CFLAGS=$ac_save_CFLAGS
3651elif test $ac_cv_prog_cc_g = yes; then
3652 if test "$GCC" = yes; then
3653 CFLAGS="-g -O2"
3654 else
3655 CFLAGS="-g"
3656 fi
3657else
3658 if test "$GCC" = yes; then
3659 CFLAGS="-O2"
3660 else
3661 CFLAGS=
3662 fi
3663fi
3664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3665$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3666if ${ac_cv_prog_cc_c89+:} false; then :
3667 $as_echo_n "(cached) " >&6
3668else
3669 ac_cv_prog_cc_c89=no
3670ac_save_CC=$CC
3671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672/* end confdefs.h. */
3673#include <stdarg.h>
3674#include <stdio.h>
3675struct stat;
3676/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3677struct buf { int x; };
3678FILE * (*rcsopen) (struct buf *, struct stat *, int);
3679static char *e (p, i)
3680 char **p;
3681 int i;
3682{
3683 return p[i];
3684}
3685static char *f (char * (*g) (char **, int), char **p, ...)
3686{
3687 char *s;
3688 va_list v;
3689 va_start (v,p);
3690 s = g (p, va_arg (v,int));
3691 va_end (v);
3692 return s;
3693}
3694
3695/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3696 function prototypes and stuff, but not '\xHH' hex character constants.
3697 These don't provoke an error unfortunately, instead are silently treated
3698 as 'x'. The following induces an error, until -std is added to get
3699 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3700 array size at least. It's necessary to write '\x00'==0 to get something
3701 that's true only with -std. */
3702int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3703
3704/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3705 inside strings and character constants. */
3706#define FOO(x) 'x'
3707int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3708
3709int test (int i, double x);
3710struct s1 {int (*f) (int a);};
3711struct s2 {int (*f) (double a);};
3712int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3713int argc;
3714char **argv;
3715int
3716main ()
3717{
3718return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3719 ;
3720 return 0;
3721}
3722_ACEOF
3723for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3724 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3725do
3726 CC="$ac_save_CC $ac_arg"
3727 if ac_fn_c_try_compile "$LINENO"; then :
3728 ac_cv_prog_cc_c89=$ac_arg
3729fi
3730rm -f core conftest.err conftest.$ac_objext
3731 test "x$ac_cv_prog_cc_c89" != "xno" && break
3732done
3733rm -f conftest.$ac_ext
3734CC=$ac_save_CC
3735
3736fi
3737# AC_CACHE_VAL
3738case "x$ac_cv_prog_cc_c89" in
3739 x)
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3741$as_echo "none needed" >&6; } ;;
3742 xno)
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3744$as_echo "unsupported" >&6; } ;;
3745 *)
3746 CC="$CC $ac_cv_prog_cc_c89"
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3748$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3749esac
3750if test "x$ac_cv_prog_cc_c89" != xno; then :
3751
3752fi
3753
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07003754ac_ext=c
3755ac_cpp='$CPP $CPPFLAGS'
3756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeff Thompson36174062013-06-21 16:03:44 -07003759
3760depcc="$CC" am_compiler_list=
3761
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3763$as_echo_n "checking dependency style of $depcc... " >&6; }
3764if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3765 $as_echo_n "(cached) " >&6
3766else
3767 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3768 # We make a subdir and do the tests there. Otherwise we can end up
3769 # making bogus files that we don't know about and never remove. For
3770 # instance it was reported that on HP-UX the gcc test will end up
3771 # making a dummy file named 'D' -- because '-MD' means "put the output
3772 # in D".
3773 rm -rf conftest.dir
3774 mkdir conftest.dir
3775 # Copy depcomp to subdir because otherwise we won't find it if we're
3776 # using a relative directory.
3777 cp "$am_depcomp" conftest.dir
3778 cd conftest.dir
3779 # We will build objects and dependencies in a subdirectory because
3780 # it helps to detect inapplicable dependency modes. For instance
3781 # both Tru64's cc and ICC support -MD to output dependencies as a
3782 # side effect of compilation, but ICC will put the dependencies in
3783 # the current directory while Tru64 will put them in the object
3784 # directory.
3785 mkdir sub
3786
3787 am_cv_CC_dependencies_compiler_type=none
3788 if test "$am_compiler_list" = ""; then
3789 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3790 fi
3791 am__universal=false
3792 case " $depcc " in #(
3793 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3794 esac
3795
3796 for depmode in $am_compiler_list; do
3797 # Setup a source with many dependencies, because some compilers
3798 # like to wrap large dependency lists on column 80 (with \), and
3799 # we should not choose a depcomp mode which is confused by this.
3800 #
3801 # We need to recreate these files for each test, as the compiler may
3802 # overwrite some of them when testing with obscure command lines.
3803 # This happens at least with the AIX C compiler.
3804 : > sub/conftest.c
3805 for i in 1 2 3 4 5 6; do
3806 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3807 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3808 # Solaris 10 /bin/sh.
3809 echo '/* dummy */' > sub/conftst$i.h
3810 done
3811 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3812
3813 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3814 # mode. It turns out that the SunPro C++ compiler does not properly
3815 # handle '-M -o', and we need to detect this. Also, some Intel
3816 # versions had trouble with output in subdirs.
3817 am__obj=sub/conftest.${OBJEXT-o}
3818 am__minus_obj="-o $am__obj"
3819 case $depmode in
3820 gcc)
3821 # This depmode causes a compiler race in universal mode.
3822 test "$am__universal" = false || continue
3823 ;;
3824 nosideeffect)
3825 # After this tag, mechanisms are not by side-effect, so they'll
3826 # only be used when explicitly requested.
3827 if test "x$enable_dependency_tracking" = xyes; then
3828 continue
3829 else
3830 break
3831 fi
3832 ;;
3833 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3834 # This compiler won't grok '-c -o', but also, the minuso test has
3835 # not run yet. These depmodes are late enough in the game, and
3836 # so weak that their functioning should not be impacted.
3837 am__obj=conftest.${OBJEXT-o}
3838 am__minus_obj=
3839 ;;
3840 none) break ;;
3841 esac
3842 if depmode=$depmode \
3843 source=sub/conftest.c object=$am__obj \
3844 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3845 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3846 >/dev/null 2>conftest.err &&
3847 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3848 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3849 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3850 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3851 # icc doesn't choke on unknown options, it will just issue warnings
3852 # or remarks (even with -Werror). So we grep stderr for any message
3853 # that says an option was ignored or not supported.
3854 # When given -MP, icc 7.0 and 7.1 complain thusly:
3855 # icc: Command line warning: ignoring option '-M'; no argument required
3856 # The diagnosis changed in icc 8.0:
3857 # icc: Command line remark: option '-MP' not supported
3858 if (grep 'ignoring option' conftest.err ||
3859 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3860 am_cv_CC_dependencies_compiler_type=$depmode
3861 break
3862 fi
3863 fi
3864 done
3865
3866 cd ..
3867 rm -rf conftest.dir
3868else
3869 am_cv_CC_dependencies_compiler_type=none
3870fi
3871
3872fi
3873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3874$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3875CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3876
3877 if
3878 test "x$enable_dependency_tracking" != xno \
3879 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3880 am__fastdepCC_TRUE=
3881 am__fastdepCC_FALSE='#'
3882else
3883 am__fastdepCC_TRUE='#'
3884 am__fastdepCC_FALSE=
3885fi
3886
3887
Jeff Thompson36174062013-06-21 16:03:44 -07003888
3889if test -n "$ac_tool_prefix"; then
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07003890 for ac_prog in ar lib "link -lib"
Jeff Thompson36174062013-06-21 16:03:44 -07003891 do
3892 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3893set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895$as_echo_n "checking for $ac_word... " >&6; }
3896if ${ac_cv_prog_AR+:} false; then :
3897 $as_echo_n "(cached) " >&6
3898else
3899 if test -n "$AR"; then
3900 ac_cv_prog_AR="$AR" # Let the user override the test.
3901else
3902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903for as_dir in $PATH
3904do
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3909 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 break 2
3912 fi
3913done
3914 done
3915IFS=$as_save_IFS
3916
3917fi
3918fi
3919AR=$ac_cv_prog_AR
3920if test -n "$AR"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3922$as_echo "$AR" >&6; }
3923else
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925$as_echo "no" >&6; }
3926fi
3927
3928
3929 test -n "$AR" && break
3930 done
3931fi
3932if test -z "$AR"; then
3933 ac_ct_AR=$AR
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07003934 for ac_prog in ar lib "link -lib"
Jeff Thompson36174062013-06-21 16:03:44 -07003935do
3936 # Extract the first word of "$ac_prog", so it can be a program name with args.
3937set dummy $ac_prog; ac_word=$2
3938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3939$as_echo_n "checking for $ac_word... " >&6; }
3940if ${ac_cv_prog_ac_ct_AR+:} false; then :
3941 $as_echo_n "(cached) " >&6
3942else
3943 if test -n "$ac_ct_AR"; then
3944 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3945else
3946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947for as_dir in $PATH
3948do
3949 IFS=$as_save_IFS
3950 test -z "$as_dir" && as_dir=.
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3953 ac_cv_prog_ac_ct_AR="$ac_prog"
3954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3955 break 2
3956 fi
3957done
3958 done
3959IFS=$as_save_IFS
3960
3961fi
3962fi
3963ac_ct_AR=$ac_cv_prog_ac_ct_AR
3964if test -n "$ac_ct_AR"; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3966$as_echo "$ac_ct_AR" >&6; }
3967else
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969$as_echo "no" >&6; }
3970fi
3971
3972
3973 test -n "$ac_ct_AR" && break
3974done
3975
3976 if test "x$ac_ct_AR" = x; then
3977 AR="false"
3978 else
3979 case $cross_compiling:$ac_tool_warned in
3980yes:)
3981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3983ac_tool_warned=yes ;;
3984esac
3985 AR=$ac_ct_AR
3986 fi
3987fi
3988
3989: ${AR=ar}
Jeff Thompson36174062013-06-21 16:03:44 -07003990
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07003991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3992$as_echo_n "checking the archiver ($AR) interface... " >&6; }
3993if ${am_cv_ar_interface+:} false; then :
Jeff Thompson36174062013-06-21 16:03:44 -07003994 $as_echo_n "(cached) " >&6
3995else
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07003996 am_cv_ar_interface=ar
Jeff Thompson36174062013-06-21 16:03:44 -07003997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998/* end confdefs.h. */
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07003999int some_variable = 0;
Jeff Thompson36174062013-06-21 16:03:44 -07004000_ACEOF
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004001if ac_fn_c_try_compile "$LINENO"; then :
4002 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4004 (eval $am_ar_try) 2>&5
Jeff Thompson36174062013-06-21 16:03:44 -07004005 ac_status=$?
4006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007 test $ac_status = 0; }
4008 if test "$ac_status" -eq 0; then
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004009 am_cv_ar_interface=ar
4010 else
4011 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4013 (eval $am_ar_try) 2>&5
Jeff Thompson36174062013-06-21 16:03:44 -07004014 ac_status=$?
4015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016 test $ac_status = 0; }
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004017 if test "$ac_status" -eq 0; then
4018 am_cv_ar_interface=lib
4019 else
4020 am_cv_ar_interface=unknown
Jeff Thompson36174062013-06-21 16:03:44 -07004021 fi
4022 fi
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004023 rm -f conftest.lib libconftest.a
Jeff Thompson36174062013-06-21 16:03:44 -07004024
4025fi
4026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4027
4028fi
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4030$as_echo "$am_cv_ar_interface" >&6; }
Jeff Thompson36174062013-06-21 16:03:44 -07004031
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004032case $am_cv_ar_interface in
4033ar)
Jeff Thompson36174062013-06-21 16:03:44 -07004034 ;;
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004035lib)
4036 # Microsoft lib, so override with the ar-lib wrapper script.
4037 # FIXME: It is wrong to rewrite AR.
4038 # But if we don't then we get into trouble of one sort or another.
4039 # A longer-term fix would be to have automake use am__AR in this case,
4040 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4041 # similar.
4042 AR="$am_aux_dir/ar-lib $AR"
Jeff Thompson36174062013-06-21 16:03:44 -07004043 ;;
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004044unknown)
4045 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
Jeff Thompson36174062013-06-21 16:03:44 -07004046 ;;
4047esac
4048
Jeff Thompson4f031642013-08-05 11:03:16 -07004049case `pwd` in
4050 *\ * | *\ *)
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4052$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4053esac
4054
4055
4056
4057macro_version='2.4.2'
4058macro_revision='1.3337'
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072ltmain="$ac_aux_dir/ltmain.sh"
4073
4074# Make sure we can run config.sub.
4075$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4076 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4077
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4079$as_echo_n "checking build system type... " >&6; }
4080if ${ac_cv_build+:} false; then :
4081 $as_echo_n "(cached) " >&6
4082else
4083 ac_build_alias=$build_alias
4084test "x$ac_build_alias" = x &&
4085 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4086test "x$ac_build_alias" = x &&
4087 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4088ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4089 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4090
4091fi
4092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4093$as_echo "$ac_cv_build" >&6; }
4094case $ac_cv_build in
4095*-*-*) ;;
4096*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4097esac
4098build=$ac_cv_build
4099ac_save_IFS=$IFS; IFS='-'
4100set x $ac_cv_build
4101shift
4102build_cpu=$1
4103build_vendor=$2
4104shift; shift
4105# Remember, the first character of IFS is used to create $*,
4106# except with old shells:
4107build_os=$*
4108IFS=$ac_save_IFS
4109case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4110
4111
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4113$as_echo_n "checking host system type... " >&6; }
4114if ${ac_cv_host+:} false; then :
4115 $as_echo_n "(cached) " >&6
4116else
4117 if test "x$host_alias" = x; then
4118 ac_cv_host=$ac_cv_build
4119else
4120 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4121 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4122fi
4123
4124fi
4125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4126$as_echo "$ac_cv_host" >&6; }
4127case $ac_cv_host in
4128*-*-*) ;;
4129*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4130esac
4131host=$ac_cv_host
4132ac_save_IFS=$IFS; IFS='-'
4133set x $ac_cv_host
4134shift
4135host_cpu=$1
4136host_vendor=$2
4137shift; shift
4138# Remember, the first character of IFS is used to create $*,
4139# except with old shells:
4140host_os=$*
4141IFS=$ac_save_IFS
4142case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4143
4144
4145# Backslashify metacharacters that are still active within
4146# double-quoted strings.
4147sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4148
4149# Same as above, but do not quote variable references.
4150double_quote_subst='s/\(["`\\]\)/\\\1/g'
4151
4152# Sed substitution to delay expansion of an escaped shell variable in a
4153# double_quote_subst'ed string.
4154delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4155
4156# Sed substitution to delay expansion of an escaped single quote.
4157delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4158
4159# Sed substitution to avoid accidental globbing in evaled expressions
4160no_glob_subst='s/\*/\\\*/g'
4161
4162ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4163ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4164ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4165
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4167$as_echo_n "checking how to print strings... " >&6; }
4168# Test print first, because it will be a builtin if present.
4169if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4170 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4171 ECHO='print -r --'
4172elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4173 ECHO='printf %s\n'
4174else
4175 # Use this function as a fallback that always works.
4176 func_fallback_echo ()
4177 {
4178 eval 'cat <<_LTECHO_EOF
4179$1
4180_LTECHO_EOF'
4181 }
4182 ECHO='func_fallback_echo'
4183fi
4184
4185# func_echo_all arg...
4186# Invoke $ECHO with all args, space-separated.
4187func_echo_all ()
4188{
4189 $ECHO ""
4190}
4191
4192case "$ECHO" in
4193 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4194$as_echo "printf" >&6; } ;;
4195 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4196$as_echo "print -r" >&6; } ;;
4197 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4198$as_echo "cat" >&6; } ;;
4199esac
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4215$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4216if ${ac_cv_path_SED+:} false; then :
4217 $as_echo_n "(cached) " >&6
4218else
4219 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4220 for ac_i in 1 2 3 4 5 6 7; do
4221 ac_script="$ac_script$as_nl$ac_script"
4222 done
4223 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4224 { ac_script=; unset ac_script;}
4225 if test -z "$SED"; then
4226 ac_path_SED_found=false
4227 # Loop through the user's path and test for each of PROGNAME-LIST
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229for as_dir in $PATH
4230do
4231 IFS=$as_save_IFS
4232 test -z "$as_dir" && as_dir=.
4233 for ac_prog in sed gsed; do
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4236 as_fn_executable_p "$ac_path_SED" || continue
4237# Check for GNU ac_path_SED and select it if it is found.
4238 # Check for GNU $ac_path_SED
4239case `"$ac_path_SED" --version 2>&1` in
4240*GNU*)
4241 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4242*)
4243 ac_count=0
4244 $as_echo_n 0123456789 >"conftest.in"
4245 while :
4246 do
4247 cat "conftest.in" "conftest.in" >"conftest.tmp"
4248 mv "conftest.tmp" "conftest.in"
4249 cp "conftest.in" "conftest.nl"
4250 $as_echo '' >> "conftest.nl"
4251 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4252 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4253 as_fn_arith $ac_count + 1 && ac_count=$as_val
4254 if test $ac_count -gt ${ac_path_SED_max-0}; then
4255 # Best one so far, save it but keep looking for a better one
4256 ac_cv_path_SED="$ac_path_SED"
4257 ac_path_SED_max=$ac_count
4258 fi
4259 # 10*(2^10) chars as input seems more than enough
4260 test $ac_count -gt 10 && break
4261 done
4262 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4263esac
4264
4265 $ac_path_SED_found && break 3
4266 done
4267 done
4268 done
4269IFS=$as_save_IFS
4270 if test -z "$ac_cv_path_SED"; then
4271 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4272 fi
4273else
4274 ac_cv_path_SED=$SED
4275fi
4276
4277fi
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4279$as_echo "$ac_cv_path_SED" >&6; }
4280 SED="$ac_cv_path_SED"
4281 rm -f conftest.sed
4282
4283test -z "$SED" && SED=sed
4284Xsed="$SED -e 1s/^X//"
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4297$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4298if ${ac_cv_path_GREP+:} false; then :
4299 $as_echo_n "(cached) " >&6
4300else
4301 if test -z "$GREP"; then
4302 ac_path_GREP_found=false
4303 # Loop through the user's path and test for each of PROGNAME-LIST
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4306do
4307 IFS=$as_save_IFS
4308 test -z "$as_dir" && as_dir=.
4309 for ac_prog in grep ggrep; do
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4312 as_fn_executable_p "$ac_path_GREP" || continue
4313# Check for GNU ac_path_GREP and select it if it is found.
4314 # Check for GNU $ac_path_GREP
4315case `"$ac_path_GREP" --version 2>&1` in
4316*GNU*)
4317 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4318*)
4319 ac_count=0
4320 $as_echo_n 0123456789 >"conftest.in"
4321 while :
4322 do
4323 cat "conftest.in" "conftest.in" >"conftest.tmp"
4324 mv "conftest.tmp" "conftest.in"
4325 cp "conftest.in" "conftest.nl"
4326 $as_echo 'GREP' >> "conftest.nl"
4327 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4328 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4329 as_fn_arith $ac_count + 1 && ac_count=$as_val
4330 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4331 # Best one so far, save it but keep looking for a better one
4332 ac_cv_path_GREP="$ac_path_GREP"
4333 ac_path_GREP_max=$ac_count
4334 fi
4335 # 10*(2^10) chars as input seems more than enough
4336 test $ac_count -gt 10 && break
4337 done
4338 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4339esac
4340
4341 $ac_path_GREP_found && break 3
4342 done
4343 done
4344 done
4345IFS=$as_save_IFS
4346 if test -z "$ac_cv_path_GREP"; then
4347 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4348 fi
4349else
4350 ac_cv_path_GREP=$GREP
4351fi
4352
4353fi
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4355$as_echo "$ac_cv_path_GREP" >&6; }
4356 GREP="$ac_cv_path_GREP"
4357
4358
4359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4360$as_echo_n "checking for egrep... " >&6; }
4361if ${ac_cv_path_EGREP+:} false; then :
4362 $as_echo_n "(cached) " >&6
4363else
4364 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4365 then ac_cv_path_EGREP="$GREP -E"
4366 else
4367 if test -z "$EGREP"; then
4368 ac_path_EGREP_found=false
4369 # Loop through the user's path and test for each of PROGNAME-LIST
4370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4372do
4373 IFS=$as_save_IFS
4374 test -z "$as_dir" && as_dir=.
4375 for ac_prog in egrep; do
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4378 as_fn_executable_p "$ac_path_EGREP" || continue
4379# Check for GNU ac_path_EGREP and select it if it is found.
4380 # Check for GNU $ac_path_EGREP
4381case `"$ac_path_EGREP" --version 2>&1` in
4382*GNU*)
4383 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4384*)
4385 ac_count=0
4386 $as_echo_n 0123456789 >"conftest.in"
4387 while :
4388 do
4389 cat "conftest.in" "conftest.in" >"conftest.tmp"
4390 mv "conftest.tmp" "conftest.in"
4391 cp "conftest.in" "conftest.nl"
4392 $as_echo 'EGREP' >> "conftest.nl"
4393 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4394 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4395 as_fn_arith $ac_count + 1 && ac_count=$as_val
4396 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4397 # Best one so far, save it but keep looking for a better one
4398 ac_cv_path_EGREP="$ac_path_EGREP"
4399 ac_path_EGREP_max=$ac_count
4400 fi
4401 # 10*(2^10) chars as input seems more than enough
4402 test $ac_count -gt 10 && break
4403 done
4404 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4405esac
4406
4407 $ac_path_EGREP_found && break 3
4408 done
4409 done
4410 done
4411IFS=$as_save_IFS
4412 if test -z "$ac_cv_path_EGREP"; then
4413 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4414 fi
4415else
4416 ac_cv_path_EGREP=$EGREP
4417fi
4418
4419 fi
4420fi
4421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4422$as_echo "$ac_cv_path_EGREP" >&6; }
4423 EGREP="$ac_cv_path_EGREP"
4424
4425
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4427$as_echo_n "checking for fgrep... " >&6; }
4428if ${ac_cv_path_FGREP+:} false; then :
4429 $as_echo_n "(cached) " >&6
4430else
4431 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4432 then ac_cv_path_FGREP="$GREP -F"
4433 else
4434 if test -z "$FGREP"; then
4435 ac_path_FGREP_found=false
4436 # Loop through the user's path and test for each of PROGNAME-LIST
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4439do
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
4442 for ac_prog in fgrep; do
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4445 as_fn_executable_p "$ac_path_FGREP" || continue
4446# Check for GNU ac_path_FGREP and select it if it is found.
4447 # Check for GNU $ac_path_FGREP
4448case `"$ac_path_FGREP" --version 2>&1` in
4449*GNU*)
4450 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4451*)
4452 ac_count=0
4453 $as_echo_n 0123456789 >"conftest.in"
4454 while :
4455 do
4456 cat "conftest.in" "conftest.in" >"conftest.tmp"
4457 mv "conftest.tmp" "conftest.in"
4458 cp "conftest.in" "conftest.nl"
4459 $as_echo 'FGREP' >> "conftest.nl"
4460 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4461 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4462 as_fn_arith $ac_count + 1 && ac_count=$as_val
4463 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4464 # Best one so far, save it but keep looking for a better one
4465 ac_cv_path_FGREP="$ac_path_FGREP"
4466 ac_path_FGREP_max=$ac_count
4467 fi
4468 # 10*(2^10) chars as input seems more than enough
4469 test $ac_count -gt 10 && break
4470 done
4471 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4472esac
4473
4474 $ac_path_FGREP_found && break 3
4475 done
4476 done
4477 done
4478IFS=$as_save_IFS
4479 if test -z "$ac_cv_path_FGREP"; then
4480 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4481 fi
4482else
4483 ac_cv_path_FGREP=$FGREP
4484fi
4485
4486 fi
4487fi
4488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4489$as_echo "$ac_cv_path_FGREP" >&6; }
4490 FGREP="$ac_cv_path_FGREP"
4491
4492
4493test -z "$GREP" && GREP=grep
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513# Check whether --with-gnu-ld was given.
4514if test "${with_gnu_ld+set}" = set; then :
4515 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4516else
4517 with_gnu_ld=no
4518fi
4519
4520ac_prog=ld
4521if test "$GCC" = yes; then
4522 # Check if gcc -print-prog-name=ld gives a path.
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4524$as_echo_n "checking for ld used by $CC... " >&6; }
4525 case $host in
4526 *-*-mingw*)
4527 # gcc leaves a trailing carriage return which upsets mingw
4528 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4529 *)
4530 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4531 esac
4532 case $ac_prog in
4533 # Accept absolute paths.
4534 [\\/]* | ?:[\\/]*)
4535 re_direlt='/[^/][^/]*/\.\./'
4536 # Canonicalize the pathname of ld
4537 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4538 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4539 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4540 done
4541 test -z "$LD" && LD="$ac_prog"
4542 ;;
4543 "")
4544 # If it fails, then pretend we aren't using GCC.
4545 ac_prog=ld
4546 ;;
4547 *)
4548 # If it is relative, then search for the first ld in PATH.
4549 with_gnu_ld=unknown
4550 ;;
4551 esac
4552elif test "$with_gnu_ld" = yes; then
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4554$as_echo_n "checking for GNU ld... " >&6; }
4555else
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4557$as_echo_n "checking for non-GNU ld... " >&6; }
4558fi
4559if ${lt_cv_path_LD+:} false; then :
4560 $as_echo_n "(cached) " >&6
4561else
4562 if test -z "$LD"; then
4563 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4564 for ac_dir in $PATH; do
4565 IFS="$lt_save_ifs"
4566 test -z "$ac_dir" && ac_dir=.
4567 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4568 lt_cv_path_LD="$ac_dir/$ac_prog"
4569 # Check to see if the program is GNU ld. I'd rather use --version,
4570 # but apparently some variants of GNU ld only accept -v.
4571 # Break only if it was the GNU/non-GNU ld that we prefer.
4572 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4573 *GNU* | *'with BFD'*)
4574 test "$with_gnu_ld" != no && break
4575 ;;
4576 *)
4577 test "$with_gnu_ld" != yes && break
4578 ;;
4579 esac
4580 fi
4581 done
4582 IFS="$lt_save_ifs"
4583else
4584 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4585fi
4586fi
4587
4588LD="$lt_cv_path_LD"
4589if test -n "$LD"; then
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4591$as_echo "$LD" >&6; }
4592else
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4594$as_echo "no" >&6; }
4595fi
4596test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4598$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4599if ${lt_cv_prog_gnu_ld+:} false; then :
4600 $as_echo_n "(cached) " >&6
4601else
4602 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4603case `$LD -v 2>&1 </dev/null` in
4604*GNU* | *'with BFD'*)
4605 lt_cv_prog_gnu_ld=yes
4606 ;;
4607*)
4608 lt_cv_prog_gnu_ld=no
4609 ;;
4610esac
4611fi
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4613$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4614with_gnu_ld=$lt_cv_prog_gnu_ld
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4625$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4626if ${lt_cv_path_NM+:} false; then :
4627 $as_echo_n "(cached) " >&6
4628else
4629 if test -n "$NM"; then
4630 # Let the user override the test.
4631 lt_cv_path_NM="$NM"
4632else
4633 lt_nm_to_check="${ac_tool_prefix}nm"
4634 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4635 lt_nm_to_check="$lt_nm_to_check nm"
4636 fi
4637 for lt_tmp_nm in $lt_nm_to_check; do
4638 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4639 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4640 IFS="$lt_save_ifs"
4641 test -z "$ac_dir" && ac_dir=.
4642 tmp_nm="$ac_dir/$lt_tmp_nm"
4643 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4644 # Check to see if the nm accepts a BSD-compat flag.
4645 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4646 # nm: unknown option "B" ignored
4647 # Tru64's nm complains that /dev/null is an invalid object file
4648 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4649 */dev/null* | *'Invalid file or object type'*)
4650 lt_cv_path_NM="$tmp_nm -B"
4651 break
4652 ;;
4653 *)
4654 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4655 */dev/null*)
4656 lt_cv_path_NM="$tmp_nm -p"
4657 break
4658 ;;
4659 *)
4660 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4661 continue # so that we can try to find one that supports BSD flags
4662 ;;
4663 esac
4664 ;;
4665 esac
4666 fi
4667 done
4668 IFS="$lt_save_ifs"
4669 done
4670 : ${lt_cv_path_NM=no}
4671fi
4672fi
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4674$as_echo "$lt_cv_path_NM" >&6; }
4675if test "$lt_cv_path_NM" != "no"; then
4676 NM="$lt_cv_path_NM"
4677else
4678 # Didn't find any BSD compatible name lister, look for dumpbin.
4679 if test -n "$DUMPBIN"; then :
4680 # Let the user override the test.
4681 else
4682 if test -n "$ac_tool_prefix"; then
4683 for ac_prog in dumpbin "link -dump"
4684 do
4685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4686set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4688$as_echo_n "checking for $ac_word... " >&6; }
4689if ${ac_cv_prog_DUMPBIN+:} false; then :
4690 $as_echo_n "(cached) " >&6
4691else
4692 if test -n "$DUMPBIN"; then
4693 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4694else
4695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696for as_dir in $PATH
4697do
4698 IFS=$as_save_IFS
4699 test -z "$as_dir" && as_dir=.
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4702 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4704 break 2
4705 fi
4706done
4707 done
4708IFS=$as_save_IFS
4709
4710fi
4711fi
4712DUMPBIN=$ac_cv_prog_DUMPBIN
4713if test -n "$DUMPBIN"; then
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4715$as_echo "$DUMPBIN" >&6; }
4716else
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4718$as_echo "no" >&6; }
4719fi
4720
4721
4722 test -n "$DUMPBIN" && break
4723 done
4724fi
4725if test -z "$DUMPBIN"; then
4726 ac_ct_DUMPBIN=$DUMPBIN
4727 for ac_prog in dumpbin "link -dump"
4728do
4729 # Extract the first word of "$ac_prog", so it can be a program name with args.
4730set dummy $ac_prog; ac_word=$2
4731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4732$as_echo_n "checking for $ac_word... " >&6; }
4733if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4734 $as_echo_n "(cached) " >&6
4735else
4736 if test -n "$ac_ct_DUMPBIN"; then
4737 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4738else
4739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740for as_dir in $PATH
4741do
4742 IFS=$as_save_IFS
4743 test -z "$as_dir" && as_dir=.
4744 for ac_exec_ext in '' $ac_executable_extensions; do
4745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4746 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4748 break 2
4749 fi
4750done
4751 done
4752IFS=$as_save_IFS
4753
4754fi
4755fi
4756ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4757if test -n "$ac_ct_DUMPBIN"; then
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4759$as_echo "$ac_ct_DUMPBIN" >&6; }
4760else
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4762$as_echo "no" >&6; }
4763fi
4764
4765
4766 test -n "$ac_ct_DUMPBIN" && break
4767done
4768
4769 if test "x$ac_ct_DUMPBIN" = x; then
4770 DUMPBIN=":"
4771 else
4772 case $cross_compiling:$ac_tool_warned in
4773yes:)
4774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4776ac_tool_warned=yes ;;
4777esac
4778 DUMPBIN=$ac_ct_DUMPBIN
4779 fi
4780fi
4781
4782 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4783 *COFF*)
4784 DUMPBIN="$DUMPBIN -symbols"
4785 ;;
4786 *)
4787 DUMPBIN=:
4788 ;;
4789 esac
4790 fi
4791
4792 if test "$DUMPBIN" != ":"; then
4793 NM="$DUMPBIN"
4794 fi
4795fi
4796test -z "$NM" && NM=nm
4797
4798
4799
4800
4801
4802
4803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4804$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4805if ${lt_cv_nm_interface+:} false; then :
4806 $as_echo_n "(cached) " >&6
4807else
4808 lt_cv_nm_interface="BSD nm"
4809 echo "int some_variable = 0;" > conftest.$ac_ext
4810 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4811 (eval "$ac_compile" 2>conftest.err)
4812 cat conftest.err >&5
4813 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4814 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4815 cat conftest.err >&5
4816 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4817 cat conftest.out >&5
4818 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4819 lt_cv_nm_interface="MS dumpbin"
4820 fi
4821 rm -f conftest*
4822fi
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4824$as_echo "$lt_cv_nm_interface" >&6; }
4825
4826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4827$as_echo_n "checking whether ln -s works... " >&6; }
4828LN_S=$as_ln_s
4829if test "$LN_S" = "ln -s"; then
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4831$as_echo "yes" >&6; }
4832else
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4834$as_echo "no, using $LN_S" >&6; }
4835fi
4836
4837# find the maximum length of command line arguments
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4839$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4840if ${lt_cv_sys_max_cmd_len+:} false; then :
4841 $as_echo_n "(cached) " >&6
4842else
4843 i=0
4844 teststring="ABCD"
4845
4846 case $build_os in
4847 msdosdjgpp*)
4848 # On DJGPP, this test can blow up pretty badly due to problems in libc
4849 # (any single argument exceeding 2000 bytes causes a buffer overrun
4850 # during glob expansion). Even if it were fixed, the result of this
4851 # check would be larger than it should be.
4852 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4853 ;;
4854
4855 gnu*)
4856 # Under GNU Hurd, this test is not required because there is
4857 # no limit to the length of command line arguments.
4858 # Libtool will interpret -1 as no limit whatsoever
4859 lt_cv_sys_max_cmd_len=-1;
4860 ;;
4861
4862 cygwin* | mingw* | cegcc*)
4863 # On Win9x/ME, this test blows up -- it succeeds, but takes
4864 # about 5 minutes as the teststring grows exponentially.
4865 # Worse, since 9x/ME are not pre-emptively multitasking,
4866 # you end up with a "frozen" computer, even though with patience
4867 # the test eventually succeeds (with a max line length of 256k).
4868 # Instead, let's just punt: use the minimum linelength reported by
4869 # all of the supported platforms: 8192 (on NT/2K/XP).
4870 lt_cv_sys_max_cmd_len=8192;
4871 ;;
4872
4873 mint*)
4874 # On MiNT this can take a long time and run out of memory.
4875 lt_cv_sys_max_cmd_len=8192;
4876 ;;
4877
4878 amigaos*)
4879 # On AmigaOS with pdksh, this test takes hours, literally.
4880 # So we just punt and use a minimum line length of 8192.
4881 lt_cv_sys_max_cmd_len=8192;
4882 ;;
4883
4884 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4885 # This has been around since 386BSD, at least. Likely further.
4886 if test -x /sbin/sysctl; then
4887 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4888 elif test -x /usr/sbin/sysctl; then
4889 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4890 else
4891 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4892 fi
4893 # And add a safety zone
4894 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4895 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4896 ;;
4897
4898 interix*)
4899 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4900 lt_cv_sys_max_cmd_len=196608
4901 ;;
4902
4903 os2*)
4904 # The test takes a long time on OS/2.
4905 lt_cv_sys_max_cmd_len=8192
4906 ;;
4907
4908 osf*)
4909 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4910 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4911 # nice to cause kernel panics so lets avoid the loop below.
4912 # First set a reasonable default.
4913 lt_cv_sys_max_cmd_len=16384
4914 #
4915 if test -x /sbin/sysconfig; then
4916 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4917 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4918 esac
4919 fi
4920 ;;
4921 sco3.2v5*)
4922 lt_cv_sys_max_cmd_len=102400
4923 ;;
4924 sysv5* | sco5v6* | sysv4.2uw2*)
4925 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4926 if test -n "$kargmax"; then
4927 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4928 else
4929 lt_cv_sys_max_cmd_len=32768
4930 fi
4931 ;;
4932 *)
4933 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4934 if test -n "$lt_cv_sys_max_cmd_len"; then
4935 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4936 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4937 else
4938 # Make teststring a little bigger before we do anything with it.
4939 # a 1K string should be a reasonable start.
4940 for i in 1 2 3 4 5 6 7 8 ; do
4941 teststring=$teststring$teststring
4942 done
4943 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4944 # If test is not a shell built-in, we'll probably end up computing a
4945 # maximum length that is only half of the actual maximum length, but
4946 # we can't tell.
4947 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4948 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4949 test $i != 17 # 1/2 MB should be enough
4950 do
4951 i=`expr $i + 1`
4952 teststring=$teststring$teststring
4953 done
4954 # Only check the string length outside the loop.
4955 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4956 teststring=
4957 # Add a significant safety factor because C++ compilers can tack on
4958 # massive amounts of additional arguments before passing them to the
4959 # linker. It appears as though 1/2 is a usable value.
4960 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4961 fi
4962 ;;
4963 esac
4964
4965fi
4966
4967if test -n $lt_cv_sys_max_cmd_len ; then
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4969$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4970else
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4972$as_echo "none" >&6; }
4973fi
4974max_cmd_len=$lt_cv_sys_max_cmd_len
4975
4976
4977
4978
4979
4980
4981: ${CP="cp -f"}
4982: ${MV="mv -f"}
4983: ${RM="rm -f"}
4984
4985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4986$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4987# Try some XSI features
4988xsi_shell=no
4989( _lt_dummy="a/b/c"
4990 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4991 = c,a/b,b/c, \
4992 && eval 'test $(( 1 + 1 )) -eq 2 \
4993 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4994 && xsi_shell=yes
4995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4996$as_echo "$xsi_shell" >&6; }
4997
4998
4999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5000$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5001lt_shell_append=no
5002( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5003 >/dev/null 2>&1 \
5004 && lt_shell_append=yes
5005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5006$as_echo "$lt_shell_append" >&6; }
5007
5008
5009if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5010 lt_unset=unset
5011else
5012 lt_unset=false
5013fi
5014
5015
5016
5017
5018
5019# test EBCDIC or ASCII
5020case `echo X|tr X '\101'` in
5021 A) # ASCII based system
5022 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5023 lt_SP2NL='tr \040 \012'
5024 lt_NL2SP='tr \015\012 \040\040'
5025 ;;
5026 *) # EBCDIC based system
5027 lt_SP2NL='tr \100 \n'
5028 lt_NL2SP='tr \r\n \100\100'
5029 ;;
5030esac
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5041$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5042if ${lt_cv_to_host_file_cmd+:} false; then :
5043 $as_echo_n "(cached) " >&6
5044else
5045 case $host in
5046 *-*-mingw* )
5047 case $build in
5048 *-*-mingw* ) # actually msys
5049 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5050 ;;
5051 *-*-cygwin* )
5052 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5053 ;;
5054 * ) # otherwise, assume *nix
5055 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5056 ;;
5057 esac
5058 ;;
5059 *-*-cygwin* )
5060 case $build in
5061 *-*-mingw* ) # actually msys
5062 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5063 ;;
5064 *-*-cygwin* )
5065 lt_cv_to_host_file_cmd=func_convert_file_noop
5066 ;;
5067 * ) # otherwise, assume *nix
5068 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5069 ;;
5070 esac
5071 ;;
5072 * ) # unhandled hosts (and "normal" native builds)
5073 lt_cv_to_host_file_cmd=func_convert_file_noop
5074 ;;
5075esac
5076
5077fi
5078
5079to_host_file_cmd=$lt_cv_to_host_file_cmd
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5081$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5082
5083
5084
5085
5086
5087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5088$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5089if ${lt_cv_to_tool_file_cmd+:} false; then :
5090 $as_echo_n "(cached) " >&6
5091else
5092 #assume ordinary cross tools, or native build.
5093lt_cv_to_tool_file_cmd=func_convert_file_noop
5094case $host in
5095 *-*-mingw* )
5096 case $build in
5097 *-*-mingw* ) # actually msys
5098 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5099 ;;
5100 esac
5101 ;;
5102esac
5103
5104fi
5105
5106to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5108$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5109
5110
5111
5112
5113
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5115$as_echo_n "checking for $LD option to reload object files... " >&6; }
5116if ${lt_cv_ld_reload_flag+:} false; then :
5117 $as_echo_n "(cached) " >&6
5118else
5119 lt_cv_ld_reload_flag='-r'
5120fi
5121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5122$as_echo "$lt_cv_ld_reload_flag" >&6; }
5123reload_flag=$lt_cv_ld_reload_flag
5124case $reload_flag in
5125"" | " "*) ;;
5126*) reload_flag=" $reload_flag" ;;
5127esac
5128reload_cmds='$LD$reload_flag -o $output$reload_objs'
5129case $host_os in
5130 cygwin* | mingw* | pw32* | cegcc*)
5131 if test "$GCC" != yes; then
5132 reload_cmds=false
5133 fi
5134 ;;
5135 darwin*)
5136 if test "$GCC" = yes; then
5137 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5138 else
5139 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5140 fi
5141 ;;
5142esac
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152if test -n "$ac_tool_prefix"; then
5153 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5154set dummy ${ac_tool_prefix}objdump; ac_word=$2
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156$as_echo_n "checking for $ac_word... " >&6; }
5157if ${ac_cv_prog_OBJDUMP+:} false; then :
5158 $as_echo_n "(cached) " >&6
5159else
5160 if test -n "$OBJDUMP"; then
5161 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5162else
5163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164for as_dir in $PATH
5165do
5166 IFS=$as_save_IFS
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5170 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 break 2
5173 fi
5174done
5175 done
5176IFS=$as_save_IFS
5177
5178fi
5179fi
5180OBJDUMP=$ac_cv_prog_OBJDUMP
5181if test -n "$OBJDUMP"; then
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5183$as_echo "$OBJDUMP" >&6; }
5184else
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186$as_echo "no" >&6; }
5187fi
5188
5189
5190fi
5191if test -z "$ac_cv_prog_OBJDUMP"; then
5192 ac_ct_OBJDUMP=$OBJDUMP
5193 # Extract the first word of "objdump", so it can be a program name with args.
5194set dummy objdump; ac_word=$2
5195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196$as_echo_n "checking for $ac_word... " >&6; }
5197if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5198 $as_echo_n "(cached) " >&6
5199else
5200 if test -n "$ac_ct_OBJDUMP"; then
5201 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5202else
5203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204for as_dir in $PATH
5205do
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 break 2
5213 fi
5214done
5215 done
5216IFS=$as_save_IFS
5217
5218fi
5219fi
5220ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5221if test -n "$ac_ct_OBJDUMP"; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5223$as_echo "$ac_ct_OBJDUMP" >&6; }
5224else
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226$as_echo "no" >&6; }
5227fi
5228
5229 if test "x$ac_ct_OBJDUMP" = x; then
5230 OBJDUMP="false"
5231 else
5232 case $cross_compiling:$ac_tool_warned in
5233yes:)
5234{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5235$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5236ac_tool_warned=yes ;;
5237esac
5238 OBJDUMP=$ac_ct_OBJDUMP
5239 fi
5240else
5241 OBJDUMP="$ac_cv_prog_OBJDUMP"
5242fi
5243
5244test -z "$OBJDUMP" && OBJDUMP=objdump
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5255$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5256if ${lt_cv_deplibs_check_method+:} false; then :
5257 $as_echo_n "(cached) " >&6
5258else
5259 lt_cv_file_magic_cmd='$MAGIC_CMD'
5260lt_cv_file_magic_test_file=
5261lt_cv_deplibs_check_method='unknown'
5262# Need to set the preceding variable on all platforms that support
5263# interlibrary dependencies.
5264# 'none' -- dependencies not supported.
5265# `unknown' -- same as none, but documents that we really don't know.
5266# 'pass_all' -- all dependencies passed with no checks.
5267# 'test_compile' -- check by making test program.
5268# 'file_magic [[regex]]' -- check by looking for files in library path
5269# which responds to the $file_magic_cmd with a given extended regex.
5270# If you have `file' or equivalent on your system and you're not sure
5271# whether `pass_all' will *always* work, you probably want this one.
5272
5273case $host_os in
5274aix[4-9]*)
5275 lt_cv_deplibs_check_method=pass_all
5276 ;;
5277
5278beos*)
5279 lt_cv_deplibs_check_method=pass_all
5280 ;;
5281
5282bsdi[45]*)
5283 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5284 lt_cv_file_magic_cmd='/usr/bin/file -L'
5285 lt_cv_file_magic_test_file=/shlib/libc.so
5286 ;;
5287
5288cygwin*)
5289 # func_win32_libid is a shell function defined in ltmain.sh
5290 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5291 lt_cv_file_magic_cmd='func_win32_libid'
5292 ;;
5293
5294mingw* | pw32*)
5295 # Base MSYS/MinGW do not provide the 'file' command needed by
5296 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5297 # unless we find 'file', for example because we are cross-compiling.
5298 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5299 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5300 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5301 lt_cv_file_magic_cmd='func_win32_libid'
5302 else
5303 # Keep this pattern in sync with the one in func_win32_libid.
5304 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5305 lt_cv_file_magic_cmd='$OBJDUMP -f'
5306 fi
5307 ;;
5308
5309cegcc*)
5310 # use the weaker test based on 'objdump'. See mingw*.
5311 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5312 lt_cv_file_magic_cmd='$OBJDUMP -f'
5313 ;;
5314
5315darwin* | rhapsody*)
5316 lt_cv_deplibs_check_method=pass_all
5317 ;;
5318
5319freebsd* | dragonfly*)
5320 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5321 case $host_cpu in
5322 i*86 )
5323 # Not sure whether the presence of OpenBSD here was a mistake.
5324 # Let's accept both of them until this is cleared up.
5325 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5326 lt_cv_file_magic_cmd=/usr/bin/file
5327 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5328 ;;
5329 esac
5330 else
5331 lt_cv_deplibs_check_method=pass_all
5332 fi
5333 ;;
5334
5335gnu*)
5336 lt_cv_deplibs_check_method=pass_all
5337 ;;
5338
5339haiku*)
5340 lt_cv_deplibs_check_method=pass_all
5341 ;;
5342
5343hpux10.20* | hpux11*)
5344 lt_cv_file_magic_cmd=/usr/bin/file
5345 case $host_cpu in
5346 ia64*)
5347 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5348 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5349 ;;
5350 hppa*64*)
5351 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]'
5352 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5353 ;;
5354 *)
5355 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5356 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5357 ;;
5358 esac
5359 ;;
5360
5361interix[3-9]*)
5362 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5363 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5364 ;;
5365
5366irix5* | irix6* | nonstopux*)
5367 case $LD in
5368 *-32|*"-32 ") libmagic=32-bit;;
5369 *-n32|*"-n32 ") libmagic=N32;;
5370 *-64|*"-64 ") libmagic=64-bit;;
5371 *) libmagic=never-match;;
5372 esac
5373 lt_cv_deplibs_check_method=pass_all
5374 ;;
5375
5376# This must be glibc/ELF.
5377linux* | k*bsd*-gnu | kopensolaris*-gnu)
5378 lt_cv_deplibs_check_method=pass_all
5379 ;;
5380
5381netbsd*)
5382 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5383 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5384 else
5385 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5386 fi
5387 ;;
5388
5389newos6*)
5390 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5391 lt_cv_file_magic_cmd=/usr/bin/file
5392 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5393 ;;
5394
5395*nto* | *qnx*)
5396 lt_cv_deplibs_check_method=pass_all
5397 ;;
5398
5399openbsd*)
5400 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5401 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5402 else
5403 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5404 fi
5405 ;;
5406
5407osf3* | osf4* | osf5*)
5408 lt_cv_deplibs_check_method=pass_all
5409 ;;
5410
5411rdos*)
5412 lt_cv_deplibs_check_method=pass_all
5413 ;;
5414
5415solaris*)
5416 lt_cv_deplibs_check_method=pass_all
5417 ;;
5418
5419sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5420 lt_cv_deplibs_check_method=pass_all
5421 ;;
5422
5423sysv4 | sysv4.3*)
5424 case $host_vendor in
5425 motorola)
5426 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]'
5427 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5428 ;;
5429 ncr)
5430 lt_cv_deplibs_check_method=pass_all
5431 ;;
5432 sequent)
5433 lt_cv_file_magic_cmd='/bin/file'
5434 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5435 ;;
5436 sni)
5437 lt_cv_file_magic_cmd='/bin/file'
5438 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5439 lt_cv_file_magic_test_file=/lib/libc.so
5440 ;;
5441 siemens)
5442 lt_cv_deplibs_check_method=pass_all
5443 ;;
5444 pc)
5445 lt_cv_deplibs_check_method=pass_all
5446 ;;
5447 esac
5448 ;;
5449
5450tpf*)
5451 lt_cv_deplibs_check_method=pass_all
5452 ;;
5453esac
5454
5455fi
5456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5457$as_echo "$lt_cv_deplibs_check_method" >&6; }
5458
5459file_magic_glob=
5460want_nocaseglob=no
5461if test "$build" = "$host"; then
5462 case $host_os in
5463 mingw* | pw32*)
5464 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5465 want_nocaseglob=yes
5466 else
5467 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5468 fi
5469 ;;
5470 esac
5471fi
5472
5473file_magic_cmd=$lt_cv_file_magic_cmd
5474deplibs_check_method=$lt_cv_deplibs_check_method
5475test -z "$deplibs_check_method" && deplibs_check_method=unknown
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498if test -n "$ac_tool_prefix"; then
5499 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5500set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5502$as_echo_n "checking for $ac_word... " >&6; }
5503if ${ac_cv_prog_DLLTOOL+:} false; then :
5504 $as_echo_n "(cached) " >&6
5505else
5506 if test -n "$DLLTOOL"; then
5507 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5508else
5509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510for as_dir in $PATH
5511do
5512 IFS=$as_save_IFS
5513 test -z "$as_dir" && as_dir=.
5514 for ac_exec_ext in '' $ac_executable_extensions; do
5515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5516 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5518 break 2
5519 fi
5520done
5521 done
5522IFS=$as_save_IFS
5523
5524fi
5525fi
5526DLLTOOL=$ac_cv_prog_DLLTOOL
5527if test -n "$DLLTOOL"; then
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5529$as_echo "$DLLTOOL" >&6; }
5530else
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5532$as_echo "no" >&6; }
5533fi
5534
5535
5536fi
5537if test -z "$ac_cv_prog_DLLTOOL"; then
5538 ac_ct_DLLTOOL=$DLLTOOL
5539 # Extract the first word of "dlltool", so it can be a program name with args.
5540set dummy dlltool; ac_word=$2
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5542$as_echo_n "checking for $ac_word... " >&6; }
5543if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5544 $as_echo_n "(cached) " >&6
5545else
5546 if test -n "$ac_ct_DLLTOOL"; then
5547 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5548else
5549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550for as_dir in $PATH
5551do
5552 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5556 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 break 2
5559 fi
5560done
5561 done
5562IFS=$as_save_IFS
5563
5564fi
5565fi
5566ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5567if test -n "$ac_ct_DLLTOOL"; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5569$as_echo "$ac_ct_DLLTOOL" >&6; }
5570else
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572$as_echo "no" >&6; }
5573fi
5574
5575 if test "x$ac_ct_DLLTOOL" = x; then
5576 DLLTOOL="false"
5577 else
5578 case $cross_compiling:$ac_tool_warned in
5579yes:)
5580{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5582ac_tool_warned=yes ;;
5583esac
5584 DLLTOOL=$ac_ct_DLLTOOL
5585 fi
5586else
5587 DLLTOOL="$ac_cv_prog_DLLTOOL"
5588fi
5589
5590test -z "$DLLTOOL" && DLLTOOL=dlltool
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5602$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5603if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5604 $as_echo_n "(cached) " >&6
5605else
5606 lt_cv_sharedlib_from_linklib_cmd='unknown'
5607
5608case $host_os in
5609cygwin* | mingw* | pw32* | cegcc*)
5610 # two different shell functions defined in ltmain.sh
5611 # decide which to use based on capabilities of $DLLTOOL
5612 case `$DLLTOOL --help 2>&1` in
5613 *--identify-strict*)
5614 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5615 ;;
5616 *)
5617 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5618 ;;
5619 esac
5620 ;;
5621*)
5622 # fallback: assume linklib IS sharedlib
5623 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5624 ;;
5625esac
5626
5627fi
5628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5629$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5630sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5631test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5632
5633
5634
5635
5636
5637
5638
5639if test -n "$ac_tool_prefix"; then
5640 for ac_prog in ar
5641 do
5642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5643set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5645$as_echo_n "checking for $ac_word... " >&6; }
5646if ${ac_cv_prog_AR+:} false; then :
5647 $as_echo_n "(cached) " >&6
5648else
5649 if test -n "$AR"; then
5650 ac_cv_prog_AR="$AR" # Let the user override the test.
5651else
5652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653for as_dir in $PATH
5654do
5655 IFS=$as_save_IFS
5656 test -z "$as_dir" && as_dir=.
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5659 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5661 break 2
5662 fi
5663done
5664 done
5665IFS=$as_save_IFS
5666
5667fi
5668fi
5669AR=$ac_cv_prog_AR
5670if test -n "$AR"; then
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5672$as_echo "$AR" >&6; }
5673else
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675$as_echo "no" >&6; }
5676fi
5677
5678
5679 test -n "$AR" && break
5680 done
5681fi
5682if test -z "$AR"; then
5683 ac_ct_AR=$AR
5684 for ac_prog in ar
5685do
5686 # Extract the first word of "$ac_prog", so it can be a program name with args.
5687set dummy $ac_prog; ac_word=$2
5688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5689$as_echo_n "checking for $ac_word... " >&6; }
5690if ${ac_cv_prog_ac_ct_AR+:} false; then :
5691 $as_echo_n "(cached) " >&6
5692else
5693 if test -n "$ac_ct_AR"; then
5694 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5695else
5696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697for as_dir in $PATH
5698do
5699 IFS=$as_save_IFS
5700 test -z "$as_dir" && as_dir=.
5701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5703 ac_cv_prog_ac_ct_AR="$ac_prog"
5704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5705 break 2
5706 fi
5707done
5708 done
5709IFS=$as_save_IFS
5710
5711fi
5712fi
5713ac_ct_AR=$ac_cv_prog_ac_ct_AR
5714if test -n "$ac_ct_AR"; then
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5716$as_echo "$ac_ct_AR" >&6; }
5717else
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5719$as_echo "no" >&6; }
5720fi
5721
5722
5723 test -n "$ac_ct_AR" && break
5724done
5725
5726 if test "x$ac_ct_AR" = x; then
5727 AR="false"
5728 else
5729 case $cross_compiling:$ac_tool_warned in
5730yes:)
5731{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5732$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5733ac_tool_warned=yes ;;
5734esac
5735 AR=$ac_ct_AR
5736 fi
5737fi
5738
5739: ${AR=ar}
5740: ${AR_FLAGS=cru}
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5753$as_echo_n "checking for archiver @FILE support... " >&6; }
5754if ${lt_cv_ar_at_file+:} false; then :
5755 $as_echo_n "(cached) " >&6
5756else
5757 lt_cv_ar_at_file=no
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759/* end confdefs.h. */
5760
5761int
5762main ()
5763{
5764
5765 ;
5766 return 0;
5767}
5768_ACEOF
5769if ac_fn_c_try_compile "$LINENO"; then :
5770 echo conftest.$ac_objext > conftest.lst
5771 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5773 (eval $lt_ar_try) 2>&5
5774 ac_status=$?
5775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5776 test $ac_status = 0; }
5777 if test "$ac_status" -eq 0; then
5778 # Ensure the archiver fails upon bogus file names.
5779 rm -f conftest.$ac_objext libconftest.a
5780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5781 (eval $lt_ar_try) 2>&5
5782 ac_status=$?
5783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5784 test $ac_status = 0; }
5785 if test "$ac_status" -ne 0; then
5786 lt_cv_ar_at_file=@
5787 fi
5788 fi
5789 rm -f conftest.* libconftest.a
5790
5791fi
5792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5793
5794fi
5795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5796$as_echo "$lt_cv_ar_at_file" >&6; }
5797
5798if test "x$lt_cv_ar_at_file" = xno; then
5799 archiver_list_spec=
5800else
5801 archiver_list_spec=$lt_cv_ar_at_file
5802fi
5803
5804
5805
5806
5807
5808
5809
5810if test -n "$ac_tool_prefix"; then
5811 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5812set dummy ${ac_tool_prefix}strip; ac_word=$2
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814$as_echo_n "checking for $ac_word... " >&6; }
5815if ${ac_cv_prog_STRIP+:} false; then :
5816 $as_echo_n "(cached) " >&6
5817else
5818 if test -n "$STRIP"; then
5819 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5820else
5821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822for as_dir in $PATH
5823do
5824 IFS=$as_save_IFS
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5828 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 break 2
5831 fi
5832done
5833 done
5834IFS=$as_save_IFS
5835
5836fi
5837fi
5838STRIP=$ac_cv_prog_STRIP
5839if test -n "$STRIP"; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5841$as_echo "$STRIP" >&6; }
5842else
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844$as_echo "no" >&6; }
5845fi
5846
5847
5848fi
5849if test -z "$ac_cv_prog_STRIP"; then
5850 ac_ct_STRIP=$STRIP
5851 # Extract the first word of "strip", so it can be a program name with args.
5852set dummy strip; ac_word=$2
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854$as_echo_n "checking for $ac_word... " >&6; }
5855if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5856 $as_echo_n "(cached) " >&6
5857else
5858 if test -n "$ac_ct_STRIP"; then
5859 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5860else
5861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862for as_dir in $PATH
5863do
5864 IFS=$as_save_IFS
5865 test -z "$as_dir" && as_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5868 ac_cv_prog_ac_ct_STRIP="strip"
5869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 break 2
5871 fi
5872done
5873 done
5874IFS=$as_save_IFS
5875
5876fi
5877fi
5878ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5879if test -n "$ac_ct_STRIP"; then
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5881$as_echo "$ac_ct_STRIP" >&6; }
5882else
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884$as_echo "no" >&6; }
5885fi
5886
5887 if test "x$ac_ct_STRIP" = x; then
5888 STRIP=":"
5889 else
5890 case $cross_compiling:$ac_tool_warned in
5891yes:)
5892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5894ac_tool_warned=yes ;;
5895esac
5896 STRIP=$ac_ct_STRIP
5897 fi
5898else
5899 STRIP="$ac_cv_prog_STRIP"
5900fi
5901
5902test -z "$STRIP" && STRIP=:
5903
5904
5905
5906
5907
5908
5909if test -n "$ac_tool_prefix"; then
5910 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5911set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5913$as_echo_n "checking for $ac_word... " >&6; }
5914if ${ac_cv_prog_RANLIB+:} false; then :
5915 $as_echo_n "(cached) " >&6
5916else
5917 if test -n "$RANLIB"; then
5918 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5919else
5920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921for as_dir in $PATH
5922do
5923 IFS=$as_save_IFS
5924 test -z "$as_dir" && as_dir=.
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5927 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5929 break 2
5930 fi
5931done
5932 done
5933IFS=$as_save_IFS
5934
5935fi
5936fi
5937RANLIB=$ac_cv_prog_RANLIB
5938if test -n "$RANLIB"; then
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5940$as_echo "$RANLIB" >&6; }
5941else
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5943$as_echo "no" >&6; }
5944fi
5945
5946
5947fi
5948if test -z "$ac_cv_prog_RANLIB"; then
5949 ac_ct_RANLIB=$RANLIB
5950 # Extract the first word of "ranlib", so it can be a program name with args.
5951set dummy ranlib; ac_word=$2
5952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5953$as_echo_n "checking for $ac_word... " >&6; }
5954if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5955 $as_echo_n "(cached) " >&6
5956else
5957 if test -n "$ac_ct_RANLIB"; then
5958 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5959else
5960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961for as_dir in $PATH
5962do
5963 IFS=$as_save_IFS
5964 test -z "$as_dir" && as_dir=.
5965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5967 ac_cv_prog_ac_ct_RANLIB="ranlib"
5968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5969 break 2
5970 fi
5971done
5972 done
5973IFS=$as_save_IFS
5974
5975fi
5976fi
5977ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5978if test -n "$ac_ct_RANLIB"; then
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5980$as_echo "$ac_ct_RANLIB" >&6; }
5981else
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983$as_echo "no" >&6; }
5984fi
5985
5986 if test "x$ac_ct_RANLIB" = x; then
5987 RANLIB=":"
5988 else
5989 case $cross_compiling:$ac_tool_warned in
5990yes:)
5991{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5992$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5993ac_tool_warned=yes ;;
5994esac
5995 RANLIB=$ac_ct_RANLIB
5996 fi
5997else
5998 RANLIB="$ac_cv_prog_RANLIB"
5999fi
6000
6001test -z "$RANLIB" && RANLIB=:
6002
6003
6004
6005
6006
6007
6008# Determine commands to create old-style static archives.
6009old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6010old_postinstall_cmds='chmod 644 $oldlib'
6011old_postuninstall_cmds=
6012
6013if test -n "$RANLIB"; then
6014 case $host_os in
6015 openbsd*)
6016 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6017 ;;
6018 *)
6019 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6020 ;;
6021 esac
6022 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6023fi
6024
6025case $host_os in
6026 darwin*)
6027 lock_old_archive_extraction=yes ;;
6028 *)
6029 lock_old_archive_extraction=no ;;
6030esac
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070# If no C compiler was specified, use CC.
6071LTCC=${LTCC-"$CC"}
6072
6073# If no C compiler flags were specified, use CFLAGS.
6074LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6075
6076# Allow CC to be a program name with arguments.
6077compiler=$CC
6078
6079
6080# Check for command to grab the raw symbol name followed by C symbol from nm.
6081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6082$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6083if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6084 $as_echo_n "(cached) " >&6
6085else
6086
6087# These are sane defaults that work on at least a few old systems.
6088# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6089
6090# Character class describing NM global symbol codes.
6091symcode='[BCDEGRST]'
6092
6093# Regexp to match symbols that can be accessed directly from C.
6094sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6095
6096# Define system-specific variables.
6097case $host_os in
6098aix*)
6099 symcode='[BCDT]'
6100 ;;
6101cygwin* | mingw* | pw32* | cegcc*)
6102 symcode='[ABCDGISTW]'
6103 ;;
6104hpux*)
6105 if test "$host_cpu" = ia64; then
6106 symcode='[ABCDEGRST]'
6107 fi
6108 ;;
6109irix* | nonstopux*)
6110 symcode='[BCDEGRST]'
6111 ;;
6112osf*)
6113 symcode='[BCDEGQRST]'
6114 ;;
6115solaris*)
6116 symcode='[BDRT]'
6117 ;;
6118sco3.2v5*)
6119 symcode='[DT]'
6120 ;;
6121sysv4.2uw2*)
6122 symcode='[DT]'
6123 ;;
6124sysv5* | sco5v6* | unixware* | OpenUNIX*)
6125 symcode='[ABDT]'
6126 ;;
6127sysv4)
6128 symcode='[DFNSTU]'
6129 ;;
6130esac
6131
6132# If we're using GNU nm, then use its standard symbol codes.
6133case `$NM -V 2>&1` in
6134*GNU* | *'with BFD'*)
6135 symcode='[ABCDGIRSTW]' ;;
6136esac
6137
6138# Transform an extracted symbol line into a proper C declaration.
6139# Some systems (esp. on ia64) link data and code symbols differently,
6140# so use this general approach.
6141lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6142
6143# Transform an extracted symbol line into symbol name and symbol address
6144lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6145lt_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'"
6146
6147# Handle CRLF in mingw tool chain
6148opt_cr=
6149case $build_os in
6150mingw*)
6151 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6152 ;;
6153esac
6154
6155# Try without a prefix underscore, then with it.
6156for ac_symprfx in "" "_"; do
6157
6158 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6159 symxfrm="\\1 $ac_symprfx\\2 \\2"
6160
6161 # Write the raw and C identifiers.
6162 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6163 # Fake it for dumpbin and say T for any non-static function
6164 # and D for any global variable.
6165 # Also find C++ and __fastcall symbols from MSVC++,
6166 # which start with @ or ?.
6167 lt_cv_sys_global_symbol_pipe="$AWK '"\
6168" {last_section=section; section=\$ 3};"\
6169" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6170" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6171" \$ 0!~/External *\|/{next};"\
6172" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6173" {if(hide[section]) next};"\
6174" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6175" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6176" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6177" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6178" ' prfx=^$ac_symprfx"
6179 else
6180 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6181 fi
6182 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6183
6184 # Check to see that the pipe works correctly.
6185 pipe_works=no
6186
6187 rm -f conftest*
6188 cat > conftest.$ac_ext <<_LT_EOF
6189#ifdef __cplusplus
6190extern "C" {
6191#endif
6192char nm_test_var;
6193void nm_test_func(void);
6194void nm_test_func(void){}
6195#ifdef __cplusplus
6196}
6197#endif
6198int main(){nm_test_var='a';nm_test_func();return(0);}
6199_LT_EOF
6200
6201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6202 (eval $ac_compile) 2>&5
6203 ac_status=$?
6204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6205 test $ac_status = 0; }; then
6206 # Now try to grab the symbols.
6207 nlist=conftest.nm
6208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6209 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6210 ac_status=$?
6211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6212 test $ac_status = 0; } && test -s "$nlist"; then
6213 # Try sorting and uniquifying the output.
6214 if sort "$nlist" | uniq > "$nlist"T; then
6215 mv -f "$nlist"T "$nlist"
6216 else
6217 rm -f "$nlist"T
6218 fi
6219
6220 # Make sure that we snagged all the symbols we need.
6221 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6222 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6223 cat <<_LT_EOF > conftest.$ac_ext
6224/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6225#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6226/* DATA imports from DLLs on WIN32 con't be const, because runtime
6227 relocations are performed -- see ld's documentation on pseudo-relocs. */
6228# define LT_DLSYM_CONST
6229#elif defined(__osf__)
6230/* This system does not cope well with relocations in const data. */
6231# define LT_DLSYM_CONST
6232#else
6233# define LT_DLSYM_CONST const
6234#endif
6235
6236#ifdef __cplusplus
6237extern "C" {
6238#endif
6239
6240_LT_EOF
6241 # Now generate the symbol file.
6242 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6243
6244 cat <<_LT_EOF >> conftest.$ac_ext
6245
6246/* The mapping between symbol names and symbols. */
6247LT_DLSYM_CONST struct {
6248 const char *name;
6249 void *address;
6250}
6251lt__PROGRAM__LTX_preloaded_symbols[] =
6252{
6253 { "@PROGRAM@", (void *) 0 },
6254_LT_EOF
6255 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6256 cat <<\_LT_EOF >> conftest.$ac_ext
6257 {0, (void *) 0}
6258};
6259
6260/* This works around a problem in FreeBSD linker */
6261#ifdef FREEBSD_WORKAROUND
6262static const void *lt_preloaded_setup() {
6263 return lt__PROGRAM__LTX_preloaded_symbols;
6264}
6265#endif
6266
6267#ifdef __cplusplus
6268}
6269#endif
6270_LT_EOF
6271 # Now try linking the two files.
6272 mv conftest.$ac_objext conftstm.$ac_objext
6273 lt_globsym_save_LIBS=$LIBS
6274 lt_globsym_save_CFLAGS=$CFLAGS
6275 LIBS="conftstm.$ac_objext"
6276 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6278 (eval $ac_link) 2>&5
6279 ac_status=$?
6280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6281 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6282 pipe_works=yes
6283 fi
6284 LIBS=$lt_globsym_save_LIBS
6285 CFLAGS=$lt_globsym_save_CFLAGS
6286 else
6287 echo "cannot find nm_test_func in $nlist" >&5
6288 fi
6289 else
6290 echo "cannot find nm_test_var in $nlist" >&5
6291 fi
6292 else
6293 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6294 fi
6295 else
6296 echo "$progname: failed program was:" >&5
6297 cat conftest.$ac_ext >&5
6298 fi
6299 rm -rf conftest* conftst*
6300
6301 # Do not use the global_symbol_pipe unless it works.
6302 if test "$pipe_works" = yes; then
6303 break
6304 else
6305 lt_cv_sys_global_symbol_pipe=
6306 fi
6307done
6308
6309fi
6310
6311if test -z "$lt_cv_sys_global_symbol_pipe"; then
6312 lt_cv_sys_global_symbol_to_cdecl=
6313fi
6314if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6316$as_echo "failed" >&6; }
6317else
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6319$as_echo "ok" >&6; }
6320fi
6321
6322# Response file support.
6323if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6324 nm_file_list_spec='@'
6325elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6326 nm_file_list_spec='@'
6327fi
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6356$as_echo_n "checking for sysroot... " >&6; }
6357
6358# Check whether --with-sysroot was given.
6359if test "${with_sysroot+set}" = set; then :
6360 withval=$with_sysroot;
6361else
6362 with_sysroot=no
6363fi
6364
6365
6366lt_sysroot=
6367case ${with_sysroot} in #(
6368 yes)
6369 if test "$GCC" = yes; then
6370 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6371 fi
6372 ;; #(
6373 /*)
6374 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6375 ;; #(
6376 no|'')
6377 ;; #(
6378 *)
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6380$as_echo "${with_sysroot}" >&6; }
6381 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6382 ;;
6383esac
6384
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6386$as_echo "${lt_sysroot:-no}" >&6; }
6387
6388
6389
6390
6391
6392# Check whether --enable-libtool-lock was given.
6393if test "${enable_libtool_lock+set}" = set; then :
6394 enableval=$enable_libtool_lock;
6395fi
6396
6397test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6398
6399# Some flags need to be propagated to the compiler or linker for good
6400# libtool support.
6401case $host in
6402ia64-*-hpux*)
6403 # Find out which ABI we are using.
6404 echo 'int i;' > conftest.$ac_ext
6405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6406 (eval $ac_compile) 2>&5
6407 ac_status=$?
6408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6409 test $ac_status = 0; }; then
6410 case `/usr/bin/file conftest.$ac_objext` in
6411 *ELF-32*)
6412 HPUX_IA64_MODE="32"
6413 ;;
6414 *ELF-64*)
6415 HPUX_IA64_MODE="64"
6416 ;;
6417 esac
6418 fi
6419 rm -rf conftest*
6420 ;;
6421*-*-irix6*)
6422 # Find out which ABI we are using.
6423 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6424 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6425 (eval $ac_compile) 2>&5
6426 ac_status=$?
6427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6428 test $ac_status = 0; }; then
6429 if test "$lt_cv_prog_gnu_ld" = yes; then
6430 case `/usr/bin/file conftest.$ac_objext` in
6431 *32-bit*)
6432 LD="${LD-ld} -melf32bsmip"
6433 ;;
6434 *N32*)
6435 LD="${LD-ld} -melf32bmipn32"
6436 ;;
6437 *64-bit*)
6438 LD="${LD-ld} -melf64bmip"
6439 ;;
6440 esac
6441 else
6442 case `/usr/bin/file conftest.$ac_objext` in
6443 *32-bit*)
6444 LD="${LD-ld} -32"
6445 ;;
6446 *N32*)
6447 LD="${LD-ld} -n32"
6448 ;;
6449 *64-bit*)
6450 LD="${LD-ld} -64"
6451 ;;
6452 esac
6453 fi
6454 fi
6455 rm -rf conftest*
6456 ;;
6457
6458x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6459s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6460 # Find out which ABI we are using.
6461 echo 'int i;' > conftest.$ac_ext
6462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6463 (eval $ac_compile) 2>&5
6464 ac_status=$?
6465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6466 test $ac_status = 0; }; then
6467 case `/usr/bin/file conftest.o` in
6468 *32-bit*)
6469 case $host in
6470 x86_64-*kfreebsd*-gnu)
6471 LD="${LD-ld} -m elf_i386_fbsd"
6472 ;;
6473 x86_64-*linux*)
6474 LD="${LD-ld} -m elf_i386"
6475 ;;
6476 ppc64-*linux*|powerpc64-*linux*)
6477 LD="${LD-ld} -m elf32ppclinux"
6478 ;;
6479 s390x-*linux*)
6480 LD="${LD-ld} -m elf_s390"
6481 ;;
6482 sparc64-*linux*)
6483 LD="${LD-ld} -m elf32_sparc"
6484 ;;
6485 esac
6486 ;;
6487 *64-bit*)
6488 case $host in
6489 x86_64-*kfreebsd*-gnu)
6490 LD="${LD-ld} -m elf_x86_64_fbsd"
6491 ;;
6492 x86_64-*linux*)
6493 LD="${LD-ld} -m elf_x86_64"
6494 ;;
6495 ppc*-*linux*|powerpc*-*linux*)
6496 LD="${LD-ld} -m elf64ppc"
6497 ;;
6498 s390*-*linux*|s390*-*tpf*)
6499 LD="${LD-ld} -m elf64_s390"
6500 ;;
6501 sparc*-*linux*)
6502 LD="${LD-ld} -m elf64_sparc"
6503 ;;
6504 esac
6505 ;;
6506 esac
6507 fi
6508 rm -rf conftest*
6509 ;;
6510
6511*-*-sco3.2v5*)
6512 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6513 SAVE_CFLAGS="$CFLAGS"
6514 CFLAGS="$CFLAGS -belf"
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6516$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6517if ${lt_cv_cc_needs_belf+:} false; then :
6518 $as_echo_n "(cached) " >&6
6519else
6520 ac_ext=c
6521ac_cpp='$CPP $CPPFLAGS'
6522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6524ac_compiler_gnu=$ac_cv_c_compiler_gnu
6525
6526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6527/* end confdefs.h. */
6528
6529int
6530main ()
6531{
6532
6533 ;
6534 return 0;
6535}
6536_ACEOF
6537if ac_fn_c_try_link "$LINENO"; then :
6538 lt_cv_cc_needs_belf=yes
6539else
6540 lt_cv_cc_needs_belf=no
6541fi
6542rm -f core conftest.err conftest.$ac_objext \
6543 conftest$ac_exeext conftest.$ac_ext
6544 ac_ext=c
6545ac_cpp='$CPP $CPPFLAGS'
6546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6548ac_compiler_gnu=$ac_cv_c_compiler_gnu
6549
6550fi
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6552$as_echo "$lt_cv_cc_needs_belf" >&6; }
6553 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6554 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6555 CFLAGS="$SAVE_CFLAGS"
6556 fi
6557 ;;
6558*-*solaris*)
6559 # Find out which ABI we are using.
6560 echo 'int i;' > conftest.$ac_ext
6561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6562 (eval $ac_compile) 2>&5
6563 ac_status=$?
6564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6565 test $ac_status = 0; }; then
6566 case `/usr/bin/file conftest.o` in
6567 *64-bit*)
6568 case $lt_cv_prog_gnu_ld in
6569 yes*)
6570 case $host in
6571 i?86-*-solaris*)
6572 LD="${LD-ld} -m elf_x86_64"
6573 ;;
6574 sparc*-*-solaris*)
6575 LD="${LD-ld} -m elf64_sparc"
6576 ;;
6577 esac
6578 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6579 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6580 LD="${LD-ld}_sol2"
6581 fi
6582 ;;
6583 *)
6584 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6585 LD="${LD-ld} -64"
6586 fi
6587 ;;
6588 esac
6589 ;;
6590 esac
6591 fi
6592 rm -rf conftest*
6593 ;;
6594esac
6595
6596need_locks="$enable_libtool_lock"
6597
6598if test -n "$ac_tool_prefix"; then
6599 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6600set dummy ${ac_tool_prefix}mt; ac_word=$2
6601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6602$as_echo_n "checking for $ac_word... " >&6; }
6603if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6604 $as_echo_n "(cached) " >&6
6605else
6606 if test -n "$MANIFEST_TOOL"; then
6607 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6608else
6609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610for as_dir in $PATH
6611do
6612 IFS=$as_save_IFS
6613 test -z "$as_dir" && as_dir=.
6614 for ac_exec_ext in '' $ac_executable_extensions; do
6615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6616 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6618 break 2
6619 fi
6620done
6621 done
6622IFS=$as_save_IFS
6623
6624fi
6625fi
6626MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6627if test -n "$MANIFEST_TOOL"; then
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6629$as_echo "$MANIFEST_TOOL" >&6; }
6630else
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6632$as_echo "no" >&6; }
6633fi
6634
6635
6636fi
6637if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6638 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6639 # Extract the first word of "mt", so it can be a program name with args.
6640set dummy mt; ac_word=$2
6641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6642$as_echo_n "checking for $ac_word... " >&6; }
6643if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6644 $as_echo_n "(cached) " >&6
6645else
6646 if test -n "$ac_ct_MANIFEST_TOOL"; then
6647 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6648else
6649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650for as_dir in $PATH
6651do
6652 IFS=$as_save_IFS
6653 test -z "$as_dir" && as_dir=.
6654 for ac_exec_ext in '' $ac_executable_extensions; do
6655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6656 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6658 break 2
6659 fi
6660done
6661 done
6662IFS=$as_save_IFS
6663
6664fi
6665fi
6666ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6667if test -n "$ac_ct_MANIFEST_TOOL"; then
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6669$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6670else
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6672$as_echo "no" >&6; }
6673fi
6674
6675 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6676 MANIFEST_TOOL=":"
6677 else
6678 case $cross_compiling:$ac_tool_warned in
6679yes:)
6680{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6681$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6682ac_tool_warned=yes ;;
6683esac
6684 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6685 fi
6686else
6687 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6688fi
6689
6690test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6692$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6693if ${lt_cv_path_mainfest_tool+:} false; then :
6694 $as_echo_n "(cached) " >&6
6695else
6696 lt_cv_path_mainfest_tool=no
6697 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6698 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6699 cat conftest.err >&5
6700 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6701 lt_cv_path_mainfest_tool=yes
6702 fi
6703 rm -f conftest*
6704fi
6705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6706$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6707if test "x$lt_cv_path_mainfest_tool" != xyes; then
6708 MANIFEST_TOOL=:
6709fi
6710
6711
6712
6713
6714
6715
6716 case $host_os in
6717 rhapsody* | darwin*)
6718 if test -n "$ac_tool_prefix"; then
6719 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6720set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722$as_echo_n "checking for $ac_word... " >&6; }
6723if ${ac_cv_prog_DSYMUTIL+:} false; then :
6724 $as_echo_n "(cached) " >&6
6725else
6726 if test -n "$DSYMUTIL"; then
6727 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6728else
6729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730for as_dir in $PATH
6731do
6732 IFS=$as_save_IFS
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6736 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 break 2
6739 fi
6740done
6741 done
6742IFS=$as_save_IFS
6743
6744fi
6745fi
6746DSYMUTIL=$ac_cv_prog_DSYMUTIL
6747if test -n "$DSYMUTIL"; then
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6749$as_echo "$DSYMUTIL" >&6; }
6750else
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752$as_echo "no" >&6; }
6753fi
6754
6755
6756fi
6757if test -z "$ac_cv_prog_DSYMUTIL"; then
6758 ac_ct_DSYMUTIL=$DSYMUTIL
6759 # Extract the first word of "dsymutil", so it can be a program name with args.
6760set dummy dsymutil; ac_word=$2
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6762$as_echo_n "checking for $ac_word... " >&6; }
6763if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6764 $as_echo_n "(cached) " >&6
6765else
6766 if test -n "$ac_ct_DSYMUTIL"; then
6767 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6768else
6769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770for as_dir in $PATH
6771do
6772 IFS=$as_save_IFS
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
6775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6776 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 break 2
6779 fi
6780done
6781 done
6782IFS=$as_save_IFS
6783
6784fi
6785fi
6786ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6787if test -n "$ac_ct_DSYMUTIL"; then
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6789$as_echo "$ac_ct_DSYMUTIL" >&6; }
6790else
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6792$as_echo "no" >&6; }
6793fi
6794
6795 if test "x$ac_ct_DSYMUTIL" = x; then
6796 DSYMUTIL=":"
6797 else
6798 case $cross_compiling:$ac_tool_warned in
6799yes:)
6800{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6801$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6802ac_tool_warned=yes ;;
6803esac
6804 DSYMUTIL=$ac_ct_DSYMUTIL
6805 fi
6806else
6807 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6808fi
6809
6810 if test -n "$ac_tool_prefix"; then
6811 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6812set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814$as_echo_n "checking for $ac_word... " >&6; }
6815if ${ac_cv_prog_NMEDIT+:} false; then :
6816 $as_echo_n "(cached) " >&6
6817else
6818 if test -n "$NMEDIT"; then
6819 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6820else
6821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822for as_dir in $PATH
6823do
6824 IFS=$as_save_IFS
6825 test -z "$as_dir" && as_dir=.
6826 for ac_exec_ext in '' $ac_executable_extensions; do
6827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6828 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6830 break 2
6831 fi
6832done
6833 done
6834IFS=$as_save_IFS
6835
6836fi
6837fi
6838NMEDIT=$ac_cv_prog_NMEDIT
6839if test -n "$NMEDIT"; then
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6841$as_echo "$NMEDIT" >&6; }
6842else
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6844$as_echo "no" >&6; }
6845fi
6846
6847
6848fi
6849if test -z "$ac_cv_prog_NMEDIT"; then
6850 ac_ct_NMEDIT=$NMEDIT
6851 # Extract the first word of "nmedit", so it can be a program name with args.
6852set dummy nmedit; ac_word=$2
6853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6854$as_echo_n "checking for $ac_word... " >&6; }
6855if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6856 $as_echo_n "(cached) " >&6
6857else
6858 if test -n "$ac_ct_NMEDIT"; then
6859 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6860else
6861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862for as_dir in $PATH
6863do
6864 IFS=$as_save_IFS
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6868 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6870 break 2
6871 fi
6872done
6873 done
6874IFS=$as_save_IFS
6875
6876fi
6877fi
6878ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6879if test -n "$ac_ct_NMEDIT"; then
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6881$as_echo "$ac_ct_NMEDIT" >&6; }
6882else
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884$as_echo "no" >&6; }
6885fi
6886
6887 if test "x$ac_ct_NMEDIT" = x; then
6888 NMEDIT=":"
6889 else
6890 case $cross_compiling:$ac_tool_warned in
6891yes:)
6892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6894ac_tool_warned=yes ;;
6895esac
6896 NMEDIT=$ac_ct_NMEDIT
6897 fi
6898else
6899 NMEDIT="$ac_cv_prog_NMEDIT"
6900fi
6901
6902 if test -n "$ac_tool_prefix"; then
6903 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6904set dummy ${ac_tool_prefix}lipo; ac_word=$2
6905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6906$as_echo_n "checking for $ac_word... " >&6; }
6907if ${ac_cv_prog_LIPO+:} false; then :
6908 $as_echo_n "(cached) " >&6
6909else
6910 if test -n "$LIPO"; then
6911 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6912else
6913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914for as_dir in $PATH
6915do
6916 IFS=$as_save_IFS
6917 test -z "$as_dir" && as_dir=.
6918 for ac_exec_ext in '' $ac_executable_extensions; do
6919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6920 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 break 2
6923 fi
6924done
6925 done
6926IFS=$as_save_IFS
6927
6928fi
6929fi
6930LIPO=$ac_cv_prog_LIPO
6931if test -n "$LIPO"; then
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6933$as_echo "$LIPO" >&6; }
6934else
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6936$as_echo "no" >&6; }
6937fi
6938
6939
6940fi
6941if test -z "$ac_cv_prog_LIPO"; then
6942 ac_ct_LIPO=$LIPO
6943 # Extract the first word of "lipo", so it can be a program name with args.
6944set dummy lipo; ac_word=$2
6945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6946$as_echo_n "checking for $ac_word... " >&6; }
6947if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6948 $as_echo_n "(cached) " >&6
6949else
6950 if test -n "$ac_ct_LIPO"; then
6951 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6952else
6953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954for as_dir in $PATH
6955do
6956 IFS=$as_save_IFS
6957 test -z "$as_dir" && as_dir=.
6958 for ac_exec_ext in '' $ac_executable_extensions; do
6959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6960 ac_cv_prog_ac_ct_LIPO="lipo"
6961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6962 break 2
6963 fi
6964done
6965 done
6966IFS=$as_save_IFS
6967
6968fi
6969fi
6970ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6971if test -n "$ac_ct_LIPO"; then
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6973$as_echo "$ac_ct_LIPO" >&6; }
6974else
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6976$as_echo "no" >&6; }
6977fi
6978
6979 if test "x$ac_ct_LIPO" = x; then
6980 LIPO=":"
6981 else
6982 case $cross_compiling:$ac_tool_warned in
6983yes:)
6984{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6985$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6986ac_tool_warned=yes ;;
6987esac
6988 LIPO=$ac_ct_LIPO
6989 fi
6990else
6991 LIPO="$ac_cv_prog_LIPO"
6992fi
6993
6994 if test -n "$ac_tool_prefix"; then
6995 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6996set dummy ${ac_tool_prefix}otool; ac_word=$2
6997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6998$as_echo_n "checking for $ac_word... " >&6; }
6999if ${ac_cv_prog_OTOOL+:} false; then :
7000 $as_echo_n "(cached) " >&6
7001else
7002 if test -n "$OTOOL"; then
7003 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7004else
7005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006for as_dir in $PATH
7007do
7008 IFS=$as_save_IFS
7009 test -z "$as_dir" && as_dir=.
7010 for ac_exec_ext in '' $ac_executable_extensions; do
7011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7012 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 break 2
7015 fi
7016done
7017 done
7018IFS=$as_save_IFS
7019
7020fi
7021fi
7022OTOOL=$ac_cv_prog_OTOOL
7023if test -n "$OTOOL"; then
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7025$as_echo "$OTOOL" >&6; }
7026else
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7028$as_echo "no" >&6; }
7029fi
7030
7031
7032fi
7033if test -z "$ac_cv_prog_OTOOL"; then
7034 ac_ct_OTOOL=$OTOOL
7035 # Extract the first word of "otool", so it can be a program name with args.
7036set dummy otool; ac_word=$2
7037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7038$as_echo_n "checking for $ac_word... " >&6; }
7039if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7040 $as_echo_n "(cached) " >&6
7041else
7042 if test -n "$ac_ct_OTOOL"; then
7043 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7044else
7045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046for as_dir in $PATH
7047do
7048 IFS=$as_save_IFS
7049 test -z "$as_dir" && as_dir=.
7050 for ac_exec_ext in '' $ac_executable_extensions; do
7051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7052 ac_cv_prog_ac_ct_OTOOL="otool"
7053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 break 2
7055 fi
7056done
7057 done
7058IFS=$as_save_IFS
7059
7060fi
7061fi
7062ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7063if test -n "$ac_ct_OTOOL"; then
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7065$as_echo "$ac_ct_OTOOL" >&6; }
7066else
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7068$as_echo "no" >&6; }
7069fi
7070
7071 if test "x$ac_ct_OTOOL" = x; then
7072 OTOOL=":"
7073 else
7074 case $cross_compiling:$ac_tool_warned in
7075yes:)
7076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7078ac_tool_warned=yes ;;
7079esac
7080 OTOOL=$ac_ct_OTOOL
7081 fi
7082else
7083 OTOOL="$ac_cv_prog_OTOOL"
7084fi
7085
7086 if test -n "$ac_tool_prefix"; then
7087 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7088set dummy ${ac_tool_prefix}otool64; ac_word=$2
7089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7090$as_echo_n "checking for $ac_word... " >&6; }
7091if ${ac_cv_prog_OTOOL64+:} false; then :
7092 $as_echo_n "(cached) " >&6
7093else
7094 if test -n "$OTOOL64"; then
7095 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7096else
7097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098for as_dir in $PATH
7099do
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 break 2
7107 fi
7108done
7109 done
7110IFS=$as_save_IFS
7111
7112fi
7113fi
7114OTOOL64=$ac_cv_prog_OTOOL64
7115if test -n "$OTOOL64"; then
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7117$as_echo "$OTOOL64" >&6; }
7118else
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120$as_echo "no" >&6; }
7121fi
7122
7123
7124fi
7125if test -z "$ac_cv_prog_OTOOL64"; then
7126 ac_ct_OTOOL64=$OTOOL64
7127 # Extract the first word of "otool64", so it can be a program name with args.
7128set dummy otool64; ac_word=$2
7129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7130$as_echo_n "checking for $ac_word... " >&6; }
7131if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7132 $as_echo_n "(cached) " >&6
7133else
7134 if test -n "$ac_ct_OTOOL64"; then
7135 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7136else
7137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138for as_dir in $PATH
7139do
7140 IFS=$as_save_IFS
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7144 ac_cv_prog_ac_ct_OTOOL64="otool64"
7145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 break 2
7147 fi
7148done
7149 done
7150IFS=$as_save_IFS
7151
7152fi
7153fi
7154ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7155if test -n "$ac_ct_OTOOL64"; then
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7157$as_echo "$ac_ct_OTOOL64" >&6; }
7158else
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7160$as_echo "no" >&6; }
7161fi
7162
7163 if test "x$ac_ct_OTOOL64" = x; then
7164 OTOOL64=":"
7165 else
7166 case $cross_compiling:$ac_tool_warned in
7167yes:)
7168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7170ac_tool_warned=yes ;;
7171esac
7172 OTOOL64=$ac_ct_OTOOL64
7173 fi
7174else
7175 OTOOL64="$ac_cv_prog_OTOOL64"
7176fi
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7205$as_echo_n "checking for -single_module linker flag... " >&6; }
7206if ${lt_cv_apple_cc_single_mod+:} false; then :
7207 $as_echo_n "(cached) " >&6
7208else
7209 lt_cv_apple_cc_single_mod=no
7210 if test -z "${LT_MULTI_MODULE}"; then
7211 # By default we will add the -single_module flag. You can override
7212 # by either setting the environment variable LT_MULTI_MODULE
7213 # non-empty at configure time, or by adding -multi_module to the
7214 # link flags.
7215 rm -rf libconftest.dylib*
7216 echo "int foo(void){return 1;}" > conftest.c
7217 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7218-dynamiclib -Wl,-single_module conftest.c" >&5
7219 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7220 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7221 _lt_result=$?
7222 # If there is a non-empty error log, and "single_module"
7223 # appears in it, assume the flag caused a linker warning
7224 if test -s conftest.err && $GREP single_module conftest.err; then
7225 cat conftest.err >&5
7226 # Otherwise, if the output was created with a 0 exit code from
7227 # the compiler, it worked.
7228 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7229 lt_cv_apple_cc_single_mod=yes
7230 else
7231 cat conftest.err >&5
7232 fi
7233 rm -rf libconftest.dylib*
7234 rm -f conftest.*
7235 fi
7236fi
7237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7238$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7239
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7241$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7242if ${lt_cv_ld_exported_symbols_list+:} false; then :
7243 $as_echo_n "(cached) " >&6
7244else
7245 lt_cv_ld_exported_symbols_list=no
7246 save_LDFLAGS=$LDFLAGS
7247 echo "_main" > conftest.sym
7248 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250/* end confdefs.h. */
7251
7252int
7253main ()
7254{
7255
7256 ;
7257 return 0;
7258}
7259_ACEOF
7260if ac_fn_c_try_link "$LINENO"; then :
7261 lt_cv_ld_exported_symbols_list=yes
7262else
7263 lt_cv_ld_exported_symbols_list=no
7264fi
7265rm -f core conftest.err conftest.$ac_objext \
7266 conftest$ac_exeext conftest.$ac_ext
7267 LDFLAGS="$save_LDFLAGS"
7268
7269fi
7270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7271$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7272
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7274$as_echo_n "checking for -force_load linker flag... " >&6; }
7275if ${lt_cv_ld_force_load+:} false; then :
7276 $as_echo_n "(cached) " >&6
7277else
7278 lt_cv_ld_force_load=no
7279 cat > conftest.c << _LT_EOF
7280int forced_loaded() { return 2;}
7281_LT_EOF
7282 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7283 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7284 echo "$AR cru libconftest.a conftest.o" >&5
7285 $AR cru libconftest.a conftest.o 2>&5
7286 echo "$RANLIB libconftest.a" >&5
7287 $RANLIB libconftest.a 2>&5
7288 cat > conftest.c << _LT_EOF
7289int main() { return 0;}
7290_LT_EOF
7291 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7292 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7293 _lt_result=$?
7294 if test -s conftest.err && $GREP force_load conftest.err; then
7295 cat conftest.err >&5
7296 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7297 lt_cv_ld_force_load=yes
7298 else
7299 cat conftest.err >&5
7300 fi
7301 rm -f conftest.err libconftest.a conftest conftest.c
7302 rm -rf conftest.dSYM
7303
7304fi
7305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7306$as_echo "$lt_cv_ld_force_load" >&6; }
7307 case $host_os in
7308 rhapsody* | darwin1.[012])
7309 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7310 darwin1.*)
7311 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7312 darwin*) # darwin 5.x on
7313 # if running on 10.5 or later, the deployment target defaults
7314 # to the OS version, if on x86, and 10.4, the deployment
7315 # target defaults to 10.4. Don't you love it?
7316 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7317 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7318 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7319 10.[012]*)
7320 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7321 10.*)
7322 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7323 esac
7324 ;;
7325 esac
7326 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7327 _lt_dar_single_mod='$single_module'
7328 fi
7329 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7330 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7331 else
7332 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7333 fi
7334 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7335 _lt_dsymutil='~$DSYMUTIL $lib || :'
7336 else
7337 _lt_dsymutil=
7338 fi
7339 ;;
7340 esac
7341
7342ac_ext=c
7343ac_cpp='$CPP $CPPFLAGS'
7344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7346ac_compiler_gnu=$ac_cv_c_compiler_gnu
7347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7348$as_echo_n "checking how to run the C preprocessor... " >&6; }
7349# On Suns, sometimes $CPP names a directory.
7350if test -n "$CPP" && test -d "$CPP"; then
7351 CPP=
7352fi
7353if test -z "$CPP"; then
7354 if ${ac_cv_prog_CPP+:} false; then :
7355 $as_echo_n "(cached) " >&6
7356else
7357 # Double quotes because CPP needs to be expanded
7358 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7359 do
7360 ac_preproc_ok=false
7361for ac_c_preproc_warn_flag in '' yes
7362do
7363 # Use a header file that comes with gcc, so configuring glibc
7364 # with a fresh cross-compiler works.
7365 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7366 # <limits.h> exists even on freestanding compilers.
7367 # On the NeXT, cc -E runs the code through the compiler's parser,
7368 # not just through cpp. "Syntax error" is here to catch this case.
7369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370/* end confdefs.h. */
7371#ifdef __STDC__
7372# include <limits.h>
7373#else
7374# include <assert.h>
7375#endif
7376 Syntax error
7377_ACEOF
7378if ac_fn_c_try_cpp "$LINENO"; then :
7379
7380else
7381 # Broken: fails on valid input.
7382continue
7383fi
7384rm -f conftest.err conftest.i conftest.$ac_ext
7385
7386 # OK, works on sane cases. Now check whether nonexistent headers
7387 # can be detected and how.
7388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389/* end confdefs.h. */
7390#include <ac_nonexistent.h>
7391_ACEOF
7392if ac_fn_c_try_cpp "$LINENO"; then :
7393 # Broken: success on invalid input.
7394continue
7395else
7396 # Passes both tests.
7397ac_preproc_ok=:
7398break
7399fi
7400rm -f conftest.err conftest.i conftest.$ac_ext
7401
7402done
7403# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7404rm -f conftest.i conftest.err conftest.$ac_ext
7405if $ac_preproc_ok; then :
7406 break
7407fi
7408
7409 done
7410 ac_cv_prog_CPP=$CPP
7411
7412fi
7413 CPP=$ac_cv_prog_CPP
7414else
7415 ac_cv_prog_CPP=$CPP
7416fi
7417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7418$as_echo "$CPP" >&6; }
7419ac_preproc_ok=false
7420for ac_c_preproc_warn_flag in '' yes
7421do
7422 # Use a header file that comes with gcc, so configuring glibc
7423 # with a fresh cross-compiler works.
7424 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7425 # <limits.h> exists even on freestanding compilers.
7426 # On the NeXT, cc -E runs the code through the compiler's parser,
7427 # not just through cpp. "Syntax error" is here to catch this case.
7428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7429/* end confdefs.h. */
7430#ifdef __STDC__
7431# include <limits.h>
7432#else
7433# include <assert.h>
7434#endif
7435 Syntax error
7436_ACEOF
7437if ac_fn_c_try_cpp "$LINENO"; then :
7438
7439else
7440 # Broken: fails on valid input.
7441continue
7442fi
7443rm -f conftest.err conftest.i conftest.$ac_ext
7444
7445 # OK, works on sane cases. Now check whether nonexistent headers
7446 # can be detected and how.
7447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448/* end confdefs.h. */
7449#include <ac_nonexistent.h>
7450_ACEOF
7451if ac_fn_c_try_cpp "$LINENO"; then :
7452 # Broken: success on invalid input.
7453continue
7454else
7455 # Passes both tests.
7456ac_preproc_ok=:
7457break
7458fi
7459rm -f conftest.err conftest.i conftest.$ac_ext
7460
7461done
7462# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7463rm -f conftest.i conftest.err conftest.$ac_ext
7464if $ac_preproc_ok; then :
7465
7466else
7467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7469as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7470See \`config.log' for more details" "$LINENO" 5; }
7471fi
7472
7473ac_ext=c
7474ac_cpp='$CPP $CPPFLAGS'
7475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7477ac_compiler_gnu=$ac_cv_c_compiler_gnu
7478
7479
7480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7481$as_echo_n "checking for ANSI C header files... " >&6; }
7482if ${ac_cv_header_stdc+:} false; then :
7483 $as_echo_n "(cached) " >&6
7484else
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486/* end confdefs.h. */
7487#include <stdlib.h>
7488#include <stdarg.h>
7489#include <string.h>
7490#include <float.h>
7491
7492int
7493main ()
7494{
7495
7496 ;
7497 return 0;
7498}
7499_ACEOF
7500if ac_fn_c_try_compile "$LINENO"; then :
7501 ac_cv_header_stdc=yes
7502else
7503 ac_cv_header_stdc=no
7504fi
7505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7506
7507if test $ac_cv_header_stdc = yes; then
7508 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510/* end confdefs.h. */
7511#include <string.h>
7512
7513_ACEOF
7514if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7515 $EGREP "memchr" >/dev/null 2>&1; then :
7516
7517else
7518 ac_cv_header_stdc=no
7519fi
7520rm -f conftest*
7521
7522fi
7523
7524if test $ac_cv_header_stdc = yes; then
7525 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527/* end confdefs.h. */
7528#include <stdlib.h>
7529
7530_ACEOF
7531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7532 $EGREP "free" >/dev/null 2>&1; then :
7533
7534else
7535 ac_cv_header_stdc=no
7536fi
7537rm -f conftest*
7538
7539fi
7540
7541if test $ac_cv_header_stdc = yes; then
7542 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7543 if test "$cross_compiling" = yes; then :
7544 :
7545else
7546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7547/* end confdefs.h. */
7548#include <ctype.h>
7549#include <stdlib.h>
7550#if ((' ' & 0x0FF) == 0x020)
7551# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7552# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7553#else
7554# define ISLOWER(c) \
7555 (('a' <= (c) && (c) <= 'i') \
7556 || ('j' <= (c) && (c) <= 'r') \
7557 || ('s' <= (c) && (c) <= 'z'))
7558# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7559#endif
7560
7561#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7562int
7563main ()
7564{
7565 int i;
7566 for (i = 0; i < 256; i++)
7567 if (XOR (islower (i), ISLOWER (i))
7568 || toupper (i) != TOUPPER (i))
7569 return 2;
7570 return 0;
7571}
7572_ACEOF
7573if ac_fn_c_try_run "$LINENO"; then :
7574
7575else
7576 ac_cv_header_stdc=no
7577fi
7578rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7579 conftest.$ac_objext conftest.beam conftest.$ac_ext
7580fi
7581
7582fi
7583fi
7584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7585$as_echo "$ac_cv_header_stdc" >&6; }
7586if test $ac_cv_header_stdc = yes; then
7587
7588$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7589
7590fi
7591
7592# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7593for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7594 inttypes.h stdint.h unistd.h
7595do :
7596 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7597ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7598"
7599if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7600 cat >>confdefs.h <<_ACEOF
7601#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7602_ACEOF
7603
7604fi
7605
7606done
7607
7608
7609for ac_header in dlfcn.h
7610do :
7611 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7612"
7613if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7614 cat >>confdefs.h <<_ACEOF
7615#define HAVE_DLFCN_H 1
7616_ACEOF
7617
7618fi
7619
7620done
7621
7622
7623
7624
7625
7626# Set options
7627
7628
7629
7630 enable_dlopen=no
7631
7632
7633 enable_win32_dll=no
7634
7635
7636 # Check whether --enable-shared was given.
7637if test "${enable_shared+set}" = set; then :
7638 enableval=$enable_shared; p=${PACKAGE-default}
7639 case $enableval in
7640 yes) enable_shared=yes ;;
7641 no) enable_shared=no ;;
7642 *)
7643 enable_shared=no
7644 # Look at the argument we got. We use all the common list separators.
7645 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7646 for pkg in $enableval; do
7647 IFS="$lt_save_ifs"
7648 if test "X$pkg" = "X$p"; then
7649 enable_shared=yes
7650 fi
7651 done
7652 IFS="$lt_save_ifs"
7653 ;;
7654 esac
7655else
7656 enable_shared=yes
7657fi
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667 # Check whether --enable-static was given.
7668if test "${enable_static+set}" = set; then :
7669 enableval=$enable_static; p=${PACKAGE-default}
7670 case $enableval in
7671 yes) enable_static=yes ;;
7672 no) enable_static=no ;;
7673 *)
7674 enable_static=no
7675 # Look at the argument we got. We use all the common list separators.
7676 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7677 for pkg in $enableval; do
7678 IFS="$lt_save_ifs"
7679 if test "X$pkg" = "X$p"; then
7680 enable_static=yes
7681 fi
7682 done
7683 IFS="$lt_save_ifs"
7684 ;;
7685 esac
7686else
7687 enable_static=yes
7688fi
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699# Check whether --with-pic was given.
7700if test "${with_pic+set}" = set; then :
7701 withval=$with_pic; lt_p=${PACKAGE-default}
7702 case $withval in
7703 yes|no) pic_mode=$withval ;;
7704 *)
7705 pic_mode=default
7706 # Look at the argument we got. We use all the common list separators.
7707 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7708 for lt_pkg in $withval; do
7709 IFS="$lt_save_ifs"
7710 if test "X$lt_pkg" = "X$lt_p"; then
7711 pic_mode=yes
7712 fi
7713 done
7714 IFS="$lt_save_ifs"
7715 ;;
7716 esac
7717else
7718 pic_mode=default
7719fi
7720
7721
7722test -z "$pic_mode" && pic_mode=default
7723
7724
7725
7726
7727
7728
7729
7730 # Check whether --enable-fast-install was given.
7731if test "${enable_fast_install+set}" = set; then :
7732 enableval=$enable_fast_install; p=${PACKAGE-default}
7733 case $enableval in
7734 yes) enable_fast_install=yes ;;
7735 no) enable_fast_install=no ;;
7736 *)
7737 enable_fast_install=no
7738 # Look at the argument we got. We use all the common list separators.
7739 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7740 for pkg in $enableval; do
7741 IFS="$lt_save_ifs"
7742 if test "X$pkg" = "X$p"; then
7743 enable_fast_install=yes
7744 fi
7745 done
7746 IFS="$lt_save_ifs"
7747 ;;
7748 esac
7749else
7750 enable_fast_install=yes
7751fi
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763# This can be used to rebuild libtool when needed
7764LIBTOOL_DEPS="$ltmain"
7765
7766# Always use our own libtool.
7767LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798test -z "$LN_S" && LN_S="ln -s"
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813if test -n "${ZSH_VERSION+set}" ; then
7814 setopt NO_GLOB_SUBST
7815fi
7816
7817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7818$as_echo_n "checking for objdir... " >&6; }
7819if ${lt_cv_objdir+:} false; then :
7820 $as_echo_n "(cached) " >&6
7821else
7822 rm -f .libs 2>/dev/null
7823mkdir .libs 2>/dev/null
7824if test -d .libs; then
7825 lt_cv_objdir=.libs
7826else
7827 # MS-DOS does not allow filenames that begin with a dot.
7828 lt_cv_objdir=_libs
7829fi
7830rmdir .libs 2>/dev/null
7831fi
7832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7833$as_echo "$lt_cv_objdir" >&6; }
7834objdir=$lt_cv_objdir
7835
7836
7837
7838
7839
7840cat >>confdefs.h <<_ACEOF
7841#define LT_OBJDIR "$lt_cv_objdir/"
7842_ACEOF
7843
7844
7845
7846
7847case $host_os in
7848aix3*)
7849 # AIX sometimes has problems with the GCC collect2 program. For some
7850 # reason, if we set the COLLECT_NAMES environment variable, the problems
7851 # vanish in a puff of smoke.
7852 if test "X${COLLECT_NAMES+set}" != Xset; then
7853 COLLECT_NAMES=
7854 export COLLECT_NAMES
7855 fi
7856 ;;
7857esac
7858
7859# Global variables:
7860ofile=libtool
7861can_build_shared=yes
7862
7863# All known linkers require a `.a' archive for static linking (except MSVC,
7864# which needs '.lib').
7865libext=a
7866
7867with_gnu_ld="$lt_cv_prog_gnu_ld"
7868
7869old_CC="$CC"
7870old_CFLAGS="$CFLAGS"
7871
7872# Set sane defaults for various variables
7873test -z "$CC" && CC=cc
7874test -z "$LTCC" && LTCC=$CC
7875test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7876test -z "$LD" && LD=ld
7877test -z "$ac_objext" && ac_objext=o
7878
7879for cc_temp in $compiler""; do
7880 case $cc_temp in
7881 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7882 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7883 \-*) ;;
7884 *) break;;
7885 esac
7886done
7887cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7888
7889
7890# Only perform the check for file, if the check method requires it
7891test -z "$MAGIC_CMD" && MAGIC_CMD=file
7892case $deplibs_check_method in
7893file_magic*)
7894 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7896$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7897if ${lt_cv_path_MAGIC_CMD+:} false; then :
7898 $as_echo_n "(cached) " >&6
7899else
7900 case $MAGIC_CMD in
7901[\\/*] | ?:[\\/]*)
7902 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7903 ;;
7904*)
7905 lt_save_MAGIC_CMD="$MAGIC_CMD"
7906 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7907 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7908 for ac_dir in $ac_dummy; do
7909 IFS="$lt_save_ifs"
7910 test -z "$ac_dir" && ac_dir=.
7911 if test -f $ac_dir/${ac_tool_prefix}file; then
7912 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7913 if test -n "$file_magic_test_file"; then
7914 case $deplibs_check_method in
7915 "file_magic "*)
7916 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7917 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7918 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7919 $EGREP "$file_magic_regex" > /dev/null; then
7920 :
7921 else
7922 cat <<_LT_EOF 1>&2
7923
7924*** Warning: the command libtool uses to detect shared libraries,
7925*** $file_magic_cmd, produces output that libtool cannot recognize.
7926*** The result is that libtool may fail to recognize shared libraries
7927*** as such. This will affect the creation of libtool libraries that
7928*** depend on shared libraries, but programs linked with such libtool
7929*** libraries will work regardless of this problem. Nevertheless, you
7930*** may want to report the problem to your system manager and/or to
7931*** bug-libtool@gnu.org
7932
7933_LT_EOF
7934 fi ;;
7935 esac
7936 fi
7937 break
7938 fi
7939 done
7940 IFS="$lt_save_ifs"
7941 MAGIC_CMD="$lt_save_MAGIC_CMD"
7942 ;;
7943esac
7944fi
7945
7946MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7947if test -n "$MAGIC_CMD"; then
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7949$as_echo "$MAGIC_CMD" >&6; }
7950else
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952$as_echo "no" >&6; }
7953fi
7954
7955
7956
7957
7958
7959if test -z "$lt_cv_path_MAGIC_CMD"; then
7960 if test -n "$ac_tool_prefix"; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7962$as_echo_n "checking for file... " >&6; }
7963if ${lt_cv_path_MAGIC_CMD+:} false; then :
7964 $as_echo_n "(cached) " >&6
7965else
7966 case $MAGIC_CMD in
7967[\\/*] | ?:[\\/]*)
7968 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7969 ;;
7970*)
7971 lt_save_MAGIC_CMD="$MAGIC_CMD"
7972 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7973 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7974 for ac_dir in $ac_dummy; do
7975 IFS="$lt_save_ifs"
7976 test -z "$ac_dir" && ac_dir=.
7977 if test -f $ac_dir/file; then
7978 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7979 if test -n "$file_magic_test_file"; then
7980 case $deplibs_check_method in
7981 "file_magic "*)
7982 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7983 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7984 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7985 $EGREP "$file_magic_regex" > /dev/null; then
7986 :
7987 else
7988 cat <<_LT_EOF 1>&2
7989
7990*** Warning: the command libtool uses to detect shared libraries,
7991*** $file_magic_cmd, produces output that libtool cannot recognize.
7992*** The result is that libtool may fail to recognize shared libraries
7993*** as such. This will affect the creation of libtool libraries that
7994*** depend on shared libraries, but programs linked with such libtool
7995*** libraries will work regardless of this problem. Nevertheless, you
7996*** may want to report the problem to your system manager and/or to
7997*** bug-libtool@gnu.org
7998
7999_LT_EOF
8000 fi ;;
8001 esac
8002 fi
8003 break
8004 fi
8005 done
8006 IFS="$lt_save_ifs"
8007 MAGIC_CMD="$lt_save_MAGIC_CMD"
8008 ;;
8009esac
8010fi
8011
8012MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8013if test -n "$MAGIC_CMD"; then
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8015$as_echo "$MAGIC_CMD" >&6; }
8016else
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8018$as_echo "no" >&6; }
8019fi
8020
8021
8022 else
8023 MAGIC_CMD=:
8024 fi
8025fi
8026
8027 fi
8028 ;;
8029esac
8030
8031# Use C for the default configuration in the libtool script
8032
8033lt_save_CC="$CC"
8034ac_ext=c
8035ac_cpp='$CPP $CPPFLAGS'
8036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8038ac_compiler_gnu=$ac_cv_c_compiler_gnu
8039
8040
8041# Source file extension for C test sources.
8042ac_ext=c
8043
8044# Object file extension for compiled C test sources.
8045objext=o
8046objext=$objext
8047
8048# Code to be used in simple compile tests
8049lt_simple_compile_test_code="int some_variable = 0;"
8050
8051# Code to be used in simple link tests
8052lt_simple_link_test_code='int main(){return(0);}'
8053
8054
8055
8056
8057
8058
8059
8060# If no C compiler was specified, use CC.
8061LTCC=${LTCC-"$CC"}
8062
8063# If no C compiler flags were specified, use CFLAGS.
8064LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8065
8066# Allow CC to be a program name with arguments.
8067compiler=$CC
8068
8069# Save the default compiler, since it gets overwritten when the other
8070# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8071compiler_DEFAULT=$CC
8072
8073# save warnings/boilerplate of simple test code
8074ac_outfile=conftest.$ac_objext
8075echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8076eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8077_lt_compiler_boilerplate=`cat conftest.err`
8078$RM conftest*
8079
8080ac_outfile=conftest.$ac_objext
8081echo "$lt_simple_link_test_code" >conftest.$ac_ext
8082eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8083_lt_linker_boilerplate=`cat conftest.err`
8084$RM -r conftest*
8085
8086
8087if test -n "$compiler"; then
8088
8089lt_prog_compiler_no_builtin_flag=
8090
8091if test "$GCC" = yes; then
8092 case $cc_basename in
8093 nvcc*)
8094 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8095 *)
8096 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8097 esac
8098
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8100$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8101if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8102 $as_echo_n "(cached) " >&6
8103else
8104 lt_cv_prog_compiler_rtti_exceptions=no
8105 ac_outfile=conftest.$ac_objext
8106 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8107 lt_compiler_flag="-fno-rtti -fno-exceptions"
8108 # Insert the option either (1) after the last *FLAGS variable, or
8109 # (2) before a word containing "conftest.", or (3) at the end.
8110 # Note that $ac_compile itself does not contain backslashes and begins
8111 # with a dollar sign (not a hyphen), so the echo should work correctly.
8112 # The option is referenced via a variable to avoid confusing sed.
8113 lt_compile=`echo "$ac_compile" | $SED \
8114 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8116 -e 's:$: $lt_compiler_flag:'`
8117 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8118 (eval "$lt_compile" 2>conftest.err)
8119 ac_status=$?
8120 cat conftest.err >&5
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 if (exit $ac_status) && test -s "$ac_outfile"; then
8123 # The compiler can only warn and ignore the option if not recognized
8124 # So say no if there are warnings other than the usual output.
8125 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8126 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8127 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8128 lt_cv_prog_compiler_rtti_exceptions=yes
8129 fi
8130 fi
8131 $RM conftest*
8132
8133fi
8134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8135$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8136
8137if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8138 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8139else
8140 :
8141fi
8142
8143fi
8144
8145
8146
8147
8148
8149
8150 lt_prog_compiler_wl=
8151lt_prog_compiler_pic=
8152lt_prog_compiler_static=
8153
8154
8155 if test "$GCC" = yes; then
8156 lt_prog_compiler_wl='-Wl,'
8157 lt_prog_compiler_static='-static'
8158
8159 case $host_os in
8160 aix*)
8161 # All AIX code is PIC.
8162 if test "$host_cpu" = ia64; then
8163 # AIX 5 now supports IA64 processor
8164 lt_prog_compiler_static='-Bstatic'
8165 fi
8166 ;;
8167
8168 amigaos*)
8169 case $host_cpu in
8170 powerpc)
8171 # see comment about AmigaOS4 .so support
8172 lt_prog_compiler_pic='-fPIC'
8173 ;;
8174 m68k)
8175 # FIXME: we need at least 68020 code to build shared libraries, but
8176 # adding the `-m68020' flag to GCC prevents building anything better,
8177 # like `-m68040'.
8178 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8179 ;;
8180 esac
8181 ;;
8182
8183 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8184 # PIC is the default for these OSes.
8185 ;;
8186
8187 mingw* | cygwin* | pw32* | os2* | cegcc*)
8188 # This hack is so that the source file can tell whether it is being
8189 # built for inclusion in a dll (and should export symbols for example).
8190 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8191 # (--disable-auto-import) libraries
8192 lt_prog_compiler_pic='-DDLL_EXPORT'
8193 ;;
8194
8195 darwin* | rhapsody*)
8196 # PIC is the default on this platform
8197 # Common symbols not allowed in MH_DYLIB files
8198 lt_prog_compiler_pic='-fno-common'
8199 ;;
8200
8201 haiku*)
8202 # PIC is the default for Haiku.
8203 # The "-static" flag exists, but is broken.
8204 lt_prog_compiler_static=
8205 ;;
8206
8207 hpux*)
8208 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8209 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8210 # sets the default TLS model and affects inlining.
8211 case $host_cpu in
8212 hppa*64*)
8213 # +Z the default
8214 ;;
8215 *)
8216 lt_prog_compiler_pic='-fPIC'
8217 ;;
8218 esac
8219 ;;
8220
8221 interix[3-9]*)
8222 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8223 # Instead, we relocate shared libraries at runtime.
8224 ;;
8225
8226 msdosdjgpp*)
8227 # Just because we use GCC doesn't mean we suddenly get shared libraries
8228 # on systems that don't support them.
8229 lt_prog_compiler_can_build_shared=no
8230 enable_shared=no
8231 ;;
8232
8233 *nto* | *qnx*)
8234 # QNX uses GNU C++, but need to define -shared option too, otherwise
8235 # it will coredump.
8236 lt_prog_compiler_pic='-fPIC -shared'
8237 ;;
8238
8239 sysv4*MP*)
8240 if test -d /usr/nec; then
8241 lt_prog_compiler_pic=-Kconform_pic
8242 fi
8243 ;;
8244
8245 *)
8246 lt_prog_compiler_pic='-fPIC'
8247 ;;
8248 esac
8249
8250 case $cc_basename in
8251 nvcc*) # Cuda Compiler Driver 2.2
8252 lt_prog_compiler_wl='-Xlinker '
8253 if test -n "$lt_prog_compiler_pic"; then
8254 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8255 fi
8256 ;;
8257 esac
8258 else
8259 # PORTME Check for flag to pass linker flags through the system compiler.
8260 case $host_os in
8261 aix*)
8262 lt_prog_compiler_wl='-Wl,'
8263 if test "$host_cpu" = ia64; then
8264 # AIX 5 now supports IA64 processor
8265 lt_prog_compiler_static='-Bstatic'
8266 else
8267 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8268 fi
8269 ;;
8270
8271 mingw* | cygwin* | pw32* | os2* | cegcc*)
8272 # This hack is so that the source file can tell whether it is being
8273 # built for inclusion in a dll (and should export symbols for example).
8274 lt_prog_compiler_pic='-DDLL_EXPORT'
8275 ;;
8276
8277 hpux9* | hpux10* | hpux11*)
8278 lt_prog_compiler_wl='-Wl,'
8279 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8280 # not for PA HP-UX.
8281 case $host_cpu in
8282 hppa*64*|ia64*)
8283 # +Z the default
8284 ;;
8285 *)
8286 lt_prog_compiler_pic='+Z'
8287 ;;
8288 esac
8289 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8290 lt_prog_compiler_static='${wl}-a ${wl}archive'
8291 ;;
8292
8293 irix5* | irix6* | nonstopux*)
8294 lt_prog_compiler_wl='-Wl,'
8295 # PIC (with -KPIC) is the default.
8296 lt_prog_compiler_static='-non_shared'
8297 ;;
8298
8299 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8300 case $cc_basename in
8301 # old Intel for x86_64 which still supported -KPIC.
8302 ecc*)
8303 lt_prog_compiler_wl='-Wl,'
8304 lt_prog_compiler_pic='-KPIC'
8305 lt_prog_compiler_static='-static'
8306 ;;
8307 # icc used to be incompatible with GCC.
8308 # ICC 10 doesn't accept -KPIC any more.
8309 icc* | ifort*)
8310 lt_prog_compiler_wl='-Wl,'
8311 lt_prog_compiler_pic='-fPIC'
8312 lt_prog_compiler_static='-static'
8313 ;;
8314 # Lahey Fortran 8.1.
8315 lf95*)
8316 lt_prog_compiler_wl='-Wl,'
8317 lt_prog_compiler_pic='--shared'
8318 lt_prog_compiler_static='--static'
8319 ;;
8320 nagfor*)
8321 # NAG Fortran compiler
8322 lt_prog_compiler_wl='-Wl,-Wl,,'
8323 lt_prog_compiler_pic='-PIC'
8324 lt_prog_compiler_static='-Bstatic'
8325 ;;
8326 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8327 # Portland Group compilers (*not* the Pentium gcc compiler,
8328 # which looks to be a dead project)
8329 lt_prog_compiler_wl='-Wl,'
8330 lt_prog_compiler_pic='-fpic'
8331 lt_prog_compiler_static='-Bstatic'
8332 ;;
8333 ccc*)
8334 lt_prog_compiler_wl='-Wl,'
8335 # All Alpha code is PIC.
8336 lt_prog_compiler_static='-non_shared'
8337 ;;
8338 xl* | bgxl* | bgf* | mpixl*)
8339 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8340 lt_prog_compiler_wl='-Wl,'
8341 lt_prog_compiler_pic='-qpic'
8342 lt_prog_compiler_static='-qstaticlink'
8343 ;;
8344 *)
8345 case `$CC -V 2>&1 | sed 5q` in
8346 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8347 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8348 lt_prog_compiler_pic='-KPIC'
8349 lt_prog_compiler_static='-Bstatic'
8350 lt_prog_compiler_wl=''
8351 ;;
8352 *Sun\ F* | *Sun*Fortran*)
8353 lt_prog_compiler_pic='-KPIC'
8354 lt_prog_compiler_static='-Bstatic'
8355 lt_prog_compiler_wl='-Qoption ld '
8356 ;;
8357 *Sun\ C*)
8358 # Sun C 5.9
8359 lt_prog_compiler_pic='-KPIC'
8360 lt_prog_compiler_static='-Bstatic'
8361 lt_prog_compiler_wl='-Wl,'
8362 ;;
8363 *Intel*\ [CF]*Compiler*)
8364 lt_prog_compiler_wl='-Wl,'
8365 lt_prog_compiler_pic='-fPIC'
8366 lt_prog_compiler_static='-static'
8367 ;;
8368 *Portland\ Group*)
8369 lt_prog_compiler_wl='-Wl,'
8370 lt_prog_compiler_pic='-fpic'
8371 lt_prog_compiler_static='-Bstatic'
8372 ;;
8373 esac
8374 ;;
8375 esac
8376 ;;
8377
8378 newsos6)
8379 lt_prog_compiler_pic='-KPIC'
8380 lt_prog_compiler_static='-Bstatic'
8381 ;;
8382
8383 *nto* | *qnx*)
8384 # QNX uses GNU C++, but need to define -shared option too, otherwise
8385 # it will coredump.
8386 lt_prog_compiler_pic='-fPIC -shared'
8387 ;;
8388
8389 osf3* | osf4* | osf5*)
8390 lt_prog_compiler_wl='-Wl,'
8391 # All OSF/1 code is PIC.
8392 lt_prog_compiler_static='-non_shared'
8393 ;;
8394
8395 rdos*)
8396 lt_prog_compiler_static='-non_shared'
8397 ;;
8398
8399 solaris*)
8400 lt_prog_compiler_pic='-KPIC'
8401 lt_prog_compiler_static='-Bstatic'
8402 case $cc_basename in
8403 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8404 lt_prog_compiler_wl='-Qoption ld ';;
8405 *)
8406 lt_prog_compiler_wl='-Wl,';;
8407 esac
8408 ;;
8409
8410 sunos4*)
8411 lt_prog_compiler_wl='-Qoption ld '
8412 lt_prog_compiler_pic='-PIC'
8413 lt_prog_compiler_static='-Bstatic'
8414 ;;
8415
8416 sysv4 | sysv4.2uw2* | sysv4.3*)
8417 lt_prog_compiler_wl='-Wl,'
8418 lt_prog_compiler_pic='-KPIC'
8419 lt_prog_compiler_static='-Bstatic'
8420 ;;
8421
8422 sysv4*MP*)
8423 if test -d /usr/nec ;then
8424 lt_prog_compiler_pic='-Kconform_pic'
8425 lt_prog_compiler_static='-Bstatic'
8426 fi
8427 ;;
8428
8429 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8430 lt_prog_compiler_wl='-Wl,'
8431 lt_prog_compiler_pic='-KPIC'
8432 lt_prog_compiler_static='-Bstatic'
8433 ;;
8434
8435 unicos*)
8436 lt_prog_compiler_wl='-Wl,'
8437 lt_prog_compiler_can_build_shared=no
8438 ;;
8439
8440 uts4*)
8441 lt_prog_compiler_pic='-pic'
8442 lt_prog_compiler_static='-Bstatic'
8443 ;;
8444
8445 *)
8446 lt_prog_compiler_can_build_shared=no
8447 ;;
8448 esac
8449 fi
8450
8451case $host_os in
8452 # For platforms which do not support PIC, -DPIC is meaningless:
8453 *djgpp*)
8454 lt_prog_compiler_pic=
8455 ;;
8456 *)
8457 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8458 ;;
8459esac
8460
8461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8462$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8463if ${lt_cv_prog_compiler_pic+:} false; then :
8464 $as_echo_n "(cached) " >&6
8465else
8466 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8467fi
8468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8469$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8470lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8471
8472#
8473# Check to make sure the PIC flag actually works.
8474#
8475if test -n "$lt_prog_compiler_pic"; then
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8477$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8478if ${lt_cv_prog_compiler_pic_works+:} false; then :
8479 $as_echo_n "(cached) " >&6
8480else
8481 lt_cv_prog_compiler_pic_works=no
8482 ac_outfile=conftest.$ac_objext
8483 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8484 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8485 # Insert the option either (1) after the last *FLAGS variable, or
8486 # (2) before a word containing "conftest.", or (3) at the end.
8487 # Note that $ac_compile itself does not contain backslashes and begins
8488 # with a dollar sign (not a hyphen), so the echo should work correctly.
8489 # The option is referenced via a variable to avoid confusing sed.
8490 lt_compile=`echo "$ac_compile" | $SED \
8491 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8493 -e 's:$: $lt_compiler_flag:'`
8494 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8495 (eval "$lt_compile" 2>conftest.err)
8496 ac_status=$?
8497 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 if (exit $ac_status) && test -s "$ac_outfile"; then
8500 # The compiler can only warn and ignore the option if not recognized
8501 # So say no if there are warnings other than the usual output.
8502 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8503 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8504 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8505 lt_cv_prog_compiler_pic_works=yes
8506 fi
8507 fi
8508 $RM conftest*
8509
8510fi
8511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8512$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8513
8514if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8515 case $lt_prog_compiler_pic in
8516 "" | " "*) ;;
8517 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8518 esac
8519else
8520 lt_prog_compiler_pic=
8521 lt_prog_compiler_can_build_shared=no
8522fi
8523
8524fi
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536#
8537# Check to make sure the static flag actually works.
8538#
8539wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8541$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8542if ${lt_cv_prog_compiler_static_works+:} false; then :
8543 $as_echo_n "(cached) " >&6
8544else
8545 lt_cv_prog_compiler_static_works=no
8546 save_LDFLAGS="$LDFLAGS"
8547 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8548 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8549 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8550 # The linker can only warn and ignore the option if not recognized
8551 # So say no if there are warnings
8552 if test -s conftest.err; then
8553 # Append any errors to the config.log.
8554 cat conftest.err 1>&5
8555 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8556 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8557 if diff conftest.exp conftest.er2 >/dev/null; then
8558 lt_cv_prog_compiler_static_works=yes
8559 fi
8560 else
8561 lt_cv_prog_compiler_static_works=yes
8562 fi
8563 fi
8564 $RM -r conftest*
8565 LDFLAGS="$save_LDFLAGS"
8566
8567fi
8568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8569$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8570
8571if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8572 :
8573else
8574 lt_prog_compiler_static=
8575fi
8576
8577
8578
8579
8580
8581
8582
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8584$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8585if ${lt_cv_prog_compiler_c_o+:} false; then :
8586 $as_echo_n "(cached) " >&6
8587else
8588 lt_cv_prog_compiler_c_o=no
8589 $RM -r conftest 2>/dev/null
8590 mkdir conftest
8591 cd conftest
8592 mkdir out
8593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8594
8595 lt_compiler_flag="-o out/conftest2.$ac_objext"
8596 # Insert the option either (1) after the last *FLAGS variable, or
8597 # (2) before a word containing "conftest.", or (3) at the end.
8598 # Note that $ac_compile itself does not contain backslashes and begins
8599 # with a dollar sign (not a hyphen), so the echo should work correctly.
8600 lt_compile=`echo "$ac_compile" | $SED \
8601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8603 -e 's:$: $lt_compiler_flag:'`
8604 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8605 (eval "$lt_compile" 2>out/conftest.err)
8606 ac_status=$?
8607 cat out/conftest.err >&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8610 then
8611 # The compiler can only warn and ignore the option if not recognized
8612 # So say no if there are warnings
8613 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8614 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8615 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8616 lt_cv_prog_compiler_c_o=yes
8617 fi
8618 fi
8619 chmod u+w . 2>&5
8620 $RM conftest*
8621 # SGI C++ compiler will create directory out/ii_files/ for
8622 # template instantiation
8623 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8624 $RM out/* && rmdir out
8625 cd ..
8626 $RM -r conftest
8627 $RM conftest*
8628
8629fi
8630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8631$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8632
8633
8634
8635
8636
8637
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8639$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8640if ${lt_cv_prog_compiler_c_o+:} false; then :
8641 $as_echo_n "(cached) " >&6
8642else
8643 lt_cv_prog_compiler_c_o=no
8644 $RM -r conftest 2>/dev/null
8645 mkdir conftest
8646 cd conftest
8647 mkdir out
8648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8649
8650 lt_compiler_flag="-o out/conftest2.$ac_objext"
8651 # Insert the option either (1) after the last *FLAGS variable, or
8652 # (2) before a word containing "conftest.", or (3) at the end.
8653 # Note that $ac_compile itself does not contain backslashes and begins
8654 # with a dollar sign (not a hyphen), so the echo should work correctly.
8655 lt_compile=`echo "$ac_compile" | $SED \
8656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8658 -e 's:$: $lt_compiler_flag:'`
8659 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8660 (eval "$lt_compile" 2>out/conftest.err)
8661 ac_status=$?
8662 cat out/conftest.err >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8665 then
8666 # The compiler can only warn and ignore the option if not recognized
8667 # So say no if there are warnings
8668 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8669 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8670 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8671 lt_cv_prog_compiler_c_o=yes
8672 fi
8673 fi
8674 chmod u+w . 2>&5
8675 $RM conftest*
8676 # SGI C++ compiler will create directory out/ii_files/ for
8677 # template instantiation
8678 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8679 $RM out/* && rmdir out
8680 cd ..
8681 $RM -r conftest
8682 $RM conftest*
8683
8684fi
8685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8686$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8687
8688
8689
8690
8691hard_links="nottested"
8692if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8693 # do not overwrite the value of need_locks provided by the user
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8695$as_echo_n "checking if we can lock with hard links... " >&6; }
8696 hard_links=yes
8697 $RM conftest*
8698 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8699 touch conftest.a
8700 ln conftest.a conftest.b 2>&5 || hard_links=no
8701 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8703$as_echo "$hard_links" >&6; }
8704 if test "$hard_links" = no; then
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8706$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8707 need_locks=warn
8708 fi
8709else
8710 need_locks=no
8711fi
8712
8713
8714
8715
8716
8717
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8719$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8720
8721 runpath_var=
8722 allow_undefined_flag=
8723 always_export_symbols=no
8724 archive_cmds=
8725 archive_expsym_cmds=
8726 compiler_needs_object=no
8727 enable_shared_with_static_runtimes=no
8728 export_dynamic_flag_spec=
8729 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8730 hardcode_automatic=no
8731 hardcode_direct=no
8732 hardcode_direct_absolute=no
8733 hardcode_libdir_flag_spec=
8734 hardcode_libdir_separator=
8735 hardcode_minus_L=no
8736 hardcode_shlibpath_var=unsupported
8737 inherit_rpath=no
8738 link_all_deplibs=unknown
8739 module_cmds=
8740 module_expsym_cmds=
8741 old_archive_from_new_cmds=
8742 old_archive_from_expsyms_cmds=
8743 thread_safe_flag_spec=
8744 whole_archive_flag_spec=
8745 # include_expsyms should be a list of space-separated symbols to be *always*
8746 # included in the symbol list
8747 include_expsyms=
8748 # exclude_expsyms can be an extended regexp of symbols to exclude
8749 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8750 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8751 # as well as any symbol that contains `d'.
8752 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8753 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8754 # platforms (ab)use it in PIC code, but their linkers get confused if
8755 # the symbol is explicitly referenced. Since portable code cannot
8756 # rely on this symbol name, it's probably fine to never include it in
8757 # preloaded symbol tables.
8758 # Exclude shared library initialization/finalization symbols.
8759 extract_expsyms_cmds=
8760
8761 case $host_os in
8762 cygwin* | mingw* | pw32* | cegcc*)
8763 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8764 # When not using gcc, we currently assume that we are using
8765 # Microsoft Visual C++.
8766 if test "$GCC" != yes; then
8767 with_gnu_ld=no
8768 fi
8769 ;;
8770 interix*)
8771 # we just hope/assume this is gcc and not c89 (= MSVC++)
8772 with_gnu_ld=yes
8773 ;;
8774 openbsd*)
8775 with_gnu_ld=no
8776 ;;
8777 esac
8778
8779 ld_shlibs=yes
8780
8781 # On some targets, GNU ld is compatible enough with the native linker
8782 # that we're better off using the native interface for both.
8783 lt_use_gnu_ld_interface=no
8784 if test "$with_gnu_ld" = yes; then
8785 case $host_os in
8786 aix*)
8787 # The AIX port of GNU ld has always aspired to compatibility
8788 # with the native linker. However, as the warning in the GNU ld
8789 # block says, versions before 2.19.5* couldn't really create working
8790 # shared libraries, regardless of the interface used.
8791 case `$LD -v 2>&1` in
8792 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8793 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8794 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8795 *)
8796 lt_use_gnu_ld_interface=yes
8797 ;;
8798 esac
8799 ;;
8800 *)
8801 lt_use_gnu_ld_interface=yes
8802 ;;
8803 esac
8804 fi
8805
8806 if test "$lt_use_gnu_ld_interface" = yes; then
8807 # If archive_cmds runs LD, not CC, wlarc should be empty
8808 wlarc='${wl}'
8809
8810 # Set some defaults for GNU ld with shared library support. These
8811 # are reset later if shared libraries are not supported. Putting them
8812 # here allows them to be overridden if necessary.
8813 runpath_var=LD_RUN_PATH
8814 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8815 export_dynamic_flag_spec='${wl}--export-dynamic'
8816 # ancient GNU ld didn't support --whole-archive et. al.
8817 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8818 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8819 else
8820 whole_archive_flag_spec=
8821 fi
8822 supports_anon_versioning=no
8823 case `$LD -v 2>&1` in
8824 *GNU\ gold*) supports_anon_versioning=yes ;;
8825 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8826 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8827 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8828 *\ 2.11.*) ;; # other 2.11 versions
8829 *) supports_anon_versioning=yes ;;
8830 esac
8831
8832 # See if GNU ld supports shared libraries.
8833 case $host_os in
8834 aix[3-9]*)
8835 # On AIX/PPC, the GNU linker is very broken
8836 if test "$host_cpu" != ia64; then
8837 ld_shlibs=no
8838 cat <<_LT_EOF 1>&2
8839
8840*** Warning: the GNU linker, at least up to release 2.19, is reported
8841*** to be unable to reliably create shared libraries on AIX.
8842*** Therefore, libtool is disabling shared libraries support. If you
8843*** really care for shared libraries, you may want to install binutils
8844*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8845*** You will then need to restart the configuration process.
8846
8847_LT_EOF
8848 fi
8849 ;;
8850
8851 amigaos*)
8852 case $host_cpu in
8853 powerpc)
8854 # see comment about AmigaOS4 .so support
8855 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8856 archive_expsym_cmds=''
8857 ;;
8858 m68k)
8859 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)'
8860 hardcode_libdir_flag_spec='-L$libdir'
8861 hardcode_minus_L=yes
8862 ;;
8863 esac
8864 ;;
8865
8866 beos*)
8867 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8868 allow_undefined_flag=unsupported
8869 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8870 # support --undefined. This deserves some investigation. FIXME
8871 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8872 else
8873 ld_shlibs=no
8874 fi
8875 ;;
8876
8877 cygwin* | mingw* | pw32* | cegcc*)
8878 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8879 # as there is no search path for DLLs.
8880 hardcode_libdir_flag_spec='-L$libdir'
8881 export_dynamic_flag_spec='${wl}--export-all-symbols'
8882 allow_undefined_flag=unsupported
8883 always_export_symbols=no
8884 enable_shared_with_static_runtimes=yes
8885 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'
8886 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8887
8888 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8889 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8890 # If the export-symbols file already is a .def file (1st line
8891 # is EXPORTS), use it as is; otherwise, prepend...
8892 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8893 cp $export_symbols $output_objdir/$soname.def;
8894 else
8895 echo EXPORTS > $output_objdir/$soname.def;
8896 cat $export_symbols >> $output_objdir/$soname.def;
8897 fi~
8898 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8899 else
8900 ld_shlibs=no
8901 fi
8902 ;;
8903
8904 haiku*)
8905 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8906 link_all_deplibs=yes
8907 ;;
8908
8909 interix[3-9]*)
8910 hardcode_direct=no
8911 hardcode_shlibpath_var=no
8912 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8913 export_dynamic_flag_spec='${wl}-E'
8914 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8915 # Instead, shared libraries are loaded at an image base (0x10000000 by
8916 # default) and relocated if they conflict, which is a slow very memory
8917 # consuming and fragmenting process. To avoid this, we pick a random,
8918 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8919 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8920 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8921 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'
8922 ;;
8923
8924 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8925 tmp_diet=no
8926 if test "$host_os" = linux-dietlibc; then
8927 case $cc_basename in
8928 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8929 esac
8930 fi
8931 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8932 && test "$tmp_diet" = no
8933 then
8934 tmp_addflag=' $pic_flag'
8935 tmp_sharedflag='-shared'
8936 case $cc_basename,$host_cpu in
8937 pgcc*) # Portland Group C compiler
8938 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'
8939 tmp_addflag=' $pic_flag'
8940 ;;
8941 pgf77* | pgf90* | pgf95* | pgfortran*)
8942 # Portland Group f77 and f90 compilers
8943 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'
8944 tmp_addflag=' $pic_flag -Mnomain' ;;
8945 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8946 tmp_addflag=' -i_dynamic' ;;
8947 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8948 tmp_addflag=' -i_dynamic -nofor_main' ;;
8949 ifc* | ifort*) # Intel Fortran compiler
8950 tmp_addflag=' -nofor_main' ;;
8951 lf95*) # Lahey Fortran 8.1
8952 whole_archive_flag_spec=
8953 tmp_sharedflag='--shared' ;;
8954 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8955 tmp_sharedflag='-qmkshrobj'
8956 tmp_addflag= ;;
8957 nvcc*) # Cuda Compiler Driver 2.2
8958 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'
8959 compiler_needs_object=yes
8960 ;;
8961 esac
8962 case `$CC -V 2>&1 | sed 5q` in
8963 *Sun\ C*) # Sun C 5.9
8964 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'
8965 compiler_needs_object=yes
8966 tmp_sharedflag='-G' ;;
8967 *Sun\ F*) # Sun Fortran 8.3
8968 tmp_sharedflag='-G' ;;
8969 esac
8970 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8971
8972 if test "x$supports_anon_versioning" = xyes; then
8973 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8974 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8975 echo "local: *; };" >> $output_objdir/$libname.ver~
8976 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8977 fi
8978
8979 case $cc_basename in
8980 xlf* | bgf* | bgxlf* | mpixlf*)
8981 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8982 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8983 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8984 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8985 if test "x$supports_anon_versioning" = xyes; then
8986 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8987 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8988 echo "local: *; };" >> $output_objdir/$libname.ver~
8989 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8990 fi
8991 ;;
8992 esac
8993 else
8994 ld_shlibs=no
8995 fi
8996 ;;
8997
8998 netbsd*)
8999 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9000 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9001 wlarc=
9002 else
9003 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9004 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9005 fi
9006 ;;
9007
9008 solaris*)
9009 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9010 ld_shlibs=no
9011 cat <<_LT_EOF 1>&2
9012
9013*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9014*** create shared libraries on Solaris systems. Therefore, libtool
9015*** is disabling shared libraries support. We urge you to upgrade GNU
9016*** binutils to release 2.9.1 or newer. Another option is to modify
9017*** your PATH or compiler configuration so that the native linker is
9018*** used, and then restart.
9019
9020_LT_EOF
9021 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9022 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9023 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9024 else
9025 ld_shlibs=no
9026 fi
9027 ;;
9028
9029 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9030 case `$LD -v 2>&1` in
9031 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9032 ld_shlibs=no
9033 cat <<_LT_EOF 1>&2
9034
9035*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9036*** reliably create shared libraries on SCO systems. Therefore, libtool
9037*** is disabling shared libraries support. We urge you to upgrade GNU
9038*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9039*** your PATH or compiler configuration so that the native linker is
9040*** used, and then restart.
9041
9042_LT_EOF
9043 ;;
9044 *)
9045 # For security reasons, it is highly recommended that you always
9046 # use absolute paths for naming shared libraries, and exclude the
9047 # DT_RUNPATH tag from executables and libraries. But doing so
9048 # requires that you compile everything twice, which is a pain.
9049 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9050 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9051 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9052 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9053 else
9054 ld_shlibs=no
9055 fi
9056 ;;
9057 esac
9058 ;;
9059
9060 sunos4*)
9061 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9062 wlarc=
9063 hardcode_direct=yes
9064 hardcode_shlibpath_var=no
9065 ;;
9066
9067 *)
9068 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9069 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9070 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9071 else
9072 ld_shlibs=no
9073 fi
9074 ;;
9075 esac
9076
9077 if test "$ld_shlibs" = no; then
9078 runpath_var=
9079 hardcode_libdir_flag_spec=
9080 export_dynamic_flag_spec=
9081 whole_archive_flag_spec=
9082 fi
9083 else
9084 # PORTME fill in a description of your system's linker (not GNU ld)
9085 case $host_os in
9086 aix3*)
9087 allow_undefined_flag=unsupported
9088 always_export_symbols=yes
9089 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'
9090 # Note: this linker hardcodes the directories in LIBPATH if there
9091 # are no directories specified by -L.
9092 hardcode_minus_L=yes
9093 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9094 # Neither direct hardcoding nor static linking is supported with a
9095 # broken collect2.
9096 hardcode_direct=unsupported
9097 fi
9098 ;;
9099
9100 aix[4-9]*)
9101 if test "$host_cpu" = ia64; then
9102 # On IA64, the linker does run time linking by default, so we don't
9103 # have to do anything special.
9104 aix_use_runtimelinking=no
9105 exp_sym_flag='-Bexport'
9106 no_entry_flag=""
9107 else
9108 # If we're using GNU nm, then we don't want the "-C" option.
9109 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9110 # Also, AIX nm treats weak defined symbols like other global
9111 # defined symbols, whereas GNU nm marks them as "W".
9112 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9113 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'
9114 else
9115 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'
9116 fi
9117 aix_use_runtimelinking=no
9118
9119 # Test if we are trying to use run time linking or normal
9120 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9121 # need to do runtime linking.
9122 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9123 for ld_flag in $LDFLAGS; do
9124 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9125 aix_use_runtimelinking=yes
9126 break
9127 fi
9128 done
9129 ;;
9130 esac
9131
9132 exp_sym_flag='-bexport'
9133 no_entry_flag='-bnoentry'
9134 fi
9135
9136 # When large executables or shared objects are built, AIX ld can
9137 # have problems creating the table of contents. If linking a library
9138 # or program results in "error TOC overflow" add -mminimal-toc to
9139 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9140 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9141
9142 archive_cmds=''
9143 hardcode_direct=yes
9144 hardcode_direct_absolute=yes
9145 hardcode_libdir_separator=':'
9146 link_all_deplibs=yes
9147 file_list_spec='${wl}-f,'
9148
9149 if test "$GCC" = yes; then
9150 case $host_os in aix4.[012]|aix4.[012].*)
9151 # We only want to do this on AIX 4.2 and lower, the check
9152 # below for broken collect2 doesn't work under 4.3+
9153 collect2name=`${CC} -print-prog-name=collect2`
9154 if test -f "$collect2name" &&
9155 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9156 then
9157 # We have reworked collect2
9158 :
9159 else
9160 # We have old collect2
9161 hardcode_direct=unsupported
9162 # It fails to find uninstalled libraries when the uninstalled
9163 # path is not listed in the libpath. Setting hardcode_minus_L
9164 # to unsupported forces relinking
9165 hardcode_minus_L=yes
9166 hardcode_libdir_flag_spec='-L$libdir'
9167 hardcode_libdir_separator=
9168 fi
9169 ;;
9170 esac
9171 shared_flag='-shared'
9172 if test "$aix_use_runtimelinking" = yes; then
9173 shared_flag="$shared_flag "'${wl}-G'
9174 fi
9175 else
9176 # not using gcc
9177 if test "$host_cpu" = ia64; then
9178 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9179 # chokes on -Wl,-G. The following line is correct:
9180 shared_flag='-G'
9181 else
9182 if test "$aix_use_runtimelinking" = yes; then
9183 shared_flag='${wl}-G'
9184 else
9185 shared_flag='${wl}-bM:SRE'
9186 fi
9187 fi
9188 fi
9189
9190 export_dynamic_flag_spec='${wl}-bexpall'
9191 # It seems that -bexpall does not export symbols beginning with
9192 # underscore (_), so it is better to generate a list of symbols to export.
9193 always_export_symbols=yes
9194 if test "$aix_use_runtimelinking" = yes; then
9195 # Warning - without using the other runtime loading flags (-brtl),
9196 # -berok will link without error, but may produce a broken library.
9197 allow_undefined_flag='-berok'
9198 # Determine the default libpath from the value encoded in an
9199 # empty executable.
9200 if test "${lt_cv_aix_libpath+set}" = set; then
9201 aix_libpath=$lt_cv_aix_libpath
9202else
9203 if ${lt_cv_aix_libpath_+:} false; then :
9204 $as_echo_n "(cached) " >&6
9205else
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207/* end confdefs.h. */
9208
9209int
9210main ()
9211{
9212
9213 ;
9214 return 0;
9215}
9216_ACEOF
9217if ac_fn_c_try_link "$LINENO"; then :
9218
9219 lt_aix_libpath_sed='
9220 /Import File Strings/,/^$/ {
9221 /^0/ {
9222 s/^0 *\([^ ]*\) *$/\1/
9223 p
9224 }
9225 }'
9226 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9227 # Check for a 64-bit object if we didn't find anything.
9228 if test -z "$lt_cv_aix_libpath_"; then
9229 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9230 fi
9231fi
9232rm -f core conftest.err conftest.$ac_objext \
9233 conftest$ac_exeext conftest.$ac_ext
9234 if test -z "$lt_cv_aix_libpath_"; then
9235 lt_cv_aix_libpath_="/usr/lib:/lib"
9236 fi
9237
9238fi
9239
9240 aix_libpath=$lt_cv_aix_libpath_
9241fi
9242
9243 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9244 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"
9245 else
9246 if test "$host_cpu" = ia64; then
9247 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9248 allow_undefined_flag="-z nodefs"
9249 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"
9250 else
9251 # Determine the default libpath from the value encoded in an
9252 # empty executable.
9253 if test "${lt_cv_aix_libpath+set}" = set; then
9254 aix_libpath=$lt_cv_aix_libpath
9255else
9256 if ${lt_cv_aix_libpath_+:} false; then :
9257 $as_echo_n "(cached) " >&6
9258else
9259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9260/* end confdefs.h. */
9261
9262int
9263main ()
9264{
9265
9266 ;
9267 return 0;
9268}
9269_ACEOF
9270if ac_fn_c_try_link "$LINENO"; then :
9271
9272 lt_aix_libpath_sed='
9273 /Import File Strings/,/^$/ {
9274 /^0/ {
9275 s/^0 *\([^ ]*\) *$/\1/
9276 p
9277 }
9278 }'
9279 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9280 # Check for a 64-bit object if we didn't find anything.
9281 if test -z "$lt_cv_aix_libpath_"; then
9282 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9283 fi
9284fi
9285rm -f core conftest.err conftest.$ac_objext \
9286 conftest$ac_exeext conftest.$ac_ext
9287 if test -z "$lt_cv_aix_libpath_"; then
9288 lt_cv_aix_libpath_="/usr/lib:/lib"
9289 fi
9290
9291fi
9292
9293 aix_libpath=$lt_cv_aix_libpath_
9294fi
9295
9296 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9297 # Warning - without using the other run time loading flags,
9298 # -berok will link without error, but may produce a broken library.
9299 no_undefined_flag=' ${wl}-bernotok'
9300 allow_undefined_flag=' ${wl}-berok'
9301 if test "$with_gnu_ld" = yes; then
9302 # We only use this code for GNU lds that support --whole-archive.
9303 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9304 else
9305 # Exported symbols can be pulled into shared objects from archives
9306 whole_archive_flag_spec='$convenience'
9307 fi
9308 archive_cmds_need_lc=yes
9309 # This is similar to how AIX traditionally builds its shared libraries.
9310 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'
9311 fi
9312 fi
9313 ;;
9314
9315 amigaos*)
9316 case $host_cpu in
9317 powerpc)
9318 # see comment about AmigaOS4 .so support
9319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9320 archive_expsym_cmds=''
9321 ;;
9322 m68k)
9323 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)'
9324 hardcode_libdir_flag_spec='-L$libdir'
9325 hardcode_minus_L=yes
9326 ;;
9327 esac
9328 ;;
9329
9330 bsdi[45]*)
9331 export_dynamic_flag_spec=-rdynamic
9332 ;;
9333
9334 cygwin* | mingw* | pw32* | cegcc*)
9335 # When not using gcc, we currently assume that we are using
9336 # Microsoft Visual C++.
9337 # hardcode_libdir_flag_spec is actually meaningless, as there is
9338 # no search path for DLLs.
9339 case $cc_basename in
9340 cl*)
9341 # Native MSVC
9342 hardcode_libdir_flag_spec=' '
9343 allow_undefined_flag=unsupported
9344 always_export_symbols=yes
9345 file_list_spec='@'
9346 # Tell ltmain to make .lib files, not .a files.
9347 libext=lib
9348 # Tell ltmain to make .dll files, not .so files.
9349 shrext_cmds=".dll"
9350 # FIXME: Setting linknames here is a bad hack.
9351 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9352 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9353 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9354 else
9355 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9356 fi~
9357 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9358 linknames='
9359 # The linker will not automatically build a static lib if we build a DLL.
9360 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9361 enable_shared_with_static_runtimes=yes
9362 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9363 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9364 # Don't use ranlib
9365 old_postinstall_cmds='chmod 644 $oldlib'
9366 postlink_cmds='lt_outputfile="@OUTPUT@"~
9367 lt_tool_outputfile="@TOOL_OUTPUT@"~
9368 case $lt_outputfile in
9369 *.exe|*.EXE) ;;
9370 *)
9371 lt_outputfile="$lt_outputfile.exe"
9372 lt_tool_outputfile="$lt_tool_outputfile.exe"
9373 ;;
9374 esac~
9375 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9376 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9377 $RM "$lt_outputfile.manifest";
9378 fi'
9379 ;;
9380 *)
9381 # Assume MSVC wrapper
9382 hardcode_libdir_flag_spec=' '
9383 allow_undefined_flag=unsupported
9384 # Tell ltmain to make .lib files, not .a files.
9385 libext=lib
9386 # Tell ltmain to make .dll files, not .so files.
9387 shrext_cmds=".dll"
9388 # FIXME: Setting linknames here is a bad hack.
9389 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9390 # The linker will automatically build a .lib file if we build a DLL.
9391 old_archive_from_new_cmds='true'
9392 # FIXME: Should let the user specify the lib program.
9393 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9394 enable_shared_with_static_runtimes=yes
9395 ;;
9396 esac
9397 ;;
9398
9399 darwin* | rhapsody*)
9400
9401
9402 archive_cmds_need_lc=no
9403 hardcode_direct=no
9404 hardcode_automatic=yes
9405 hardcode_shlibpath_var=unsupported
9406 if test "$lt_cv_ld_force_load" = "yes"; then
9407 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\"`'
9408
9409 else
9410 whole_archive_flag_spec=''
9411 fi
9412 link_all_deplibs=yes
9413 allow_undefined_flag="$_lt_dar_allow_undefined"
9414 case $cc_basename in
9415 ifort*) _lt_dar_can_shared=yes ;;
9416 *) _lt_dar_can_shared=$GCC ;;
9417 esac
9418 if test "$_lt_dar_can_shared" = "yes"; then
9419 output_verbose_link_cmd=func_echo_all
9420 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9421 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9422 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}"
9423 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}"
9424
9425 else
9426 ld_shlibs=no
9427 fi
9428
9429 ;;
9430
9431 dgux*)
9432 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9433 hardcode_libdir_flag_spec='-L$libdir'
9434 hardcode_shlibpath_var=no
9435 ;;
9436
9437 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9438 # support. Future versions do this automatically, but an explicit c++rt0.o
9439 # does not break anything, and helps significantly (at the cost of a little
9440 # extra space).
9441 freebsd2.2*)
9442 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9443 hardcode_libdir_flag_spec='-R$libdir'
9444 hardcode_direct=yes
9445 hardcode_shlibpath_var=no
9446 ;;
9447
9448 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9449 freebsd2.*)
9450 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9451 hardcode_direct=yes
9452 hardcode_minus_L=yes
9453 hardcode_shlibpath_var=no
9454 ;;
9455
9456 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9457 freebsd* | dragonfly*)
9458 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9459 hardcode_libdir_flag_spec='-R$libdir'
9460 hardcode_direct=yes
9461 hardcode_shlibpath_var=no
9462 ;;
9463
9464 hpux9*)
9465 if test "$GCC" = yes; then
9466 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'
9467 else
9468 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'
9469 fi
9470 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9471 hardcode_libdir_separator=:
9472 hardcode_direct=yes
9473
9474 # hardcode_minus_L: Not really in the search PATH,
9475 # but as the default location of the library.
9476 hardcode_minus_L=yes
9477 export_dynamic_flag_spec='${wl}-E'
9478 ;;
9479
9480 hpux10*)
9481 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9482 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9483 else
9484 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9485 fi
9486 if test "$with_gnu_ld" = no; then
9487 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9488 hardcode_libdir_separator=:
9489 hardcode_direct=yes
9490 hardcode_direct_absolute=yes
9491 export_dynamic_flag_spec='${wl}-E'
9492 # hardcode_minus_L: Not really in the search PATH,
9493 # but as the default location of the library.
9494 hardcode_minus_L=yes
9495 fi
9496 ;;
9497
9498 hpux11*)
9499 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9500 case $host_cpu in
9501 hppa*64*)
9502 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9503 ;;
9504 ia64*)
9505 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9506 ;;
9507 *)
9508 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9509 ;;
9510 esac
9511 else
9512 case $host_cpu in
9513 hppa*64*)
9514 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9515 ;;
9516 ia64*)
9517 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9518 ;;
9519 *)
9520
9521 # Older versions of the 11.00 compiler do not understand -b yet
9522 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9524$as_echo_n "checking if $CC understands -b... " >&6; }
9525if ${lt_cv_prog_compiler__b+:} false; then :
9526 $as_echo_n "(cached) " >&6
9527else
9528 lt_cv_prog_compiler__b=no
9529 save_LDFLAGS="$LDFLAGS"
9530 LDFLAGS="$LDFLAGS -b"
9531 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9532 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9533 # The linker can only warn and ignore the option if not recognized
9534 # So say no if there are warnings
9535 if test -s conftest.err; then
9536 # Append any errors to the config.log.
9537 cat conftest.err 1>&5
9538 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9540 if diff conftest.exp conftest.er2 >/dev/null; then
9541 lt_cv_prog_compiler__b=yes
9542 fi
9543 else
9544 lt_cv_prog_compiler__b=yes
9545 fi
9546 fi
9547 $RM -r conftest*
9548 LDFLAGS="$save_LDFLAGS"
9549
9550fi
9551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9552$as_echo "$lt_cv_prog_compiler__b" >&6; }
9553
9554if test x"$lt_cv_prog_compiler__b" = xyes; then
9555 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9556else
9557 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9558fi
9559
9560 ;;
9561 esac
9562 fi
9563 if test "$with_gnu_ld" = no; then
9564 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9565 hardcode_libdir_separator=:
9566
9567 case $host_cpu in
9568 hppa*64*|ia64*)
9569 hardcode_direct=no
9570 hardcode_shlibpath_var=no
9571 ;;
9572 *)
9573 hardcode_direct=yes
9574 hardcode_direct_absolute=yes
9575 export_dynamic_flag_spec='${wl}-E'
9576
9577 # hardcode_minus_L: Not really in the search PATH,
9578 # but as the default location of the library.
9579 hardcode_minus_L=yes
9580 ;;
9581 esac
9582 fi
9583 ;;
9584
9585 irix5* | irix6* | nonstopux*)
9586 if test "$GCC" = yes; then
9587 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'
9588 # Try to use the -exported_symbol ld option, if it does not
9589 # work, assume that -exports_file does not work either and
9590 # implicitly export all symbols.
9591 # This should be the same for all languages, so no per-tag cache variable.
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9593$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9594if ${lt_cv_irix_exported_symbol+:} false; then :
9595 $as_echo_n "(cached) " >&6
9596else
9597 save_LDFLAGS="$LDFLAGS"
9598 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9600/* end confdefs.h. */
9601int foo (void) { return 0; }
9602_ACEOF
9603if ac_fn_c_try_link "$LINENO"; then :
9604 lt_cv_irix_exported_symbol=yes
9605else
9606 lt_cv_irix_exported_symbol=no
9607fi
9608rm -f core conftest.err conftest.$ac_objext \
9609 conftest$ac_exeext conftest.$ac_ext
9610 LDFLAGS="$save_LDFLAGS"
9611fi
9612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9613$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9614 if test "$lt_cv_irix_exported_symbol" = yes; then
9615 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'
9616 fi
9617 else
9618 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'
9619 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'
9620 fi
9621 archive_cmds_need_lc='no'
9622 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9623 hardcode_libdir_separator=:
9624 inherit_rpath=yes
9625 link_all_deplibs=yes
9626 ;;
9627
9628 netbsd*)
9629 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9630 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9631 else
9632 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9633 fi
9634 hardcode_libdir_flag_spec='-R$libdir'
9635 hardcode_direct=yes
9636 hardcode_shlibpath_var=no
9637 ;;
9638
9639 newsos6)
9640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9641 hardcode_direct=yes
9642 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9643 hardcode_libdir_separator=:
9644 hardcode_shlibpath_var=no
9645 ;;
9646
9647 *nto* | *qnx*)
9648 ;;
9649
9650 openbsd*)
9651 if test -f /usr/libexec/ld.so; then
9652 hardcode_direct=yes
9653 hardcode_shlibpath_var=no
9654 hardcode_direct_absolute=yes
9655 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9656 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9657 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9658 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9659 export_dynamic_flag_spec='${wl}-E'
9660 else
9661 case $host_os in
9662 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9663 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9664 hardcode_libdir_flag_spec='-R$libdir'
9665 ;;
9666 *)
9667 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9668 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9669 ;;
9670 esac
9671 fi
9672 else
9673 ld_shlibs=no
9674 fi
9675 ;;
9676
9677 os2*)
9678 hardcode_libdir_flag_spec='-L$libdir'
9679 hardcode_minus_L=yes
9680 allow_undefined_flag=unsupported
9681 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'
9682 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9683 ;;
9684
9685 osf3*)
9686 if test "$GCC" = yes; then
9687 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9688 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'
9689 else
9690 allow_undefined_flag=' -expect_unresolved \*'
9691 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'
9692 fi
9693 archive_cmds_need_lc='no'
9694 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9695 hardcode_libdir_separator=:
9696 ;;
9697
9698 osf4* | osf5*) # as osf3* with the addition of -msym flag
9699 if test "$GCC" = yes; then
9700 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9701 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'
9702 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9703 else
9704 allow_undefined_flag=' -expect_unresolved \*'
9705 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'
9706 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~
9707 $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'
9708
9709 # Both c and cxx compiler support -rpath directly
9710 hardcode_libdir_flag_spec='-rpath $libdir'
9711 fi
9712 archive_cmds_need_lc='no'
9713 hardcode_libdir_separator=:
9714 ;;
9715
9716 solaris*)
9717 no_undefined_flag=' -z defs'
9718 if test "$GCC" = yes; then
9719 wlarc='${wl}'
9720 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9721 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9722 $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'
9723 else
9724 case `$CC -V 2>&1` in
9725 *"Compilers 5.0"*)
9726 wlarc=''
9727 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9728 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9729 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9730 ;;
9731 *)
9732 wlarc='${wl}'
9733 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9734 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9735 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9736 ;;
9737 esac
9738 fi
9739 hardcode_libdir_flag_spec='-R$libdir'
9740 hardcode_shlibpath_var=no
9741 case $host_os in
9742 solaris2.[0-5] | solaris2.[0-5].*) ;;
9743 *)
9744 # The compiler driver will combine and reorder linker options,
9745 # but understands `-z linker_flag'. GCC discards it without `$wl',
9746 # but is careful enough not to reorder.
9747 # Supported since Solaris 2.6 (maybe 2.5.1?)
9748 if test "$GCC" = yes; then
9749 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9750 else
9751 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9752 fi
9753 ;;
9754 esac
9755 link_all_deplibs=yes
9756 ;;
9757
9758 sunos4*)
9759 if test "x$host_vendor" = xsequent; then
9760 # Use $CC to link under sequent, because it throws in some extra .o
9761 # files that make .init and .fini sections work.
9762 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9763 else
9764 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9765 fi
9766 hardcode_libdir_flag_spec='-L$libdir'
9767 hardcode_direct=yes
9768 hardcode_minus_L=yes
9769 hardcode_shlibpath_var=no
9770 ;;
9771
9772 sysv4)
9773 case $host_vendor in
9774 sni)
9775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9776 hardcode_direct=yes # is this really true???
9777 ;;
9778 siemens)
9779 ## LD is ld it makes a PLAMLIB
9780 ## CC just makes a GrossModule.
9781 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9782 reload_cmds='$CC -r -o $output$reload_objs'
9783 hardcode_direct=no
9784 ;;
9785 motorola)
9786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9787 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9788 ;;
9789 esac
9790 runpath_var='LD_RUN_PATH'
9791 hardcode_shlibpath_var=no
9792 ;;
9793
9794 sysv4.3*)
9795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9796 hardcode_shlibpath_var=no
9797 export_dynamic_flag_spec='-Bexport'
9798 ;;
9799
9800 sysv4*MP*)
9801 if test -d /usr/nec; then
9802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9803 hardcode_shlibpath_var=no
9804 runpath_var=LD_RUN_PATH
9805 hardcode_runpath_var=yes
9806 ld_shlibs=yes
9807 fi
9808 ;;
9809
9810 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9811 no_undefined_flag='${wl}-z,text'
9812 archive_cmds_need_lc=no
9813 hardcode_shlibpath_var=no
9814 runpath_var='LD_RUN_PATH'
9815
9816 if test "$GCC" = yes; then
9817 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9818 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9819 else
9820 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9821 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9822 fi
9823 ;;
9824
9825 sysv5* | sco3.2v5* | sco5v6*)
9826 # Note: We can NOT use -z defs as we might desire, because we do not
9827 # link with -lc, and that would cause any symbols used from libc to
9828 # always be unresolved, which means just about no library would
9829 # ever link correctly. If we're not using GNU ld we use -z text
9830 # though, which does catch some bad symbols but isn't as heavy-handed
9831 # as -z defs.
9832 no_undefined_flag='${wl}-z,text'
9833 allow_undefined_flag='${wl}-z,nodefs'
9834 archive_cmds_need_lc=no
9835 hardcode_shlibpath_var=no
9836 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9837 hardcode_libdir_separator=':'
9838 link_all_deplibs=yes
9839 export_dynamic_flag_spec='${wl}-Bexport'
9840 runpath_var='LD_RUN_PATH'
9841
9842 if test "$GCC" = yes; then
9843 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9844 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9845 else
9846 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9847 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9848 fi
9849 ;;
9850
9851 uts4*)
9852 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9853 hardcode_libdir_flag_spec='-L$libdir'
9854 hardcode_shlibpath_var=no
9855 ;;
9856
9857 *)
9858 ld_shlibs=no
9859 ;;
9860 esac
9861
9862 if test x$host_vendor = xsni; then
9863 case $host in
9864 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9865 export_dynamic_flag_spec='${wl}-Blargedynsym'
9866 ;;
9867 esac
9868 fi
9869 fi
9870
9871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9872$as_echo "$ld_shlibs" >&6; }
9873test "$ld_shlibs" = no && can_build_shared=no
9874
9875with_gnu_ld=$with_gnu_ld
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891#
9892# Do we need to explicitly link libc?
9893#
9894case "x$archive_cmds_need_lc" in
9895x|xyes)
9896 # Assume -lc should be added
9897 archive_cmds_need_lc=yes
9898
9899 if test "$enable_shared" = yes && test "$GCC" = yes; then
9900 case $archive_cmds in
9901 *'~'*)
9902 # FIXME: we may have to deal with multi-command sequences.
9903 ;;
9904 '$CC '*)
9905 # Test whether the compiler implicitly links with -lc since on some
9906 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9907 # to ld, don't add -lc before -lgcc.
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9909$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9910if ${lt_cv_archive_cmds_need_lc+:} false; then :
9911 $as_echo_n "(cached) " >&6
9912else
9913 $RM conftest*
9914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9915
9916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9917 (eval $ac_compile) 2>&5
9918 ac_status=$?
9919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9920 test $ac_status = 0; } 2>conftest.err; then
9921 soname=conftest
9922 lib=conftest
9923 libobjs=conftest.$ac_objext
9924 deplibs=
9925 wl=$lt_prog_compiler_wl
9926 pic_flag=$lt_prog_compiler_pic
9927 compiler_flags=-v
9928 linker_flags=-v
9929 verstring=
9930 output_objdir=.
9931 libname=conftest
9932 lt_save_allow_undefined_flag=$allow_undefined_flag
9933 allow_undefined_flag=
9934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9935 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9936 ac_status=$?
9937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9938 test $ac_status = 0; }
9939 then
9940 lt_cv_archive_cmds_need_lc=no
9941 else
9942 lt_cv_archive_cmds_need_lc=yes
9943 fi
9944 allow_undefined_flag=$lt_save_allow_undefined_flag
9945 else
9946 cat conftest.err 1>&5
9947 fi
9948 $RM conftest*
9949
9950fi
9951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9952$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9953 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9954 ;;
9955 esac
9956 fi
9957 ;;
9958esac
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10112$as_echo_n "checking dynamic linker characteristics... " >&6; }
10113
10114if test "$GCC" = yes; then
10115 case $host_os in
10116 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10117 *) lt_awk_arg="/^libraries:/" ;;
10118 esac
10119 case $host_os in
10120 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10121 *) lt_sed_strip_eq="s,=/,/,g" ;;
10122 esac
10123 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10124 case $lt_search_path_spec in
10125 *\;*)
10126 # if the path contains ";" then we assume it to be the separator
10127 # otherwise default to the standard path separator (i.e. ":") - it is
10128 # assumed that no part of a normal pathname contains ";" but that should
10129 # okay in the real world where ";" in dirpaths is itself problematic.
10130 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10131 ;;
10132 *)
10133 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10134 ;;
10135 esac
10136 # Ok, now we have the path, separated by spaces, we can step through it
10137 # and add multilib dir if necessary.
10138 lt_tmp_lt_search_path_spec=
10139 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10140 for lt_sys_path in $lt_search_path_spec; do
10141 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10142 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10143 else
10144 test -d "$lt_sys_path" && \
10145 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10146 fi
10147 done
10148 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10149BEGIN {RS=" "; FS="/|\n";} {
10150 lt_foo="";
10151 lt_count=0;
10152 for (lt_i = NF; lt_i > 0; lt_i--) {
10153 if ($lt_i != "" && $lt_i != ".") {
10154 if ($lt_i == "..") {
10155 lt_count++;
10156 } else {
10157 if (lt_count == 0) {
10158 lt_foo="/" $lt_i lt_foo;
10159 } else {
10160 lt_count--;
10161 }
10162 }
10163 }
10164 }
10165 if (lt_foo != "") { lt_freq[lt_foo]++; }
10166 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10167}'`
10168 # AWK program above erroneously prepends '/' to C:/dos/paths
10169 # for these hosts.
10170 case $host_os in
10171 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10172 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10173 esac
10174 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10175else
10176 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10177fi
10178library_names_spec=
10179libname_spec='lib$name'
10180soname_spec=
10181shrext_cmds=".so"
10182postinstall_cmds=
10183postuninstall_cmds=
10184finish_cmds=
10185finish_eval=
10186shlibpath_var=
10187shlibpath_overrides_runpath=unknown
10188version_type=none
10189dynamic_linker="$host_os ld.so"
10190sys_lib_dlsearch_path_spec="/lib /usr/lib"
10191need_lib_prefix=unknown
10192hardcode_into_libs=no
10193
10194# when you set need_version to no, make sure it does not cause -set_version
10195# flags to be left without arguments
10196need_version=unknown
10197
10198case $host_os in
10199aix3*)
10200 version_type=linux # correct to gnu/linux during the next big refactor
10201 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10202 shlibpath_var=LIBPATH
10203
10204 # AIX 3 has no versioning support, so we append a major version to the name.
10205 soname_spec='${libname}${release}${shared_ext}$major'
10206 ;;
10207
10208aix[4-9]*)
10209 version_type=linux # correct to gnu/linux during the next big refactor
10210 need_lib_prefix=no
10211 need_version=no
10212 hardcode_into_libs=yes
10213 if test "$host_cpu" = ia64; then
10214 # AIX 5 supports IA64
10215 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10216 shlibpath_var=LD_LIBRARY_PATH
10217 else
10218 # With GCC up to 2.95.x, collect2 would create an import file
10219 # for dependence libraries. The import file would start with
10220 # the line `#! .'. This would cause the generated library to
10221 # depend on `.', always an invalid library. This was fixed in
10222 # development snapshots of GCC prior to 3.0.
10223 case $host_os in
10224 aix4 | aix4.[01] | aix4.[01].*)
10225 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10226 echo ' yes '
10227 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10228 :
10229 else
10230 can_build_shared=no
10231 fi
10232 ;;
10233 esac
10234 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10235 # soname into executable. Probably we can add versioning support to
10236 # collect2, so additional links can be useful in future.
10237 if test "$aix_use_runtimelinking" = yes; then
10238 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10239 # instead of lib<name>.a to let people know that these are not
10240 # typical AIX shared libraries.
10241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10242 else
10243 # We preserve .a as extension for shared libraries through AIX4.2
10244 # and later when we are not doing run time linking.
10245 library_names_spec='${libname}${release}.a $libname.a'
10246 soname_spec='${libname}${release}${shared_ext}$major'
10247 fi
10248 shlibpath_var=LIBPATH
10249 fi
10250 ;;
10251
10252amigaos*)
10253 case $host_cpu in
10254 powerpc)
10255 # Since July 2007 AmigaOS4 officially supports .so libraries.
10256 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10258 ;;
10259 m68k)
10260 library_names_spec='$libname.ixlibrary $libname.a'
10261 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10262 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'
10263 ;;
10264 esac
10265 ;;
10266
10267beos*)
10268 library_names_spec='${libname}${shared_ext}'
10269 dynamic_linker="$host_os ld.so"
10270 shlibpath_var=LIBRARY_PATH
10271 ;;
10272
10273bsdi[45]*)
10274 version_type=linux # correct to gnu/linux during the next big refactor
10275 need_version=no
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10277 soname_spec='${libname}${release}${shared_ext}$major'
10278 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10279 shlibpath_var=LD_LIBRARY_PATH
10280 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10281 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10282 # the default ld.so.conf also contains /usr/contrib/lib and
10283 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10284 # libtool to hard-code these into programs
10285 ;;
10286
10287cygwin* | mingw* | pw32* | cegcc*)
10288 version_type=windows
10289 shrext_cmds=".dll"
10290 need_version=no
10291 need_lib_prefix=no
10292
10293 case $GCC,$cc_basename in
10294 yes,*)
10295 # gcc
10296 library_names_spec='$libname.dll.a'
10297 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10298 postinstall_cmds='base_file=`basename \${file}`~
10299 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10300 dldir=$destdir/`dirname \$dlpath`~
10301 test -d \$dldir || mkdir -p \$dldir~
10302 $install_prog $dir/$dlname \$dldir/$dlname~
10303 chmod a+x \$dldir/$dlname~
10304 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10305 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10306 fi'
10307 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10308 dlpath=$dir/\$dldll~
10309 $RM \$dlpath'
10310 shlibpath_overrides_runpath=yes
10311
10312 case $host_os in
10313 cygwin*)
10314 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10315 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10316
10317 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10318 ;;
10319 mingw* | cegcc*)
10320 # MinGW DLLs use traditional 'lib' prefix
10321 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10322 ;;
10323 pw32*)
10324 # pw32 DLLs use 'pw' prefix rather than 'lib'
10325 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10326 ;;
10327 esac
10328 dynamic_linker='Win32 ld.exe'
10329 ;;
10330
10331 *,cl*)
10332 # Native MSVC
10333 libname_spec='$name'
10334 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10335 library_names_spec='${libname}.dll.lib'
10336
10337 case $build_os in
10338 mingw*)
10339 sys_lib_search_path_spec=
10340 lt_save_ifs=$IFS
10341 IFS=';'
10342 for lt_path in $LIB
10343 do
10344 IFS=$lt_save_ifs
10345 # Let DOS variable expansion print the short 8.3 style file name.
10346 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10347 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10348 done
10349 IFS=$lt_save_ifs
10350 # Convert to MSYS style.
10351 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10352 ;;
10353 cygwin*)
10354 # Convert to unix form, then to dos form, then back to unix form
10355 # but this time dos style (no spaces!) so that the unix form looks
10356 # like /cygdrive/c/PROGRA~1:/cygdr...
10357 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10358 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10359 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10360 ;;
10361 *)
10362 sys_lib_search_path_spec="$LIB"
10363 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10364 # It is most probably a Windows format PATH.
10365 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10366 else
10367 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10368 fi
10369 # FIXME: find the short name or the path components, as spaces are
10370 # common. (e.g. "Program Files" -> "PROGRA~1")
10371 ;;
10372 esac
10373
10374 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10375 postinstall_cmds='base_file=`basename \${file}`~
10376 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10377 dldir=$destdir/`dirname \$dlpath`~
10378 test -d \$dldir || mkdir -p \$dldir~
10379 $install_prog $dir/$dlname \$dldir/$dlname'
10380 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10381 dlpath=$dir/\$dldll~
10382 $RM \$dlpath'
10383 shlibpath_overrides_runpath=yes
10384 dynamic_linker='Win32 link.exe'
10385 ;;
10386
10387 *)
10388 # Assume MSVC wrapper
10389 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10390 dynamic_linker='Win32 ld.exe'
10391 ;;
10392 esac
10393 # FIXME: first we should search . and the directory the executable is in
10394 shlibpath_var=PATH
10395 ;;
10396
10397darwin* | rhapsody*)
10398 dynamic_linker="$host_os dyld"
10399 version_type=darwin
10400 need_lib_prefix=no
10401 need_version=no
10402 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10403 soname_spec='${libname}${release}${major}$shared_ext'
10404 shlibpath_overrides_runpath=yes
10405 shlibpath_var=DYLD_LIBRARY_PATH
10406 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10407
10408 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10409 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10410 ;;
10411
10412dgux*)
10413 version_type=linux # correct to gnu/linux during the next big refactor
10414 need_lib_prefix=no
10415 need_version=no
10416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10417 soname_spec='${libname}${release}${shared_ext}$major'
10418 shlibpath_var=LD_LIBRARY_PATH
10419 ;;
10420
10421freebsd* | dragonfly*)
10422 # DragonFly does not have aout. When/if they implement a new
10423 # versioning mechanism, adjust this.
10424 if test -x /usr/bin/objformat; then
10425 objformat=`/usr/bin/objformat`
10426 else
10427 case $host_os in
10428 freebsd[23].*) objformat=aout ;;
10429 *) objformat=elf ;;
10430 esac
10431 fi
10432 version_type=freebsd-$objformat
10433 case $version_type in
10434 freebsd-elf*)
10435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10436 need_version=no
10437 need_lib_prefix=no
10438 ;;
10439 freebsd-*)
10440 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10441 need_version=yes
10442 ;;
10443 esac
10444 shlibpath_var=LD_LIBRARY_PATH
10445 case $host_os in
10446 freebsd2.*)
10447 shlibpath_overrides_runpath=yes
10448 ;;
10449 freebsd3.[01]* | freebsdelf3.[01]*)
10450 shlibpath_overrides_runpath=yes
10451 hardcode_into_libs=yes
10452 ;;
10453 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10454 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10455 shlibpath_overrides_runpath=no
10456 hardcode_into_libs=yes
10457 ;;
10458 *) # from 4.6 on, and DragonFly
10459 shlibpath_overrides_runpath=yes
10460 hardcode_into_libs=yes
10461 ;;
10462 esac
10463 ;;
10464
10465gnu*)
10466 version_type=linux # correct to gnu/linux during the next big refactor
10467 need_lib_prefix=no
10468 need_version=no
10469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10470 soname_spec='${libname}${release}${shared_ext}$major'
10471 shlibpath_var=LD_LIBRARY_PATH
10472 shlibpath_overrides_runpath=no
10473 hardcode_into_libs=yes
10474 ;;
10475
10476haiku*)
10477 version_type=linux # correct to gnu/linux during the next big refactor
10478 need_lib_prefix=no
10479 need_version=no
10480 dynamic_linker="$host_os runtime_loader"
10481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10482 soname_spec='${libname}${release}${shared_ext}$major'
10483 shlibpath_var=LIBRARY_PATH
10484 shlibpath_overrides_runpath=yes
10485 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10486 hardcode_into_libs=yes
10487 ;;
10488
10489hpux9* | hpux10* | hpux11*)
10490 # Give a soname corresponding to the major version so that dld.sl refuses to
10491 # link against other versions.
10492 version_type=sunos
10493 need_lib_prefix=no
10494 need_version=no
10495 case $host_cpu in
10496 ia64*)
10497 shrext_cmds='.so'
10498 hardcode_into_libs=yes
10499 dynamic_linker="$host_os dld.so"
10500 shlibpath_var=LD_LIBRARY_PATH
10501 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10503 soname_spec='${libname}${release}${shared_ext}$major'
10504 if test "X$HPUX_IA64_MODE" = X32; then
10505 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10506 else
10507 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10508 fi
10509 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10510 ;;
10511 hppa*64*)
10512 shrext_cmds='.sl'
10513 hardcode_into_libs=yes
10514 dynamic_linker="$host_os dld.sl"
10515 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10516 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10518 soname_spec='${libname}${release}${shared_ext}$major'
10519 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10520 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10521 ;;
10522 *)
10523 shrext_cmds='.sl'
10524 dynamic_linker="$host_os dld.sl"
10525 shlibpath_var=SHLIB_PATH
10526 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10528 soname_spec='${libname}${release}${shared_ext}$major'
10529 ;;
10530 esac
10531 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10532 postinstall_cmds='chmod 555 $lib'
10533 # or fails outright, so override atomically:
10534 install_override_mode=555
10535 ;;
10536
10537interix[3-9]*)
10538 version_type=linux # correct to gnu/linux during the next big refactor
10539 need_lib_prefix=no
10540 need_version=no
10541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10542 soname_spec='${libname}${release}${shared_ext}$major'
10543 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10544 shlibpath_var=LD_LIBRARY_PATH
10545 shlibpath_overrides_runpath=no
10546 hardcode_into_libs=yes
10547 ;;
10548
10549irix5* | irix6* | nonstopux*)
10550 case $host_os in
10551 nonstopux*) version_type=nonstopux ;;
10552 *)
10553 if test "$lt_cv_prog_gnu_ld" = yes; then
10554 version_type=linux # correct to gnu/linux during the next big refactor
10555 else
10556 version_type=irix
10557 fi ;;
10558 esac
10559 need_lib_prefix=no
10560 need_version=no
10561 soname_spec='${libname}${release}${shared_ext}$major'
10562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10563 case $host_os in
10564 irix5* | nonstopux*)
10565 libsuff= shlibsuff=
10566 ;;
10567 *)
10568 case $LD in # libtool.m4 will add one of these switches to LD
10569 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10570 libsuff= shlibsuff= libmagic=32-bit;;
10571 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10572 libsuff=32 shlibsuff=N32 libmagic=N32;;
10573 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10574 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10575 *) libsuff= shlibsuff= libmagic=never-match;;
10576 esac
10577 ;;
10578 esac
10579 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10580 shlibpath_overrides_runpath=no
10581 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10582 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10583 hardcode_into_libs=yes
10584 ;;
10585
10586# No shared lib support for Linux oldld, aout, or coff.
10587linux*oldld* | linux*aout* | linux*coff*)
10588 dynamic_linker=no
10589 ;;
10590
10591# This must be glibc/ELF.
10592linux* | k*bsd*-gnu | kopensolaris*-gnu)
10593 version_type=linux # correct to gnu/linux during the next big refactor
10594 need_lib_prefix=no
10595 need_version=no
10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597 soname_spec='${libname}${release}${shared_ext}$major'
10598 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10599 shlibpath_var=LD_LIBRARY_PATH
10600 shlibpath_overrides_runpath=no
10601
10602 # Some binutils ld are patched to set DT_RUNPATH
10603 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10604 $as_echo_n "(cached) " >&6
10605else
10606 lt_cv_shlibpath_overrides_runpath=no
10607 save_LDFLAGS=$LDFLAGS
10608 save_libdir=$libdir
10609 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10610 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10612/* end confdefs.h. */
10613
10614int
10615main ()
10616{
10617
10618 ;
10619 return 0;
10620}
10621_ACEOF
10622if ac_fn_c_try_link "$LINENO"; then :
10623 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10624 lt_cv_shlibpath_overrides_runpath=yes
10625fi
10626fi
10627rm -f core conftest.err conftest.$ac_objext \
10628 conftest$ac_exeext conftest.$ac_ext
10629 LDFLAGS=$save_LDFLAGS
10630 libdir=$save_libdir
10631
10632fi
10633
10634 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10635
10636 # This implies no fast_install, which is unacceptable.
10637 # Some rework will be needed to allow for fast_install
10638 # before this can be enabled.
10639 hardcode_into_libs=yes
10640
10641 # Append ld.so.conf contents to the search path
10642 if test -f /etc/ld.so.conf; then
10643 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' ' '`
10644 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10645 fi
10646
10647 # We used to test for /lib/ld.so.1 and disable shared libraries on
10648 # powerpc, because MkLinux only supported shared libraries with the
10649 # GNU dynamic linker. Since this was broken with cross compilers,
10650 # most powerpc-linux boxes support dynamic linking these days and
10651 # people can always --disable-shared, the test was removed, and we
10652 # assume the GNU/Linux dynamic linker is in use.
10653 dynamic_linker='GNU/Linux ld.so'
10654 ;;
10655
10656netbsd*)
10657 version_type=sunos
10658 need_lib_prefix=no
10659 need_version=no
10660 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10663 dynamic_linker='NetBSD (a.out) ld.so'
10664 else
10665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10666 soname_spec='${libname}${release}${shared_ext}$major'
10667 dynamic_linker='NetBSD ld.elf_so'
10668 fi
10669 shlibpath_var=LD_LIBRARY_PATH
10670 shlibpath_overrides_runpath=yes
10671 hardcode_into_libs=yes
10672 ;;
10673
10674newsos6)
10675 version_type=linux # correct to gnu/linux during the next big refactor
10676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10677 shlibpath_var=LD_LIBRARY_PATH
10678 shlibpath_overrides_runpath=yes
10679 ;;
10680
10681*nto* | *qnx*)
10682 version_type=qnx
10683 need_lib_prefix=no
10684 need_version=no
10685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10686 soname_spec='${libname}${release}${shared_ext}$major'
10687 shlibpath_var=LD_LIBRARY_PATH
10688 shlibpath_overrides_runpath=no
10689 hardcode_into_libs=yes
10690 dynamic_linker='ldqnx.so'
10691 ;;
10692
10693openbsd*)
10694 version_type=sunos
10695 sys_lib_dlsearch_path_spec="/usr/lib"
10696 need_lib_prefix=no
10697 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10698 case $host_os in
10699 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10700 *) need_version=no ;;
10701 esac
10702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10703 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10704 shlibpath_var=LD_LIBRARY_PATH
10705 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10706 case $host_os in
10707 openbsd2.[89] | openbsd2.[89].*)
10708 shlibpath_overrides_runpath=no
10709 ;;
10710 *)
10711 shlibpath_overrides_runpath=yes
10712 ;;
10713 esac
10714 else
10715 shlibpath_overrides_runpath=yes
10716 fi
10717 ;;
10718
10719os2*)
10720 libname_spec='$name'
10721 shrext_cmds=".dll"
10722 need_lib_prefix=no
10723 library_names_spec='$libname${shared_ext} $libname.a'
10724 dynamic_linker='OS/2 ld.exe'
10725 shlibpath_var=LIBPATH
10726 ;;
10727
10728osf3* | osf4* | osf5*)
10729 version_type=osf
10730 need_lib_prefix=no
10731 need_version=no
10732 soname_spec='${libname}${release}${shared_ext}$major'
10733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10734 shlibpath_var=LD_LIBRARY_PATH
10735 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10736 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10737 ;;
10738
10739rdos*)
10740 dynamic_linker=no
10741 ;;
10742
10743solaris*)
10744 version_type=linux # correct to gnu/linux during the next big refactor
10745 need_lib_prefix=no
10746 need_version=no
10747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10748 soname_spec='${libname}${release}${shared_ext}$major'
10749 shlibpath_var=LD_LIBRARY_PATH
10750 shlibpath_overrides_runpath=yes
10751 hardcode_into_libs=yes
10752 # ldd complains unless libraries are executable
10753 postinstall_cmds='chmod +x $lib'
10754 ;;
10755
10756sunos4*)
10757 version_type=sunos
10758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10759 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10760 shlibpath_var=LD_LIBRARY_PATH
10761 shlibpath_overrides_runpath=yes
10762 if test "$with_gnu_ld" = yes; then
10763 need_lib_prefix=no
10764 fi
10765 need_version=yes
10766 ;;
10767
10768sysv4 | sysv4.3*)
10769 version_type=linux # correct to gnu/linux during the next big refactor
10770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10771 soname_spec='${libname}${release}${shared_ext}$major'
10772 shlibpath_var=LD_LIBRARY_PATH
10773 case $host_vendor in
10774 sni)
10775 shlibpath_overrides_runpath=no
10776 need_lib_prefix=no
10777 runpath_var=LD_RUN_PATH
10778 ;;
10779 siemens)
10780 need_lib_prefix=no
10781 ;;
10782 motorola)
10783 need_lib_prefix=no
10784 need_version=no
10785 shlibpath_overrides_runpath=no
10786 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10787 ;;
10788 esac
10789 ;;
10790
10791sysv4*MP*)
10792 if test -d /usr/nec ;then
10793 version_type=linux # correct to gnu/linux during the next big refactor
10794 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10795 soname_spec='$libname${shared_ext}.$major'
10796 shlibpath_var=LD_LIBRARY_PATH
10797 fi
10798 ;;
10799
10800sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10801 version_type=freebsd-elf
10802 need_lib_prefix=no
10803 need_version=no
10804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10805 soname_spec='${libname}${release}${shared_ext}$major'
10806 shlibpath_var=LD_LIBRARY_PATH
10807 shlibpath_overrides_runpath=yes
10808 hardcode_into_libs=yes
10809 if test "$with_gnu_ld" = yes; then
10810 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10811 else
10812 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10813 case $host_os in
10814 sco3.2v5*)
10815 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10816 ;;
10817 esac
10818 fi
10819 sys_lib_dlsearch_path_spec='/usr/lib'
10820 ;;
10821
10822tpf*)
10823 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10824 version_type=linux # correct to gnu/linux during the next big refactor
10825 need_lib_prefix=no
10826 need_version=no
10827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10828 shlibpath_var=LD_LIBRARY_PATH
10829 shlibpath_overrides_runpath=no
10830 hardcode_into_libs=yes
10831 ;;
10832
10833uts4*)
10834 version_type=linux # correct to gnu/linux during the next big refactor
10835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10836 soname_spec='${libname}${release}${shared_ext}$major'
10837 shlibpath_var=LD_LIBRARY_PATH
10838 ;;
10839
10840*)
10841 dynamic_linker=no
10842 ;;
10843esac
10844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10845$as_echo "$dynamic_linker" >&6; }
10846test "$dynamic_linker" = no && can_build_shared=no
10847
10848variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10849if test "$GCC" = yes; then
10850 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10851fi
10852
10853if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10854 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10855fi
10856if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10857 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10858fi
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
10946
10947
10948
10949
10950
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10952$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10953hardcode_action=
10954if test -n "$hardcode_libdir_flag_spec" ||
10955 test -n "$runpath_var" ||
10956 test "X$hardcode_automatic" = "Xyes" ; then
10957
10958 # We can hardcode non-existent directories.
10959 if test "$hardcode_direct" != no &&
10960 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10961 # have to relink, otherwise we might link with an installed library
10962 # when we should be linking with a yet-to-be-installed one
10963 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10964 test "$hardcode_minus_L" != no; then
10965 # Linking always hardcodes the temporary library directory.
10966 hardcode_action=relink
10967 else
10968 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10969 hardcode_action=immediate
10970 fi
10971else
10972 # We cannot hardcode anything, or else we can only hardcode existing
10973 # directories.
10974 hardcode_action=unsupported
10975fi
10976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10977$as_echo "$hardcode_action" >&6; }
10978
10979if test "$hardcode_action" = relink ||
10980 test "$inherit_rpath" = yes; then
10981 # Fast installation is not supported
10982 enable_fast_install=no
10983elif test "$shlibpath_overrides_runpath" = yes ||
10984 test "$enable_shared" = no; then
10985 # Fast installation is not necessary
10986 enable_fast_install=needless
10987fi
10988
10989
10990
10991
10992
10993
10994 if test "x$enable_dlopen" != xyes; then
10995 enable_dlopen=unknown
10996 enable_dlopen_self=unknown
10997 enable_dlopen_self_static=unknown
10998else
10999 lt_cv_dlopen=no
11000 lt_cv_dlopen_libs=
11001
11002 case $host_os in
11003 beos*)
11004 lt_cv_dlopen="load_add_on"
11005 lt_cv_dlopen_libs=
11006 lt_cv_dlopen_self=yes
11007 ;;
11008
11009 mingw* | pw32* | cegcc*)
11010 lt_cv_dlopen="LoadLibrary"
11011 lt_cv_dlopen_libs=
11012 ;;
11013
11014 cygwin*)
11015 lt_cv_dlopen="dlopen"
11016 lt_cv_dlopen_libs=
11017 ;;
11018
11019 darwin*)
11020 # if libdl is installed we need to link against it
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11022$as_echo_n "checking for dlopen in -ldl... " >&6; }
11023if ${ac_cv_lib_dl_dlopen+:} false; then :
11024 $as_echo_n "(cached) " >&6
11025else
11026 ac_check_lib_save_LIBS=$LIBS
11027LIBS="-ldl $LIBS"
11028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11029/* end confdefs.h. */
11030
11031/* Override any GCC internal prototype to avoid an error.
11032 Use char because int might match the return type of a GCC
11033 builtin and then its argument prototype would still apply. */
11034#ifdef __cplusplus
11035extern "C"
11036#endif
11037char dlopen ();
11038int
11039main ()
11040{
11041return dlopen ();
11042 ;
11043 return 0;
11044}
11045_ACEOF
11046if ac_fn_c_try_link "$LINENO"; then :
11047 ac_cv_lib_dl_dlopen=yes
11048else
11049 ac_cv_lib_dl_dlopen=no
11050fi
11051rm -f core conftest.err conftest.$ac_objext \
11052 conftest$ac_exeext conftest.$ac_ext
11053LIBS=$ac_check_lib_save_LIBS
11054fi
11055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11056$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11057if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11058 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11059else
11060
11061 lt_cv_dlopen="dyld"
11062 lt_cv_dlopen_libs=
11063 lt_cv_dlopen_self=yes
11064
11065fi
11066
11067 ;;
11068
11069 *)
11070 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11071if test "x$ac_cv_func_shl_load" = xyes; then :
11072 lt_cv_dlopen="shl_load"
11073else
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11075$as_echo_n "checking for shl_load in -ldld... " >&6; }
11076if ${ac_cv_lib_dld_shl_load+:} false; then :
11077 $as_echo_n "(cached) " >&6
11078else
11079 ac_check_lib_save_LIBS=$LIBS
11080LIBS="-ldld $LIBS"
11081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11082/* end confdefs.h. */
11083
11084/* Override any GCC internal prototype to avoid an error.
11085 Use char because int might match the return type of a GCC
11086 builtin and then its argument prototype would still apply. */
11087#ifdef __cplusplus
11088extern "C"
11089#endif
11090char shl_load ();
11091int
11092main ()
11093{
11094return shl_load ();
11095 ;
11096 return 0;
11097}
11098_ACEOF
11099if ac_fn_c_try_link "$LINENO"; then :
11100 ac_cv_lib_dld_shl_load=yes
11101else
11102 ac_cv_lib_dld_shl_load=no
11103fi
11104rm -f core conftest.err conftest.$ac_objext \
11105 conftest$ac_exeext conftest.$ac_ext
11106LIBS=$ac_check_lib_save_LIBS
11107fi
11108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11109$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11110if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11111 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11112else
11113 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11114if test "x$ac_cv_func_dlopen" = xyes; then :
11115 lt_cv_dlopen="dlopen"
11116else
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11118$as_echo_n "checking for dlopen in -ldl... " >&6; }
11119if ${ac_cv_lib_dl_dlopen+:} false; then :
11120 $as_echo_n "(cached) " >&6
11121else
11122 ac_check_lib_save_LIBS=$LIBS
11123LIBS="-ldl $LIBS"
11124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11125/* end confdefs.h. */
11126
11127/* Override any GCC internal prototype to avoid an error.
11128 Use char because int might match the return type of a GCC
11129 builtin and then its argument prototype would still apply. */
11130#ifdef __cplusplus
11131extern "C"
11132#endif
11133char dlopen ();
11134int
11135main ()
11136{
11137return dlopen ();
11138 ;
11139 return 0;
11140}
11141_ACEOF
11142if ac_fn_c_try_link "$LINENO"; then :
11143 ac_cv_lib_dl_dlopen=yes
11144else
11145 ac_cv_lib_dl_dlopen=no
11146fi
11147rm -f core conftest.err conftest.$ac_objext \
11148 conftest$ac_exeext conftest.$ac_ext
11149LIBS=$ac_check_lib_save_LIBS
11150fi
11151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11152$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11153if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11154 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11155else
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11157$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11158if ${ac_cv_lib_svld_dlopen+:} false; then :
11159 $as_echo_n "(cached) " >&6
11160else
11161 ac_check_lib_save_LIBS=$LIBS
11162LIBS="-lsvld $LIBS"
11163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11164/* end confdefs.h. */
11165
11166/* Override any GCC internal prototype to avoid an error.
11167 Use char because int might match the return type of a GCC
11168 builtin and then its argument prototype would still apply. */
11169#ifdef __cplusplus
11170extern "C"
11171#endif
11172char dlopen ();
11173int
11174main ()
11175{
11176return dlopen ();
11177 ;
11178 return 0;
11179}
11180_ACEOF
11181if ac_fn_c_try_link "$LINENO"; then :
11182 ac_cv_lib_svld_dlopen=yes
11183else
11184 ac_cv_lib_svld_dlopen=no
11185fi
11186rm -f core conftest.err conftest.$ac_objext \
11187 conftest$ac_exeext conftest.$ac_ext
11188LIBS=$ac_check_lib_save_LIBS
11189fi
11190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11191$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11192if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11193 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11194else
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11196$as_echo_n "checking for dld_link in -ldld... " >&6; }
11197if ${ac_cv_lib_dld_dld_link+:} false; then :
11198 $as_echo_n "(cached) " >&6
11199else
11200 ac_check_lib_save_LIBS=$LIBS
11201LIBS="-ldld $LIBS"
11202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11203/* end confdefs.h. */
11204
11205/* Override any GCC internal prototype to avoid an error.
11206 Use char because int might match the return type of a GCC
11207 builtin and then its argument prototype would still apply. */
11208#ifdef __cplusplus
11209extern "C"
11210#endif
11211char dld_link ();
11212int
11213main ()
11214{
11215return dld_link ();
11216 ;
11217 return 0;
11218}
11219_ACEOF
11220if ac_fn_c_try_link "$LINENO"; then :
11221 ac_cv_lib_dld_dld_link=yes
11222else
11223 ac_cv_lib_dld_dld_link=no
11224fi
11225rm -f core conftest.err conftest.$ac_objext \
11226 conftest$ac_exeext conftest.$ac_ext
11227LIBS=$ac_check_lib_save_LIBS
11228fi
11229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11230$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11231if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11232 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11233fi
11234
11235
11236fi
11237
11238
11239fi
11240
11241
11242fi
11243
11244
11245fi
11246
11247
11248fi
11249
11250 ;;
11251 esac
11252
11253 if test "x$lt_cv_dlopen" != xno; then
11254 enable_dlopen=yes
11255 else
11256 enable_dlopen=no
11257 fi
11258
11259 case $lt_cv_dlopen in
11260 dlopen)
11261 save_CPPFLAGS="$CPPFLAGS"
11262 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11263
11264 save_LDFLAGS="$LDFLAGS"
11265 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11266
11267 save_LIBS="$LIBS"
11268 LIBS="$lt_cv_dlopen_libs $LIBS"
11269
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11271$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11272if ${lt_cv_dlopen_self+:} false; then :
11273 $as_echo_n "(cached) " >&6
11274else
11275 if test "$cross_compiling" = yes; then :
11276 lt_cv_dlopen_self=cross
11277else
11278 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11279 lt_status=$lt_dlunknown
11280 cat > conftest.$ac_ext <<_LT_EOF
11281#line $LINENO "configure"
11282#include "confdefs.h"
11283
11284#if HAVE_DLFCN_H
11285#include <dlfcn.h>
11286#endif
11287
11288#include <stdio.h>
11289
11290#ifdef RTLD_GLOBAL
11291# define LT_DLGLOBAL RTLD_GLOBAL
11292#else
11293# ifdef DL_GLOBAL
11294# define LT_DLGLOBAL DL_GLOBAL
11295# else
11296# define LT_DLGLOBAL 0
11297# endif
11298#endif
11299
11300/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11301 find out it does not work in some platform. */
11302#ifndef LT_DLLAZY_OR_NOW
11303# ifdef RTLD_LAZY
11304# define LT_DLLAZY_OR_NOW RTLD_LAZY
11305# else
11306# ifdef DL_LAZY
11307# define LT_DLLAZY_OR_NOW DL_LAZY
11308# else
11309# ifdef RTLD_NOW
11310# define LT_DLLAZY_OR_NOW RTLD_NOW
11311# else
11312# ifdef DL_NOW
11313# define LT_DLLAZY_OR_NOW DL_NOW
11314# else
11315# define LT_DLLAZY_OR_NOW 0
11316# endif
11317# endif
11318# endif
11319# endif
11320#endif
11321
11322/* When -fvisbility=hidden is used, assume the code has been annotated
11323 correspondingly for the symbols needed. */
11324#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11325int fnord () __attribute__((visibility("default")));
11326#endif
11327
11328int fnord () { return 42; }
11329int main ()
11330{
11331 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11332 int status = $lt_dlunknown;
11333
11334 if (self)
11335 {
11336 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11337 else
11338 {
11339 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11340 else puts (dlerror ());
11341 }
11342 /* dlclose (self); */
11343 }
11344 else
11345 puts (dlerror ());
11346
11347 return status;
11348}
11349_LT_EOF
11350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11351 (eval $ac_link) 2>&5
11352 ac_status=$?
11353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11354 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11355 (./conftest; exit; ) >&5 2>/dev/null
11356 lt_status=$?
11357 case x$lt_status in
11358 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11359 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11360 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11361 esac
11362 else :
11363 # compilation failed
11364 lt_cv_dlopen_self=no
11365 fi
11366fi
11367rm -fr conftest*
11368
11369
11370fi
11371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11372$as_echo "$lt_cv_dlopen_self" >&6; }
11373
11374 if test "x$lt_cv_dlopen_self" = xyes; then
11375 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11377$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11378if ${lt_cv_dlopen_self_static+:} false; then :
11379 $as_echo_n "(cached) " >&6
11380else
11381 if test "$cross_compiling" = yes; then :
11382 lt_cv_dlopen_self_static=cross
11383else
11384 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11385 lt_status=$lt_dlunknown
11386 cat > conftest.$ac_ext <<_LT_EOF
11387#line $LINENO "configure"
11388#include "confdefs.h"
11389
11390#if HAVE_DLFCN_H
11391#include <dlfcn.h>
11392#endif
11393
11394#include <stdio.h>
11395
11396#ifdef RTLD_GLOBAL
11397# define LT_DLGLOBAL RTLD_GLOBAL
11398#else
11399# ifdef DL_GLOBAL
11400# define LT_DLGLOBAL DL_GLOBAL
11401# else
11402# define LT_DLGLOBAL 0
11403# endif
11404#endif
11405
11406/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11407 find out it does not work in some platform. */
11408#ifndef LT_DLLAZY_OR_NOW
11409# ifdef RTLD_LAZY
11410# define LT_DLLAZY_OR_NOW RTLD_LAZY
11411# else
11412# ifdef DL_LAZY
11413# define LT_DLLAZY_OR_NOW DL_LAZY
11414# else
11415# ifdef RTLD_NOW
11416# define LT_DLLAZY_OR_NOW RTLD_NOW
11417# else
11418# ifdef DL_NOW
11419# define LT_DLLAZY_OR_NOW DL_NOW
11420# else
11421# define LT_DLLAZY_OR_NOW 0
11422# endif
11423# endif
11424# endif
11425# endif
11426#endif
11427
11428/* When -fvisbility=hidden is used, assume the code has been annotated
11429 correspondingly for the symbols needed. */
11430#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11431int fnord () __attribute__((visibility("default")));
11432#endif
11433
11434int fnord () { return 42; }
11435int main ()
11436{
11437 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11438 int status = $lt_dlunknown;
11439
11440 if (self)
11441 {
11442 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11443 else
11444 {
11445 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11446 else puts (dlerror ());
11447 }
11448 /* dlclose (self); */
11449 }
11450 else
11451 puts (dlerror ());
11452
11453 return status;
11454}
11455_LT_EOF
11456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11457 (eval $ac_link) 2>&5
11458 ac_status=$?
11459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11460 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11461 (./conftest; exit; ) >&5 2>/dev/null
11462 lt_status=$?
11463 case x$lt_status in
11464 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11465 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11466 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11467 esac
11468 else :
11469 # compilation failed
11470 lt_cv_dlopen_self_static=no
11471 fi
11472fi
11473rm -fr conftest*
11474
11475
11476fi
11477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11478$as_echo "$lt_cv_dlopen_self_static" >&6; }
11479 fi
11480
11481 CPPFLAGS="$save_CPPFLAGS"
11482 LDFLAGS="$save_LDFLAGS"
11483 LIBS="$save_LIBS"
11484 ;;
11485 esac
11486
11487 case $lt_cv_dlopen_self in
11488 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11489 *) enable_dlopen_self=unknown ;;
11490 esac
11491
11492 case $lt_cv_dlopen_self_static in
11493 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11494 *) enable_dlopen_self_static=unknown ;;
11495 esac
11496fi
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514striplib=
11515old_striplib=
11516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11517$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11518if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11519 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11520 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11522$as_echo "yes" >&6; }
11523else
11524# FIXME - insert some real tests, host_os isn't really good enough
11525 case $host_os in
11526 darwin*)
11527 if test -n "$STRIP" ; then
11528 striplib="$STRIP -x"
11529 old_striplib="$STRIP -S"
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11531$as_echo "yes" >&6; }
11532 else
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11534$as_echo "no" >&6; }
11535 fi
11536 ;;
11537 *)
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11539$as_echo "no" >&6; }
11540 ;;
11541 esac
11542fi
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555 # Report which library types will actually be built
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11557$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11559$as_echo "$can_build_shared" >&6; }
11560
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11562$as_echo_n "checking whether to build shared libraries... " >&6; }
11563 test "$can_build_shared" = "no" && enable_shared=no
11564
11565 # On AIX, shared libraries and static libraries use the same namespace, and
11566 # are all built from PIC.
11567 case $host_os in
11568 aix3*)
11569 test "$enable_shared" = yes && enable_static=no
11570 if test -n "$RANLIB"; then
11571 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11572 postinstall_cmds='$RANLIB $lib'
11573 fi
11574 ;;
11575
11576 aix[4-9]*)
11577 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11578 test "$enable_shared" = yes && enable_static=no
11579 fi
11580 ;;
11581 esac
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11583$as_echo "$enable_shared" >&6; }
11584
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11586$as_echo_n "checking whether to build static libraries... " >&6; }
11587 # Make sure either enable_shared or enable_static is yes.
11588 test "$enable_shared" = yes || enable_static=yes
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11590$as_echo "$enable_static" >&6; }
11591
11592
11593
11594
11595fi
11596ac_ext=c
11597ac_cpp='$CPP $CPPFLAGS'
11598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11600ac_compiler_gnu=$ac_cv_c_compiler_gnu
11601
11602CC="$lt_save_CC"
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618 ac_config_commands="$ac_config_commands libtool"
11619
11620
11621
11622
11623# Only expand once:
11624
11625
11626ac_ext=cpp
11627ac_cpp='$CXXCPP $CPPFLAGS'
11628ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11629ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11630ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11631if test -z "$CXX"; then
11632 if test -n "$CCC"; then
11633 CXX=$CCC
11634 else
11635 if test -n "$ac_tool_prefix"; then
11636 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11637 do
11638 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11639set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11641$as_echo_n "checking for $ac_word... " >&6; }
11642if ${ac_cv_prog_CXX+:} false; then :
11643 $as_echo_n "(cached) " >&6
11644else
11645 if test -n "$CXX"; then
11646 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11647else
11648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11649for as_dir in $PATH
11650do
11651 IFS=$as_save_IFS
11652 test -z "$as_dir" && as_dir=.
11653 for ac_exec_ext in '' $ac_executable_extensions; do
11654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11655 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11657 break 2
11658 fi
11659done
11660 done
11661IFS=$as_save_IFS
11662
11663fi
11664fi
11665CXX=$ac_cv_prog_CXX
11666if test -n "$CXX"; then
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11668$as_echo "$CXX" >&6; }
11669else
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11671$as_echo "no" >&6; }
11672fi
11673
11674
11675 test -n "$CXX" && break
11676 done
11677fi
11678if test -z "$CXX"; then
11679 ac_ct_CXX=$CXX
11680 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11681do
11682 # Extract the first word of "$ac_prog", so it can be a program name with args.
11683set dummy $ac_prog; ac_word=$2
11684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11685$as_echo_n "checking for $ac_word... " >&6; }
11686if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11687 $as_echo_n "(cached) " >&6
11688else
11689 if test -n "$ac_ct_CXX"; then
11690 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11691else
11692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11693for as_dir in $PATH
11694do
11695 IFS=$as_save_IFS
11696 test -z "$as_dir" && as_dir=.
11697 for ac_exec_ext in '' $ac_executable_extensions; do
11698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11699 ac_cv_prog_ac_ct_CXX="$ac_prog"
11700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11701 break 2
11702 fi
11703done
11704 done
11705IFS=$as_save_IFS
11706
11707fi
11708fi
11709ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11710if test -n "$ac_ct_CXX"; then
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11712$as_echo "$ac_ct_CXX" >&6; }
11713else
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11715$as_echo "no" >&6; }
11716fi
11717
11718
11719 test -n "$ac_ct_CXX" && break
11720done
11721
11722 if test "x$ac_ct_CXX" = x; then
11723 CXX="g++"
11724 else
11725 case $cross_compiling:$ac_tool_warned in
11726yes:)
11727{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11728$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11729ac_tool_warned=yes ;;
11730esac
11731 CXX=$ac_ct_CXX
11732 fi
11733fi
11734
11735 fi
11736fi
11737# Provide some information about the compiler.
11738$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11739set X $ac_compile
11740ac_compiler=$2
11741for ac_option in --version -v -V -qversion; do
11742 { { ac_try="$ac_compiler $ac_option >&5"
11743case "(($ac_try" in
11744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11745 *) ac_try_echo=$ac_try;;
11746esac
11747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11748$as_echo "$ac_try_echo"; } >&5
11749 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11750 ac_status=$?
11751 if test -s conftest.err; then
11752 sed '10a\
11753... rest of stderr output deleted ...
11754 10q' conftest.err >conftest.er1
11755 cat conftest.er1 >&5
11756 fi
11757 rm -f conftest.er1 conftest.err
11758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11759 test $ac_status = 0; }
11760done
11761
11762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11763$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11764if ${ac_cv_cxx_compiler_gnu+:} false; then :
11765 $as_echo_n "(cached) " >&6
11766else
11767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11768/* end confdefs.h. */
11769
11770int
11771main ()
11772{
11773#ifndef __GNUC__
11774 choke me
11775#endif
11776
11777 ;
11778 return 0;
11779}
11780_ACEOF
11781if ac_fn_cxx_try_compile "$LINENO"; then :
11782 ac_compiler_gnu=yes
11783else
11784 ac_compiler_gnu=no
11785fi
11786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11787ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11788
11789fi
11790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11791$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11792if test $ac_compiler_gnu = yes; then
11793 GXX=yes
11794else
11795 GXX=
11796fi
11797ac_test_CXXFLAGS=${CXXFLAGS+set}
11798ac_save_CXXFLAGS=$CXXFLAGS
11799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11800$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11801if ${ac_cv_prog_cxx_g+:} false; then :
11802 $as_echo_n "(cached) " >&6
11803else
11804 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11805 ac_cxx_werror_flag=yes
11806 ac_cv_prog_cxx_g=no
11807 CXXFLAGS="-g"
11808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11809/* end confdefs.h. */
11810
11811int
11812main ()
11813{
11814
11815 ;
11816 return 0;
11817}
11818_ACEOF
11819if ac_fn_cxx_try_compile "$LINENO"; then :
11820 ac_cv_prog_cxx_g=yes
11821else
11822 CXXFLAGS=""
11823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11824/* end confdefs.h. */
11825
11826int
11827main ()
11828{
11829
11830 ;
11831 return 0;
11832}
11833_ACEOF
11834if ac_fn_cxx_try_compile "$LINENO"; then :
11835
11836else
11837 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11838 CXXFLAGS="-g"
11839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11840/* end confdefs.h. */
11841
11842int
11843main ()
11844{
11845
11846 ;
11847 return 0;
11848}
11849_ACEOF
11850if ac_fn_cxx_try_compile "$LINENO"; then :
11851 ac_cv_prog_cxx_g=yes
11852fi
11853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11854fi
11855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11856fi
11857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11858 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11859fi
11860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11861$as_echo "$ac_cv_prog_cxx_g" >&6; }
11862if test "$ac_test_CXXFLAGS" = set; then
11863 CXXFLAGS=$ac_save_CXXFLAGS
11864elif test $ac_cv_prog_cxx_g = yes; then
11865 if test "$GXX" = yes; then
11866 CXXFLAGS="-g -O2"
11867 else
11868 CXXFLAGS="-g"
11869 fi
11870else
11871 if test "$GXX" = yes; then
11872 CXXFLAGS="-O2"
11873 else
11874 CXXFLAGS=
11875 fi
11876fi
11877ac_ext=c
11878ac_cpp='$CPP $CPPFLAGS'
11879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11881ac_compiler_gnu=$ac_cv_c_compiler_gnu
11882
11883depcc="$CXX" am_compiler_list=
11884
11885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11886$as_echo_n "checking dependency style of $depcc... " >&6; }
11887if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
11888 $as_echo_n "(cached) " >&6
11889else
11890 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11891 # We make a subdir and do the tests there. Otherwise we can end up
11892 # making bogus files that we don't know about and never remove. For
11893 # instance it was reported that on HP-UX the gcc test will end up
11894 # making a dummy file named 'D' -- because '-MD' means "put the output
11895 # in D".
11896 rm -rf conftest.dir
11897 mkdir conftest.dir
11898 # Copy depcomp to subdir because otherwise we won't find it if we're
11899 # using a relative directory.
11900 cp "$am_depcomp" conftest.dir
11901 cd conftest.dir
11902 # We will build objects and dependencies in a subdirectory because
11903 # it helps to detect inapplicable dependency modes. For instance
11904 # both Tru64's cc and ICC support -MD to output dependencies as a
11905 # side effect of compilation, but ICC will put the dependencies in
11906 # the current directory while Tru64 will put them in the object
11907 # directory.
11908 mkdir sub
11909
11910 am_cv_CXX_dependencies_compiler_type=none
11911 if test "$am_compiler_list" = ""; then
11912 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11913 fi
11914 am__universal=false
11915 case " $depcc " in #(
11916 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11917 esac
11918
11919 for depmode in $am_compiler_list; do
11920 # Setup a source with many dependencies, because some compilers
11921 # like to wrap large dependency lists on column 80 (with \), and
11922 # we should not choose a depcomp mode which is confused by this.
11923 #
11924 # We need to recreate these files for each test, as the compiler may
11925 # overwrite some of them when testing with obscure command lines.
11926 # This happens at least with the AIX C compiler.
11927 : > sub/conftest.c
11928 for i in 1 2 3 4 5 6; do
11929 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11930 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11931 # Solaris 10 /bin/sh.
11932 echo '/* dummy */' > sub/conftst$i.h
11933 done
11934 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11935
11936 # We check with '-c' and '-o' for the sake of the "dashmstdout"
11937 # mode. It turns out that the SunPro C++ compiler does not properly
11938 # handle '-M -o', and we need to detect this. Also, some Intel
11939 # versions had trouble with output in subdirs.
11940 am__obj=sub/conftest.${OBJEXT-o}
11941 am__minus_obj="-o $am__obj"
11942 case $depmode in
11943 gcc)
11944 # This depmode causes a compiler race in universal mode.
11945 test "$am__universal" = false || continue
11946 ;;
11947 nosideeffect)
11948 # After this tag, mechanisms are not by side-effect, so they'll
11949 # only be used when explicitly requested.
11950 if test "x$enable_dependency_tracking" = xyes; then
11951 continue
11952 else
11953 break
11954 fi
11955 ;;
11956 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11957 # This compiler won't grok '-c -o', but also, the minuso test has
11958 # not run yet. These depmodes are late enough in the game, and
11959 # so weak that their functioning should not be impacted.
11960 am__obj=conftest.${OBJEXT-o}
11961 am__minus_obj=
11962 ;;
11963 none) break ;;
11964 esac
11965 if depmode=$depmode \
11966 source=sub/conftest.c object=$am__obj \
11967 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11968 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11969 >/dev/null 2>conftest.err &&
11970 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11971 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11972 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11973 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11974 # icc doesn't choke on unknown options, it will just issue warnings
11975 # or remarks (even with -Werror). So we grep stderr for any message
11976 # that says an option was ignored or not supported.
11977 # When given -MP, icc 7.0 and 7.1 complain thusly:
11978 # icc: Command line warning: ignoring option '-M'; no argument required
11979 # The diagnosis changed in icc 8.0:
11980 # icc: Command line remark: option '-MP' not supported
11981 if (grep 'ignoring option' conftest.err ||
11982 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11983 am_cv_CXX_dependencies_compiler_type=$depmode
11984 break
11985 fi
11986 fi
11987 done
11988
11989 cd ..
11990 rm -rf conftest.dir
11991else
11992 am_cv_CXX_dependencies_compiler_type=none
11993fi
11994
11995fi
11996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11997$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11998CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11999
12000 if
12001 test "x$enable_dependency_tracking" != xno \
12002 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12003 am__fastdepCXX_TRUE=
12004 am__fastdepCXX_FALSE='#'
12005else
12006 am__fastdepCXX_TRUE='#'
12007 am__fastdepCXX_FALSE=
12008fi
12009
12010
12011
12012
12013func_stripname_cnf ()
12014{
12015 case ${2} in
12016 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12017 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12018 esac
12019} # func_stripname_cnf
12020
12021 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12022 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12023 (test "X$CXX" != "Xg++"))) ; then
12024 ac_ext=cpp
12025ac_cpp='$CXXCPP $CPPFLAGS'
12026ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12027ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12028ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12030$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12031if test -z "$CXXCPP"; then
12032 if ${ac_cv_prog_CXXCPP+:} false; then :
12033 $as_echo_n "(cached) " >&6
12034else
12035 # Double quotes because CXXCPP needs to be expanded
12036 for CXXCPP in "$CXX -E" "/lib/cpp"
12037 do
12038 ac_preproc_ok=false
12039for ac_cxx_preproc_warn_flag in '' yes
12040do
12041 # Use a header file that comes with gcc, so configuring glibc
12042 # with a fresh cross-compiler works.
12043 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12044 # <limits.h> exists even on freestanding compilers.
12045 # On the NeXT, cc -E runs the code through the compiler's parser,
12046 # not just through cpp. "Syntax error" is here to catch this case.
12047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12048/* end confdefs.h. */
12049#ifdef __STDC__
12050# include <limits.h>
12051#else
12052# include <assert.h>
12053#endif
12054 Syntax error
12055_ACEOF
12056if ac_fn_cxx_try_cpp "$LINENO"; then :
12057
12058else
12059 # Broken: fails on valid input.
12060continue
12061fi
12062rm -f conftest.err conftest.i conftest.$ac_ext
12063
12064 # OK, works on sane cases. Now check whether nonexistent headers
12065 # can be detected and how.
12066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12067/* end confdefs.h. */
12068#include <ac_nonexistent.h>
12069_ACEOF
12070if ac_fn_cxx_try_cpp "$LINENO"; then :
12071 # Broken: success on invalid input.
12072continue
12073else
12074 # Passes both tests.
12075ac_preproc_ok=:
12076break
12077fi
12078rm -f conftest.err conftest.i conftest.$ac_ext
12079
12080done
12081# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12082rm -f conftest.i conftest.err conftest.$ac_ext
12083if $ac_preproc_ok; then :
12084 break
12085fi
12086
12087 done
12088 ac_cv_prog_CXXCPP=$CXXCPP
12089
12090fi
12091 CXXCPP=$ac_cv_prog_CXXCPP
12092else
12093 ac_cv_prog_CXXCPP=$CXXCPP
12094fi
12095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12096$as_echo "$CXXCPP" >&6; }
12097ac_preproc_ok=false
12098for ac_cxx_preproc_warn_flag in '' yes
12099do
12100 # Use a header file that comes with gcc, so configuring glibc
12101 # with a fresh cross-compiler works.
12102 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12103 # <limits.h> exists even on freestanding compilers.
12104 # On the NeXT, cc -E runs the code through the compiler's parser,
12105 # not just through cpp. "Syntax error" is here to catch this case.
12106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12107/* end confdefs.h. */
12108#ifdef __STDC__
12109# include <limits.h>
12110#else
12111# include <assert.h>
12112#endif
12113 Syntax error
12114_ACEOF
12115if ac_fn_cxx_try_cpp "$LINENO"; then :
12116
12117else
12118 # Broken: fails on valid input.
12119continue
12120fi
12121rm -f conftest.err conftest.i conftest.$ac_ext
12122
12123 # OK, works on sane cases. Now check whether nonexistent headers
12124 # can be detected and how.
12125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12126/* end confdefs.h. */
12127#include <ac_nonexistent.h>
12128_ACEOF
12129if ac_fn_cxx_try_cpp "$LINENO"; then :
12130 # Broken: success on invalid input.
12131continue
12132else
12133 # Passes both tests.
12134ac_preproc_ok=:
12135break
12136fi
12137rm -f conftest.err conftest.i conftest.$ac_ext
12138
12139done
12140# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12141rm -f conftest.i conftest.err conftest.$ac_ext
12142if $ac_preproc_ok; then :
12143
12144else
12145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12146$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12147as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12148See \`config.log' for more details" "$LINENO" 5; }
12149fi
12150
12151ac_ext=c
12152ac_cpp='$CPP $CPPFLAGS'
12153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12155ac_compiler_gnu=$ac_cv_c_compiler_gnu
12156
12157else
12158 _lt_caught_CXX_error=yes
12159fi
12160
12161ac_ext=cpp
12162ac_cpp='$CXXCPP $CPPFLAGS'
12163ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12164ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12165ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12166
12167archive_cmds_need_lc_CXX=no
12168allow_undefined_flag_CXX=
12169always_export_symbols_CXX=no
12170archive_expsym_cmds_CXX=
12171compiler_needs_object_CXX=no
12172export_dynamic_flag_spec_CXX=
12173hardcode_direct_CXX=no
12174hardcode_direct_absolute_CXX=no
12175hardcode_libdir_flag_spec_CXX=
12176hardcode_libdir_separator_CXX=
12177hardcode_minus_L_CXX=no
12178hardcode_shlibpath_var_CXX=unsupported
12179hardcode_automatic_CXX=no
12180inherit_rpath_CXX=no
12181module_cmds_CXX=
12182module_expsym_cmds_CXX=
12183link_all_deplibs_CXX=unknown
12184old_archive_cmds_CXX=$old_archive_cmds
12185reload_flag_CXX=$reload_flag
12186reload_cmds_CXX=$reload_cmds
12187no_undefined_flag_CXX=
12188whole_archive_flag_spec_CXX=
12189enable_shared_with_static_runtimes_CXX=no
12190
12191# Source file extension for C++ test sources.
12192ac_ext=cpp
12193
12194# Object file extension for compiled C++ test sources.
12195objext=o
12196objext_CXX=$objext
12197
12198# No sense in running all these tests if we already determined that
12199# the CXX compiler isn't working. Some variables (like enable_shared)
12200# are currently assumed to apply to all compilers on this platform,
12201# and will be corrupted by setting them based on a non-working compiler.
12202if test "$_lt_caught_CXX_error" != yes; then
12203 # Code to be used in simple compile tests
12204 lt_simple_compile_test_code="int some_variable = 0;"
12205
12206 # Code to be used in simple link tests
12207 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12208
12209 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12210
12211
12212
12213
12214
12215
12216# If no C compiler was specified, use CC.
12217LTCC=${LTCC-"$CC"}
12218
12219# If no C compiler flags were specified, use CFLAGS.
12220LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12221
12222# Allow CC to be a program name with arguments.
12223compiler=$CC
12224
12225
12226 # save warnings/boilerplate of simple test code
12227 ac_outfile=conftest.$ac_objext
12228echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12229eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12230_lt_compiler_boilerplate=`cat conftest.err`
12231$RM conftest*
12232
12233 ac_outfile=conftest.$ac_objext
12234echo "$lt_simple_link_test_code" >conftest.$ac_ext
12235eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12236_lt_linker_boilerplate=`cat conftest.err`
12237$RM -r conftest*
12238
12239
12240 # Allow CC to be a program name with arguments.
12241 lt_save_CC=$CC
12242 lt_save_CFLAGS=$CFLAGS
12243 lt_save_LD=$LD
12244 lt_save_GCC=$GCC
12245 GCC=$GXX
12246 lt_save_with_gnu_ld=$with_gnu_ld
12247 lt_save_path_LD=$lt_cv_path_LD
12248 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12249 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12250 else
12251 $as_unset lt_cv_prog_gnu_ld
12252 fi
12253 if test -n "${lt_cv_path_LDCXX+set}"; then
12254 lt_cv_path_LD=$lt_cv_path_LDCXX
12255 else
12256 $as_unset lt_cv_path_LD
12257 fi
12258 test -z "${LDCXX+set}" || LD=$LDCXX
12259 CC=${CXX-"c++"}
12260 CFLAGS=$CXXFLAGS
12261 compiler=$CC
12262 compiler_CXX=$CC
12263 for cc_temp in $compiler""; do
12264 case $cc_temp in
12265 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12266 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12267 \-*) ;;
12268 *) break;;
12269 esac
12270done
12271cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12272
12273
12274 if test -n "$compiler"; then
12275 # We don't want -fno-exception when compiling C++ code, so set the
12276 # no_builtin_flag separately
12277 if test "$GXX" = yes; then
12278 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12279 else
12280 lt_prog_compiler_no_builtin_flag_CXX=
12281 fi
12282
12283 if test "$GXX" = yes; then
12284 # Set up default GNU C++ configuration
12285
12286
12287
12288# Check whether --with-gnu-ld was given.
12289if test "${with_gnu_ld+set}" = set; then :
12290 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12291else
12292 with_gnu_ld=no
12293fi
12294
12295ac_prog=ld
12296if test "$GCC" = yes; then
12297 # Check if gcc -print-prog-name=ld gives a path.
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12299$as_echo_n "checking for ld used by $CC... " >&6; }
12300 case $host in
12301 *-*-mingw*)
12302 # gcc leaves a trailing carriage return which upsets mingw
12303 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12304 *)
12305 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12306 esac
12307 case $ac_prog in
12308 # Accept absolute paths.
12309 [\\/]* | ?:[\\/]*)
12310 re_direlt='/[^/][^/]*/\.\./'
12311 # Canonicalize the pathname of ld
12312 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12313 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12314 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12315 done
12316 test -z "$LD" && LD="$ac_prog"
12317 ;;
12318 "")
12319 # If it fails, then pretend we aren't using GCC.
12320 ac_prog=ld
12321 ;;
12322 *)
12323 # If it is relative, then search for the first ld in PATH.
12324 with_gnu_ld=unknown
12325 ;;
12326 esac
12327elif test "$with_gnu_ld" = yes; then
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12329$as_echo_n "checking for GNU ld... " >&6; }
12330else
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12332$as_echo_n "checking for non-GNU ld... " >&6; }
12333fi
12334if ${lt_cv_path_LD+:} false; then :
12335 $as_echo_n "(cached) " >&6
12336else
12337 if test -z "$LD"; then
12338 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12339 for ac_dir in $PATH; do
12340 IFS="$lt_save_ifs"
12341 test -z "$ac_dir" && ac_dir=.
12342 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12343 lt_cv_path_LD="$ac_dir/$ac_prog"
12344 # Check to see if the program is GNU ld. I'd rather use --version,
12345 # but apparently some variants of GNU ld only accept -v.
12346 # Break only if it was the GNU/non-GNU ld that we prefer.
12347 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12348 *GNU* | *'with BFD'*)
12349 test "$with_gnu_ld" != no && break
12350 ;;
12351 *)
12352 test "$with_gnu_ld" != yes && break
12353 ;;
12354 esac
12355 fi
12356 done
12357 IFS="$lt_save_ifs"
12358else
12359 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12360fi
12361fi
12362
12363LD="$lt_cv_path_LD"
12364if test -n "$LD"; then
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12366$as_echo "$LD" >&6; }
12367else
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12369$as_echo "no" >&6; }
12370fi
12371test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12373$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12374if ${lt_cv_prog_gnu_ld+:} false; then :
12375 $as_echo_n "(cached) " >&6
12376else
12377 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12378case `$LD -v 2>&1 </dev/null` in
12379*GNU* | *'with BFD'*)
12380 lt_cv_prog_gnu_ld=yes
12381 ;;
12382*)
12383 lt_cv_prog_gnu_ld=no
12384 ;;
12385esac
12386fi
12387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12388$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12389with_gnu_ld=$lt_cv_prog_gnu_ld
12390
12391
12392
12393
12394
12395
12396
12397 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12398 # archiving commands below assume that GNU ld is being used.
12399 if test "$with_gnu_ld" = yes; then
12400 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12401 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'
12402
12403 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12404 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12405
12406 # If archive_cmds runs LD, not CC, wlarc should be empty
12407 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12408 # investigate it a little bit more. (MM)
12409 wlarc='${wl}'
12410
12411 # ancient GNU ld didn't support --whole-archive et. al.
12412 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12413 $GREP 'no-whole-archive' > /dev/null; then
12414 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12415 else
12416 whole_archive_flag_spec_CXX=
12417 fi
12418 else
12419 with_gnu_ld=no
12420 wlarc=
12421
12422 # A generic and very simple default shared library creation
12423 # command for GNU C++ for the case where it uses the native
12424 # linker, instead of GNU ld. If possible, this setting should
12425 # overridden to take advantage of the native linker features on
12426 # the platform it is being used on.
12427 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12428 fi
12429
12430 # Commands to make compiler produce verbose output that lists
12431 # what "hidden" libraries, object files and flags are used when
12432 # linking a shared library.
12433 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12434
12435 else
12436 GXX=no
12437 with_gnu_ld=no
12438 wlarc=
12439 fi
12440
12441 # PORTME: fill in a description of your system's C++ link characteristics
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12443$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12444 ld_shlibs_CXX=yes
12445 case $host_os in
12446 aix3*)
12447 # FIXME: insert proper C++ library support
12448 ld_shlibs_CXX=no
12449 ;;
12450 aix[4-9]*)
12451 if test "$host_cpu" = ia64; then
12452 # On IA64, the linker does run time linking by default, so we don't
12453 # have to do anything special.
12454 aix_use_runtimelinking=no
12455 exp_sym_flag='-Bexport'
12456 no_entry_flag=""
12457 else
12458 aix_use_runtimelinking=no
12459
12460 # Test if we are trying to use run time linking or normal
12461 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12462 # need to do runtime linking.
12463 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12464 for ld_flag in $LDFLAGS; do
12465 case $ld_flag in
12466 *-brtl*)
12467 aix_use_runtimelinking=yes
12468 break
12469 ;;
12470 esac
12471 done
12472 ;;
12473 esac
12474
12475 exp_sym_flag='-bexport'
12476 no_entry_flag='-bnoentry'
12477 fi
12478
12479 # When large executables or shared objects are built, AIX ld can
12480 # have problems creating the table of contents. If linking a library
12481 # or program results in "error TOC overflow" add -mminimal-toc to
12482 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12483 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12484
12485 archive_cmds_CXX=''
12486 hardcode_direct_CXX=yes
12487 hardcode_direct_absolute_CXX=yes
12488 hardcode_libdir_separator_CXX=':'
12489 link_all_deplibs_CXX=yes
12490 file_list_spec_CXX='${wl}-f,'
12491
12492 if test "$GXX" = yes; then
12493 case $host_os in aix4.[012]|aix4.[012].*)
12494 # We only want to do this on AIX 4.2 and lower, the check
12495 # below for broken collect2 doesn't work under 4.3+
12496 collect2name=`${CC} -print-prog-name=collect2`
12497 if test -f "$collect2name" &&
12498 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12499 then
12500 # We have reworked collect2
12501 :
12502 else
12503 # We have old collect2
12504 hardcode_direct_CXX=unsupported
12505 # It fails to find uninstalled libraries when the uninstalled
12506 # path is not listed in the libpath. Setting hardcode_minus_L
12507 # to unsupported forces relinking
12508 hardcode_minus_L_CXX=yes
12509 hardcode_libdir_flag_spec_CXX='-L$libdir'
12510 hardcode_libdir_separator_CXX=
12511 fi
12512 esac
12513 shared_flag='-shared'
12514 if test "$aix_use_runtimelinking" = yes; then
12515 shared_flag="$shared_flag "'${wl}-G'
12516 fi
12517 else
12518 # not using gcc
12519 if test "$host_cpu" = ia64; then
12520 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12521 # chokes on -Wl,-G. The following line is correct:
12522 shared_flag='-G'
12523 else
12524 if test "$aix_use_runtimelinking" = yes; then
12525 shared_flag='${wl}-G'
12526 else
12527 shared_flag='${wl}-bM:SRE'
12528 fi
12529 fi
12530 fi
12531
12532 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12533 # It seems that -bexpall does not export symbols beginning with
12534 # underscore (_), so it is better to generate a list of symbols to
12535 # export.
12536 always_export_symbols_CXX=yes
12537 if test "$aix_use_runtimelinking" = yes; then
12538 # Warning - without using the other runtime loading flags (-brtl),
12539 # -berok will link without error, but may produce a broken library.
12540 allow_undefined_flag_CXX='-berok'
12541 # Determine the default libpath from the value encoded in an empty
12542 # executable.
12543 if test "${lt_cv_aix_libpath+set}" = set; then
12544 aix_libpath=$lt_cv_aix_libpath
12545else
12546 if ${lt_cv_aix_libpath__CXX+:} false; then :
12547 $as_echo_n "(cached) " >&6
12548else
12549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12550/* end confdefs.h. */
12551
12552int
12553main ()
12554{
12555
12556 ;
12557 return 0;
12558}
12559_ACEOF
12560if ac_fn_cxx_try_link "$LINENO"; then :
12561
12562 lt_aix_libpath_sed='
12563 /Import File Strings/,/^$/ {
12564 /^0/ {
12565 s/^0 *\([^ ]*\) *$/\1/
12566 p
12567 }
12568 }'
12569 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12570 # Check for a 64-bit object if we didn't find anything.
12571 if test -z "$lt_cv_aix_libpath__CXX"; then
12572 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12573 fi
12574fi
12575rm -f core conftest.err conftest.$ac_objext \
12576 conftest$ac_exeext conftest.$ac_ext
12577 if test -z "$lt_cv_aix_libpath__CXX"; then
12578 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12579 fi
12580
12581fi
12582
12583 aix_libpath=$lt_cv_aix_libpath__CXX
12584fi
12585
12586 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12587
12588 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"
12589 else
12590 if test "$host_cpu" = ia64; then
12591 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12592 allow_undefined_flag_CXX="-z nodefs"
12593 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"
12594 else
12595 # Determine the default libpath from the value encoded in an
12596 # empty executable.
12597 if test "${lt_cv_aix_libpath+set}" = set; then
12598 aix_libpath=$lt_cv_aix_libpath
12599else
12600 if ${lt_cv_aix_libpath__CXX+:} false; then :
12601 $as_echo_n "(cached) " >&6
12602else
12603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12604/* end confdefs.h. */
12605
12606int
12607main ()
12608{
12609
12610 ;
12611 return 0;
12612}
12613_ACEOF
12614if ac_fn_cxx_try_link "$LINENO"; then :
12615
12616 lt_aix_libpath_sed='
12617 /Import File Strings/,/^$/ {
12618 /^0/ {
12619 s/^0 *\([^ ]*\) *$/\1/
12620 p
12621 }
12622 }'
12623 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12624 # Check for a 64-bit object if we didn't find anything.
12625 if test -z "$lt_cv_aix_libpath__CXX"; then
12626 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12627 fi
12628fi
12629rm -f core conftest.err conftest.$ac_objext \
12630 conftest$ac_exeext conftest.$ac_ext
12631 if test -z "$lt_cv_aix_libpath__CXX"; then
12632 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12633 fi
12634
12635fi
12636
12637 aix_libpath=$lt_cv_aix_libpath__CXX
12638fi
12639
12640 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12641 # Warning - without using the other run time loading flags,
12642 # -berok will link without error, but may produce a broken library.
12643 no_undefined_flag_CXX=' ${wl}-bernotok'
12644 allow_undefined_flag_CXX=' ${wl}-berok'
12645 if test "$with_gnu_ld" = yes; then
12646 # We only use this code for GNU lds that support --whole-archive.
12647 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12648 else
12649 # Exported symbols can be pulled into shared objects from archives
12650 whole_archive_flag_spec_CXX='$convenience'
12651 fi
12652 archive_cmds_need_lc_CXX=yes
12653 # This is similar to how AIX traditionally builds its shared
12654 # libraries.
12655 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'
12656 fi
12657 fi
12658 ;;
12659
12660 beos*)
12661 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12662 allow_undefined_flag_CXX=unsupported
12663 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12664 # support --undefined. This deserves some investigation. FIXME
12665 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12666 else
12667 ld_shlibs_CXX=no
12668 fi
12669 ;;
12670
12671 chorus*)
12672 case $cc_basename in
12673 *)
12674 # FIXME: insert proper C++ library support
12675 ld_shlibs_CXX=no
12676 ;;
12677 esac
12678 ;;
12679
12680 cygwin* | mingw* | pw32* | cegcc*)
12681 case $GXX,$cc_basename in
12682 ,cl* | no,cl*)
12683 # Native MSVC
12684 # hardcode_libdir_flag_spec is actually meaningless, as there is
12685 # no search path for DLLs.
12686 hardcode_libdir_flag_spec_CXX=' '
12687 allow_undefined_flag_CXX=unsupported
12688 always_export_symbols_CXX=yes
12689 file_list_spec_CXX='@'
12690 # Tell ltmain to make .lib files, not .a files.
12691 libext=lib
12692 # Tell ltmain to make .dll files, not .so files.
12693 shrext_cmds=".dll"
12694 # FIXME: Setting linknames here is a bad hack.
12695 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12696 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12697 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12698 else
12699 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12700 fi~
12701 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12702 linknames='
12703 # The linker will not automatically build a static lib if we build a DLL.
12704 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12705 enable_shared_with_static_runtimes_CXX=yes
12706 # Don't use ranlib
12707 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12708 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12709 lt_tool_outputfile="@TOOL_OUTPUT@"~
12710 case $lt_outputfile in
12711 *.exe|*.EXE) ;;
12712 *)
12713 lt_outputfile="$lt_outputfile.exe"
12714 lt_tool_outputfile="$lt_tool_outputfile.exe"
12715 ;;
12716 esac~
12717 func_to_tool_file "$lt_outputfile"~
12718 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12719 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12720 $RM "$lt_outputfile.manifest";
12721 fi'
12722 ;;
12723 *)
12724 # g++
12725 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12726 # as there is no search path for DLLs.
12727 hardcode_libdir_flag_spec_CXX='-L$libdir'
12728 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12729 allow_undefined_flag_CXX=unsupported
12730 always_export_symbols_CXX=no
12731 enable_shared_with_static_runtimes_CXX=yes
12732
12733 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12734 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'
12735 # If the export-symbols file already is a .def file (1st line
12736 # is EXPORTS), use it as is; otherwise, prepend...
12737 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12738 cp $export_symbols $output_objdir/$soname.def;
12739 else
12740 echo EXPORTS > $output_objdir/$soname.def;
12741 cat $export_symbols >> $output_objdir/$soname.def;
12742 fi~
12743 $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'
12744 else
12745 ld_shlibs_CXX=no
12746 fi
12747 ;;
12748 esac
12749 ;;
12750 darwin* | rhapsody*)
12751
12752
12753 archive_cmds_need_lc_CXX=no
12754 hardcode_direct_CXX=no
12755 hardcode_automatic_CXX=yes
12756 hardcode_shlibpath_var_CXX=unsupported
12757 if test "$lt_cv_ld_force_load" = "yes"; then
12758 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\"`'
12759
12760 else
12761 whole_archive_flag_spec_CXX=''
12762 fi
12763 link_all_deplibs_CXX=yes
12764 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12765 case $cc_basename in
12766 ifort*) _lt_dar_can_shared=yes ;;
12767 *) _lt_dar_can_shared=$GCC ;;
12768 esac
12769 if test "$_lt_dar_can_shared" = "yes"; then
12770 output_verbose_link_cmd=func_echo_all
12771 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}"
12772 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12773 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}"
12774 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}"
12775 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12776 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}"
12777 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}"
12778 fi
12779
12780 else
12781 ld_shlibs_CXX=no
12782 fi
12783
12784 ;;
12785
12786 dgux*)
12787 case $cc_basename in
12788 ec++*)
12789 # FIXME: insert proper C++ library support
12790 ld_shlibs_CXX=no
12791 ;;
12792 ghcx*)
12793 # Green Hills C++ Compiler
12794 # FIXME: insert proper C++ library support
12795 ld_shlibs_CXX=no
12796 ;;
12797 *)
12798 # FIXME: insert proper C++ library support
12799 ld_shlibs_CXX=no
12800 ;;
12801 esac
12802 ;;
12803
12804 freebsd2.*)
12805 # C++ shared libraries reported to be fairly broken before
12806 # switch to ELF
12807 ld_shlibs_CXX=no
12808 ;;
12809
12810 freebsd-elf*)
12811 archive_cmds_need_lc_CXX=no
12812 ;;
12813
12814 freebsd* | dragonfly*)
12815 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12816 # conventions
12817 ld_shlibs_CXX=yes
12818 ;;
12819
12820 gnu*)
12821 ;;
12822
12823 haiku*)
12824 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12825 link_all_deplibs_CXX=yes
12826 ;;
12827
12828 hpux9*)
12829 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12830 hardcode_libdir_separator_CXX=:
12831 export_dynamic_flag_spec_CXX='${wl}-E'
12832 hardcode_direct_CXX=yes
12833 hardcode_minus_L_CXX=yes # Not in the search PATH,
12834 # but as the default
12835 # location of the library.
12836
12837 case $cc_basename in
12838 CC*)
12839 # FIXME: insert proper C++ library support
12840 ld_shlibs_CXX=no
12841 ;;
12842 aCC*)
12843 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'
12844 # Commands to make compiler produce verbose output that lists
12845 # what "hidden" libraries, object files and flags are used when
12846 # linking a shared library.
12847 #
12848 # There doesn't appear to be a way to prevent this compiler from
12849 # explicitly linking system object files so we need to strip them
12850 # from the output so that they don't get included in the library
12851 # dependencies.
12852 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"'
12853 ;;
12854 *)
12855 if test "$GXX" = yes; then
12856 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'
12857 else
12858 # FIXME: insert proper C++ library support
12859 ld_shlibs_CXX=no
12860 fi
12861 ;;
12862 esac
12863 ;;
12864
12865 hpux10*|hpux11*)
12866 if test $with_gnu_ld = no; then
12867 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12868 hardcode_libdir_separator_CXX=:
12869
12870 case $host_cpu in
12871 hppa*64*|ia64*)
12872 ;;
12873 *)
12874 export_dynamic_flag_spec_CXX='${wl}-E'
12875 ;;
12876 esac
12877 fi
12878 case $host_cpu in
12879 hppa*64*|ia64*)
12880 hardcode_direct_CXX=no
12881 hardcode_shlibpath_var_CXX=no
12882 ;;
12883 *)
12884 hardcode_direct_CXX=yes
12885 hardcode_direct_absolute_CXX=yes
12886 hardcode_minus_L_CXX=yes # Not in the search PATH,
12887 # but as the default
12888 # location of the library.
12889 ;;
12890 esac
12891
12892 case $cc_basename in
12893 CC*)
12894 # FIXME: insert proper C++ library support
12895 ld_shlibs_CXX=no
12896 ;;
12897 aCC*)
12898 case $host_cpu in
12899 hppa*64*)
12900 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12901 ;;
12902 ia64*)
12903 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12904 ;;
12905 *)
12906 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12907 ;;
12908 esac
12909 # Commands to make compiler produce verbose output that lists
12910 # what "hidden" libraries, object files and flags are used when
12911 # linking a shared library.
12912 #
12913 # There doesn't appear to be a way to prevent this compiler from
12914 # explicitly linking system object files so we need to strip them
12915 # from the output so that they don't get included in the library
12916 # dependencies.
12917 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"'
12918 ;;
12919 *)
12920 if test "$GXX" = yes; then
12921 if test $with_gnu_ld = no; then
12922 case $host_cpu in
12923 hppa*64*)
12924 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12925 ;;
12926 ia64*)
12927 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12928 ;;
12929 *)
12930 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'
12931 ;;
12932 esac
12933 fi
12934 else
12935 # FIXME: insert proper C++ library support
12936 ld_shlibs_CXX=no
12937 fi
12938 ;;
12939 esac
12940 ;;
12941
12942 interix[3-9]*)
12943 hardcode_direct_CXX=no
12944 hardcode_shlibpath_var_CXX=no
12945 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12946 export_dynamic_flag_spec_CXX='${wl}-E'
12947 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12948 # Instead, shared libraries are loaded at an image base (0x10000000 by
12949 # default) and relocated if they conflict, which is a slow very memory
12950 # consuming and fragmenting process. To avoid this, we pick a random,
12951 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12952 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12953 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'
12954 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'
12955 ;;
12956 irix5* | irix6*)
12957 case $cc_basename in
12958 CC*)
12959 # SGI C++
12960 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'
12961
12962 # Archives containing C++ object files must be created using
12963 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12964 # necessary to make sure instantiated templates are included
12965 # in the archive.
12966 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12967 ;;
12968 *)
12969 if test "$GXX" = yes; then
12970 if test "$with_gnu_ld" = no; then
12971 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'
12972 else
12973 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'
12974 fi
12975 fi
12976 link_all_deplibs_CXX=yes
12977 ;;
12978 esac
12979 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12980 hardcode_libdir_separator_CXX=:
12981 inherit_rpath_CXX=yes
12982 ;;
12983
12984 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12985 case $cc_basename in
12986 KCC*)
12987 # Kuck and Associates, Inc. (KAI) C++ Compiler
12988
12989 # KCC will only create a shared library if the output file
12990 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12991 # to its proper name (with version) after linking.
12992 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'
12993 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'
12994 # Commands to make compiler produce verbose output that lists
12995 # what "hidden" libraries, object files and flags are used when
12996 # linking a shared library.
12997 #
12998 # There doesn't appear to be a way to prevent this compiler from
12999 # explicitly linking system object files so we need to strip them
13000 # from the output so that they don't get included in the library
13001 # dependencies.
13002 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"'
13003
13004 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13005 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13006
13007 # Archives containing C++ object files must be created using
13008 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13009 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13010 ;;
13011 icpc* | ecpc* )
13012 # Intel C++
13013 with_gnu_ld=yes
13014 # version 8.0 and above of icpc choke on multiply defined symbols
13015 # if we add $predep_objects and $postdep_objects, however 7.1 and
13016 # earlier do not add the objects themselves.
13017 case `$CC -V 2>&1` in
13018 *"Version 7."*)
13019 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13020 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'
13021 ;;
13022 *) # Version 8.0 or newer
13023 tmp_idyn=
13024 case $host_cpu in
13025 ia64*) tmp_idyn=' -i_dynamic';;
13026 esac
13027 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13028 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'
13029 ;;
13030 esac
13031 archive_cmds_need_lc_CXX=no
13032 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13033 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13034 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13035 ;;
13036 pgCC* | pgcpp*)
13037 # Portland Group C++ compiler
13038 case `$CC -V` in
13039 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13040 prelink_cmds_CXX='tpldir=Template.dir~
13041 rm -rf $tpldir~
13042 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13043 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13044 old_archive_cmds_CXX='tpldir=Template.dir~
13045 rm -rf $tpldir~
13046 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13047 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13048 $RANLIB $oldlib'
13049 archive_cmds_CXX='tpldir=Template.dir~
13050 rm -rf $tpldir~
13051 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13052 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13053 archive_expsym_cmds_CXX='tpldir=Template.dir~
13054 rm -rf $tpldir~
13055 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13056 $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'
13057 ;;
13058 *) # Version 6 and above use weak symbols
13059 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13060 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'
13061 ;;
13062 esac
13063
13064 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13065 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13066 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'
13067 ;;
13068 cxx*)
13069 # Compaq C++
13070 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13071 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'
13072
13073 runpath_var=LD_RUN_PATH
13074 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13075 hardcode_libdir_separator_CXX=:
13076
13077 # Commands to make compiler produce verbose output that lists
13078 # what "hidden" libraries, object files and flags are used when
13079 # linking a shared library.
13080 #
13081 # There doesn't appear to be a way to prevent this compiler from
13082 # explicitly linking system object files so we need to strip them
13083 # from the output so that they don't get included in the library
13084 # dependencies.
13085 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'
13086 ;;
13087 xl* | mpixl* | bgxl*)
13088 # IBM XL 8.0 on PPC, with GNU ld
13089 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13090 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13091 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13092 if test "x$supports_anon_versioning" = xyes; then
13093 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13094 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13095 echo "local: *; };" >> $output_objdir/$libname.ver~
13096 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13097 fi
13098 ;;
13099 *)
13100 case `$CC -V 2>&1 | sed 5q` in
13101 *Sun\ C*)
13102 # Sun C++ 5.9
13103 no_undefined_flag_CXX=' -zdefs'
13104 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13105 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'
13106 hardcode_libdir_flag_spec_CXX='-R$libdir'
13107 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'
13108 compiler_needs_object_CXX=yes
13109
13110 # Not sure whether something based on
13111 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13112 # would be better.
13113 output_verbose_link_cmd='func_echo_all'
13114
13115 # Archives containing C++ object files must be created using
13116 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13117 # necessary to make sure instantiated templates are included
13118 # in the archive.
13119 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13120 ;;
13121 esac
13122 ;;
13123 esac
13124 ;;
13125
13126 lynxos*)
13127 # FIXME: insert proper C++ library support
13128 ld_shlibs_CXX=no
13129 ;;
13130
13131 m88k*)
13132 # FIXME: insert proper C++ library support
13133 ld_shlibs_CXX=no
13134 ;;
13135
13136 mvs*)
13137 case $cc_basename in
13138 cxx*)
13139 # FIXME: insert proper C++ library support
13140 ld_shlibs_CXX=no
13141 ;;
13142 *)
13143 # FIXME: insert proper C++ library support
13144 ld_shlibs_CXX=no
13145 ;;
13146 esac
13147 ;;
13148
13149 netbsd*)
13150 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13151 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13152 wlarc=
13153 hardcode_libdir_flag_spec_CXX='-R$libdir'
13154 hardcode_direct_CXX=yes
13155 hardcode_shlibpath_var_CXX=no
13156 fi
13157 # Workaround some broken pre-1.5 toolchains
13158 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13159 ;;
13160
13161 *nto* | *qnx*)
13162 ld_shlibs_CXX=yes
13163 ;;
13164
13165 openbsd2*)
13166 # C++ shared libraries are fairly broken
13167 ld_shlibs_CXX=no
13168 ;;
13169
13170 openbsd*)
13171 if test -f /usr/libexec/ld.so; then
13172 hardcode_direct_CXX=yes
13173 hardcode_shlibpath_var_CXX=no
13174 hardcode_direct_absolute_CXX=yes
13175 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13176 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13177 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13178 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13179 export_dynamic_flag_spec_CXX='${wl}-E'
13180 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13181 fi
13182 output_verbose_link_cmd=func_echo_all
13183 else
13184 ld_shlibs_CXX=no
13185 fi
13186 ;;
13187
13188 osf3* | osf4* | osf5*)
13189 case $cc_basename in
13190 KCC*)
13191 # Kuck and Associates, Inc. (KAI) C++ Compiler
13192
13193 # KCC will only create a shared library if the output file
13194 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13195 # to its proper name (with version) after linking.
13196 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'
13197
13198 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13199 hardcode_libdir_separator_CXX=:
13200
13201 # Archives containing C++ object files must be created using
13202 # the KAI C++ compiler.
13203 case $host in
13204 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13205 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13206 esac
13207 ;;
13208 RCC*)
13209 # Rational C++ 2.4.1
13210 # FIXME: insert proper C++ library support
13211 ld_shlibs_CXX=no
13212 ;;
13213 cxx*)
13214 case $host in
13215 osf3*)
13216 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13217 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'
13218 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13219 ;;
13220 *)
13221 allow_undefined_flag_CXX=' -expect_unresolved \*'
13222 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'
13223 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13224 echo "-hidden">> $lib.exp~
13225 $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~
13226 $RM $lib.exp'
13227 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13228 ;;
13229 esac
13230
13231 hardcode_libdir_separator_CXX=:
13232
13233 # Commands to make compiler produce verbose output that lists
13234 # what "hidden" libraries, object files and flags are used when
13235 # linking a shared library.
13236 #
13237 # There doesn't appear to be a way to prevent this compiler from
13238 # explicitly linking system object files so we need to strip them
13239 # from the output so that they don't get included in the library
13240 # dependencies.
13241 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"'
13242 ;;
13243 *)
13244 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13245 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13246 case $host in
13247 osf3*)
13248 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'
13249 ;;
13250 *)
13251 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'
13252 ;;
13253 esac
13254
13255 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13256 hardcode_libdir_separator_CXX=:
13257
13258 # Commands to make compiler produce verbose output that lists
13259 # what "hidden" libraries, object files and flags are used when
13260 # linking a shared library.
13261 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13262
13263 else
13264 # FIXME: insert proper C++ library support
13265 ld_shlibs_CXX=no
13266 fi
13267 ;;
13268 esac
13269 ;;
13270
13271 psos*)
13272 # FIXME: insert proper C++ library support
13273 ld_shlibs_CXX=no
13274 ;;
13275
13276 sunos4*)
13277 case $cc_basename in
13278 CC*)
13279 # Sun C++ 4.x
13280 # FIXME: insert proper C++ library support
13281 ld_shlibs_CXX=no
13282 ;;
13283 lcc*)
13284 # Lucid
13285 # FIXME: insert proper C++ library support
13286 ld_shlibs_CXX=no
13287 ;;
13288 *)
13289 # FIXME: insert proper C++ library support
13290 ld_shlibs_CXX=no
13291 ;;
13292 esac
13293 ;;
13294
13295 solaris*)
13296 case $cc_basename in
13297 CC* | sunCC*)
13298 # Sun C++ 4.2, 5.x and Centerline C++
13299 archive_cmds_need_lc_CXX=yes
13300 no_undefined_flag_CXX=' -zdefs'
13301 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13302 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13303 $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'
13304
13305 hardcode_libdir_flag_spec_CXX='-R$libdir'
13306 hardcode_shlibpath_var_CXX=no
13307 case $host_os in
13308 solaris2.[0-5] | solaris2.[0-5].*) ;;
13309 *)
13310 # The compiler driver will combine and reorder linker options,
13311 # but understands `-z linker_flag'.
13312 # Supported since Solaris 2.6 (maybe 2.5.1?)
13313 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13314 ;;
13315 esac
13316 link_all_deplibs_CXX=yes
13317
13318 output_verbose_link_cmd='func_echo_all'
13319
13320 # Archives containing C++ object files must be created using
13321 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13322 # necessary to make sure instantiated templates are included
13323 # in the archive.
13324 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13325 ;;
13326 gcx*)
13327 # Green Hills C++ Compiler
13328 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13329
13330 # The C++ compiler must be used to create the archive.
13331 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13332 ;;
13333 *)
13334 # GNU C++ compiler with Solaris linker
13335 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13336 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13337 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13338 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13339 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13340 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13341
13342 # Commands to make compiler produce verbose output that lists
13343 # what "hidden" libraries, object files and flags are used when
13344 # linking a shared library.
13345 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13346 else
13347 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13348 # platform.
13349 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13350 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13351 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13352
13353 # Commands to make compiler produce verbose output that lists
13354 # what "hidden" libraries, object files and flags are used when
13355 # linking a shared library.
13356 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13357 fi
13358
13359 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13360 case $host_os in
13361 solaris2.[0-5] | solaris2.[0-5].*) ;;
13362 *)
13363 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13364 ;;
13365 esac
13366 fi
13367 ;;
13368 esac
13369 ;;
13370
13371 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13372 no_undefined_flag_CXX='${wl}-z,text'
13373 archive_cmds_need_lc_CXX=no
13374 hardcode_shlibpath_var_CXX=no
13375 runpath_var='LD_RUN_PATH'
13376
13377 case $cc_basename in
13378 CC*)
13379 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13380 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13381 ;;
13382 *)
13383 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13384 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13385 ;;
13386 esac
13387 ;;
13388
13389 sysv5* | sco3.2v5* | sco5v6*)
13390 # Note: We can NOT use -z defs as we might desire, because we do not
13391 # link with -lc, and that would cause any symbols used from libc to
13392 # always be unresolved, which means just about no library would
13393 # ever link correctly. If we're not using GNU ld we use -z text
13394 # though, which does catch some bad symbols but isn't as heavy-handed
13395 # as -z defs.
13396 no_undefined_flag_CXX='${wl}-z,text'
13397 allow_undefined_flag_CXX='${wl}-z,nodefs'
13398 archive_cmds_need_lc_CXX=no
13399 hardcode_shlibpath_var_CXX=no
13400 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13401 hardcode_libdir_separator_CXX=':'
13402 link_all_deplibs_CXX=yes
13403 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13404 runpath_var='LD_RUN_PATH'
13405
13406 case $cc_basename in
13407 CC*)
13408 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13409 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13410 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13411 '"$old_archive_cmds_CXX"
13412 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13413 '"$reload_cmds_CXX"
13414 ;;
13415 *)
13416 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13417 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13418 ;;
13419 esac
13420 ;;
13421
13422 tandem*)
13423 case $cc_basename in
13424 NCC*)
13425 # NonStop-UX NCC 3.20
13426 # FIXME: insert proper C++ library support
13427 ld_shlibs_CXX=no
13428 ;;
13429 *)
13430 # FIXME: insert proper C++ library support
13431 ld_shlibs_CXX=no
13432 ;;
13433 esac
13434 ;;
13435
13436 vxworks*)
13437 # FIXME: insert proper C++ library support
13438 ld_shlibs_CXX=no
13439 ;;
13440
13441 *)
13442 # FIXME: insert proper C++ library support
13443 ld_shlibs_CXX=no
13444 ;;
13445 esac
13446
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13448$as_echo "$ld_shlibs_CXX" >&6; }
13449 test "$ld_shlibs_CXX" = no && can_build_shared=no
13450
13451 GCC_CXX="$GXX"
13452 LD_CXX="$LD"
13453
13454 ## CAVEAT EMPTOR:
13455 ## There is no encapsulation within the following macros, do not change
13456 ## the running order or otherwise move them around unless you know exactly
13457 ## what you are doing...
13458 # Dependencies to place before and after the object being linked:
13459predep_objects_CXX=
13460postdep_objects_CXX=
13461predeps_CXX=
13462postdeps_CXX=
13463compiler_lib_search_path_CXX=
13464
13465cat > conftest.$ac_ext <<_LT_EOF
13466class Foo
13467{
13468public:
13469 Foo (void) { a = 0; }
13470private:
13471 int a;
13472};
13473_LT_EOF
13474
13475
13476_lt_libdeps_save_CFLAGS=$CFLAGS
13477case "$CC $CFLAGS " in #(
13478*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13479*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13480*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13481esac
13482
13483if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13484 (eval $ac_compile) 2>&5
13485 ac_status=$?
13486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13487 test $ac_status = 0; }; then
13488 # Parse the compiler output and extract the necessary
13489 # objects, libraries and library flags.
13490
13491 # Sentinel used to keep track of whether or not we are before
13492 # the conftest object file.
13493 pre_test_object_deps_done=no
13494
13495 for p in `eval "$output_verbose_link_cmd"`; do
13496 case ${prev}${p} in
13497
13498 -L* | -R* | -l*)
13499 # Some compilers place space between "-{L,R}" and the path.
13500 # Remove the space.
13501 if test $p = "-L" ||
13502 test $p = "-R"; then
13503 prev=$p
13504 continue
13505 fi
13506
13507 # Expand the sysroot to ease extracting the directories later.
13508 if test -z "$prev"; then
13509 case $p in
13510 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13511 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13512 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13513 esac
13514 fi
13515 case $p in
13516 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13517 esac
13518 if test "$pre_test_object_deps_done" = no; then
13519 case ${prev} in
13520 -L | -R)
13521 # Internal compiler library paths should come after those
13522 # provided the user. The postdeps already come after the
13523 # user supplied libs so there is no need to process them.
13524 if test -z "$compiler_lib_search_path_CXX"; then
13525 compiler_lib_search_path_CXX="${prev}${p}"
13526 else
13527 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13528 fi
13529 ;;
13530 # The "-l" case would never come before the object being
13531 # linked, so don't bother handling this case.
13532 esac
13533 else
13534 if test -z "$postdeps_CXX"; then
13535 postdeps_CXX="${prev}${p}"
13536 else
13537 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13538 fi
13539 fi
13540 prev=
13541 ;;
13542
13543 *.lto.$objext) ;; # Ignore GCC LTO objects
13544 *.$objext)
13545 # This assumes that the test object file only shows up
13546 # once in the compiler output.
13547 if test "$p" = "conftest.$objext"; then
13548 pre_test_object_deps_done=yes
13549 continue
13550 fi
13551
13552 if test "$pre_test_object_deps_done" = no; then
13553 if test -z "$predep_objects_CXX"; then
13554 predep_objects_CXX="$p"
13555 else
13556 predep_objects_CXX="$predep_objects_CXX $p"
13557 fi
13558 else
13559 if test -z "$postdep_objects_CXX"; then
13560 postdep_objects_CXX="$p"
13561 else
13562 postdep_objects_CXX="$postdep_objects_CXX $p"
13563 fi
13564 fi
13565 ;;
13566
13567 *) ;; # Ignore the rest.
13568
13569 esac
13570 done
13571
13572 # Clean up.
13573 rm -f a.out a.exe
13574else
13575 echo "libtool.m4: error: problem compiling CXX test program"
13576fi
13577
13578$RM -f confest.$objext
13579CFLAGS=$_lt_libdeps_save_CFLAGS
13580
13581# PORTME: override above test on systems where it is broken
13582case $host_os in
13583interix[3-9]*)
13584 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13585 # hack all around it, let's just trust "g++" to DTRT.
13586 predep_objects_CXX=
13587 postdep_objects_CXX=
13588 postdeps_CXX=
13589 ;;
13590
13591linux*)
13592 case `$CC -V 2>&1 | sed 5q` in
13593 *Sun\ C*)
13594 # Sun C++ 5.9
13595
13596 # The more standards-conforming stlport4 library is
13597 # incompatible with the Cstd library. Avoid specifying
13598 # it if it's in CXXFLAGS. Ignore libCrun as
13599 # -library=stlport4 depends on it.
13600 case " $CXX $CXXFLAGS " in
13601 *" -library=stlport4 "*)
13602 solaris_use_stlport4=yes
13603 ;;
13604 esac
13605
13606 if test "$solaris_use_stlport4" != yes; then
13607 postdeps_CXX='-library=Cstd -library=Crun'
13608 fi
13609 ;;
13610 esac
13611 ;;
13612
13613solaris*)
13614 case $cc_basename in
13615 CC* | sunCC*)
13616 # The more standards-conforming stlport4 library is
13617 # incompatible with the Cstd library. Avoid specifying
13618 # it if it's in CXXFLAGS. Ignore libCrun as
13619 # -library=stlport4 depends on it.
13620 case " $CXX $CXXFLAGS " in
13621 *" -library=stlport4 "*)
13622 solaris_use_stlport4=yes
13623 ;;
13624 esac
13625
13626 # Adding this requires a known-good setup of shared libraries for
13627 # Sun compiler versions before 5.6, else PIC objects from an old
13628 # archive will be linked into the output, leading to subtle bugs.
13629 if test "$solaris_use_stlport4" != yes; then
13630 postdeps_CXX='-library=Cstd -library=Crun'
13631 fi
13632 ;;
13633 esac
13634 ;;
13635esac
13636
13637
13638case " $postdeps_CXX " in
13639*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13640esac
13641 compiler_lib_search_dirs_CXX=
13642if test -n "${compiler_lib_search_path_CXX}"; then
13643 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13644fi
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676 lt_prog_compiler_wl_CXX=
13677lt_prog_compiler_pic_CXX=
13678lt_prog_compiler_static_CXX=
13679
13680
13681 # C++ specific cases for pic, static, wl, etc.
13682 if test "$GXX" = yes; then
13683 lt_prog_compiler_wl_CXX='-Wl,'
13684 lt_prog_compiler_static_CXX='-static'
13685
13686 case $host_os in
13687 aix*)
13688 # All AIX code is PIC.
13689 if test "$host_cpu" = ia64; then
13690 # AIX 5 now supports IA64 processor
13691 lt_prog_compiler_static_CXX='-Bstatic'
13692 fi
13693 ;;
13694
13695 amigaos*)
13696 case $host_cpu in
13697 powerpc)
13698 # see comment about AmigaOS4 .so support
13699 lt_prog_compiler_pic_CXX='-fPIC'
13700 ;;
13701 m68k)
13702 # FIXME: we need at least 68020 code to build shared libraries, but
13703 # adding the `-m68020' flag to GCC prevents building anything better,
13704 # like `-m68040'.
13705 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13706 ;;
13707 esac
13708 ;;
13709
13710 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13711 # PIC is the default for these OSes.
13712 ;;
13713 mingw* | cygwin* | os2* | pw32* | cegcc*)
13714 # This hack is so that the source file can tell whether it is being
13715 # built for inclusion in a dll (and should export symbols for example).
13716 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13717 # (--disable-auto-import) libraries
13718 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13719 ;;
13720 darwin* | rhapsody*)
13721 # PIC is the default on this platform
13722 # Common symbols not allowed in MH_DYLIB files
13723 lt_prog_compiler_pic_CXX='-fno-common'
13724 ;;
13725 *djgpp*)
13726 # DJGPP does not support shared libraries at all
13727 lt_prog_compiler_pic_CXX=
13728 ;;
13729 haiku*)
13730 # PIC is the default for Haiku.
13731 # The "-static" flag exists, but is broken.
13732 lt_prog_compiler_static_CXX=
13733 ;;
13734 interix[3-9]*)
13735 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13736 # Instead, we relocate shared libraries at runtime.
13737 ;;
13738 sysv4*MP*)
13739 if test -d /usr/nec; then
13740 lt_prog_compiler_pic_CXX=-Kconform_pic
13741 fi
13742 ;;
13743 hpux*)
13744 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13745 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13746 # sets the default TLS model and affects inlining.
13747 case $host_cpu in
13748 hppa*64*)
13749 ;;
13750 *)
13751 lt_prog_compiler_pic_CXX='-fPIC'
13752 ;;
13753 esac
13754 ;;
13755 *qnx* | *nto*)
13756 # QNX uses GNU C++, but need to define -shared option too, otherwise
13757 # it will coredump.
13758 lt_prog_compiler_pic_CXX='-fPIC -shared'
13759 ;;
13760 *)
13761 lt_prog_compiler_pic_CXX='-fPIC'
13762 ;;
13763 esac
13764 else
13765 case $host_os in
13766 aix[4-9]*)
13767 # All AIX code is PIC.
13768 if test "$host_cpu" = ia64; then
13769 # AIX 5 now supports IA64 processor
13770 lt_prog_compiler_static_CXX='-Bstatic'
13771 else
13772 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13773 fi
13774 ;;
13775 chorus*)
13776 case $cc_basename in
13777 cxch68*)
13778 # Green Hills C++ Compiler
13779 # _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"
13780 ;;
13781 esac
13782 ;;
13783 mingw* | cygwin* | os2* | pw32* | cegcc*)
13784 # This hack is so that the source file can tell whether it is being
13785 # built for inclusion in a dll (and should export symbols for example).
13786 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13787 ;;
13788 dgux*)
13789 case $cc_basename in
13790 ec++*)
13791 lt_prog_compiler_pic_CXX='-KPIC'
13792 ;;
13793 ghcx*)
13794 # Green Hills C++ Compiler
13795 lt_prog_compiler_pic_CXX='-pic'
13796 ;;
13797 *)
13798 ;;
13799 esac
13800 ;;
13801 freebsd* | dragonfly*)
13802 # FreeBSD uses GNU C++
13803 ;;
13804 hpux9* | hpux10* | hpux11*)
13805 case $cc_basename in
13806 CC*)
13807 lt_prog_compiler_wl_CXX='-Wl,'
13808 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13809 if test "$host_cpu" != ia64; then
13810 lt_prog_compiler_pic_CXX='+Z'
13811 fi
13812 ;;
13813 aCC*)
13814 lt_prog_compiler_wl_CXX='-Wl,'
13815 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13816 case $host_cpu in
13817 hppa*64*|ia64*)
13818 # +Z the default
13819 ;;
13820 *)
13821 lt_prog_compiler_pic_CXX='+Z'
13822 ;;
13823 esac
13824 ;;
13825 *)
13826 ;;
13827 esac
13828 ;;
13829 interix*)
13830 # This is c89, which is MS Visual C++ (no shared libs)
13831 # Anyone wants to do a port?
13832 ;;
13833 irix5* | irix6* | nonstopux*)
13834 case $cc_basename in
13835 CC*)
13836 lt_prog_compiler_wl_CXX='-Wl,'
13837 lt_prog_compiler_static_CXX='-non_shared'
13838 # CC pic flag -KPIC is the default.
13839 ;;
13840 *)
13841 ;;
13842 esac
13843 ;;
13844 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13845 case $cc_basename in
13846 KCC*)
13847 # KAI C++ Compiler
13848 lt_prog_compiler_wl_CXX='--backend -Wl,'
13849 lt_prog_compiler_pic_CXX='-fPIC'
13850 ;;
13851 ecpc* )
13852 # old Intel C++ for x86_64 which still supported -KPIC.
13853 lt_prog_compiler_wl_CXX='-Wl,'
13854 lt_prog_compiler_pic_CXX='-KPIC'
13855 lt_prog_compiler_static_CXX='-static'
13856 ;;
13857 icpc* )
13858 # Intel C++, used to be incompatible with GCC.
13859 # ICC 10 doesn't accept -KPIC any more.
13860 lt_prog_compiler_wl_CXX='-Wl,'
13861 lt_prog_compiler_pic_CXX='-fPIC'
13862 lt_prog_compiler_static_CXX='-static'
13863 ;;
13864 pgCC* | pgcpp*)
13865 # Portland Group C++ compiler
13866 lt_prog_compiler_wl_CXX='-Wl,'
13867 lt_prog_compiler_pic_CXX='-fpic'
13868 lt_prog_compiler_static_CXX='-Bstatic'
13869 ;;
13870 cxx*)
13871 # Compaq C++
13872 # Make sure the PIC flag is empty. It appears that all Alpha
13873 # Linux and Compaq Tru64 Unix objects are PIC.
13874 lt_prog_compiler_pic_CXX=
13875 lt_prog_compiler_static_CXX='-non_shared'
13876 ;;
13877 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13878 # IBM XL 8.0, 9.0 on PPC and BlueGene
13879 lt_prog_compiler_wl_CXX='-Wl,'
13880 lt_prog_compiler_pic_CXX='-qpic'
13881 lt_prog_compiler_static_CXX='-qstaticlink'
13882 ;;
13883 *)
13884 case `$CC -V 2>&1 | sed 5q` in
13885 *Sun\ C*)
13886 # Sun C++ 5.9
13887 lt_prog_compiler_pic_CXX='-KPIC'
13888 lt_prog_compiler_static_CXX='-Bstatic'
13889 lt_prog_compiler_wl_CXX='-Qoption ld '
13890 ;;
13891 esac
13892 ;;
13893 esac
13894 ;;
13895 lynxos*)
13896 ;;
13897 m88k*)
13898 ;;
13899 mvs*)
13900 case $cc_basename in
13901 cxx*)
13902 lt_prog_compiler_pic_CXX='-W c,exportall'
13903 ;;
13904 *)
13905 ;;
13906 esac
13907 ;;
13908 netbsd*)
13909 ;;
13910 *qnx* | *nto*)
13911 # QNX uses GNU C++, but need to define -shared option too, otherwise
13912 # it will coredump.
13913 lt_prog_compiler_pic_CXX='-fPIC -shared'
13914 ;;
13915 osf3* | osf4* | osf5*)
13916 case $cc_basename in
13917 KCC*)
13918 lt_prog_compiler_wl_CXX='--backend -Wl,'
13919 ;;
13920 RCC*)
13921 # Rational C++ 2.4.1
13922 lt_prog_compiler_pic_CXX='-pic'
13923 ;;
13924 cxx*)
13925 # Digital/Compaq C++
13926 lt_prog_compiler_wl_CXX='-Wl,'
13927 # Make sure the PIC flag is empty. It appears that all Alpha
13928 # Linux and Compaq Tru64 Unix objects are PIC.
13929 lt_prog_compiler_pic_CXX=
13930 lt_prog_compiler_static_CXX='-non_shared'
13931 ;;
13932 *)
13933 ;;
13934 esac
13935 ;;
13936 psos*)
13937 ;;
13938 solaris*)
13939 case $cc_basename in
13940 CC* | sunCC*)
13941 # Sun C++ 4.2, 5.x and Centerline C++
13942 lt_prog_compiler_pic_CXX='-KPIC'
13943 lt_prog_compiler_static_CXX='-Bstatic'
13944 lt_prog_compiler_wl_CXX='-Qoption ld '
13945 ;;
13946 gcx*)
13947 # Green Hills C++ Compiler
13948 lt_prog_compiler_pic_CXX='-PIC'
13949 ;;
13950 *)
13951 ;;
13952 esac
13953 ;;
13954 sunos4*)
13955 case $cc_basename in
13956 CC*)
13957 # Sun C++ 4.x
13958 lt_prog_compiler_pic_CXX='-pic'
13959 lt_prog_compiler_static_CXX='-Bstatic'
13960 ;;
13961 lcc*)
13962 # Lucid
13963 lt_prog_compiler_pic_CXX='-pic'
13964 ;;
13965 *)
13966 ;;
13967 esac
13968 ;;
13969 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13970 case $cc_basename in
13971 CC*)
13972 lt_prog_compiler_wl_CXX='-Wl,'
13973 lt_prog_compiler_pic_CXX='-KPIC'
13974 lt_prog_compiler_static_CXX='-Bstatic'
13975 ;;
13976 esac
13977 ;;
13978 tandem*)
13979 case $cc_basename in
13980 NCC*)
13981 # NonStop-UX NCC 3.20
13982 lt_prog_compiler_pic_CXX='-KPIC'
13983 ;;
13984 *)
13985 ;;
13986 esac
13987 ;;
13988 vxworks*)
13989 ;;
13990 *)
13991 lt_prog_compiler_can_build_shared_CXX=no
13992 ;;
13993 esac
13994 fi
13995
13996case $host_os in
13997 # For platforms which do not support PIC, -DPIC is meaningless:
13998 *djgpp*)
13999 lt_prog_compiler_pic_CXX=
14000 ;;
14001 *)
14002 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14003 ;;
14004esac
14005
14006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14007$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14008if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14009 $as_echo_n "(cached) " >&6
14010else
14011 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14012fi
14013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14014$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14015lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14016
14017#
14018# Check to make sure the PIC flag actually works.
14019#
14020if test -n "$lt_prog_compiler_pic_CXX"; then
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14022$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14023if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14024 $as_echo_n "(cached) " >&6
14025else
14026 lt_cv_prog_compiler_pic_works_CXX=no
14027 ac_outfile=conftest.$ac_objext
14028 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14029 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14030 # Insert the option either (1) after the last *FLAGS variable, or
14031 # (2) before a word containing "conftest.", or (3) at the end.
14032 # Note that $ac_compile itself does not contain backslashes and begins
14033 # with a dollar sign (not a hyphen), so the echo should work correctly.
14034 # The option is referenced via a variable to avoid confusing sed.
14035 lt_compile=`echo "$ac_compile" | $SED \
14036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14038 -e 's:$: $lt_compiler_flag:'`
14039 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14040 (eval "$lt_compile" 2>conftest.err)
14041 ac_status=$?
14042 cat conftest.err >&5
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 if (exit $ac_status) && test -s "$ac_outfile"; then
14045 # The compiler can only warn and ignore the option if not recognized
14046 # So say no if there are warnings other than the usual output.
14047 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14048 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14049 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14050 lt_cv_prog_compiler_pic_works_CXX=yes
14051 fi
14052 fi
14053 $RM conftest*
14054
14055fi
14056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14057$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14058
14059if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14060 case $lt_prog_compiler_pic_CXX in
14061 "" | " "*) ;;
14062 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14063 esac
14064else
14065 lt_prog_compiler_pic_CXX=
14066 lt_prog_compiler_can_build_shared_CXX=no
14067fi
14068
14069fi
14070
14071
14072
14073
14074
14075#
14076# Check to make sure the static flag actually works.
14077#
14078wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14080$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14081if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14082 $as_echo_n "(cached) " >&6
14083else
14084 lt_cv_prog_compiler_static_works_CXX=no
14085 save_LDFLAGS="$LDFLAGS"
14086 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14087 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14088 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14089 # The linker can only warn and ignore the option if not recognized
14090 # So say no if there are warnings
14091 if test -s conftest.err; then
14092 # Append any errors to the config.log.
14093 cat conftest.err 1>&5
14094 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14095 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14096 if diff conftest.exp conftest.er2 >/dev/null; then
14097 lt_cv_prog_compiler_static_works_CXX=yes
14098 fi
14099 else
14100 lt_cv_prog_compiler_static_works_CXX=yes
14101 fi
14102 fi
14103 $RM -r conftest*
14104 LDFLAGS="$save_LDFLAGS"
14105
14106fi
14107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14108$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14109
14110if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14111 :
14112else
14113 lt_prog_compiler_static_CXX=
14114fi
14115
14116
14117
14118
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14120$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14121if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14122 $as_echo_n "(cached) " >&6
14123else
14124 lt_cv_prog_compiler_c_o_CXX=no
14125 $RM -r conftest 2>/dev/null
14126 mkdir conftest
14127 cd conftest
14128 mkdir out
14129 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14130
14131 lt_compiler_flag="-o out/conftest2.$ac_objext"
14132 # Insert the option either (1) after the last *FLAGS variable, or
14133 # (2) before a word containing "conftest.", or (3) at the end.
14134 # Note that $ac_compile itself does not contain backslashes and begins
14135 # with a dollar sign (not a hyphen), so the echo should work correctly.
14136 lt_compile=`echo "$ac_compile" | $SED \
14137 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14138 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14139 -e 's:$: $lt_compiler_flag:'`
14140 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14141 (eval "$lt_compile" 2>out/conftest.err)
14142 ac_status=$?
14143 cat out/conftest.err >&5
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14146 then
14147 # The compiler can only warn and ignore the option if not recognized
14148 # So say no if there are warnings
14149 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14150 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14151 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14152 lt_cv_prog_compiler_c_o_CXX=yes
14153 fi
14154 fi
14155 chmod u+w . 2>&5
14156 $RM conftest*
14157 # SGI C++ compiler will create directory out/ii_files/ for
14158 # template instantiation
14159 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14160 $RM out/* && rmdir out
14161 cd ..
14162 $RM -r conftest
14163 $RM conftest*
14164
14165fi
14166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14167$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14168
14169
14170
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14172$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14173if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14174 $as_echo_n "(cached) " >&6
14175else
14176 lt_cv_prog_compiler_c_o_CXX=no
14177 $RM -r conftest 2>/dev/null
14178 mkdir conftest
14179 cd conftest
14180 mkdir out
14181 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14182
14183 lt_compiler_flag="-o out/conftest2.$ac_objext"
14184 # Insert the option either (1) after the last *FLAGS variable, or
14185 # (2) before a word containing "conftest.", or (3) at the end.
14186 # Note that $ac_compile itself does not contain backslashes and begins
14187 # with a dollar sign (not a hyphen), so the echo should work correctly.
14188 lt_compile=`echo "$ac_compile" | $SED \
14189 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14190 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14191 -e 's:$: $lt_compiler_flag:'`
14192 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14193 (eval "$lt_compile" 2>out/conftest.err)
14194 ac_status=$?
14195 cat out/conftest.err >&5
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14198 then
14199 # The compiler can only warn and ignore the option if not recognized
14200 # So say no if there are warnings
14201 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14202 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14203 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14204 lt_cv_prog_compiler_c_o_CXX=yes
14205 fi
14206 fi
14207 chmod u+w . 2>&5
14208 $RM conftest*
14209 # SGI C++ compiler will create directory out/ii_files/ for
14210 # template instantiation
14211 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14212 $RM out/* && rmdir out
14213 cd ..
14214 $RM -r conftest
14215 $RM conftest*
14216
14217fi
14218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14219$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14220
14221
14222
14223
14224hard_links="nottested"
14225if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14226 # do not overwrite the value of need_locks provided by the user
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14228$as_echo_n "checking if we can lock with hard links... " >&6; }
14229 hard_links=yes
14230 $RM conftest*
14231 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14232 touch conftest.a
14233 ln conftest.a conftest.b 2>&5 || hard_links=no
14234 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14236$as_echo "$hard_links" >&6; }
14237 if test "$hard_links" = no; then
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14239$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14240 need_locks=warn
14241 fi
14242else
14243 need_locks=no
14244fi
14245
14246
14247
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14249$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14250
14251 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14252 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14253 case $host_os in
14254 aix[4-9]*)
14255 # If we're using GNU nm, then we don't want the "-C" option.
14256 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14257 # Also, AIX nm treats weak defined symbols like other global defined
14258 # symbols, whereas GNU nm marks them as "W".
14259 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14260 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'
14261 else
14262 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'
14263 fi
14264 ;;
14265 pw32*)
14266 export_symbols_cmds_CXX="$ltdll_cmds"
14267 ;;
14268 cygwin* | mingw* | cegcc*)
14269 case $cc_basename in
14270 cl*)
14271 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14272 ;;
14273 *)
14274 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'
14275 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14276 ;;
14277 esac
14278 ;;
14279 *)
14280 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14281 ;;
14282 esac
14283
14284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14285$as_echo "$ld_shlibs_CXX" >&6; }
14286test "$ld_shlibs_CXX" = no && can_build_shared=no
14287
14288with_gnu_ld_CXX=$with_gnu_ld
14289
14290
14291
14292
14293
14294
14295#
14296# Do we need to explicitly link libc?
14297#
14298case "x$archive_cmds_need_lc_CXX" in
14299x|xyes)
14300 # Assume -lc should be added
14301 archive_cmds_need_lc_CXX=yes
14302
14303 if test "$enable_shared" = yes && test "$GCC" = yes; then
14304 case $archive_cmds_CXX in
14305 *'~'*)
14306 # FIXME: we may have to deal with multi-command sequences.
14307 ;;
14308 '$CC '*)
14309 # Test whether the compiler implicitly links with -lc since on some
14310 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14311 # to ld, don't add -lc before -lgcc.
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14313$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14314if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14315 $as_echo_n "(cached) " >&6
14316else
14317 $RM conftest*
14318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14319
14320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14321 (eval $ac_compile) 2>&5
14322 ac_status=$?
14323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14324 test $ac_status = 0; } 2>conftest.err; then
14325 soname=conftest
14326 lib=conftest
14327 libobjs=conftest.$ac_objext
14328 deplibs=
14329 wl=$lt_prog_compiler_wl_CXX
14330 pic_flag=$lt_prog_compiler_pic_CXX
14331 compiler_flags=-v
14332 linker_flags=-v
14333 verstring=
14334 output_objdir=.
14335 libname=conftest
14336 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14337 allow_undefined_flag_CXX=
14338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14339 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14340 ac_status=$?
14341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14342 test $ac_status = 0; }
14343 then
14344 lt_cv_archive_cmds_need_lc_CXX=no
14345 else
14346 lt_cv_archive_cmds_need_lc_CXX=yes
14347 fi
14348 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14349 else
14350 cat conftest.err 1>&5
14351 fi
14352 $RM conftest*
14353
14354fi
14355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14356$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14357 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14358 ;;
14359 esac
14360 fi
14361 ;;
14362esac
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14426$as_echo_n "checking dynamic linker characteristics... " >&6; }
14427
14428library_names_spec=
14429libname_spec='lib$name'
14430soname_spec=
14431shrext_cmds=".so"
14432postinstall_cmds=
14433postuninstall_cmds=
14434finish_cmds=
14435finish_eval=
14436shlibpath_var=
14437shlibpath_overrides_runpath=unknown
14438version_type=none
14439dynamic_linker="$host_os ld.so"
14440sys_lib_dlsearch_path_spec="/lib /usr/lib"
14441need_lib_prefix=unknown
14442hardcode_into_libs=no
14443
14444# when you set need_version to no, make sure it does not cause -set_version
14445# flags to be left without arguments
14446need_version=unknown
14447
14448case $host_os in
14449aix3*)
14450 version_type=linux # correct to gnu/linux during the next big refactor
14451 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14452 shlibpath_var=LIBPATH
14453
14454 # AIX 3 has no versioning support, so we append a major version to the name.
14455 soname_spec='${libname}${release}${shared_ext}$major'
14456 ;;
14457
14458aix[4-9]*)
14459 version_type=linux # correct to gnu/linux during the next big refactor
14460 need_lib_prefix=no
14461 need_version=no
14462 hardcode_into_libs=yes
14463 if test "$host_cpu" = ia64; then
14464 # AIX 5 supports IA64
14465 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14466 shlibpath_var=LD_LIBRARY_PATH
14467 else
14468 # With GCC up to 2.95.x, collect2 would create an import file
14469 # for dependence libraries. The import file would start with
14470 # the line `#! .'. This would cause the generated library to
14471 # depend on `.', always an invalid library. This was fixed in
14472 # development snapshots of GCC prior to 3.0.
14473 case $host_os in
14474 aix4 | aix4.[01] | aix4.[01].*)
14475 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14476 echo ' yes '
14477 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14478 :
14479 else
14480 can_build_shared=no
14481 fi
14482 ;;
14483 esac
14484 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14485 # soname into executable. Probably we can add versioning support to
14486 # collect2, so additional links can be useful in future.
14487 if test "$aix_use_runtimelinking" = yes; then
14488 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14489 # instead of lib<name>.a to let people know that these are not
14490 # typical AIX shared libraries.
14491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14492 else
14493 # We preserve .a as extension for shared libraries through AIX4.2
14494 # and later when we are not doing run time linking.
14495 library_names_spec='${libname}${release}.a $libname.a'
14496 soname_spec='${libname}${release}${shared_ext}$major'
14497 fi
14498 shlibpath_var=LIBPATH
14499 fi
14500 ;;
14501
14502amigaos*)
14503 case $host_cpu in
14504 powerpc)
14505 # Since July 2007 AmigaOS4 officially supports .so libraries.
14506 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14508 ;;
14509 m68k)
14510 library_names_spec='$libname.ixlibrary $libname.a'
14511 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14512 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'
14513 ;;
14514 esac
14515 ;;
14516
14517beos*)
14518 library_names_spec='${libname}${shared_ext}'
14519 dynamic_linker="$host_os ld.so"
14520 shlibpath_var=LIBRARY_PATH
14521 ;;
14522
14523bsdi[45]*)
14524 version_type=linux # correct to gnu/linux during the next big refactor
14525 need_version=no
14526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14527 soname_spec='${libname}${release}${shared_ext}$major'
14528 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14529 shlibpath_var=LD_LIBRARY_PATH
14530 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14531 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14532 # the default ld.so.conf also contains /usr/contrib/lib and
14533 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14534 # libtool to hard-code these into programs
14535 ;;
14536
14537cygwin* | mingw* | pw32* | cegcc*)
14538 version_type=windows
14539 shrext_cmds=".dll"
14540 need_version=no
14541 need_lib_prefix=no
14542
14543 case $GCC,$cc_basename in
14544 yes,*)
14545 # gcc
14546 library_names_spec='$libname.dll.a'
14547 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14548 postinstall_cmds='base_file=`basename \${file}`~
14549 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14550 dldir=$destdir/`dirname \$dlpath`~
14551 test -d \$dldir || mkdir -p \$dldir~
14552 $install_prog $dir/$dlname \$dldir/$dlname~
14553 chmod a+x \$dldir/$dlname~
14554 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14555 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14556 fi'
14557 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14558 dlpath=$dir/\$dldll~
14559 $RM \$dlpath'
14560 shlibpath_overrides_runpath=yes
14561
14562 case $host_os in
14563 cygwin*)
14564 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14565 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14566
14567 ;;
14568 mingw* | cegcc*)
14569 # MinGW DLLs use traditional 'lib' prefix
14570 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14571 ;;
14572 pw32*)
14573 # pw32 DLLs use 'pw' prefix rather than 'lib'
14574 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14575 ;;
14576 esac
14577 dynamic_linker='Win32 ld.exe'
14578 ;;
14579
14580 *,cl*)
14581 # Native MSVC
14582 libname_spec='$name'
14583 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14584 library_names_spec='${libname}.dll.lib'
14585
14586 case $build_os in
14587 mingw*)
14588 sys_lib_search_path_spec=
14589 lt_save_ifs=$IFS
14590 IFS=';'
14591 for lt_path in $LIB
14592 do
14593 IFS=$lt_save_ifs
14594 # Let DOS variable expansion print the short 8.3 style file name.
14595 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14596 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14597 done
14598 IFS=$lt_save_ifs
14599 # Convert to MSYS style.
14600 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14601 ;;
14602 cygwin*)
14603 # Convert to unix form, then to dos form, then back to unix form
14604 # but this time dos style (no spaces!) so that the unix form looks
14605 # like /cygdrive/c/PROGRA~1:/cygdr...
14606 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14607 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14608 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14609 ;;
14610 *)
14611 sys_lib_search_path_spec="$LIB"
14612 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14613 # It is most probably a Windows format PATH.
14614 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14615 else
14616 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14617 fi
14618 # FIXME: find the short name or the path components, as spaces are
14619 # common. (e.g. "Program Files" -> "PROGRA~1")
14620 ;;
14621 esac
14622
14623 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14624 postinstall_cmds='base_file=`basename \${file}`~
14625 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14626 dldir=$destdir/`dirname \$dlpath`~
14627 test -d \$dldir || mkdir -p \$dldir~
14628 $install_prog $dir/$dlname \$dldir/$dlname'
14629 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14630 dlpath=$dir/\$dldll~
14631 $RM \$dlpath'
14632 shlibpath_overrides_runpath=yes
14633 dynamic_linker='Win32 link.exe'
14634 ;;
14635
14636 *)
14637 # Assume MSVC wrapper
14638 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14639 dynamic_linker='Win32 ld.exe'
14640 ;;
14641 esac
14642 # FIXME: first we should search . and the directory the executable is in
14643 shlibpath_var=PATH
14644 ;;
14645
14646darwin* | rhapsody*)
14647 dynamic_linker="$host_os dyld"
14648 version_type=darwin
14649 need_lib_prefix=no
14650 need_version=no
14651 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14652 soname_spec='${libname}${release}${major}$shared_ext'
14653 shlibpath_overrides_runpath=yes
14654 shlibpath_var=DYLD_LIBRARY_PATH
14655 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14656
14657 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14658 ;;
14659
14660dgux*)
14661 version_type=linux # correct to gnu/linux during the next big refactor
14662 need_lib_prefix=no
14663 need_version=no
14664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14665 soname_spec='${libname}${release}${shared_ext}$major'
14666 shlibpath_var=LD_LIBRARY_PATH
14667 ;;
14668
14669freebsd* | dragonfly*)
14670 # DragonFly does not have aout. When/if they implement a new
14671 # versioning mechanism, adjust this.
14672 if test -x /usr/bin/objformat; then
14673 objformat=`/usr/bin/objformat`
14674 else
14675 case $host_os in
14676 freebsd[23].*) objformat=aout ;;
14677 *) objformat=elf ;;
14678 esac
14679 fi
14680 version_type=freebsd-$objformat
14681 case $version_type in
14682 freebsd-elf*)
14683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14684 need_version=no
14685 need_lib_prefix=no
14686 ;;
14687 freebsd-*)
14688 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14689 need_version=yes
14690 ;;
14691 esac
14692 shlibpath_var=LD_LIBRARY_PATH
14693 case $host_os in
14694 freebsd2.*)
14695 shlibpath_overrides_runpath=yes
14696 ;;
14697 freebsd3.[01]* | freebsdelf3.[01]*)
14698 shlibpath_overrides_runpath=yes
14699 hardcode_into_libs=yes
14700 ;;
14701 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14702 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14703 shlibpath_overrides_runpath=no
14704 hardcode_into_libs=yes
14705 ;;
14706 *) # from 4.6 on, and DragonFly
14707 shlibpath_overrides_runpath=yes
14708 hardcode_into_libs=yes
14709 ;;
14710 esac
14711 ;;
14712
14713gnu*)
14714 version_type=linux # correct to gnu/linux during the next big refactor
14715 need_lib_prefix=no
14716 need_version=no
14717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14718 soname_spec='${libname}${release}${shared_ext}$major'
14719 shlibpath_var=LD_LIBRARY_PATH
14720 shlibpath_overrides_runpath=no
14721 hardcode_into_libs=yes
14722 ;;
14723
14724haiku*)
14725 version_type=linux # correct to gnu/linux during the next big refactor
14726 need_lib_prefix=no
14727 need_version=no
14728 dynamic_linker="$host_os runtime_loader"
14729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14730 soname_spec='${libname}${release}${shared_ext}$major'
14731 shlibpath_var=LIBRARY_PATH
14732 shlibpath_overrides_runpath=yes
14733 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14734 hardcode_into_libs=yes
14735 ;;
14736
14737hpux9* | hpux10* | hpux11*)
14738 # Give a soname corresponding to the major version so that dld.sl refuses to
14739 # link against other versions.
14740 version_type=sunos
14741 need_lib_prefix=no
14742 need_version=no
14743 case $host_cpu in
14744 ia64*)
14745 shrext_cmds='.so'
14746 hardcode_into_libs=yes
14747 dynamic_linker="$host_os dld.so"
14748 shlibpath_var=LD_LIBRARY_PATH
14749 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14751 soname_spec='${libname}${release}${shared_ext}$major'
14752 if test "X$HPUX_IA64_MODE" = X32; then
14753 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14754 else
14755 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14756 fi
14757 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14758 ;;
14759 hppa*64*)
14760 shrext_cmds='.sl'
14761 hardcode_into_libs=yes
14762 dynamic_linker="$host_os dld.sl"
14763 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14764 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14766 soname_spec='${libname}${release}${shared_ext}$major'
14767 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14768 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14769 ;;
14770 *)
14771 shrext_cmds='.sl'
14772 dynamic_linker="$host_os dld.sl"
14773 shlibpath_var=SHLIB_PATH
14774 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14776 soname_spec='${libname}${release}${shared_ext}$major'
14777 ;;
14778 esac
14779 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14780 postinstall_cmds='chmod 555 $lib'
14781 # or fails outright, so override atomically:
14782 install_override_mode=555
14783 ;;
14784
14785interix[3-9]*)
14786 version_type=linux # correct to gnu/linux during the next big refactor
14787 need_lib_prefix=no
14788 need_version=no
14789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14790 soname_spec='${libname}${release}${shared_ext}$major'
14791 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14792 shlibpath_var=LD_LIBRARY_PATH
14793 shlibpath_overrides_runpath=no
14794 hardcode_into_libs=yes
14795 ;;
14796
14797irix5* | irix6* | nonstopux*)
14798 case $host_os in
14799 nonstopux*) version_type=nonstopux ;;
14800 *)
14801 if test "$lt_cv_prog_gnu_ld" = yes; then
14802 version_type=linux # correct to gnu/linux during the next big refactor
14803 else
14804 version_type=irix
14805 fi ;;
14806 esac
14807 need_lib_prefix=no
14808 need_version=no
14809 soname_spec='${libname}${release}${shared_ext}$major'
14810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14811 case $host_os in
14812 irix5* | nonstopux*)
14813 libsuff= shlibsuff=
14814 ;;
14815 *)
14816 case $LD in # libtool.m4 will add one of these switches to LD
14817 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14818 libsuff= shlibsuff= libmagic=32-bit;;
14819 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14820 libsuff=32 shlibsuff=N32 libmagic=N32;;
14821 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14822 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14823 *) libsuff= shlibsuff= libmagic=never-match;;
14824 esac
14825 ;;
14826 esac
14827 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14828 shlibpath_overrides_runpath=no
14829 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14830 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14831 hardcode_into_libs=yes
14832 ;;
14833
14834# No shared lib support for Linux oldld, aout, or coff.
14835linux*oldld* | linux*aout* | linux*coff*)
14836 dynamic_linker=no
14837 ;;
14838
14839# This must be glibc/ELF.
14840linux* | k*bsd*-gnu | kopensolaris*-gnu)
14841 version_type=linux # correct to gnu/linux during the next big refactor
14842 need_lib_prefix=no
14843 need_version=no
14844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14845 soname_spec='${libname}${release}${shared_ext}$major'
14846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14847 shlibpath_var=LD_LIBRARY_PATH
14848 shlibpath_overrides_runpath=no
14849
14850 # Some binutils ld are patched to set DT_RUNPATH
14851 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14852 $as_echo_n "(cached) " >&6
14853else
14854 lt_cv_shlibpath_overrides_runpath=no
14855 save_LDFLAGS=$LDFLAGS
14856 save_libdir=$libdir
14857 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14858 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14860/* end confdefs.h. */
14861
14862int
14863main ()
14864{
14865
14866 ;
14867 return 0;
14868}
14869_ACEOF
14870if ac_fn_cxx_try_link "$LINENO"; then :
14871 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14872 lt_cv_shlibpath_overrides_runpath=yes
14873fi
14874fi
14875rm -f core conftest.err conftest.$ac_objext \
14876 conftest$ac_exeext conftest.$ac_ext
14877 LDFLAGS=$save_LDFLAGS
14878 libdir=$save_libdir
14879
14880fi
14881
14882 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14883
14884 # This implies no fast_install, which is unacceptable.
14885 # Some rework will be needed to allow for fast_install
14886 # before this can be enabled.
14887 hardcode_into_libs=yes
14888
14889 # Append ld.so.conf contents to the search path
14890 if test -f /etc/ld.so.conf; then
14891 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' ' '`
14892 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14893 fi
14894
14895 # We used to test for /lib/ld.so.1 and disable shared libraries on
14896 # powerpc, because MkLinux only supported shared libraries with the
14897 # GNU dynamic linker. Since this was broken with cross compilers,
14898 # most powerpc-linux boxes support dynamic linking these days and
14899 # people can always --disable-shared, the test was removed, and we
14900 # assume the GNU/Linux dynamic linker is in use.
14901 dynamic_linker='GNU/Linux ld.so'
14902 ;;
14903
14904netbsd*)
14905 version_type=sunos
14906 need_lib_prefix=no
14907 need_version=no
14908 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14910 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14911 dynamic_linker='NetBSD (a.out) ld.so'
14912 else
14913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14914 soname_spec='${libname}${release}${shared_ext}$major'
14915 dynamic_linker='NetBSD ld.elf_so'
14916 fi
14917 shlibpath_var=LD_LIBRARY_PATH
14918 shlibpath_overrides_runpath=yes
14919 hardcode_into_libs=yes
14920 ;;
14921
14922newsos6)
14923 version_type=linux # correct to gnu/linux during the next big refactor
14924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14925 shlibpath_var=LD_LIBRARY_PATH
14926 shlibpath_overrides_runpath=yes
14927 ;;
14928
14929*nto* | *qnx*)
14930 version_type=qnx
14931 need_lib_prefix=no
14932 need_version=no
14933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14934 soname_spec='${libname}${release}${shared_ext}$major'
14935 shlibpath_var=LD_LIBRARY_PATH
14936 shlibpath_overrides_runpath=no
14937 hardcode_into_libs=yes
14938 dynamic_linker='ldqnx.so'
14939 ;;
14940
14941openbsd*)
14942 version_type=sunos
14943 sys_lib_dlsearch_path_spec="/usr/lib"
14944 need_lib_prefix=no
14945 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14946 case $host_os in
14947 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14948 *) need_version=no ;;
14949 esac
14950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14951 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14952 shlibpath_var=LD_LIBRARY_PATH
14953 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14954 case $host_os in
14955 openbsd2.[89] | openbsd2.[89].*)
14956 shlibpath_overrides_runpath=no
14957 ;;
14958 *)
14959 shlibpath_overrides_runpath=yes
14960 ;;
14961 esac
14962 else
14963 shlibpath_overrides_runpath=yes
14964 fi
14965 ;;
14966
14967os2*)
14968 libname_spec='$name'
14969 shrext_cmds=".dll"
14970 need_lib_prefix=no
14971 library_names_spec='$libname${shared_ext} $libname.a'
14972 dynamic_linker='OS/2 ld.exe'
14973 shlibpath_var=LIBPATH
14974 ;;
14975
14976osf3* | osf4* | osf5*)
14977 version_type=osf
14978 need_lib_prefix=no
14979 need_version=no
14980 soname_spec='${libname}${release}${shared_ext}$major'
14981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14982 shlibpath_var=LD_LIBRARY_PATH
14983 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14984 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14985 ;;
14986
14987rdos*)
14988 dynamic_linker=no
14989 ;;
14990
14991solaris*)
14992 version_type=linux # correct to gnu/linux during the next big refactor
14993 need_lib_prefix=no
14994 need_version=no
14995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14996 soname_spec='${libname}${release}${shared_ext}$major'
14997 shlibpath_var=LD_LIBRARY_PATH
14998 shlibpath_overrides_runpath=yes
14999 hardcode_into_libs=yes
15000 # ldd complains unless libraries are executable
15001 postinstall_cmds='chmod +x $lib'
15002 ;;
15003
15004sunos4*)
15005 version_type=sunos
15006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15007 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15008 shlibpath_var=LD_LIBRARY_PATH
15009 shlibpath_overrides_runpath=yes
15010 if test "$with_gnu_ld" = yes; then
15011 need_lib_prefix=no
15012 fi
15013 need_version=yes
15014 ;;
15015
15016sysv4 | sysv4.3*)
15017 version_type=linux # correct to gnu/linux during the next big refactor
15018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15019 soname_spec='${libname}${release}${shared_ext}$major'
15020 shlibpath_var=LD_LIBRARY_PATH
15021 case $host_vendor in
15022 sni)
15023 shlibpath_overrides_runpath=no
15024 need_lib_prefix=no
15025 runpath_var=LD_RUN_PATH
15026 ;;
15027 siemens)
15028 need_lib_prefix=no
15029 ;;
15030 motorola)
15031 need_lib_prefix=no
15032 need_version=no
15033 shlibpath_overrides_runpath=no
15034 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15035 ;;
15036 esac
15037 ;;
15038
15039sysv4*MP*)
15040 if test -d /usr/nec ;then
15041 version_type=linux # correct to gnu/linux during the next big refactor
15042 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15043 soname_spec='$libname${shared_ext}.$major'
15044 shlibpath_var=LD_LIBRARY_PATH
15045 fi
15046 ;;
15047
15048sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15049 version_type=freebsd-elf
15050 need_lib_prefix=no
15051 need_version=no
15052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15053 soname_spec='${libname}${release}${shared_ext}$major'
15054 shlibpath_var=LD_LIBRARY_PATH
15055 shlibpath_overrides_runpath=yes
15056 hardcode_into_libs=yes
15057 if test "$with_gnu_ld" = yes; then
15058 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15059 else
15060 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15061 case $host_os in
15062 sco3.2v5*)
15063 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15064 ;;
15065 esac
15066 fi
15067 sys_lib_dlsearch_path_spec='/usr/lib'
15068 ;;
15069
15070tpf*)
15071 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15072 version_type=linux # correct to gnu/linux during the next big refactor
15073 need_lib_prefix=no
15074 need_version=no
15075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15076 shlibpath_var=LD_LIBRARY_PATH
15077 shlibpath_overrides_runpath=no
15078 hardcode_into_libs=yes
15079 ;;
15080
15081uts4*)
15082 version_type=linux # correct to gnu/linux during the next big refactor
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
15088*)
15089 dynamic_linker=no
15090 ;;
15091esac
15092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15093$as_echo "$dynamic_linker" >&6; }
15094test "$dynamic_linker" = no && can_build_shared=no
15095
15096variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15097if test "$GCC" = yes; then
15098 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15099fi
15100
15101if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15102 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15103fi
15104if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15105 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15106fi
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15146$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15147hardcode_action_CXX=
15148if test -n "$hardcode_libdir_flag_spec_CXX" ||
15149 test -n "$runpath_var_CXX" ||
15150 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15151
15152 # We can hardcode non-existent directories.
15153 if test "$hardcode_direct_CXX" != no &&
15154 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15155 # have to relink, otherwise we might link with an installed library
15156 # when we should be linking with a yet-to-be-installed one
15157 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15158 test "$hardcode_minus_L_CXX" != no; then
15159 # Linking always hardcodes the temporary library directory.
15160 hardcode_action_CXX=relink
15161 else
15162 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15163 hardcode_action_CXX=immediate
15164 fi
15165else
15166 # We cannot hardcode anything, or else we can only hardcode existing
15167 # directories.
15168 hardcode_action_CXX=unsupported
15169fi
15170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15171$as_echo "$hardcode_action_CXX" >&6; }
15172
15173if test "$hardcode_action_CXX" = relink ||
15174 test "$inherit_rpath_CXX" = yes; then
15175 # Fast installation is not supported
15176 enable_fast_install=no
15177elif test "$shlibpath_overrides_runpath" = yes ||
15178 test "$enable_shared" = no; then
15179 # Fast installation is not necessary
15180 enable_fast_install=needless
15181fi
15182
15183
15184
15185
15186
15187
15188
15189 fi # test -n "$compiler"
15190
15191 CC=$lt_save_CC
15192 CFLAGS=$lt_save_CFLAGS
15193 LDCXX=$LD
15194 LD=$lt_save_LD
15195 GCC=$lt_save_GCC
15196 with_gnu_ld=$lt_save_with_gnu_ld
15197 lt_cv_path_LDCXX=$lt_cv_path_LD
15198 lt_cv_path_LD=$lt_save_path_LD
15199 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15200 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15201fi # test "$_lt_caught_CXX_error" != yes
15202
15203ac_ext=c
15204ac_cpp='$CPP $CPPFLAGS'
15205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15207ac_compiler_gnu=$ac_cv_c_compiler_gnu
15208
15209
Jeff Thompson1a1b4c02013-06-28 22:28:51 -070015210if test "x$CC" != xcc; then
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
15212$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
15213else
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
15215$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
15216fi
15217set dummy $CC; ac_cc=`$as_echo "$2" |
15218 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
15219if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
15220 $as_echo_n "(cached) " >&6
15221else
15222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15223/* end confdefs.h. */
15224
15225int
15226main ()
15227{
15228
15229 ;
15230 return 0;
15231}
15232_ACEOF
15233# Make sure it works both with $CC and with simple cc.
15234# We do the test twice because some compilers refuse to overwrite an
15235# existing .o file with -o, though they will create one.
15236ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15237rm -f conftest2.*
15238if { { case "(($ac_try" in
15239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15240 *) ac_try_echo=$ac_try;;
15241esac
15242eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15243$as_echo "$ac_try_echo"; } >&5
15244 (eval "$ac_try") 2>&5
15245 ac_status=$?
15246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15247 test $ac_status = 0; } &&
15248 test -f conftest2.$ac_objext && { { case "(($ac_try" in
15249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15250 *) ac_try_echo=$ac_try;;
15251esac
15252eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15253$as_echo "$ac_try_echo"; } >&5
15254 (eval "$ac_try") 2>&5
15255 ac_status=$?
15256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15257 test $ac_status = 0; };
15258then
15259 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
15260 if test "x$CC" != xcc; then
15261 # Test first that cc exists at all.
15262 if { ac_try='cc -c conftest.$ac_ext >&5'
15263 { { case "(($ac_try" in
15264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265 *) ac_try_echo=$ac_try;;
15266esac
15267eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15268$as_echo "$ac_try_echo"; } >&5
15269 (eval "$ac_try") 2>&5
15270 ac_status=$?
15271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15272 test $ac_status = 0; }; }; then
15273 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15274 rm -f conftest2.*
15275 if { { case "(($ac_try" in
15276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15277 *) ac_try_echo=$ac_try;;
15278esac
15279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15280$as_echo "$ac_try_echo"; } >&5
15281 (eval "$ac_try") 2>&5
15282 ac_status=$?
15283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15284 test $ac_status = 0; } &&
15285 test -f conftest2.$ac_objext && { { case "(($ac_try" in
15286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15287 *) ac_try_echo=$ac_try;;
15288esac
15289eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15290$as_echo "$ac_try_echo"; } >&5
15291 (eval "$ac_try") 2>&5
15292 ac_status=$?
15293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15294 test $ac_status = 0; };
15295 then
15296 # cc works too.
15297 :
15298 else
15299 # cc exists but doesn't like -o.
15300 eval ac_cv_prog_cc_${ac_cc}_c_o=no
15301 fi
15302 fi
15303 fi
15304else
15305 eval ac_cv_prog_cc_${ac_cc}_c_o=no
15306fi
15307rm -f core conftest*
15308
15309fi
15310if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15312$as_echo "yes" >&6; }
15313else
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15315$as_echo "no" >&6; }
15316
15317$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
15318
15319fi
15320
15321# FIXME: we rely on the cache variable name because
15322# there is no other way.
15323set dummy $CC
15324am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
15325eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
15326if test "$am_t" != yes; then
15327 # Losing compiler, so override with the script.
15328 # FIXME: It is wrong to rewrite CC.
15329 # But if we don't then we get into trouble of one sort or another.
15330 # A longer-term fix would be to have automake use am__CC in this case,
15331 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
15332 CC="$am_aux_dir/compile $CC"
15333fi
15334
15335
Jeff Thompson36174062013-06-21 16:03:44 -070015336ac_ext=cpp
15337ac_cpp='$CXXCPP $CPPFLAGS'
15338ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15339ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15340ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15341
Jeff Thompson36174062013-06-21 16:03:44 -070015342
Jeff Thompson1b8f4c92013-06-19 16:18:46 -070015343 ax_cxx_compile_cxx11_required=falsednl
15344 ac_ext=cpp
15345ac_cpp='$CXXCPP $CPPFLAGS'
15346ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15347ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15348ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15349 ac_success=no
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
15351$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
15352if ${ax_cv_cxx_compile_cxx11+:} false; then :
15353 $as_echo_n "(cached) " >&6
15354else
15355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15356/* end confdefs.h. */
15357
15358 template <typename T>
15359 struct check
15360 {
15361 static_assert(sizeof(int) <= sizeof(T), "not big enough");
15362 };
15363
15364 typedef check<check<bool>> right_angle_brackets;
15365
15366 int a;
15367 decltype(a) b;
15368
15369 typedef check<int> check_type;
15370 check_type c;
15371 check_type&& cr = static_cast<check_type&&>(c);
15372
15373 auto d = a;
15374
15375_ACEOF
15376if ac_fn_cxx_try_compile "$LINENO"; then :
15377 ax_cv_cxx_compile_cxx11=yes
15378else
15379 ax_cv_cxx_compile_cxx11=no
15380fi
15381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15382fi
15383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
15384$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
15385 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
15386 ac_success=yes
15387 fi
15388
15389 if test x$ac_success = xno; then
15390 for switch in -std=gnu++11 -std=gnu++0x; do
15391 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
15393$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
15394if eval \${$cachevar+:} false; then :
15395 $as_echo_n "(cached) " >&6
15396else
15397 ac_save_CXXFLAGS="$CXXFLAGS"
15398 CXXFLAGS="$CXXFLAGS $switch"
15399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15400/* end confdefs.h. */
15401
15402 template <typename T>
15403 struct check
15404 {
15405 static_assert(sizeof(int) <= sizeof(T), "not big enough");
15406 };
15407
15408 typedef check<check<bool>> right_angle_brackets;
15409
15410 int a;
15411 decltype(a) b;
15412
15413 typedef check<int> check_type;
15414 check_type c;
15415 check_type&& cr = static_cast<check_type&&>(c);
15416
15417 auto d = a;
15418
15419_ACEOF
15420if ac_fn_cxx_try_compile "$LINENO"; then :
15421 eval $cachevar=yes
15422else
15423 eval $cachevar=no
15424fi
15425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15426 CXXFLAGS="$ac_save_CXXFLAGS"
15427fi
15428eval ac_res=\$$cachevar
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15430$as_echo "$ac_res" >&6; }
15431 if eval test x\$$cachevar = xyes; then
15432 CXXFLAGS="$CXXFLAGS $switch"
15433 ac_success=yes
15434 break
15435 fi
15436 done
15437 fi
15438
15439 if test x$ac_success = xno; then
15440 for switch in -std=c++11 -std=c++0x; do
15441 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
15443$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
15444if eval \${$cachevar+:} false; then :
15445 $as_echo_n "(cached) " >&6
15446else
15447 ac_save_CXXFLAGS="$CXXFLAGS"
15448 CXXFLAGS="$CXXFLAGS $switch"
15449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15450/* end confdefs.h. */
15451
15452 template <typename T>
15453 struct check
15454 {
15455 static_assert(sizeof(int) <= sizeof(T), "not big enough");
15456 };
15457
15458 typedef check<check<bool>> right_angle_brackets;
15459
15460 int a;
15461 decltype(a) b;
15462
15463 typedef check<int> check_type;
15464 check_type c;
15465 check_type&& cr = static_cast<check_type&&>(c);
15466
15467 auto d = a;
15468
15469_ACEOF
15470if ac_fn_cxx_try_compile "$LINENO"; then :
15471 eval $cachevar=yes
15472else
15473 eval $cachevar=no
15474fi
15475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15476 CXXFLAGS="$ac_save_CXXFLAGS"
15477fi
15478eval ac_res=\$$cachevar
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15480$as_echo "$ac_res" >&6; }
15481 if eval test x\$$cachevar = xyes; then
15482 CXXFLAGS="$CXXFLAGS $switch"
15483 ac_success=yes
15484 break
15485 fi
15486 done
15487 fi
15488 ac_ext=cpp
15489ac_cpp='$CXXCPP $CPPFLAGS'
15490ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15491ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15492ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15493
15494 if test x$ax_cxx_compile_cxx11_required = xtrue; then
15495 if test x$ac_success = xno; then
15496 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
15497 fi
15498 else
15499 if test x$ac_success = xno; then
15500 HAVE_CXX11=0
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
15502$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
15503 else
15504 HAVE_CXX11=1
15505
15506$as_echo "#define HAVE_CXX11 1" >>confdefs.h
15507
15508 fi
15509
15510
15511 fi
15512
Jeff Thompson8a055e02013-08-09 10:44:28 -070015513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
15514$as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
15515if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
Jeff Thompsonb3768ae2013-08-08 21:22:45 -070015516 $as_echo_n "(cached) " >&6
15517else
Jeff Thompson8a055e02013-08-09 10:44:28 -070015518 ac_check_lib_save_LIBS=$LIBS
15519LIBS="-lssl $LIBS"
15520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jeff Thompsonb3768ae2013-08-08 21:22:45 -070015521/* end confdefs.h. */
Jeff Thompson8a055e02013-08-09 10:44:28 -070015522
15523/* Override any GCC internal prototype to avoid an error.
15524 Use char because int might match the return type of a GCC
15525 builtin and then its argument prototype would still apply. */
15526#ifdef __cplusplus
15527extern "C"
15528#endif
15529char SSL_library_init ();
Jeff Thompsonb3768ae2013-08-08 21:22:45 -070015530int
15531main ()
15532{
Jeff Thompson8a055e02013-08-09 10:44:28 -070015533return SSL_library_init ();
Jeff Thompsonb3768ae2013-08-08 21:22:45 -070015534 ;
15535 return 0;
15536}
15537_ACEOF
15538if ac_fn_cxx_try_link "$LINENO"; then :
Jeff Thompson8a055e02013-08-09 10:44:28 -070015539 ac_cv_lib_ssl_SSL_library_init=yes
Jeff Thompsonb3768ae2013-08-08 21:22:45 -070015540else
Jeff Thompson8a055e02013-08-09 10:44:28 -070015541 ac_cv_lib_ssl_SSL_library_init=no
Jeff Thompsonb3768ae2013-08-08 21:22:45 -070015542fi
15543rm -f core conftest.err conftest.$ac_objext \
15544 conftest$ac_exeext conftest.$ac_ext
Jeff Thompson8a055e02013-08-09 10:44:28 -070015545LIBS=$ac_check_lib_save_LIBS
15546fi
15547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
15548$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
15549if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
15550 cat >>confdefs.h <<_ACEOF
15551#define HAVE_LIBSSL 1
15552_ACEOF
Jeff Thompsonb3768ae2013-08-08 21:22:45 -070015553
Jeff Thompson8a055e02013-08-09 10:44:28 -070015554 LIBS="-lssl $LIBS"
Jeff Thompsonb3768ae2013-08-08 21:22:45 -070015555
Jeff Thompson8a055e02013-08-09 10:44:28 -070015556else
15557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15559as_fn_error $? "can't find openssl ssl lib
15560See \`config.log' for more details" "$LINENO" 5; }
15561fi
Jeff Thompsonb3768ae2013-08-08 21:22:45 -070015562
Jeff Thompson8a055e02013-08-09 10:44:28 -070015563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_EncryptInit in -lcrypto" >&5
15564$as_echo_n "checking for EVP_EncryptInit in -lcrypto... " >&6; }
15565if ${ac_cv_lib_crypto_EVP_EncryptInit+:} false; then :
15566 $as_echo_n "(cached) " >&6
15567else
15568 ac_check_lib_save_LIBS=$LIBS
15569LIBS="-lcrypto $LIBS"
15570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15571/* end confdefs.h. */
Jeff Thompsonb3768ae2013-08-08 21:22:45 -070015572
Jeff Thompson8a055e02013-08-09 10:44:28 -070015573/* Override any GCC internal prototype to avoid an error.
15574 Use char because int might match the return type of a GCC
15575 builtin and then its argument prototype would still apply. */
15576#ifdef __cplusplus
15577extern "C"
15578#endif
15579char EVP_EncryptInit ();
15580int
15581main ()
15582{
15583return EVP_EncryptInit ();
15584 ;
15585 return 0;
15586}
15587_ACEOF
15588if ac_fn_cxx_try_link "$LINENO"; then :
15589 ac_cv_lib_crypto_EVP_EncryptInit=yes
15590else
15591 ac_cv_lib_crypto_EVP_EncryptInit=no
15592fi
15593rm -f core conftest.err conftest.$ac_objext \
15594 conftest$ac_exeext conftest.$ac_ext
15595LIBS=$ac_check_lib_save_LIBS
15596fi
15597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_EncryptInit" >&5
15598$as_echo "$ac_cv_lib_crypto_EVP_EncryptInit" >&6; }
15599if test "x$ac_cv_lib_crypto_EVP_EncryptInit" = xyes; then :
15600 cat >>confdefs.h <<_ACEOF
15601#define HAVE_LIBCRYPTO 1
15602_ACEOF
15603
15604 LIBS="-lcrypto $LIBS"
15605
15606else
15607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15609as_fn_error $? "can't find openssl crypto lib
15610See \`config.log' for more details" "$LINENO" 5; }
15611fi
Jeff Thompsonb3768ae2013-08-08 21:22:45 -070015612
15613
Jeff Thompson39128c62013-06-19 14:08:51 -070015614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::shared_ptr" >&5
15615$as_echo_n "checking for std::shared_ptr... " >&6; }
Jeff Thompson39128c62013-06-19 14:08:51 -070015616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15617/* end confdefs.h. */
15618#include <memory>
15619 std::shared_ptr<int> have_shared_ptr;
15620int
15621main ()
15622{
15623
15624 ;
15625 return 0;
15626}
15627
15628_ACEOF
15629if ac_fn_cxx_try_compile "$LINENO"; then :
15630
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15632$as_echo "yes" >&6; }
15633
15634cat >>confdefs.h <<_ACEOF
15635#define HAVE_STD_SHARED_PTR 1
15636_ACEOF
15637
15638
15639else
15640
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15642$as_echo "no" >&6; }
15643
15644cat >>confdefs.h <<_ACEOF
15645#define HAVE_STD_SHARED_PTR 0
15646_ACEOF
15647
15648
15649fi
15650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jeff Thompson9e9ea9f2013-06-22 10:31:18 -070015651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost::shared_ptr" >&5
15652$as_echo_n "checking for boost::shared_ptr... " >&6; }
Jeff Thompson39128c62013-06-19 14:08:51 -070015653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15654/* end confdefs.h. */
15655#include <boost/shared_ptr.hpp>
15656 boost::shared_ptr<int> have_shared_ptr;
15657int
15658main ()
15659{
15660
15661 ;
15662 return 0;
15663}
15664
15665_ACEOF
15666if ac_fn_cxx_try_compile "$LINENO"; then :
15667
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15669$as_echo "yes" >&6; }
15670
15671cat >>confdefs.h <<_ACEOF
15672#define HAVE_BOOST_SHARED_PTR 1
15673_ACEOF
15674
15675
15676else
15677
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15679$as_echo "no" >&6; }
15680
15681cat >>confdefs.h <<_ACEOF
15682#define HAVE_BOOST_SHARED_PTR 0
15683_ACEOF
15684
15685
15686fi
15687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15688
Jeff Thompsond4a1e162013-07-11 12:41:31 -070015689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcmp" >&5
15690$as_echo_n "checking for memcmp... " >&6; }
15691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15692/* end confdefs.h. */
15693#include <memory.h>
15694 void test() { unsigned char buffer[1]; memcmp(buffer, buffer, 1); }
15695int
15696main ()
15697{
15698
15699 ;
15700 return 0;
15701}
15702
15703_ACEOF
15704if ac_fn_cxx_try_compile "$LINENO"; then :
15705
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15707$as_echo "yes" >&6; }
15708
15709cat >>confdefs.h <<_ACEOF
15710#define HAVE_MEMCMP 1
15711_ACEOF
15712
15713
15714else
15715
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15717$as_echo "no" >&6; }
15718
15719cat >>confdefs.h <<_ACEOF
15720#define HAVE_MEMCMP 0
15721_ACEOF
15722
15723
15724fi
15725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jeff Thompsonc804d522013-06-27 16:54:27 -070015726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcpy" >&5
15727$as_echo_n "checking for memcpy... " >&6; }
15728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15729/* end confdefs.h. */
15730#include <memory.h>
15731 void test() { unsigned char buffer[1]; memcpy(buffer, buffer, 1); }
15732int
15733main ()
15734{
15735
15736 ;
15737 return 0;
15738}
15739
15740_ACEOF
15741if ac_fn_cxx_try_compile "$LINENO"; then :
15742
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15744$as_echo "yes" >&6; }
15745
15746cat >>confdefs.h <<_ACEOF
15747#define HAVE_MEMCPY 1
15748_ACEOF
15749
15750
15751else
15752
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15754$as_echo "no" >&6; }
15755
15756cat >>confdefs.h <<_ACEOF
15757#define HAVE_MEMCPY 0
15758_ACEOF
15759
15760
15761fi
15762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memset" >&5
15764$as_echo_n "checking for memset... " >&6; }
15765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15766/* end confdefs.h. */
15767#include <memory.h>
15768 void test() { unsigned char buffer[1]; memset(buffer, 0, 1); }
15769int
15770main ()
15771{
15772
15773 ;
15774 return 0;
15775}
15776
15777_ACEOF
15778if ac_fn_cxx_try_compile "$LINENO"; then :
15779
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15781$as_echo "yes" >&6; }
15782
15783cat >>confdefs.h <<_ACEOF
15784#define HAVE_MEMSET 1
15785_ACEOF
15786
15787
15788else
15789
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15791$as_echo "no" >&6; }
15792
15793cat >>confdefs.h <<_ACEOF
15794#define HAVE_MEMSET 0
15795_ACEOF
15796
15797
15798fi
15799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15800
Jeff Thompsonca45e552013-06-26 17:40:06 -070015801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811# Files:
15812DX_PROJECT=$PACKAGE_NAME
15813
15814DX_CONFIG=Doxyfile
15815
15816DX_DOCDIR=doxygen-doc
15817
15818
15819# Environment variables used inside doxygen.cfg:
15820DX_ENV="$DX_ENV SRCDIR='$srcdir'"
15821
15822DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
15823
15824DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
15825
15826DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
15827
15828
15829# Doxygen itself:
15830
15831
15832
15833 # Check whether --enable-doxygen-doc was given.
15834if test "${enable_doxygen_doc+set}" = set; then :
15835 enableval=$enable_doxygen_doc;
15836case "$enableval" in
15837#(
15838y|Y|yes|Yes|YES)
15839 DX_FLAG_doc=1
15840
15841
15842;; #(
15843n|N|no|No|NO)
15844 DX_FLAG_doc=0
15845
15846;; #(
15847*)
15848 as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
15849;;
15850esac
15851
15852else
15853
15854DX_FLAG_doc=1
15855
15856
15857
15858fi
15859
15860if test "$DX_FLAG_doc" = 1; then
15861
15862if test -n "$ac_tool_prefix"; then
15863 # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
15864set dummy ${ac_tool_prefix}doxygen; ac_word=$2
15865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15866$as_echo_n "checking for $ac_word... " >&6; }
15867if ${ac_cv_path_DX_DOXYGEN+:} false; then :
15868 $as_echo_n "(cached) " >&6
15869else
15870 case $DX_DOXYGEN in
15871 [\\/]* | ?:[\\/]*)
15872 ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
15873 ;;
15874 *)
15875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15876for as_dir in $PATH
15877do
15878 IFS=$as_save_IFS
15879 test -z "$as_dir" && as_dir=.
15880 for ac_exec_ext in '' $ac_executable_extensions; do
15881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15882 ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
15883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15884 break 2
15885 fi
15886done
15887 done
15888IFS=$as_save_IFS
15889
15890 ;;
15891esac
15892fi
15893DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
15894if test -n "$DX_DOXYGEN"; then
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
15896$as_echo "$DX_DOXYGEN" >&6; }
15897else
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15899$as_echo "no" >&6; }
15900fi
15901
15902
15903fi
15904if test -z "$ac_cv_path_DX_DOXYGEN"; then
15905 ac_pt_DX_DOXYGEN=$DX_DOXYGEN
15906 # Extract the first word of "doxygen", so it can be a program name with args.
15907set dummy doxygen; ac_word=$2
15908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15909$as_echo_n "checking for $ac_word... " >&6; }
15910if ${ac_cv_path_ac_pt_DX_DOXYGEN+:} false; then :
15911 $as_echo_n "(cached) " >&6
15912else
15913 case $ac_pt_DX_DOXYGEN in
15914 [\\/]* | ?:[\\/]*)
15915 ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
15916 ;;
15917 *)
15918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15919for as_dir in $PATH
15920do
15921 IFS=$as_save_IFS
15922 test -z "$as_dir" && as_dir=.
15923 for ac_exec_ext in '' $ac_executable_extensions; do
15924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15925 ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
15926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15927 break 2
15928 fi
15929done
15930 done
15931IFS=$as_save_IFS
15932
15933 ;;
15934esac
15935fi
15936ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
15937if test -n "$ac_pt_DX_DOXYGEN"; then
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
15939$as_echo "$ac_pt_DX_DOXYGEN" >&6; }
15940else
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15942$as_echo "no" >&6; }
15943fi
15944
15945 if test "x$ac_pt_DX_DOXYGEN" = x; then
15946 DX_DOXYGEN=""
15947 else
15948 case $cross_compiling:$ac_tool_warned in
15949yes:)
15950{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15951$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15952ac_tool_warned=yes ;;
15953esac
15954 DX_DOXYGEN=$ac_pt_DX_DOXYGEN
15955 fi
15956else
15957 DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
15958fi
15959
15960if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
15962$as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
15963 DX_FLAG_doc=0
15964
15965fi
15966
15967
15968if test -n "$ac_tool_prefix"; then
15969 # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
15970set dummy ${ac_tool_prefix}perl; ac_word=$2
15971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15972$as_echo_n "checking for $ac_word... " >&6; }
15973if ${ac_cv_path_DX_PERL+:} false; then :
15974 $as_echo_n "(cached) " >&6
15975else
15976 case $DX_PERL in
15977 [\\/]* | ?:[\\/]*)
15978 ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
15979 ;;
15980 *)
15981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15982for as_dir in $PATH
15983do
15984 IFS=$as_save_IFS
15985 test -z "$as_dir" && as_dir=.
15986 for ac_exec_ext in '' $ac_executable_extensions; do
15987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15988 ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
15989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15990 break 2
15991 fi
15992done
15993 done
15994IFS=$as_save_IFS
15995
15996 ;;
15997esac
15998fi
15999DX_PERL=$ac_cv_path_DX_PERL
16000if test -n "$DX_PERL"; then
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
16002$as_echo "$DX_PERL" >&6; }
16003else
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16005$as_echo "no" >&6; }
16006fi
16007
16008
16009fi
16010if test -z "$ac_cv_path_DX_PERL"; then
16011 ac_pt_DX_PERL=$DX_PERL
16012 # Extract the first word of "perl", so it can be a program name with args.
16013set dummy perl; ac_word=$2
16014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16015$as_echo_n "checking for $ac_word... " >&6; }
16016if ${ac_cv_path_ac_pt_DX_PERL+:} false; then :
16017 $as_echo_n "(cached) " >&6
16018else
16019 case $ac_pt_DX_PERL in
16020 [\\/]* | ?:[\\/]*)
16021 ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
16022 ;;
16023 *)
16024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16025for as_dir in $PATH
16026do
16027 IFS=$as_save_IFS
16028 test -z "$as_dir" && as_dir=.
16029 for ac_exec_ext in '' $ac_executable_extensions; do
16030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16031 ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
16032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16033 break 2
16034 fi
16035done
16036 done
16037IFS=$as_save_IFS
16038
16039 ;;
16040esac
16041fi
16042ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
16043if test -n "$ac_pt_DX_PERL"; then
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
16045$as_echo "$ac_pt_DX_PERL" >&6; }
16046else
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16048$as_echo "no" >&6; }
16049fi
16050
16051 if test "x$ac_pt_DX_PERL" = x; then
16052 DX_PERL=""
16053 else
16054 case $cross_compiling:$ac_tool_warned in
16055yes:)
16056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16058ac_tool_warned=yes ;;
16059esac
16060 DX_PERL=$ac_pt_DX_PERL
16061 fi
16062else
16063 DX_PERL="$ac_cv_path_DX_PERL"
16064fi
16065
16066if test "$DX_FLAG_doc$DX_PERL" = 1; then
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
16068$as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
16069 DX_FLAG_doc=0
16070
16071fi
16072
16073 :
16074fi
16075 if test "$DX_FLAG_doc" = 1; then
16076 DX_COND_doc_TRUE=
16077 DX_COND_doc_FALSE='#'
16078else
16079 DX_COND_doc_TRUE='#'
16080 DX_COND_doc_FALSE=
16081fi
16082
16083if test "$DX_FLAG_doc" = 1; then
16084 DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
16085
16086 :
16087else
16088
16089 :
16090fi
16091
16092
16093# Dot for graphics:
16094
16095
16096
16097 # Check whether --enable-doxygen-dot was given.
16098if test "${enable_doxygen_dot+set}" = set; then :
16099 enableval=$enable_doxygen_dot;
16100case "$enableval" in
16101#(
16102y|Y|yes|Yes|YES)
16103 DX_FLAG_dot=1
16104
16105
16106test "$DX_FLAG_doc" = "1" \
16107|| as_fn_error $? "doxygen-dot requires doxygen-dot" "$LINENO" 5
16108
16109;; #(
16110n|N|no|No|NO)
16111 DX_FLAG_dot=0
16112
16113;; #(
16114*)
16115 as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
16116;;
16117esac
16118
16119else
16120
16121DX_FLAG_dot=0
16122
16123
16124test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
16125
16126
16127
16128fi
16129
16130if test "$DX_FLAG_dot" = 1; then
16131
16132if test -n "$ac_tool_prefix"; then
16133 # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
16134set dummy ${ac_tool_prefix}dot; ac_word=$2
16135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16136$as_echo_n "checking for $ac_word... " >&6; }
16137if ${ac_cv_path_DX_DOT+:} false; then :
16138 $as_echo_n "(cached) " >&6
16139else
16140 case $DX_DOT in
16141 [\\/]* | ?:[\\/]*)
16142 ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
16143 ;;
16144 *)
16145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16146for as_dir in $PATH
16147do
16148 IFS=$as_save_IFS
16149 test -z "$as_dir" && as_dir=.
16150 for ac_exec_ext in '' $ac_executable_extensions; do
16151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16152 ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
16153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16154 break 2
16155 fi
16156done
16157 done
16158IFS=$as_save_IFS
16159
16160 ;;
16161esac
16162fi
16163DX_DOT=$ac_cv_path_DX_DOT
16164if test -n "$DX_DOT"; then
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
16166$as_echo "$DX_DOT" >&6; }
16167else
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16169$as_echo "no" >&6; }
16170fi
16171
16172
16173fi
16174if test -z "$ac_cv_path_DX_DOT"; then
16175 ac_pt_DX_DOT=$DX_DOT
16176 # Extract the first word of "dot", so it can be a program name with args.
16177set dummy dot; ac_word=$2
16178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16179$as_echo_n "checking for $ac_word... " >&6; }
16180if ${ac_cv_path_ac_pt_DX_DOT+:} false; then :
16181 $as_echo_n "(cached) " >&6
16182else
16183 case $ac_pt_DX_DOT in
16184 [\\/]* | ?:[\\/]*)
16185 ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
16186 ;;
16187 *)
16188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16189for as_dir in $PATH
16190do
16191 IFS=$as_save_IFS
16192 test -z "$as_dir" && as_dir=.
16193 for ac_exec_ext in '' $ac_executable_extensions; do
16194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16195 ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
16196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16197 break 2
16198 fi
16199done
16200 done
16201IFS=$as_save_IFS
16202
16203 ;;
16204esac
16205fi
16206ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
16207if test -n "$ac_pt_DX_DOT"; then
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
16209$as_echo "$ac_pt_DX_DOT" >&6; }
16210else
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16212$as_echo "no" >&6; }
16213fi
16214
16215 if test "x$ac_pt_DX_DOT" = x; then
16216 DX_DOT=""
16217 else
16218 case $cross_compiling:$ac_tool_warned in
16219yes:)
16220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16222ac_tool_warned=yes ;;
16223esac
16224 DX_DOT=$ac_pt_DX_DOT
16225 fi
16226else
16227 DX_DOT="$ac_cv_path_DX_DOT"
16228fi
16229
16230if test "$DX_FLAG_dot$DX_DOT" = 1; then
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
16232$as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
16233 DX_FLAG_dot=0
16234
16235fi
16236
16237 :
16238fi
16239 if test "$DX_FLAG_dot" = 1; then
16240 DX_COND_dot_TRUE=
16241 DX_COND_dot_FALSE='#'
16242else
16243 DX_COND_dot_TRUE='#'
16244 DX_COND_dot_FALSE=
16245fi
16246
16247if test "$DX_FLAG_dot" = 1; then
16248 DX_ENV="$DX_ENV HAVE_DOT='YES'"
16249
16250 DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
16251
16252 :
16253else
16254 DX_ENV="$DX_ENV HAVE_DOT='NO'"
16255
16256 :
16257fi
16258
16259
16260# Man pages generation:
16261
16262
16263
16264 # Check whether --enable-doxygen-man was given.
16265if test "${enable_doxygen_man+set}" = set; then :
16266 enableval=$enable_doxygen_man;
16267case "$enableval" in
16268#(
16269y|Y|yes|Yes|YES)
16270 DX_FLAG_man=1
16271
16272
16273test "$DX_FLAG_doc" = "1" \
16274|| as_fn_error $? "doxygen-man requires doxygen-man" "$LINENO" 5
16275
16276;; #(
16277n|N|no|No|NO)
16278 DX_FLAG_man=0
16279
16280;; #(
16281*)
16282 as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
16283;;
16284esac
16285
16286else
16287
16288DX_FLAG_man=0
16289
16290
16291test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
16292
16293
16294
16295fi
16296
16297if test "$DX_FLAG_man" = 1; then
16298
16299 :
16300fi
16301 if test "$DX_FLAG_man" = 1; then
16302 DX_COND_man_TRUE=
16303 DX_COND_man_FALSE='#'
16304else
16305 DX_COND_man_TRUE='#'
16306 DX_COND_man_FALSE=
16307fi
16308
16309if test "$DX_FLAG_man" = 1; then
16310 DX_ENV="$DX_ENV GENERATE_MAN='YES'"
16311
16312 :
16313else
16314 DX_ENV="$DX_ENV GENERATE_MAN='NO'"
16315
16316 :
16317fi
16318
16319
16320# RTF file generation:
16321
16322
16323
16324 # Check whether --enable-doxygen-rtf was given.
16325if test "${enable_doxygen_rtf+set}" = set; then :
16326 enableval=$enable_doxygen_rtf;
16327case "$enableval" in
16328#(
16329y|Y|yes|Yes|YES)
16330 DX_FLAG_rtf=1
16331
16332
16333test "$DX_FLAG_doc" = "1" \
16334|| as_fn_error $? "doxygen-rtf requires doxygen-rtf" "$LINENO" 5
16335
16336;; #(
16337n|N|no|No|NO)
16338 DX_FLAG_rtf=0
16339
16340;; #(
16341*)
16342 as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
16343;;
16344esac
16345
16346else
16347
16348DX_FLAG_rtf=0
16349
16350
16351test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
16352
16353
16354
16355fi
16356
16357if test "$DX_FLAG_rtf" = 1; then
16358
16359 :
16360fi
16361 if test "$DX_FLAG_rtf" = 1; then
16362 DX_COND_rtf_TRUE=
16363 DX_COND_rtf_FALSE='#'
16364else
16365 DX_COND_rtf_TRUE='#'
16366 DX_COND_rtf_FALSE=
16367fi
16368
16369if test "$DX_FLAG_rtf" = 1; then
16370 DX_ENV="$DX_ENV GENERATE_RTF='YES'"
16371
16372 :
16373else
16374 DX_ENV="$DX_ENV GENERATE_RTF='NO'"
16375
16376 :
16377fi
16378
16379
16380# XML file generation:
16381
16382
16383
16384 # Check whether --enable-doxygen-xml was given.
16385if test "${enable_doxygen_xml+set}" = set; then :
16386 enableval=$enable_doxygen_xml;
16387case "$enableval" in
16388#(
16389y|Y|yes|Yes|YES)
16390 DX_FLAG_xml=1
16391
16392
16393test "$DX_FLAG_doc" = "1" \
16394|| as_fn_error $? "doxygen-xml requires doxygen-xml" "$LINENO" 5
16395
16396;; #(
16397n|N|no|No|NO)
16398 DX_FLAG_xml=0
16399
16400;; #(
16401*)
16402 as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
16403;;
16404esac
16405
16406else
16407
16408DX_FLAG_xml=0
16409
16410
16411test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
16412
16413
16414
16415fi
16416
16417if test "$DX_FLAG_xml" = 1; then
16418
16419 :
16420fi
16421 if test "$DX_FLAG_xml" = 1; then
16422 DX_COND_xml_TRUE=
16423 DX_COND_xml_FALSE='#'
16424else
16425 DX_COND_xml_TRUE='#'
16426 DX_COND_xml_FALSE=
16427fi
16428
16429if test "$DX_FLAG_xml" = 1; then
16430 DX_ENV="$DX_ENV GENERATE_XML='YES'"
16431
16432 :
16433else
16434 DX_ENV="$DX_ENV GENERATE_XML='NO'"
16435
16436 :
16437fi
16438
16439
16440# (Compressed) HTML help generation:
16441
16442
16443
16444 # Check whether --enable-doxygen-chm was given.
16445if test "${enable_doxygen_chm+set}" = set; then :
16446 enableval=$enable_doxygen_chm;
16447case "$enableval" in
16448#(
16449y|Y|yes|Yes|YES)
16450 DX_FLAG_chm=1
16451
16452
16453test "$DX_FLAG_doc" = "1" \
16454|| as_fn_error $? "doxygen-chm requires doxygen-chm" "$LINENO" 5
16455
16456;; #(
16457n|N|no|No|NO)
16458 DX_FLAG_chm=0
16459
16460;; #(
16461*)
16462 as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
16463;;
16464esac
16465
16466else
16467
16468DX_FLAG_chm=0
16469
16470
16471test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
16472
16473
16474
16475fi
16476
16477if test "$DX_FLAG_chm" = 1; then
16478
16479if test -n "$ac_tool_prefix"; then
16480 # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
16481set dummy ${ac_tool_prefix}hhc; ac_word=$2
16482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16483$as_echo_n "checking for $ac_word... " >&6; }
16484if ${ac_cv_path_DX_HHC+:} false; then :
16485 $as_echo_n "(cached) " >&6
16486else
16487 case $DX_HHC in
16488 [\\/]* | ?:[\\/]*)
16489 ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
16490 ;;
16491 *)
16492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16493for as_dir in $PATH
16494do
16495 IFS=$as_save_IFS
16496 test -z "$as_dir" && as_dir=.
16497 for ac_exec_ext in '' $ac_executable_extensions; do
16498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16499 ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
16500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16501 break 2
16502 fi
16503done
16504 done
16505IFS=$as_save_IFS
16506
16507 ;;
16508esac
16509fi
16510DX_HHC=$ac_cv_path_DX_HHC
16511if test -n "$DX_HHC"; then
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
16513$as_echo "$DX_HHC" >&6; }
16514else
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16516$as_echo "no" >&6; }
16517fi
16518
16519
16520fi
16521if test -z "$ac_cv_path_DX_HHC"; then
16522 ac_pt_DX_HHC=$DX_HHC
16523 # Extract the first word of "hhc", so it can be a program name with args.
16524set dummy hhc; ac_word=$2
16525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16526$as_echo_n "checking for $ac_word... " >&6; }
16527if ${ac_cv_path_ac_pt_DX_HHC+:} false; then :
16528 $as_echo_n "(cached) " >&6
16529else
16530 case $ac_pt_DX_HHC in
16531 [\\/]* | ?:[\\/]*)
16532 ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
16533 ;;
16534 *)
16535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16536for as_dir in $PATH
16537do
16538 IFS=$as_save_IFS
16539 test -z "$as_dir" && as_dir=.
16540 for ac_exec_ext in '' $ac_executable_extensions; do
16541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16542 ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
16543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16544 break 2
16545 fi
16546done
16547 done
16548IFS=$as_save_IFS
16549
16550 ;;
16551esac
16552fi
16553ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
16554if test -n "$ac_pt_DX_HHC"; then
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
16556$as_echo "$ac_pt_DX_HHC" >&6; }
16557else
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16559$as_echo "no" >&6; }
16560fi
16561
16562 if test "x$ac_pt_DX_HHC" = x; then
16563 DX_HHC=""
16564 else
16565 case $cross_compiling:$ac_tool_warned in
16566yes:)
16567{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16568$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16569ac_tool_warned=yes ;;
16570esac
16571 DX_HHC=$ac_pt_DX_HHC
16572 fi
16573else
16574 DX_HHC="$ac_cv_path_DX_HHC"
16575fi
16576
16577if test "$DX_FLAG_chm$DX_HHC" = 1; then
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
16579$as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
16580 DX_FLAG_chm=0
16581
16582fi
16583
16584 :
16585fi
16586 if test "$DX_FLAG_chm" = 1; then
16587 DX_COND_chm_TRUE=
16588 DX_COND_chm_FALSE='#'
16589else
16590 DX_COND_chm_TRUE='#'
16591 DX_COND_chm_FALSE=
16592fi
16593
16594if test "$DX_FLAG_chm" = 1; then
16595 DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
16596
16597 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
16598
16599 DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
16600
16601 :
16602else
16603 DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
16604
16605 :
16606fi
16607
16608
16609# Seperate CHI file generation.
16610
16611
16612
16613 # Check whether --enable-doxygen-chi was given.
16614if test "${enable_doxygen_chi+set}" = set; then :
16615 enableval=$enable_doxygen_chi;
16616case "$enableval" in
16617#(
16618y|Y|yes|Yes|YES)
16619 DX_FLAG_chi=1
16620
16621
16622test "$DX_FLAG_chm" = "1" \
16623|| as_fn_error $? "doxygen-chi requires doxygen-chi" "$LINENO" 5
16624
16625;; #(
16626n|N|no|No|NO)
16627 DX_FLAG_chi=0
16628
16629;; #(
16630*)
16631 as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
16632;;
16633esac
16634
16635else
16636
16637DX_FLAG_chi=0
16638
16639
16640test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
16641
16642
16643
16644fi
16645
16646if test "$DX_FLAG_chi" = 1; then
16647
16648 :
16649fi
16650 if test "$DX_FLAG_chi" = 1; then
16651 DX_COND_chi_TRUE=
16652 DX_COND_chi_FALSE='#'
16653else
16654 DX_COND_chi_TRUE='#'
16655 DX_COND_chi_FALSE=
16656fi
16657
16658if test "$DX_FLAG_chi" = 1; then
16659 DX_ENV="$DX_ENV GENERATE_CHI='YES'"
16660
16661 :
16662else
16663 DX_ENV="$DX_ENV GENERATE_CHI='NO'"
16664
16665 :
16666fi
16667
16668
16669# Plain HTML pages generation:
16670
16671
16672
16673 # Check whether --enable-doxygen-html was given.
16674if test "${enable_doxygen_html+set}" = set; then :
16675 enableval=$enable_doxygen_html;
16676case "$enableval" in
16677#(
16678y|Y|yes|Yes|YES)
16679 DX_FLAG_html=1
16680
16681
16682test "$DX_FLAG_doc" = "1" \
16683|| as_fn_error $? "doxygen-html requires doxygen-html" "$LINENO" 5
16684
16685test "$DX_FLAG_chm" = "0" \
16686|| as_fn_error $? "doxygen-html contradicts doxygen-html" "$LINENO" 5
16687
16688;; #(
16689n|N|no|No|NO)
16690 DX_FLAG_html=0
16691
16692;; #(
16693*)
16694 as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
16695;;
16696esac
16697
16698else
16699
16700DX_FLAG_html=1
16701
16702
16703test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
16704
16705
16706test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
16707
16708
16709
16710fi
16711
16712if test "$DX_FLAG_html" = 1; then
16713
16714 :
16715fi
16716 if test "$DX_FLAG_html" = 1; then
16717 DX_COND_html_TRUE=
16718 DX_COND_html_FALSE='#'
16719else
16720 DX_COND_html_TRUE='#'
16721 DX_COND_html_FALSE=
16722fi
16723
16724if test "$DX_FLAG_html" = 1; then
16725 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
16726
16727 :
16728else
16729 test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
16730
16731 :
16732fi
16733
16734
16735# PostScript file generation:
16736
16737
16738
16739 # Check whether --enable-doxygen-ps was given.
16740if test "${enable_doxygen_ps+set}" = set; then :
16741 enableval=$enable_doxygen_ps;
16742case "$enableval" in
16743#(
16744y|Y|yes|Yes|YES)
16745 DX_FLAG_ps=1
16746
16747
16748test "$DX_FLAG_doc" = "1" \
16749|| as_fn_error $? "doxygen-ps requires doxygen-ps" "$LINENO" 5
16750
16751;; #(
16752n|N|no|No|NO)
16753 DX_FLAG_ps=0
16754
16755;; #(
16756*)
16757 as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
16758;;
16759esac
16760
16761else
16762
16763DX_FLAG_ps=0
16764
16765
16766test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
16767
16768
16769
16770fi
16771
16772if test "$DX_FLAG_ps" = 1; then
16773
16774if test -n "$ac_tool_prefix"; then
16775 # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
16776set dummy ${ac_tool_prefix}latex; ac_word=$2
16777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16778$as_echo_n "checking for $ac_word... " >&6; }
16779if ${ac_cv_path_DX_LATEX+:} false; then :
16780 $as_echo_n "(cached) " >&6
16781else
16782 case $DX_LATEX in
16783 [\\/]* | ?:[\\/]*)
16784 ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
16785 ;;
16786 *)
16787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16788for as_dir in $PATH
16789do
16790 IFS=$as_save_IFS
16791 test -z "$as_dir" && as_dir=.
16792 for ac_exec_ext in '' $ac_executable_extensions; do
16793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16794 ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
16795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16796 break 2
16797 fi
16798done
16799 done
16800IFS=$as_save_IFS
16801
16802 ;;
16803esac
16804fi
16805DX_LATEX=$ac_cv_path_DX_LATEX
16806if test -n "$DX_LATEX"; then
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
16808$as_echo "$DX_LATEX" >&6; }
16809else
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16811$as_echo "no" >&6; }
16812fi
16813
16814
16815fi
16816if test -z "$ac_cv_path_DX_LATEX"; then
16817 ac_pt_DX_LATEX=$DX_LATEX
16818 # Extract the first word of "latex", so it can be a program name with args.
16819set dummy latex; ac_word=$2
16820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16821$as_echo_n "checking for $ac_word... " >&6; }
16822if ${ac_cv_path_ac_pt_DX_LATEX+:} false; then :
16823 $as_echo_n "(cached) " >&6
16824else
16825 case $ac_pt_DX_LATEX in
16826 [\\/]* | ?:[\\/]*)
16827 ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
16828 ;;
16829 *)
16830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16831for as_dir in $PATH
16832do
16833 IFS=$as_save_IFS
16834 test -z "$as_dir" && as_dir=.
16835 for ac_exec_ext in '' $ac_executable_extensions; do
16836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16837 ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
16838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16839 break 2
16840 fi
16841done
16842 done
16843IFS=$as_save_IFS
16844
16845 ;;
16846esac
16847fi
16848ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
16849if test -n "$ac_pt_DX_LATEX"; then
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
16851$as_echo "$ac_pt_DX_LATEX" >&6; }
16852else
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16854$as_echo "no" >&6; }
16855fi
16856
16857 if test "x$ac_pt_DX_LATEX" = x; then
16858 DX_LATEX=""
16859 else
16860 case $cross_compiling:$ac_tool_warned in
16861yes:)
16862{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16863$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16864ac_tool_warned=yes ;;
16865esac
16866 DX_LATEX=$ac_pt_DX_LATEX
16867 fi
16868else
16869 DX_LATEX="$ac_cv_path_DX_LATEX"
16870fi
16871
16872if test "$DX_FLAG_ps$DX_LATEX" = 1; then
16873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
16874$as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
16875 DX_FLAG_ps=0
16876
16877fi
16878
16879
16880if test -n "$ac_tool_prefix"; then
16881 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
16882set dummy ${ac_tool_prefix}makeindex; ac_word=$2
16883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16884$as_echo_n "checking for $ac_word... " >&6; }
16885if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
16886 $as_echo_n "(cached) " >&6
16887else
16888 case $DX_MAKEINDEX in
16889 [\\/]* | ?:[\\/]*)
16890 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
16891 ;;
16892 *)
16893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16894for as_dir in $PATH
16895do
16896 IFS=$as_save_IFS
16897 test -z "$as_dir" && as_dir=.
16898 for ac_exec_ext in '' $ac_executable_extensions; do
16899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16900 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
16901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16902 break 2
16903 fi
16904done
16905 done
16906IFS=$as_save_IFS
16907
16908 ;;
16909esac
16910fi
16911DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
16912if test -n "$DX_MAKEINDEX"; then
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
16914$as_echo "$DX_MAKEINDEX" >&6; }
16915else
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16917$as_echo "no" >&6; }
16918fi
16919
16920
16921fi
16922if test -z "$ac_cv_path_DX_MAKEINDEX"; then
16923 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
16924 # Extract the first word of "makeindex", so it can be a program name with args.
16925set dummy makeindex; ac_word=$2
16926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16927$as_echo_n "checking for $ac_word... " >&6; }
16928if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
16929 $as_echo_n "(cached) " >&6
16930else
16931 case $ac_pt_DX_MAKEINDEX in
16932 [\\/]* | ?:[\\/]*)
16933 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
16934 ;;
16935 *)
16936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16937for as_dir in $PATH
16938do
16939 IFS=$as_save_IFS
16940 test -z "$as_dir" && as_dir=.
16941 for ac_exec_ext in '' $ac_executable_extensions; do
16942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16943 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
16944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16945 break 2
16946 fi
16947done
16948 done
16949IFS=$as_save_IFS
16950
16951 ;;
16952esac
16953fi
16954ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
16955if test -n "$ac_pt_DX_MAKEINDEX"; then
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
16957$as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
16958else
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16960$as_echo "no" >&6; }
16961fi
16962
16963 if test "x$ac_pt_DX_MAKEINDEX" = x; then
16964 DX_MAKEINDEX=""
16965 else
16966 case $cross_compiling:$ac_tool_warned in
16967yes:)
16968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16970ac_tool_warned=yes ;;
16971esac
16972 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
16973 fi
16974else
16975 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
16976fi
16977
16978if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
16980$as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
16981 DX_FLAG_ps=0
16982
16983fi
16984
16985
16986if test -n "$ac_tool_prefix"; then
16987 # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
16988set dummy ${ac_tool_prefix}dvips; ac_word=$2
16989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16990$as_echo_n "checking for $ac_word... " >&6; }
16991if ${ac_cv_path_DX_DVIPS+:} false; then :
16992 $as_echo_n "(cached) " >&6
16993else
16994 case $DX_DVIPS in
16995 [\\/]* | ?:[\\/]*)
16996 ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
16997 ;;
16998 *)
16999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17000for as_dir in $PATH
17001do
17002 IFS=$as_save_IFS
17003 test -z "$as_dir" && as_dir=.
17004 for ac_exec_ext in '' $ac_executable_extensions; do
17005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17006 ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
17007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17008 break 2
17009 fi
17010done
17011 done
17012IFS=$as_save_IFS
17013
17014 ;;
17015esac
17016fi
17017DX_DVIPS=$ac_cv_path_DX_DVIPS
17018if test -n "$DX_DVIPS"; then
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
17020$as_echo "$DX_DVIPS" >&6; }
17021else
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17023$as_echo "no" >&6; }
17024fi
17025
17026
17027fi
17028if test -z "$ac_cv_path_DX_DVIPS"; then
17029 ac_pt_DX_DVIPS=$DX_DVIPS
17030 # Extract the first word of "dvips", so it can be a program name with args.
17031set dummy dvips; ac_word=$2
17032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17033$as_echo_n "checking for $ac_word... " >&6; }
17034if ${ac_cv_path_ac_pt_DX_DVIPS+:} false; then :
17035 $as_echo_n "(cached) " >&6
17036else
17037 case $ac_pt_DX_DVIPS in
17038 [\\/]* | ?:[\\/]*)
17039 ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
17040 ;;
17041 *)
17042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17043for as_dir in $PATH
17044do
17045 IFS=$as_save_IFS
17046 test -z "$as_dir" && as_dir=.
17047 for ac_exec_ext in '' $ac_executable_extensions; do
17048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17049 ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
17050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17051 break 2
17052 fi
17053done
17054 done
17055IFS=$as_save_IFS
17056
17057 ;;
17058esac
17059fi
17060ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
17061if test -n "$ac_pt_DX_DVIPS"; then
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
17063$as_echo "$ac_pt_DX_DVIPS" >&6; }
17064else
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17066$as_echo "no" >&6; }
17067fi
17068
17069 if test "x$ac_pt_DX_DVIPS" = x; then
17070 DX_DVIPS=""
17071 else
17072 case $cross_compiling:$ac_tool_warned in
17073yes:)
17074{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17075$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17076ac_tool_warned=yes ;;
17077esac
17078 DX_DVIPS=$ac_pt_DX_DVIPS
17079 fi
17080else
17081 DX_DVIPS="$ac_cv_path_DX_DVIPS"
17082fi
17083
17084if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
17086$as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
17087 DX_FLAG_ps=0
17088
17089fi
17090
17091
17092if test -n "$ac_tool_prefix"; then
17093 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
17094set dummy ${ac_tool_prefix}egrep; ac_word=$2
17095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17096$as_echo_n "checking for $ac_word... " >&6; }
17097if ${ac_cv_path_DX_EGREP+:} false; then :
17098 $as_echo_n "(cached) " >&6
17099else
17100 case $DX_EGREP in
17101 [\\/]* | ?:[\\/]*)
17102 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
17103 ;;
17104 *)
17105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17106for as_dir in $PATH
17107do
17108 IFS=$as_save_IFS
17109 test -z "$as_dir" && as_dir=.
17110 for ac_exec_ext in '' $ac_executable_extensions; do
17111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17112 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
17113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17114 break 2
17115 fi
17116done
17117 done
17118IFS=$as_save_IFS
17119
17120 ;;
17121esac
17122fi
17123DX_EGREP=$ac_cv_path_DX_EGREP
17124if test -n "$DX_EGREP"; then
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
17126$as_echo "$DX_EGREP" >&6; }
17127else
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17129$as_echo "no" >&6; }
17130fi
17131
17132
17133fi
17134if test -z "$ac_cv_path_DX_EGREP"; then
17135 ac_pt_DX_EGREP=$DX_EGREP
17136 # Extract the first word of "egrep", so it can be a program name with args.
17137set dummy egrep; ac_word=$2
17138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17139$as_echo_n "checking for $ac_word... " >&6; }
17140if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
17141 $as_echo_n "(cached) " >&6
17142else
17143 case $ac_pt_DX_EGREP in
17144 [\\/]* | ?:[\\/]*)
17145 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
17146 ;;
17147 *)
17148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17149for as_dir in $PATH
17150do
17151 IFS=$as_save_IFS
17152 test -z "$as_dir" && as_dir=.
17153 for ac_exec_ext in '' $ac_executable_extensions; do
17154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17155 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
17156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17157 break 2
17158 fi
17159done
17160 done
17161IFS=$as_save_IFS
17162
17163 ;;
17164esac
17165fi
17166ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
17167if test -n "$ac_pt_DX_EGREP"; then
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
17169$as_echo "$ac_pt_DX_EGREP" >&6; }
17170else
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17172$as_echo "no" >&6; }
17173fi
17174
17175 if test "x$ac_pt_DX_EGREP" = x; then
17176 DX_EGREP=""
17177 else
17178 case $cross_compiling:$ac_tool_warned in
17179yes:)
17180{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17182ac_tool_warned=yes ;;
17183esac
17184 DX_EGREP=$ac_pt_DX_EGREP
17185 fi
17186else
17187 DX_EGREP="$ac_cv_path_DX_EGREP"
17188fi
17189
17190if test "$DX_FLAG_ps$DX_EGREP" = 1; then
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
17192$as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
17193 DX_FLAG_ps=0
17194
17195fi
17196
17197 :
17198fi
17199 if test "$DX_FLAG_ps" = 1; then
17200 DX_COND_ps_TRUE=
17201 DX_COND_ps_FALSE='#'
17202else
17203 DX_COND_ps_TRUE='#'
17204 DX_COND_ps_FALSE=
17205fi
17206
17207if test "$DX_FLAG_ps" = 1; then
17208
17209 :
17210else
17211
17212 :
17213fi
17214
17215
17216# PDF file generation:
17217
17218
17219
17220 # Check whether --enable-doxygen-pdf was given.
17221if test "${enable_doxygen_pdf+set}" = set; then :
17222 enableval=$enable_doxygen_pdf;
17223case "$enableval" in
17224#(
17225y|Y|yes|Yes|YES)
17226 DX_FLAG_pdf=1
17227
17228
17229test "$DX_FLAG_doc" = "1" \
17230|| as_fn_error $? "doxygen-pdf requires doxygen-pdf" "$LINENO" 5
17231
17232;; #(
17233n|N|no|No|NO)
17234 DX_FLAG_pdf=0
17235
17236;; #(
17237*)
17238 as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
17239;;
17240esac
17241
17242else
17243
17244DX_FLAG_pdf=0
17245
17246
17247test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
17248
17249
17250
17251fi
17252
17253if test "$DX_FLAG_pdf" = 1; then
17254
17255if test -n "$ac_tool_prefix"; then
17256 # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
17257set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
17258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17259$as_echo_n "checking for $ac_word... " >&6; }
17260if ${ac_cv_path_DX_PDFLATEX+:} false; then :
17261 $as_echo_n "(cached) " >&6
17262else
17263 case $DX_PDFLATEX in
17264 [\\/]* | ?:[\\/]*)
17265 ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
17266 ;;
17267 *)
17268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17269for as_dir in $PATH
17270do
17271 IFS=$as_save_IFS
17272 test -z "$as_dir" && as_dir=.
17273 for ac_exec_ext in '' $ac_executable_extensions; do
17274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17275 ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
17276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17277 break 2
17278 fi
17279done
17280 done
17281IFS=$as_save_IFS
17282
17283 ;;
17284esac
17285fi
17286DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
17287if test -n "$DX_PDFLATEX"; then
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
17289$as_echo "$DX_PDFLATEX" >&6; }
17290else
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17292$as_echo "no" >&6; }
17293fi
17294
17295
17296fi
17297if test -z "$ac_cv_path_DX_PDFLATEX"; then
17298 ac_pt_DX_PDFLATEX=$DX_PDFLATEX
17299 # Extract the first word of "pdflatex", so it can be a program name with args.
17300set dummy pdflatex; ac_word=$2
17301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17302$as_echo_n "checking for $ac_word... " >&6; }
17303if ${ac_cv_path_ac_pt_DX_PDFLATEX+:} false; then :
17304 $as_echo_n "(cached) " >&6
17305else
17306 case $ac_pt_DX_PDFLATEX in
17307 [\\/]* | ?:[\\/]*)
17308 ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
17309 ;;
17310 *)
17311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17312for as_dir in $PATH
17313do
17314 IFS=$as_save_IFS
17315 test -z "$as_dir" && as_dir=.
17316 for ac_exec_ext in '' $ac_executable_extensions; do
17317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17318 ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
17319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17320 break 2
17321 fi
17322done
17323 done
17324IFS=$as_save_IFS
17325
17326 ;;
17327esac
17328fi
17329ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
17330if test -n "$ac_pt_DX_PDFLATEX"; then
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
17332$as_echo "$ac_pt_DX_PDFLATEX" >&6; }
17333else
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17335$as_echo "no" >&6; }
17336fi
17337
17338 if test "x$ac_pt_DX_PDFLATEX" = x; then
17339 DX_PDFLATEX=""
17340 else
17341 case $cross_compiling:$ac_tool_warned in
17342yes:)
17343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17345ac_tool_warned=yes ;;
17346esac
17347 DX_PDFLATEX=$ac_pt_DX_PDFLATEX
17348 fi
17349else
17350 DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
17351fi
17352
17353if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
17355$as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
17356 DX_FLAG_pdf=0
17357
17358fi
17359
17360
17361if test -n "$ac_tool_prefix"; then
17362 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
17363set dummy ${ac_tool_prefix}makeindex; ac_word=$2
17364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17365$as_echo_n "checking for $ac_word... " >&6; }
17366if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
17367 $as_echo_n "(cached) " >&6
17368else
17369 case $DX_MAKEINDEX in
17370 [\\/]* | ?:[\\/]*)
17371 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
17372 ;;
17373 *)
17374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17375for as_dir in $PATH
17376do
17377 IFS=$as_save_IFS
17378 test -z "$as_dir" && as_dir=.
17379 for ac_exec_ext in '' $ac_executable_extensions; do
17380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17381 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
17382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17383 break 2
17384 fi
17385done
17386 done
17387IFS=$as_save_IFS
17388
17389 ;;
17390esac
17391fi
17392DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
17393if test -n "$DX_MAKEINDEX"; then
17394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
17395$as_echo "$DX_MAKEINDEX" >&6; }
17396else
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17398$as_echo "no" >&6; }
17399fi
17400
17401
17402fi
17403if test -z "$ac_cv_path_DX_MAKEINDEX"; then
17404 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
17405 # Extract the first word of "makeindex", so it can be a program name with args.
17406set dummy makeindex; ac_word=$2
17407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17408$as_echo_n "checking for $ac_word... " >&6; }
17409if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
17410 $as_echo_n "(cached) " >&6
17411else
17412 case $ac_pt_DX_MAKEINDEX in
17413 [\\/]* | ?:[\\/]*)
17414 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
17415 ;;
17416 *)
17417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17418for as_dir in $PATH
17419do
17420 IFS=$as_save_IFS
17421 test -z "$as_dir" && as_dir=.
17422 for ac_exec_ext in '' $ac_executable_extensions; do
17423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17424 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
17425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17426 break 2
17427 fi
17428done
17429 done
17430IFS=$as_save_IFS
17431
17432 ;;
17433esac
17434fi
17435ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
17436if test -n "$ac_pt_DX_MAKEINDEX"; then
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
17438$as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
17439else
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17441$as_echo "no" >&6; }
17442fi
17443
17444 if test "x$ac_pt_DX_MAKEINDEX" = x; then
17445 DX_MAKEINDEX=""
17446 else
17447 case $cross_compiling:$ac_tool_warned in
17448yes:)
17449{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17451ac_tool_warned=yes ;;
17452esac
17453 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
17454 fi
17455else
17456 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
17457fi
17458
17459if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
17461$as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
17462 DX_FLAG_pdf=0
17463
17464fi
17465
17466
17467if test -n "$ac_tool_prefix"; then
17468 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
17469set dummy ${ac_tool_prefix}egrep; ac_word=$2
17470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17471$as_echo_n "checking for $ac_word... " >&6; }
17472if ${ac_cv_path_DX_EGREP+:} false; then :
17473 $as_echo_n "(cached) " >&6
17474else
17475 case $DX_EGREP in
17476 [\\/]* | ?:[\\/]*)
17477 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
17478 ;;
17479 *)
17480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17481for as_dir in $PATH
17482do
17483 IFS=$as_save_IFS
17484 test -z "$as_dir" && as_dir=.
17485 for ac_exec_ext in '' $ac_executable_extensions; do
17486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17487 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
17488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17489 break 2
17490 fi
17491done
17492 done
17493IFS=$as_save_IFS
17494
17495 ;;
17496esac
17497fi
17498DX_EGREP=$ac_cv_path_DX_EGREP
17499if test -n "$DX_EGREP"; then
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
17501$as_echo "$DX_EGREP" >&6; }
17502else
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17504$as_echo "no" >&6; }
17505fi
17506
17507
17508fi
17509if test -z "$ac_cv_path_DX_EGREP"; then
17510 ac_pt_DX_EGREP=$DX_EGREP
17511 # Extract the first word of "egrep", so it can be a program name with args.
17512set dummy egrep; ac_word=$2
17513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17514$as_echo_n "checking for $ac_word... " >&6; }
17515if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
17516 $as_echo_n "(cached) " >&6
17517else
17518 case $ac_pt_DX_EGREP in
17519 [\\/]* | ?:[\\/]*)
17520 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
17521 ;;
17522 *)
17523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17524for as_dir in $PATH
17525do
17526 IFS=$as_save_IFS
17527 test -z "$as_dir" && as_dir=.
17528 for ac_exec_ext in '' $ac_executable_extensions; do
17529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17530 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
17531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17532 break 2
17533 fi
17534done
17535 done
17536IFS=$as_save_IFS
17537
17538 ;;
17539esac
17540fi
17541ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
17542if test -n "$ac_pt_DX_EGREP"; then
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
17544$as_echo "$ac_pt_DX_EGREP" >&6; }
17545else
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17547$as_echo "no" >&6; }
17548fi
17549
17550 if test "x$ac_pt_DX_EGREP" = x; then
17551 DX_EGREP=""
17552 else
17553 case $cross_compiling:$ac_tool_warned in
17554yes:)
17555{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17556$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17557ac_tool_warned=yes ;;
17558esac
17559 DX_EGREP=$ac_pt_DX_EGREP
17560 fi
17561else
17562 DX_EGREP="$ac_cv_path_DX_EGREP"
17563fi
17564
17565if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
17567$as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
17568 DX_FLAG_pdf=0
17569
17570fi
17571
17572 :
17573fi
17574 if test "$DX_FLAG_pdf" = 1; then
17575 DX_COND_pdf_TRUE=
17576 DX_COND_pdf_FALSE='#'
17577else
17578 DX_COND_pdf_TRUE='#'
17579 DX_COND_pdf_FALSE=
17580fi
17581
17582if test "$DX_FLAG_pdf" = 1; then
17583
17584 :
17585else
17586
17587 :
17588fi
17589
17590
17591# LaTeX generation for PS and/or PDF:
17592 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
17593 DX_COND_latex_TRUE=
17594 DX_COND_latex_FALSE='#'
17595else
17596 DX_COND_latex_TRUE='#'
17597 DX_COND_latex_FALSE=
17598fi
17599
17600if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
17601 DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
17602
17603else
17604 DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
17605
17606fi
17607
17608# Paper size for PS and/or PDF:
17609
17610case "$DOXYGEN_PAPER_SIZE" in
17611#(
17612"")
17613 DOXYGEN_PAPER_SIZE=""
17614
17615;; #(
17616a4wide|a4|letter|legal|executive)
17617 DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
17618
17619;; #(
17620*)
17621 as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
17622;;
17623esac
17624
17625#For debugging:
17626#echo DX_FLAG_doc=$DX_FLAG_doc
17627#echo DX_FLAG_dot=$DX_FLAG_dot
17628#echo DX_FLAG_man=$DX_FLAG_man
17629#echo DX_FLAG_html=$DX_FLAG_html
17630#echo DX_FLAG_chm=$DX_FLAG_chm
17631#echo DX_FLAG_chi=$DX_FLAG_chi
17632#echo DX_FLAG_rtf=$DX_FLAG_rtf
17633#echo DX_FLAG_xml=$DX_FLAG_xml
17634#echo DX_FLAG_pdf=$DX_FLAG_pdf
17635#echo DX_FLAG_ps=$DX_FLAG_ps
17636#echo DX_ENV=$DX_ENV
17637
17638
Jeff Thompson39128c62013-06-19 14:08:51 -070017639ac_config_files="$ac_config_files Makefile"
17640
17641cat >confcache <<\_ACEOF
17642# This file is a shell script that caches the results of configure
17643# tests run on this system so they can be shared between configure
17644# scripts and configure runs, see configure's option --config-cache.
17645# It is not useful on other systems. If it contains results you don't
17646# want to keep, you may remove or edit it.
17647#
17648# config.status only pays attention to the cache file if you give it
17649# the --recheck option to rerun configure.
17650#
17651# `ac_cv_env_foo' variables (set or unset) will be overridden when
17652# loading this file, other *unset* `ac_cv_foo' will be assigned the
17653# following values.
17654
17655_ACEOF
17656
17657# The following way of writing the cache mishandles newlines in values,
17658# but we know of no workaround that is simple, portable, and efficient.
17659# So, we kill variables containing newlines.
17660# Ultrix sh set writes to stderr and can't be redirected directly,
17661# and sets the high bit in the cache file unless we assign to the vars.
17662(
17663 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17664 eval ac_val=\$$ac_var
17665 case $ac_val in #(
17666 *${as_nl}*)
17667 case $ac_var in #(
17668 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17669$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17670 esac
17671 case $ac_var in #(
17672 _ | IFS | as_nl) ;; #(
17673 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17674 *) { eval $ac_var=; unset $ac_var;} ;;
17675 esac ;;
17676 esac
17677 done
17678
17679 (set) 2>&1 |
17680 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17681 *${as_nl}ac_space=\ *)
17682 # `set' does not quote correctly, so add quotes: double-quote
17683 # substitution turns \\\\ into \\, and sed turns \\ into \.
17684 sed -n \
17685 "s/'/'\\\\''/g;
17686 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17687 ;; #(
17688 *)
17689 # `set' quotes correctly as required by POSIX, so do not add quotes.
17690 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17691 ;;
17692 esac |
17693 sort
17694) |
17695 sed '
17696 /^ac_cv_env_/b end
17697 t clear
17698 :clear
17699 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17700 t end
17701 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17702 :end' >>confcache
17703if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17704 if test -w "$cache_file"; then
17705 if test "x$cache_file" != "x/dev/null"; then
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17707$as_echo "$as_me: updating cache $cache_file" >&6;}
17708 if test ! -f "$cache_file" || test -h "$cache_file"; then
17709 cat confcache >"$cache_file"
17710 else
17711 case $cache_file in #(
17712 */* | ?:*)
17713 mv -f confcache "$cache_file"$$ &&
17714 mv -f "$cache_file"$$ "$cache_file" ;; #(
17715 *)
17716 mv -f confcache "$cache_file" ;;
17717 esac
17718 fi
17719 fi
17720 else
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17722$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17723 fi
17724fi
17725rm -f confcache
17726
17727test "x$prefix" = xNONE && prefix=$ac_default_prefix
17728# Let make expand exec_prefix.
17729test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17730
17731DEFS=-DHAVE_CONFIG_H
17732
17733ac_libobjs=
17734ac_ltlibobjs=
17735U=
17736for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17737 # 1. Remove the extension, and $U if already installed.
17738 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17739 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17740 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17741 # will be set to the directory where LIBOBJS objects are built.
17742 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17743 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17744done
17745LIBOBJS=$ac_libobjs
17746
17747LTLIBOBJS=$ac_ltlibobjs
17748
17749
17750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17751$as_echo_n "checking that generated files are newer than configure... " >&6; }
17752 if test -n "$am_sleep_pid"; then
17753 # Hide warnings about reused PIDs.
17754 wait $am_sleep_pid 2>/dev/null
17755 fi
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17757$as_echo "done" >&6; }
17758 if test -n "$EXEEXT"; then
17759 am__EXEEXT_TRUE=
17760 am__EXEEXT_FALSE='#'
17761else
17762 am__EXEEXT_TRUE='#'
17763 am__EXEEXT_FALSE=
17764fi
17765
Jeff Thompson47053ad2013-08-05 10:36:53 -070017766if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17767 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17768Usually this means the macro was only invoked conditionally." "$LINENO" 5
17769fi
Jeff Thompson39128c62013-06-19 14:08:51 -070017770if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17771 as_fn_error $? "conditional \"AMDEP\" was never defined.
17772Usually this means the macro was only invoked conditionally." "$LINENO" 5
17773fi
Jeff Thompson36174062013-06-21 16:03:44 -070017774if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17775 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17776Usually this means the macro was only invoked conditionally." "$LINENO" 5
17777fi
Jeff Thompson4f031642013-08-05 11:03:16 -070017778if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17779 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17780Usually this means the macro was only invoked conditionally." "$LINENO" 5
17781fi
Jeff Thompsonca45e552013-06-26 17:40:06 -070017782if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
17783 as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
17784Usually this means the macro was only invoked conditionally." "$LINENO" 5
17785fi
17786if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
17787 as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
17788Usually this means the macro was only invoked conditionally." "$LINENO" 5
17789fi
17790if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
17791 as_fn_error $? "conditional \"DX_COND_man\" was never defined.
17792Usually this means the macro was only invoked conditionally." "$LINENO" 5
17793fi
17794if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
17795 as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
17796Usually this means the macro was only invoked conditionally." "$LINENO" 5
17797fi
17798if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
17799 as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
17800Usually this means the macro was only invoked conditionally." "$LINENO" 5
17801fi
17802if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
17803 as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
17804Usually this means the macro was only invoked conditionally." "$LINENO" 5
17805fi
17806if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
17807 as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
17808Usually this means the macro was only invoked conditionally." "$LINENO" 5
17809fi
17810if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
17811 as_fn_error $? "conditional \"DX_COND_html\" was never defined.
17812Usually this means the macro was only invoked conditionally." "$LINENO" 5
17813fi
17814if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
17815 as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
17816Usually this means the macro was only invoked conditionally." "$LINENO" 5
17817fi
17818if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
17819 as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
17820Usually this means the macro was only invoked conditionally." "$LINENO" 5
17821fi
17822if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
17823 as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
17824Usually this means the macro was only invoked conditionally." "$LINENO" 5
17825fi
Jeff Thompson39128c62013-06-19 14:08:51 -070017826
17827: "${CONFIG_STATUS=./config.status}"
17828ac_write_fail=0
17829ac_clean_files_save=$ac_clean_files
17830ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17831{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17832$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17833as_write_fail=0
17834cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17835#! $SHELL
17836# Generated by $as_me.
17837# Run this file to recreate the current configuration.
17838# Compiler output produced by configure, useful for debugging
17839# configure, is in config.log if it exists.
17840
17841debug=false
17842ac_cs_recheck=false
17843ac_cs_silent=false
17844
17845SHELL=\${CONFIG_SHELL-$SHELL}
17846export SHELL
17847_ASEOF
17848cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17849## -------------------- ##
17850## M4sh Initialization. ##
17851## -------------------- ##
17852
17853# Be more Bourne compatible
17854DUALCASE=1; export DUALCASE # for MKS sh
17855if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17856 emulate sh
17857 NULLCMD=:
17858 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17859 # is contrary to our usage. Disable this feature.
17860 alias -g '${1+"$@"}'='"$@"'
17861 setopt NO_GLOB_SUBST
17862else
17863 case `(set -o) 2>/dev/null` in #(
17864 *posix*) :
17865 set -o posix ;; #(
17866 *) :
17867 ;;
17868esac
17869fi
17870
17871
17872as_nl='
17873'
17874export as_nl
17875# Printing a long string crashes Solaris 7 /usr/bin/printf.
17876as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17877as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17878as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17879# Prefer a ksh shell builtin over an external printf program on Solaris,
17880# but without wasting forks for bash or zsh.
17881if test -z "$BASH_VERSION$ZSH_VERSION" \
17882 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17883 as_echo='print -r --'
17884 as_echo_n='print -rn --'
17885elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17886 as_echo='printf %s\n'
17887 as_echo_n='printf %s'
17888else
17889 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17890 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17891 as_echo_n='/usr/ucb/echo -n'
17892 else
17893 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17894 as_echo_n_body='eval
17895 arg=$1;
17896 case $arg in #(
17897 *"$as_nl"*)
17898 expr "X$arg" : "X\\(.*\\)$as_nl";
17899 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17900 esac;
17901 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17902 '
17903 export as_echo_n_body
17904 as_echo_n='sh -c $as_echo_n_body as_echo'
17905 fi
17906 export as_echo_body
17907 as_echo='sh -c $as_echo_body as_echo'
17908fi
17909
17910# The user is always right.
17911if test "${PATH_SEPARATOR+set}" != set; then
17912 PATH_SEPARATOR=:
17913 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17914 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17915 PATH_SEPARATOR=';'
17916 }
17917fi
17918
17919
17920# IFS
17921# We need space, tab and new line, in precisely that order. Quoting is
17922# there to prevent editors from complaining about space-tab.
17923# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17924# splitting by setting IFS to empty value.)
17925IFS=" "" $as_nl"
17926
17927# Find who we are. Look in the path if we contain no directory separator.
17928as_myself=
17929case $0 in #((
17930 *[\\/]* ) as_myself=$0 ;;
17931 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17932for as_dir in $PATH
17933do
17934 IFS=$as_save_IFS
17935 test -z "$as_dir" && as_dir=.
17936 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17937 done
17938IFS=$as_save_IFS
17939
17940 ;;
17941esac
17942# We did not find ourselves, most probably we were run as `sh COMMAND'
17943# in which case we are not to be found in the path.
17944if test "x$as_myself" = x; then
17945 as_myself=$0
17946fi
17947if test ! -f "$as_myself"; then
17948 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17949 exit 1
17950fi
17951
17952# Unset variables that we do not need and which cause bugs (e.g. in
17953# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17954# suppresses any "Segmentation fault" message there. '((' could
17955# trigger a bug in pdksh 5.2.14.
17956for as_var in BASH_ENV ENV MAIL MAILPATH
17957do eval test x\${$as_var+set} = xset \
17958 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17959done
17960PS1='$ '
17961PS2='> '
17962PS4='+ '
17963
17964# NLS nuisances.
17965LC_ALL=C
17966export LC_ALL
17967LANGUAGE=C
17968export LANGUAGE
17969
17970# CDPATH.
17971(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17972
17973
17974# as_fn_error STATUS ERROR [LINENO LOG_FD]
17975# ----------------------------------------
17976# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17977# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17978# script with STATUS, using 1 if that was 0.
17979as_fn_error ()
17980{
17981 as_status=$1; test $as_status -eq 0 && as_status=1
17982 if test "$4"; then
17983 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17984 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17985 fi
17986 $as_echo "$as_me: error: $2" >&2
17987 as_fn_exit $as_status
17988} # as_fn_error
17989
17990
17991# as_fn_set_status STATUS
17992# -----------------------
17993# Set $? to STATUS, without forking.
17994as_fn_set_status ()
17995{
17996 return $1
17997} # as_fn_set_status
17998
17999# as_fn_exit STATUS
18000# -----------------
18001# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18002as_fn_exit ()
18003{
18004 set +e
18005 as_fn_set_status $1
18006 exit $1
18007} # as_fn_exit
18008
18009# as_fn_unset VAR
18010# ---------------
18011# Portably unset VAR.
18012as_fn_unset ()
18013{
18014 { eval $1=; unset $1;}
18015}
18016as_unset=as_fn_unset
18017# as_fn_append VAR VALUE
18018# ----------------------
18019# Append the text in VALUE to the end of the definition contained in VAR. Take
18020# advantage of any shell optimizations that allow amortized linear growth over
18021# repeated appends, instead of the typical quadratic growth present in naive
18022# implementations.
18023if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18024 eval 'as_fn_append ()
18025 {
18026 eval $1+=\$2
18027 }'
18028else
18029 as_fn_append ()
18030 {
18031 eval $1=\$$1\$2
18032 }
18033fi # as_fn_append
18034
18035# as_fn_arith ARG...
18036# ------------------
18037# Perform arithmetic evaluation on the ARGs, and store the result in the
18038# global $as_val. Take advantage of shells that can avoid forks. The arguments
18039# must be portable across $(()) and expr.
18040if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18041 eval 'as_fn_arith ()
18042 {
18043 as_val=$(( $* ))
18044 }'
18045else
18046 as_fn_arith ()
18047 {
18048 as_val=`expr "$@" || test $? -eq 1`
18049 }
18050fi # as_fn_arith
18051
18052
18053if expr a : '\(a\)' >/dev/null 2>&1 &&
18054 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18055 as_expr=expr
18056else
18057 as_expr=false
18058fi
18059
18060if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18061 as_basename=basename
18062else
18063 as_basename=false
18064fi
18065
18066if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18067 as_dirname=dirname
18068else
18069 as_dirname=false
18070fi
18071
18072as_me=`$as_basename -- "$0" ||
18073$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18074 X"$0" : 'X\(//\)$' \| \
18075 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18076$as_echo X/"$0" |
18077 sed '/^.*\/\([^/][^/]*\)\/*$/{
18078 s//\1/
18079 q
18080 }
18081 /^X\/\(\/\/\)$/{
18082 s//\1/
18083 q
18084 }
18085 /^X\/\(\/\).*/{
18086 s//\1/
18087 q
18088 }
18089 s/.*/./; q'`
18090
18091# Avoid depending upon Character Ranges.
18092as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18093as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18094as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18095as_cr_digits='0123456789'
18096as_cr_alnum=$as_cr_Letters$as_cr_digits
18097
18098ECHO_C= ECHO_N= ECHO_T=
18099case `echo -n x` in #(((((
18100-n*)
18101 case `echo 'xy\c'` in
18102 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18103 xy) ECHO_C='\c';;
18104 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18105 ECHO_T=' ';;
18106 esac;;
18107*)
18108 ECHO_N='-n';;
18109esac
18110
18111rm -f conf$$ conf$$.exe conf$$.file
18112if test -d conf$$.dir; then
18113 rm -f conf$$.dir/conf$$.file
18114else
18115 rm -f conf$$.dir
18116 mkdir conf$$.dir 2>/dev/null
18117fi
18118if (echo >conf$$.file) 2>/dev/null; then
18119 if ln -s conf$$.file conf$$ 2>/dev/null; then
18120 as_ln_s='ln -s'
18121 # ... but there are two gotchas:
18122 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18123 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18124 # In both cases, we have to default to `cp -pR'.
18125 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18126 as_ln_s='cp -pR'
18127 elif ln conf$$.file conf$$ 2>/dev/null; then
18128 as_ln_s=ln
18129 else
18130 as_ln_s='cp -pR'
18131 fi
18132else
18133 as_ln_s='cp -pR'
18134fi
18135rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18136rmdir conf$$.dir 2>/dev/null
18137
18138
18139# as_fn_mkdir_p
18140# -------------
18141# Create "$as_dir" as a directory, including parents if necessary.
18142as_fn_mkdir_p ()
18143{
18144
18145 case $as_dir in #(
18146 -*) as_dir=./$as_dir;;
18147 esac
18148 test -d "$as_dir" || eval $as_mkdir_p || {
18149 as_dirs=
18150 while :; do
18151 case $as_dir in #(
18152 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18153 *) as_qdir=$as_dir;;
18154 esac
18155 as_dirs="'$as_qdir' $as_dirs"
18156 as_dir=`$as_dirname -- "$as_dir" ||
18157$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18158 X"$as_dir" : 'X\(//\)[^/]' \| \
18159 X"$as_dir" : 'X\(//\)$' \| \
18160 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18161$as_echo X"$as_dir" |
18162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18163 s//\1/
18164 q
18165 }
18166 /^X\(\/\/\)[^/].*/{
18167 s//\1/
18168 q
18169 }
18170 /^X\(\/\/\)$/{
18171 s//\1/
18172 q
18173 }
18174 /^X\(\/\).*/{
18175 s//\1/
18176 q
18177 }
18178 s/.*/./; q'`
18179 test -d "$as_dir" && break
18180 done
18181 test -z "$as_dirs" || eval "mkdir $as_dirs"
18182 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18183
18184
18185} # as_fn_mkdir_p
18186if mkdir -p . 2>/dev/null; then
18187 as_mkdir_p='mkdir -p "$as_dir"'
18188else
18189 test -d ./-p && rmdir ./-p
18190 as_mkdir_p=false
18191fi
18192
18193
18194# as_fn_executable_p FILE
18195# -----------------------
18196# Test if FILE is an executable regular file.
18197as_fn_executable_p ()
18198{
18199 test -f "$1" && test -x "$1"
18200} # as_fn_executable_p
18201as_test_x='test -x'
18202as_executable_p=as_fn_executable_p
18203
18204# Sed expression to map a string onto a valid CPP name.
18205as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18206
18207# Sed expression to map a string onto a valid variable name.
18208as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18209
18210
18211exec 6>&1
18212## ----------------------------------- ##
18213## Main body of $CONFIG_STATUS script. ##
18214## ----------------------------------- ##
18215_ASEOF
18216test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18217
18218cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18219# Save the log message, to keep $0 and so on meaningful, and to
18220# report actual input values of CONFIG_FILES etc. instead of their
18221# values after options handling.
18222ac_log="
18223This file was extended by ndn-cpp $as_me 0.5, which was
18224generated by GNU Autoconf 2.69. Invocation command line was
18225
18226 CONFIG_FILES = $CONFIG_FILES
18227 CONFIG_HEADERS = $CONFIG_HEADERS
18228 CONFIG_LINKS = $CONFIG_LINKS
18229 CONFIG_COMMANDS = $CONFIG_COMMANDS
18230 $ $0 $@
18231
18232on `(hostname || uname -n) 2>/dev/null | sed 1q`
18233"
18234
18235_ACEOF
18236
18237case $ac_config_files in *"
18238"*) set x $ac_config_files; shift; ac_config_files=$*;;
18239esac
18240
18241case $ac_config_headers in *"
18242"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18243esac
18244
18245
18246cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18247# Files that config.status was made for.
18248config_files="$ac_config_files"
18249config_headers="$ac_config_headers"
18250config_commands="$ac_config_commands"
18251
18252_ACEOF
18253
18254cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18255ac_cs_usage="\
18256\`$as_me' instantiates files and other configuration actions
18257from templates according to the current configuration. Unless the files
18258and actions are specified as TAGs, all are instantiated by default.
18259
18260Usage: $0 [OPTION]... [TAG]...
18261
18262 -h, --help print this help, then exit
18263 -V, --version print version number and configuration settings, then exit
18264 --config print configuration, then exit
18265 -q, --quiet, --silent
18266 do not print progress messages
18267 -d, --debug don't remove temporary files
18268 --recheck update $as_me by reconfiguring in the same conditions
18269 --file=FILE[:TEMPLATE]
18270 instantiate the configuration file FILE
18271 --header=FILE[:TEMPLATE]
18272 instantiate the configuration header FILE
18273
18274Configuration files:
18275$config_files
18276
18277Configuration headers:
18278$config_headers
18279
18280Configuration commands:
18281$config_commands
18282
18283Report bugs to the package provider.
18284ndn-cpp home page: <https://github.com/named-data/ndn-cpp>."
18285
18286_ACEOF
18287cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18288ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18289ac_cs_version="\\
18290ndn-cpp config.status 0.5
18291configured by $0, generated by GNU Autoconf 2.69,
18292 with options \\"\$ac_cs_config\\"
18293
18294Copyright (C) 2012 Free Software Foundation, Inc.
18295This config.status script is free software; the Free Software Foundation
18296gives unlimited permission to copy, distribute and modify it."
18297
18298ac_pwd='$ac_pwd'
18299srcdir='$srcdir'
18300INSTALL='$INSTALL'
18301MKDIR_P='$MKDIR_P'
18302AWK='$AWK'
18303test -n "\$AWK" || AWK=awk
18304_ACEOF
18305
18306cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18307# The default lists apply if the user does not specify any file.
18308ac_need_defaults=:
18309while test $# != 0
18310do
18311 case $1 in
18312 --*=?*)
18313 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18314 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18315 ac_shift=:
18316 ;;
18317 --*=)
18318 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18319 ac_optarg=
18320 ac_shift=:
18321 ;;
18322 *)
18323 ac_option=$1
18324 ac_optarg=$2
18325 ac_shift=shift
18326 ;;
18327 esac
18328
18329 case $ac_option in
18330 # Handling of the options.
18331 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18332 ac_cs_recheck=: ;;
18333 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18334 $as_echo "$ac_cs_version"; exit ;;
18335 --config | --confi | --conf | --con | --co | --c )
18336 $as_echo "$ac_cs_config"; exit ;;
18337 --debug | --debu | --deb | --de | --d | -d )
18338 debug=: ;;
18339 --file | --fil | --fi | --f )
18340 $ac_shift
18341 case $ac_optarg in
18342 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18343 '') as_fn_error $? "missing file argument" ;;
18344 esac
18345 as_fn_append CONFIG_FILES " '$ac_optarg'"
18346 ac_need_defaults=false;;
18347 --header | --heade | --head | --hea )
18348 $ac_shift
18349 case $ac_optarg in
18350 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18351 esac
18352 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18353 ac_need_defaults=false;;
18354 --he | --h)
18355 # Conflict between --help and --header
18356 as_fn_error $? "ambiguous option: \`$1'
18357Try \`$0 --help' for more information.";;
18358 --help | --hel | -h )
18359 $as_echo "$ac_cs_usage"; exit ;;
18360 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18361 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18362 ac_cs_silent=: ;;
18363
18364 # This is an error.
18365 -*) as_fn_error $? "unrecognized option: \`$1'
18366Try \`$0 --help' for more information." ;;
18367
18368 *) as_fn_append ac_config_targets " $1"
18369 ac_need_defaults=false ;;
18370
18371 esac
18372 shift
18373done
18374
18375ac_configure_extra_args=
18376
18377if $ac_cs_silent; then
18378 exec 6>/dev/null
18379 ac_configure_extra_args="$ac_configure_extra_args --silent"
18380fi
18381
18382_ACEOF
18383cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18384if \$ac_cs_recheck; then
18385 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18386 shift
18387 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18388 CONFIG_SHELL='$SHELL'
18389 export CONFIG_SHELL
18390 exec "\$@"
18391fi
18392
18393_ACEOF
18394cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18395exec 5>>config.log
18396{
18397 echo
18398 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18399## Running $as_me. ##
18400_ASBOX
18401 $as_echo "$ac_log"
18402} >&5
18403
18404_ACEOF
18405cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18406#
18407# INIT-COMMANDS
18408#
18409AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18410
Jeff Thompson4f031642013-08-05 11:03:16 -070018411
18412# The HP-UX ksh and POSIX shell print the target directory to stdout
18413# if CDPATH is set.
18414(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18415
18416sed_quote_subst='$sed_quote_subst'
18417double_quote_subst='$double_quote_subst'
18418delay_variable_subst='$delay_variable_subst'
18419macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18420macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18421enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18422enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18423pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18424enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18425SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18426ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18427PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18428host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18429host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18430host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18431build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18432build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18433build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18434SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18435Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18436GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18437EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18438FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18439LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18440NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18441LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18442max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18443ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18444exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18445lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18446lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18447lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18448lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18449lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18450reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18451reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18452OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18453deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18454file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18455file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18456want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18457DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18458sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18459AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18460AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18461archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18462STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18463RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18464old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18465old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18466old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18467lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18468CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18469CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18470compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18471GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18472lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18473lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18474lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18475lt_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"`'
18476nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18477lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18478objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18479MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18480lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18481lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18482lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18483lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18484lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18485need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18486MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18487DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18488NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18489LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18490OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18491OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18492libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18493shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18494extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18495archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18496enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18497export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18498whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18499compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18500old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18501old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18502archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18503archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18504module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18505module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18506with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18507allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18508no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18509hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18510hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18511hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18512hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18513hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18514hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18515hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18516inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18517link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18518always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18519export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18520exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18521include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18522prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18523postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18524file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18525variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18526need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18527need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18528version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18529runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18530shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18531shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18532libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18533library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18534soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18535install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18536postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18537postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18538finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18539finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18540hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18541sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18542sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18543hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18544enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18545enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18546enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18547old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18548striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18549compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18550predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18551postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18552predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18553postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18554compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18555LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18556reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18557reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18558old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18559compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18560GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18561lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18562lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18563lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18564lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18565lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18566archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18567enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18568export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18569whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18570compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18571old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18572old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18573archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18574archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18575module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18576module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18577with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18578allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18579no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18580hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18581hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18582hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18583hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18584hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18585hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18586hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18587inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18588link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18589always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18590export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18591exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18592include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18593prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18594postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18595file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18596hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18597compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18598predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18599postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18600predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18601postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18602compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18603
18604LTCC='$LTCC'
18605LTCFLAGS='$LTCFLAGS'
18606compiler='$compiler_DEFAULT'
18607
18608# A function that is used when there is no print builtin or printf.
18609func_fallback_echo ()
18610{
18611 eval 'cat <<_LTECHO_EOF
18612\$1
18613_LTECHO_EOF'
18614}
18615
18616# Quote evaled strings.
18617for var in SHELL \
18618ECHO \
18619PATH_SEPARATOR \
18620SED \
18621GREP \
18622EGREP \
18623FGREP \
18624LD \
18625NM \
18626LN_S \
18627lt_SP2NL \
18628lt_NL2SP \
18629reload_flag \
18630OBJDUMP \
18631deplibs_check_method \
18632file_magic_cmd \
18633file_magic_glob \
18634want_nocaseglob \
18635DLLTOOL \
18636sharedlib_from_linklib_cmd \
18637AR \
18638AR_FLAGS \
18639archiver_list_spec \
18640STRIP \
18641RANLIB \
18642CC \
18643CFLAGS \
18644compiler \
18645lt_cv_sys_global_symbol_pipe \
18646lt_cv_sys_global_symbol_to_cdecl \
18647lt_cv_sys_global_symbol_to_c_name_address \
18648lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18649nm_file_list_spec \
18650lt_prog_compiler_no_builtin_flag \
18651lt_prog_compiler_pic \
18652lt_prog_compiler_wl \
18653lt_prog_compiler_static \
18654lt_cv_prog_compiler_c_o \
18655need_locks \
18656MANIFEST_TOOL \
18657DSYMUTIL \
18658NMEDIT \
18659LIPO \
18660OTOOL \
18661OTOOL64 \
18662shrext_cmds \
18663export_dynamic_flag_spec \
18664whole_archive_flag_spec \
18665compiler_needs_object \
18666with_gnu_ld \
18667allow_undefined_flag \
18668no_undefined_flag \
18669hardcode_libdir_flag_spec \
18670hardcode_libdir_separator \
18671exclude_expsyms \
18672include_expsyms \
18673file_list_spec \
18674variables_saved_for_relink \
18675libname_spec \
18676library_names_spec \
18677soname_spec \
18678install_override_mode \
18679finish_eval \
18680old_striplib \
18681striplib \
18682compiler_lib_search_dirs \
18683predep_objects \
18684postdep_objects \
18685predeps \
18686postdeps \
18687compiler_lib_search_path \
18688LD_CXX \
18689reload_flag_CXX \
18690compiler_CXX \
18691lt_prog_compiler_no_builtin_flag_CXX \
18692lt_prog_compiler_pic_CXX \
18693lt_prog_compiler_wl_CXX \
18694lt_prog_compiler_static_CXX \
18695lt_cv_prog_compiler_c_o_CXX \
18696export_dynamic_flag_spec_CXX \
18697whole_archive_flag_spec_CXX \
18698compiler_needs_object_CXX \
18699with_gnu_ld_CXX \
18700allow_undefined_flag_CXX \
18701no_undefined_flag_CXX \
18702hardcode_libdir_flag_spec_CXX \
18703hardcode_libdir_separator_CXX \
18704exclude_expsyms_CXX \
18705include_expsyms_CXX \
18706file_list_spec_CXX \
18707compiler_lib_search_dirs_CXX \
18708predep_objects_CXX \
18709postdep_objects_CXX \
18710predeps_CXX \
18711postdeps_CXX \
18712compiler_lib_search_path_CXX; do
18713 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18714 *[\\\\\\\`\\"\\\$]*)
18715 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18716 ;;
18717 *)
18718 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18719 ;;
18720 esac
18721done
18722
18723# Double-quote double-evaled strings.
18724for var in reload_cmds \
18725old_postinstall_cmds \
18726old_postuninstall_cmds \
18727old_archive_cmds \
18728extract_expsyms_cmds \
18729old_archive_from_new_cmds \
18730old_archive_from_expsyms_cmds \
18731archive_cmds \
18732archive_expsym_cmds \
18733module_cmds \
18734module_expsym_cmds \
18735export_symbols_cmds \
18736prelink_cmds \
18737postlink_cmds \
18738postinstall_cmds \
18739postuninstall_cmds \
18740finish_cmds \
18741sys_lib_search_path_spec \
18742sys_lib_dlsearch_path_spec \
18743reload_cmds_CXX \
18744old_archive_cmds_CXX \
18745old_archive_from_new_cmds_CXX \
18746old_archive_from_expsyms_cmds_CXX \
18747archive_cmds_CXX \
18748archive_expsym_cmds_CXX \
18749module_cmds_CXX \
18750module_expsym_cmds_CXX \
18751export_symbols_cmds_CXX \
18752prelink_cmds_CXX \
18753postlink_cmds_CXX; do
18754 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18755 *[\\\\\\\`\\"\\\$]*)
18756 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18757 ;;
18758 *)
18759 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18760 ;;
18761 esac
18762done
18763
18764ac_aux_dir='$ac_aux_dir'
18765xsi_shell='$xsi_shell'
18766lt_shell_append='$lt_shell_append'
18767
18768# See if we are running on zsh, and set the options which allow our
18769# commands through without removal of \ escapes INIT.
18770if test -n "\${ZSH_VERSION+set}" ; then
18771 setopt NO_GLOB_SUBST
18772fi
18773
18774
18775 PACKAGE='$PACKAGE'
18776 VERSION='$VERSION'
18777 TIMESTAMP='$TIMESTAMP'
18778 RM='$RM'
18779 ofile='$ofile'
18780
18781
18782
18783
18784
18785
Jeff Thompson39128c62013-06-19 14:08:51 -070018786_ACEOF
18787
18788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18789
18790# Handling of arguments.
18791for ac_config_target in $ac_config_targets
18792do
18793 case $ac_config_target in
18794 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18795 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Jeff Thompson4f031642013-08-05 11:03:16 -070018796 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Jeff Thompson39128c62013-06-19 14:08:51 -070018797 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18798
18799 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18800 esac
18801done
18802
18803
18804# If the user did not use the arguments to specify the items to instantiate,
18805# then the envvar interface is used. Set only those that are not.
18806# We use the long form for the default assignment because of an extremely
18807# bizarre bug on SunOS 4.1.3.
18808if $ac_need_defaults; then
18809 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18810 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18811 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18812fi
18813
18814# Have a temporary directory for convenience. Make it in the build tree
18815# simply because there is no reason against having it here, and in addition,
18816# creating and moving files from /tmp can sometimes cause problems.
18817# Hook for its removal unless debugging.
18818# Note that there is a small window in which the directory will not be cleaned:
18819# after its creation but before its name has been assigned to `$tmp'.
18820$debug ||
18821{
18822 tmp= ac_tmp=
18823 trap 'exit_status=$?
18824 : "${ac_tmp:=$tmp}"
18825 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18826' 0
18827 trap 'as_fn_exit 1' 1 2 13 15
18828}
18829# Create a (secure) tmp directory for tmp files.
18830
18831{
18832 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18833 test -d "$tmp"
18834} ||
18835{
18836 tmp=./conf$$-$RANDOM
18837 (umask 077 && mkdir "$tmp")
18838} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18839ac_tmp=$tmp
18840
18841# Set up the scripts for CONFIG_FILES section.
18842# No need to generate them if there are no CONFIG_FILES.
18843# This happens for instance with `./config.status config.h'.
18844if test -n "$CONFIG_FILES"; then
18845
18846
18847ac_cr=`echo X | tr X '\015'`
18848# On cygwin, bash can eat \r inside `` if the user requested igncr.
18849# But we know of no other shell where ac_cr would be empty at this
18850# point, so we can use a bashism as a fallback.
18851if test "x$ac_cr" = x; then
18852 eval ac_cr=\$\'\\r\'
18853fi
18854ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18855if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18856 ac_cs_awk_cr='\\r'
18857else
18858 ac_cs_awk_cr=$ac_cr
18859fi
18860
18861echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18862_ACEOF
18863
18864
18865{
18866 echo "cat >conf$$subs.awk <<_ACEOF" &&
18867 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18868 echo "_ACEOF"
18869} >conf$$subs.sh ||
18870 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18871ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18872ac_delim='%!_!# '
18873for ac_last_try in false false false false false :; do
18874 . ./conf$$subs.sh ||
18875 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18876
18877 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18878 if test $ac_delim_n = $ac_delim_num; then
18879 break
18880 elif $ac_last_try; then
18881 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18882 else
18883 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18884 fi
18885done
18886rm -f conf$$subs.sh
18887
18888cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18889cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18890_ACEOF
18891sed -n '
18892h
18893s/^/S["/; s/!.*/"]=/
18894p
18895g
18896s/^[^!]*!//
18897:repl
18898t repl
18899s/'"$ac_delim"'$//
18900t delim
18901:nl
18902h
18903s/\(.\{148\}\)..*/\1/
18904t more1
18905s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18906p
18907n
18908b repl
18909:more1
18910s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18911p
18912g
18913s/.\{148\}//
18914t nl
18915:delim
18916h
18917s/\(.\{148\}\)..*/\1/
18918t more2
18919s/["\\]/\\&/g; s/^/"/; s/$/"/
18920p
18921b
18922:more2
18923s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18924p
18925g
18926s/.\{148\}//
18927t delim
18928' <conf$$subs.awk | sed '
18929/^[^""]/{
18930 N
18931 s/\n//
18932}
18933' >>$CONFIG_STATUS || ac_write_fail=1
18934rm -f conf$$subs.awk
18935cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18936_ACAWK
18937cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18938 for (key in S) S_is_set[key] = 1
18939 FS = ""
18940
18941}
18942{
18943 line = $ 0
18944 nfields = split(line, field, "@")
18945 substed = 0
18946 len = length(field[1])
18947 for (i = 2; i < nfields; i++) {
18948 key = field[i]
18949 keylen = length(key)
18950 if (S_is_set[key]) {
18951 value = S[key]
18952 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18953 len += length(value) + length(field[++i])
18954 substed = 1
18955 } else
18956 len += 1 + keylen
18957 }
18958
18959 print line
18960}
18961
18962_ACAWK
18963_ACEOF
18964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18965if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18966 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18967else
18968 cat
18969fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18970 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18971_ACEOF
18972
18973# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18974# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18975# trailing colons and then remove the whole line if VPATH becomes empty
18976# (actually we leave an empty line to preserve line numbers).
18977if test "x$srcdir" = x.; then
18978 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18979h
18980s///
18981s/^/:/
18982s/[ ]*$/:/
18983s/:\$(srcdir):/:/g
18984s/:\${srcdir}:/:/g
18985s/:@srcdir@:/:/g
18986s/^:*//
18987s/:*$//
18988x
18989s/\(=[ ]*\).*/\1/
18990G
18991s/\n//
18992s/^[^=]*=[ ]*$//
18993}'
18994fi
18995
18996cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18997fi # test -n "$CONFIG_FILES"
18998
18999# Set up the scripts for CONFIG_HEADERS section.
19000# No need to generate them if there are no CONFIG_HEADERS.
19001# This happens for instance with `./config.status Makefile'.
19002if test -n "$CONFIG_HEADERS"; then
19003cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19004BEGIN {
19005_ACEOF
19006
19007# Transform confdefs.h into an awk script `defines.awk', embedded as
19008# here-document in config.status, that substitutes the proper values into
19009# config.h.in to produce config.h.
19010
19011# Create a delimiter string that does not exist in confdefs.h, to ease
19012# handling of long lines.
19013ac_delim='%!_!# '
19014for ac_last_try in false false :; do
19015 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19016 if test -z "$ac_tt"; then
19017 break
19018 elif $ac_last_try; then
19019 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19020 else
19021 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19022 fi
19023done
19024
19025# For the awk script, D is an array of macro values keyed by name,
19026# likewise P contains macro parameters if any. Preserve backslash
19027# newline sequences.
19028
19029ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19030sed -n '
19031s/.\{148\}/&'"$ac_delim"'/g
19032t rset
19033:rset
19034s/^[ ]*#[ ]*define[ ][ ]*/ /
19035t def
19036d
19037:def
19038s/\\$//
19039t bsnl
19040s/["\\]/\\&/g
19041s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19042D["\1"]=" \3"/p
19043s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19044d
19045:bsnl
19046s/["\\]/\\&/g
19047s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19048D["\1"]=" \3\\\\\\n"\\/p
19049t cont
19050s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19051t cont
19052d
19053:cont
19054n
19055s/.\{148\}/&'"$ac_delim"'/g
19056t clear
19057:clear
19058s/\\$//
19059t bsnlc
19060s/["\\]/\\&/g; s/^/"/; s/$/"/p
19061d
19062:bsnlc
19063s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19064b cont
19065' <confdefs.h | sed '
19066s/'"$ac_delim"'/"\\\
19067"/g' >>$CONFIG_STATUS || ac_write_fail=1
19068
19069cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19070 for (key in D) D_is_set[key] = 1
19071 FS = ""
19072}
19073/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19074 line = \$ 0
19075 split(line, arg, " ")
19076 if (arg[1] == "#") {
19077 defundef = arg[2]
19078 mac1 = arg[3]
19079 } else {
19080 defundef = substr(arg[1], 2)
19081 mac1 = arg[2]
19082 }
19083 split(mac1, mac2, "(") #)
19084 macro = mac2[1]
19085 prefix = substr(line, 1, index(line, defundef) - 1)
19086 if (D_is_set[macro]) {
19087 # Preserve the white space surrounding the "#".
19088 print prefix "define", macro P[macro] D[macro]
19089 next
19090 } else {
19091 # Replace #undef with comments. This is necessary, for example,
19092 # in the case of _POSIX_SOURCE, which is predefined and required
19093 # on some systems where configure will not decide to define it.
19094 if (defundef == "undef") {
19095 print "/*", prefix defundef, macro, "*/"
19096 next
19097 }
19098 }
19099}
19100{ print }
19101_ACAWK
19102_ACEOF
19103cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19104 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19105fi # test -n "$CONFIG_HEADERS"
19106
19107
19108eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19109shift
19110for ac_tag
19111do
19112 case $ac_tag in
19113 :[FHLC]) ac_mode=$ac_tag; continue;;
19114 esac
19115 case $ac_mode$ac_tag in
19116 :[FHL]*:*);;
19117 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19118 :[FH]-) ac_tag=-:-;;
19119 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19120 esac
19121 ac_save_IFS=$IFS
19122 IFS=:
19123 set x $ac_tag
19124 IFS=$ac_save_IFS
19125 shift
19126 ac_file=$1
19127 shift
19128
19129 case $ac_mode in
19130 :L) ac_source=$1;;
19131 :[FH])
19132 ac_file_inputs=
19133 for ac_f
19134 do
19135 case $ac_f in
19136 -) ac_f="$ac_tmp/stdin";;
19137 *) # Look for the file first in the build tree, then in the source tree
19138 # (if the path is not absolute). The absolute path cannot be DOS-style,
19139 # because $ac_f cannot contain `:'.
19140 test -f "$ac_f" ||
19141 case $ac_f in
19142 [\\/$]*) false;;
19143 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19144 esac ||
19145 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19146 esac
19147 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19148 as_fn_append ac_file_inputs " '$ac_f'"
19149 done
19150
19151 # Let's still pretend it is `configure' which instantiates (i.e., don't
19152 # use $as_me), people would be surprised to read:
19153 # /* config.h. Generated by config.status. */
19154 configure_input='Generated from '`
19155 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19156 `' by configure.'
19157 if test x"$ac_file" != x-; then
19158 configure_input="$ac_file. $configure_input"
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19160$as_echo "$as_me: creating $ac_file" >&6;}
19161 fi
19162 # Neutralize special characters interpreted by sed in replacement strings.
19163 case $configure_input in #(
19164 *\&* | *\|* | *\\* )
19165 ac_sed_conf_input=`$as_echo "$configure_input" |
19166 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19167 *) ac_sed_conf_input=$configure_input;;
19168 esac
19169
19170 case $ac_tag in
19171 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19172 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19173 esac
19174 ;;
19175 esac
19176
19177 ac_dir=`$as_dirname -- "$ac_file" ||
19178$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19179 X"$ac_file" : 'X\(//\)[^/]' \| \
19180 X"$ac_file" : 'X\(//\)$' \| \
19181 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19182$as_echo X"$ac_file" |
19183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19184 s//\1/
19185 q
19186 }
19187 /^X\(\/\/\)[^/].*/{
19188 s//\1/
19189 q
19190 }
19191 /^X\(\/\/\)$/{
19192 s//\1/
19193 q
19194 }
19195 /^X\(\/\).*/{
19196 s//\1/
19197 q
19198 }
19199 s/.*/./; q'`
19200 as_dir="$ac_dir"; as_fn_mkdir_p
19201 ac_builddir=.
19202
19203case "$ac_dir" in
19204.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19205*)
19206 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19207 # A ".." for each directory in $ac_dir_suffix.
19208 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19209 case $ac_top_builddir_sub in
19210 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19211 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19212 esac ;;
19213esac
19214ac_abs_top_builddir=$ac_pwd
19215ac_abs_builddir=$ac_pwd$ac_dir_suffix
19216# for backward compatibility:
19217ac_top_builddir=$ac_top_build_prefix
19218
19219case $srcdir in
19220 .) # We are building in place.
19221 ac_srcdir=.
19222 ac_top_srcdir=$ac_top_builddir_sub
19223 ac_abs_top_srcdir=$ac_pwd ;;
19224 [\\/]* | ?:[\\/]* ) # Absolute name.
19225 ac_srcdir=$srcdir$ac_dir_suffix;
19226 ac_top_srcdir=$srcdir
19227 ac_abs_top_srcdir=$srcdir ;;
19228 *) # Relative name.
19229 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19230 ac_top_srcdir=$ac_top_build_prefix$srcdir
19231 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19232esac
19233ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19234
19235
19236 case $ac_mode in
19237 :F)
19238 #
19239 # CONFIG_FILE
19240 #
19241
19242 case $INSTALL in
19243 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19244 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19245 esac
19246 ac_MKDIR_P=$MKDIR_P
19247 case $MKDIR_P in
19248 [\\/$]* | ?:[\\/]* ) ;;
19249 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19250 esac
19251_ACEOF
19252
19253cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19254# If the template does not know about datarootdir, expand it.
19255# FIXME: This hack should be removed a few years after 2.60.
19256ac_datarootdir_hack=; ac_datarootdir_seen=
19257ac_sed_dataroot='
19258/datarootdir/ {
19259 p
19260 q
19261}
19262/@datadir@/p
19263/@docdir@/p
19264/@infodir@/p
19265/@localedir@/p
19266/@mandir@/p'
19267case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19268*datarootdir*) ac_datarootdir_seen=yes;;
19269*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19271$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19272_ACEOF
19273cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19274 ac_datarootdir_hack='
19275 s&@datadir@&$datadir&g
19276 s&@docdir@&$docdir&g
19277 s&@infodir@&$infodir&g
19278 s&@localedir@&$localedir&g
19279 s&@mandir@&$mandir&g
19280 s&\\\${datarootdir}&$datarootdir&g' ;;
19281esac
19282_ACEOF
19283
19284# Neutralize VPATH when `$srcdir' = `.'.
19285# Shell code in configure.ac might set extrasub.
19286# FIXME: do we really want to maintain this feature?
19287cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19288ac_sed_extra="$ac_vpsub
19289$extrasub
19290_ACEOF
19291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19292:t
19293/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19294s|@configure_input@|$ac_sed_conf_input|;t t
19295s&@top_builddir@&$ac_top_builddir_sub&;t t
19296s&@top_build_prefix@&$ac_top_build_prefix&;t t
19297s&@srcdir@&$ac_srcdir&;t t
19298s&@abs_srcdir@&$ac_abs_srcdir&;t t
19299s&@top_srcdir@&$ac_top_srcdir&;t t
19300s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19301s&@builddir@&$ac_builddir&;t t
19302s&@abs_builddir@&$ac_abs_builddir&;t t
19303s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19304s&@INSTALL@&$ac_INSTALL&;t t
19305s&@MKDIR_P@&$ac_MKDIR_P&;t t
19306$ac_datarootdir_hack
19307"
19308eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19309 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19310
19311test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19312 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19313 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19314 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19316which seems to be undefined. Please make sure it is defined" >&5
19317$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19318which seems to be undefined. Please make sure it is defined" >&2;}
19319
19320 rm -f "$ac_tmp/stdin"
19321 case $ac_file in
19322 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19323 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19324 esac \
19325 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19326 ;;
19327 :H)
19328 #
19329 # CONFIG_HEADER
19330 #
19331 if test x"$ac_file" != x-; then
19332 {
19333 $as_echo "/* $configure_input */" \
19334 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19335 } >"$ac_tmp/config.h" \
19336 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19337 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19339$as_echo "$as_me: $ac_file is unchanged" >&6;}
19340 else
19341 rm -f "$ac_file"
19342 mv "$ac_tmp/config.h" "$ac_file" \
19343 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19344 fi
19345 else
19346 $as_echo "/* $configure_input */" \
19347 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19348 || as_fn_error $? "could not create -" "$LINENO" 5
19349 fi
19350# Compute "$ac_file"'s index in $config_headers.
19351_am_arg="$ac_file"
19352_am_stamp_count=1
19353for _am_header in $config_headers :; do
19354 case $_am_header in
19355 $_am_arg | $_am_arg:* )
19356 break ;;
19357 * )
19358 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19359 esac
19360done
19361echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19362$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19363 X"$_am_arg" : 'X\(//\)[^/]' \| \
19364 X"$_am_arg" : 'X\(//\)$' \| \
19365 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19366$as_echo X"$_am_arg" |
19367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19368 s//\1/
19369 q
19370 }
19371 /^X\(\/\/\)[^/].*/{
19372 s//\1/
19373 q
19374 }
19375 /^X\(\/\/\)$/{
19376 s//\1/
19377 q
19378 }
19379 /^X\(\/\).*/{
19380 s//\1/
19381 q
19382 }
19383 s/.*/./; q'`/stamp-h$_am_stamp_count
19384 ;;
19385
19386 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19387$as_echo "$as_me: executing $ac_file commands" >&6;}
19388 ;;
19389 esac
19390
19391
19392 case $ac_file$ac_mode in
19393 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19394 # Older Autoconf quotes --file arguments for eval, but not when files
19395 # are listed without --file. Let's play safe and only enable the eval
19396 # if we detect the quoting.
19397 case $CONFIG_FILES in
19398 *\'*) eval set x "$CONFIG_FILES" ;;
19399 *) set x $CONFIG_FILES ;;
19400 esac
19401 shift
19402 for mf
19403 do
19404 # Strip MF so we end up with the name of the file.
19405 mf=`echo "$mf" | sed -e 's/:.*$//'`
19406 # Check whether this is an Automake generated Makefile or not.
19407 # We used to match only the files named 'Makefile.in', but
19408 # some people rename them; so instead we look at the file content.
19409 # Grep'ing the first line is not enough: some people post-process
19410 # each Makefile.in and add a new line on top of each file to say so.
19411 # Grep'ing the whole file is not good either: AIX grep has a line
19412 # limit of 2048, but all sed's we know have understand at least 4000.
19413 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19414 dirpart=`$as_dirname -- "$mf" ||
19415$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19416 X"$mf" : 'X\(//\)[^/]' \| \
19417 X"$mf" : 'X\(//\)$' \| \
19418 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19419$as_echo X"$mf" |
19420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19421 s//\1/
19422 q
19423 }
19424 /^X\(\/\/\)[^/].*/{
19425 s//\1/
19426 q
19427 }
19428 /^X\(\/\/\)$/{
19429 s//\1/
19430 q
19431 }
19432 /^X\(\/\).*/{
19433 s//\1/
19434 q
19435 }
19436 s/.*/./; q'`
19437 else
19438 continue
19439 fi
19440 # Extract the definition of DEPDIR, am__include, and am__quote
19441 # from the Makefile without running 'make'.
19442 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19443 test -z "$DEPDIR" && continue
19444 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19445 test -z "$am__include" && continue
19446 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19447 # Find all dependency output files, they are included files with
19448 # $(DEPDIR) in their names. We invoke sed twice because it is the
19449 # simplest approach to changing $(DEPDIR) to its actual value in the
19450 # expansion.
19451 for file in `sed -n "
19452 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19453 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19454 # Make sure the directory exists.
19455 test -f "$dirpart/$file" && continue
19456 fdir=`$as_dirname -- "$file" ||
19457$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19458 X"$file" : 'X\(//\)[^/]' \| \
19459 X"$file" : 'X\(//\)$' \| \
19460 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19461$as_echo X"$file" |
19462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19463 s//\1/
19464 q
19465 }
19466 /^X\(\/\/\)[^/].*/{
19467 s//\1/
19468 q
19469 }
19470 /^X\(\/\/\)$/{
19471 s//\1/
19472 q
19473 }
19474 /^X\(\/\).*/{
19475 s//\1/
19476 q
19477 }
19478 s/.*/./; q'`
19479 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19480 # echo "creating $dirpart/$file"
19481 echo '# dummy' > "$dirpart/$file"
19482 done
19483 done
19484}
19485 ;;
Jeff Thompson4f031642013-08-05 11:03:16 -070019486 "libtool":C)
19487
19488 # See if we are running on zsh, and set the options which allow our
19489 # commands through without removal of \ escapes.
19490 if test -n "${ZSH_VERSION+set}" ; then
19491 setopt NO_GLOB_SUBST
19492 fi
19493
19494 cfgfile="${ofile}T"
19495 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19496 $RM "$cfgfile"
19497
19498 cat <<_LT_EOF >> "$cfgfile"
19499#! $SHELL
19500
19501# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19502# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19503# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19504# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19505#
19506# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19507# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19508# Foundation, Inc.
19509# Written by Gordon Matzigkeit, 1996
19510#
19511# This file is part of GNU Libtool.
19512#
19513# GNU Libtool is free software; you can redistribute it and/or
19514# modify it under the terms of the GNU General Public License as
19515# published by the Free Software Foundation; either version 2 of
19516# the License, or (at your option) any later version.
19517#
19518# As a special exception to the GNU General Public License,
19519# if you distribute this file as part of a program or library that
19520# is built using GNU Libtool, you may include this file under the
19521# same distribution terms that you use for the rest of that program.
19522#
19523# GNU Libtool is distributed in the hope that it will be useful,
19524# but WITHOUT ANY WARRANTY; without even the implied warranty of
19525# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19526# GNU General Public License for more details.
19527#
19528# You should have received a copy of the GNU General Public License
19529# along with GNU Libtool; see the file COPYING. If not, a copy
19530# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19531# obtained by writing to the Free Software Foundation, Inc.,
19532# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19533
19534
19535# The names of the tagged configurations supported by this script.
19536available_tags="CXX "
19537
19538# ### BEGIN LIBTOOL CONFIG
19539
19540# Which release of libtool.m4 was used?
19541macro_version=$macro_version
19542macro_revision=$macro_revision
19543
19544# Whether or not to build shared libraries.
19545build_libtool_libs=$enable_shared
19546
19547# Whether or not to build static libraries.
19548build_old_libs=$enable_static
19549
19550# What type of objects to build.
19551pic_mode=$pic_mode
19552
19553# Whether or not to optimize for fast installation.
19554fast_install=$enable_fast_install
19555
19556# Shell to use when invoking shell scripts.
19557SHELL=$lt_SHELL
19558
19559# An echo program that protects backslashes.
19560ECHO=$lt_ECHO
19561
19562# The PATH separator for the build system.
19563PATH_SEPARATOR=$lt_PATH_SEPARATOR
19564
19565# The host system.
19566host_alias=$host_alias
19567host=$host
19568host_os=$host_os
19569
19570# The build system.
19571build_alias=$build_alias
19572build=$build
19573build_os=$build_os
19574
19575# A sed program that does not truncate output.
19576SED=$lt_SED
19577
19578# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19579Xsed="\$SED -e 1s/^X//"
19580
19581# A grep program that handles long lines.
19582GREP=$lt_GREP
19583
19584# An ERE matcher.
19585EGREP=$lt_EGREP
19586
19587# A literal string matcher.
19588FGREP=$lt_FGREP
19589
19590# A BSD- or MS-compatible name lister.
19591NM=$lt_NM
19592
19593# Whether we need soft or hard links.
19594LN_S=$lt_LN_S
19595
19596# What is the maximum length of a command?
19597max_cmd_len=$max_cmd_len
19598
19599# Object file suffix (normally "o").
19600objext=$ac_objext
19601
19602# Executable file suffix (normally "").
19603exeext=$exeext
19604
19605# whether the shell understands "unset".
19606lt_unset=$lt_unset
19607
19608# turn spaces into newlines.
19609SP2NL=$lt_lt_SP2NL
19610
19611# turn newlines into spaces.
19612NL2SP=$lt_lt_NL2SP
19613
19614# convert \$build file names to \$host format.
19615to_host_file_cmd=$lt_cv_to_host_file_cmd
19616
19617# convert \$build files to toolchain format.
19618to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19619
19620# An object symbol dumper.
19621OBJDUMP=$lt_OBJDUMP
19622
19623# Method to check whether dependent libraries are shared objects.
19624deplibs_check_method=$lt_deplibs_check_method
19625
19626# Command to use when deplibs_check_method = "file_magic".
19627file_magic_cmd=$lt_file_magic_cmd
19628
19629# How to find potential files when deplibs_check_method = "file_magic".
19630file_magic_glob=$lt_file_magic_glob
19631
19632# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19633want_nocaseglob=$lt_want_nocaseglob
19634
19635# DLL creation program.
19636DLLTOOL=$lt_DLLTOOL
19637
19638# Command to associate shared and link libraries.
19639sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19640
19641# The archiver.
19642AR=$lt_AR
19643
19644# Flags to create an archive.
19645AR_FLAGS=$lt_AR_FLAGS
19646
19647# How to feed a file listing to the archiver.
19648archiver_list_spec=$lt_archiver_list_spec
19649
19650# A symbol stripping program.
19651STRIP=$lt_STRIP
19652
19653# Commands used to install an old-style archive.
19654RANLIB=$lt_RANLIB
19655old_postinstall_cmds=$lt_old_postinstall_cmds
19656old_postuninstall_cmds=$lt_old_postuninstall_cmds
19657
19658# Whether to use a lock for old archive extraction.
19659lock_old_archive_extraction=$lock_old_archive_extraction
19660
19661# A C compiler.
19662LTCC=$lt_CC
19663
19664# LTCC compiler flags.
19665LTCFLAGS=$lt_CFLAGS
19666
19667# Take the output of nm and produce a listing of raw symbols and C names.
19668global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19669
19670# Transform the output of nm in a proper C declaration.
19671global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19672
19673# Transform the output of nm in a C name address pair.
19674global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19675
19676# Transform the output of nm in a C name address pair when lib prefix is needed.
19677global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19678
19679# Specify filename containing input files for \$NM.
19680nm_file_list_spec=$lt_nm_file_list_spec
19681
19682# The root where to search for dependent libraries,and in which our libraries should be installed.
19683lt_sysroot=$lt_sysroot
19684
19685# The name of the directory that contains temporary libtool files.
19686objdir=$objdir
19687
19688# Used to examine libraries when file_magic_cmd begins with "file".
19689MAGIC_CMD=$MAGIC_CMD
19690
19691# Must we lock files when doing compilation?
19692need_locks=$lt_need_locks
19693
19694# Manifest tool.
19695MANIFEST_TOOL=$lt_MANIFEST_TOOL
19696
19697# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19698DSYMUTIL=$lt_DSYMUTIL
19699
19700# Tool to change global to local symbols on Mac OS X.
19701NMEDIT=$lt_NMEDIT
19702
19703# Tool to manipulate fat objects and archives on Mac OS X.
19704LIPO=$lt_LIPO
19705
19706# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19707OTOOL=$lt_OTOOL
19708
19709# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19710OTOOL64=$lt_OTOOL64
19711
19712# Old archive suffix (normally "a").
19713libext=$libext
19714
19715# Shared library suffix (normally ".so").
19716shrext_cmds=$lt_shrext_cmds
19717
19718# The commands to extract the exported symbol list from a shared archive.
19719extract_expsyms_cmds=$lt_extract_expsyms_cmds
19720
19721# Variables whose values should be saved in libtool wrapper scripts and
19722# restored at link time.
19723variables_saved_for_relink=$lt_variables_saved_for_relink
19724
19725# Do we need the "lib" prefix for modules?
19726need_lib_prefix=$need_lib_prefix
19727
19728# Do we need a version for libraries?
19729need_version=$need_version
19730
19731# Library versioning type.
19732version_type=$version_type
19733
19734# Shared library runtime path variable.
19735runpath_var=$runpath_var
19736
19737# Shared library path variable.
19738shlibpath_var=$shlibpath_var
19739
19740# Is shlibpath searched before the hard-coded library search path?
19741shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19742
19743# Format of library name prefix.
19744libname_spec=$lt_libname_spec
19745
19746# List of archive names. First name is the real one, the rest are links.
19747# The last name is the one that the linker finds with -lNAME
19748library_names_spec=$lt_library_names_spec
19749
19750# The coded name of the library, if different from the real name.
19751soname_spec=$lt_soname_spec
19752
19753# Permission mode override for installation of shared libraries.
19754install_override_mode=$lt_install_override_mode
19755
19756# Command to use after installation of a shared archive.
19757postinstall_cmds=$lt_postinstall_cmds
19758
19759# Command to use after uninstallation of a shared archive.
19760postuninstall_cmds=$lt_postuninstall_cmds
19761
19762# Commands used to finish a libtool library installation in a directory.
19763finish_cmds=$lt_finish_cmds
19764
19765# As "finish_cmds", except a single script fragment to be evaled but
19766# not shown.
19767finish_eval=$lt_finish_eval
19768
19769# Whether we should hardcode library paths into libraries.
19770hardcode_into_libs=$hardcode_into_libs
19771
19772# Compile-time system search path for libraries.
19773sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19774
19775# Run-time system search path for libraries.
19776sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19777
19778# Whether dlopen is supported.
19779dlopen_support=$enable_dlopen
19780
19781# Whether dlopen of programs is supported.
19782dlopen_self=$enable_dlopen_self
19783
19784# Whether dlopen of statically linked programs is supported.
19785dlopen_self_static=$enable_dlopen_self_static
19786
19787# Commands to strip libraries.
19788old_striplib=$lt_old_striplib
19789striplib=$lt_striplib
19790
19791
19792# The linker used to build libraries.
19793LD=$lt_LD
19794
19795# How to create reloadable object files.
19796reload_flag=$lt_reload_flag
19797reload_cmds=$lt_reload_cmds
19798
19799# Commands used to build an old-style archive.
19800old_archive_cmds=$lt_old_archive_cmds
19801
19802# A language specific compiler.
19803CC=$lt_compiler
19804
19805# Is the compiler the GNU compiler?
19806with_gcc=$GCC
19807
19808# Compiler flag to turn off builtin functions.
19809no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19810
19811# Additional compiler flags for building library objects.
19812pic_flag=$lt_lt_prog_compiler_pic
19813
19814# How to pass a linker flag through the compiler.
19815wl=$lt_lt_prog_compiler_wl
19816
19817# Compiler flag to prevent dynamic linking.
19818link_static_flag=$lt_lt_prog_compiler_static
19819
19820# Does compiler simultaneously support -c and -o options?
19821compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19822
19823# Whether or not to add -lc for building shared libraries.
19824build_libtool_need_lc=$archive_cmds_need_lc
19825
19826# Whether or not to disallow shared libs when runtime libs are static.
19827allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19828
19829# Compiler flag to allow reflexive dlopens.
19830export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19831
19832# Compiler flag to generate shared objects directly from archives.
19833whole_archive_flag_spec=$lt_whole_archive_flag_spec
19834
19835# Whether the compiler copes with passing no objects directly.
19836compiler_needs_object=$lt_compiler_needs_object
19837
19838# Create an old-style archive from a shared archive.
19839old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19840
19841# Create a temporary old-style archive to link instead of a shared archive.
19842old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19843
19844# Commands used to build a shared archive.
19845archive_cmds=$lt_archive_cmds
19846archive_expsym_cmds=$lt_archive_expsym_cmds
19847
19848# Commands used to build a loadable module if different from building
19849# a shared archive.
19850module_cmds=$lt_module_cmds
19851module_expsym_cmds=$lt_module_expsym_cmds
19852
19853# Whether we are building with GNU ld or not.
19854with_gnu_ld=$lt_with_gnu_ld
19855
19856# Flag that allows shared libraries with undefined symbols to be built.
19857allow_undefined_flag=$lt_allow_undefined_flag
19858
19859# Flag that enforces no undefined symbols.
19860no_undefined_flag=$lt_no_undefined_flag
19861
19862# Flag to hardcode \$libdir into a binary during linking.
19863# This must work even if \$libdir does not exist
19864hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19865
19866# Whether we need a single "-rpath" flag with a separated argument.
19867hardcode_libdir_separator=$lt_hardcode_libdir_separator
19868
19869# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19870# DIR into the resulting binary.
19871hardcode_direct=$hardcode_direct
19872
19873# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19874# DIR into the resulting binary and the resulting library dependency is
19875# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19876# library is relocated.
19877hardcode_direct_absolute=$hardcode_direct_absolute
19878
19879# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19880# into the resulting binary.
19881hardcode_minus_L=$hardcode_minus_L
19882
19883# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19884# into the resulting binary.
19885hardcode_shlibpath_var=$hardcode_shlibpath_var
19886
19887# Set to "yes" if building a shared library automatically hardcodes DIR
19888# into the library and all subsequent libraries and executables linked
19889# against it.
19890hardcode_automatic=$hardcode_automatic
19891
19892# Set to yes if linker adds runtime paths of dependent libraries
19893# to runtime path list.
19894inherit_rpath=$inherit_rpath
19895
19896# Whether libtool must link a program against all its dependency libraries.
19897link_all_deplibs=$link_all_deplibs
19898
19899# Set to "yes" if exported symbols are required.
19900always_export_symbols=$always_export_symbols
19901
19902# The commands to list exported symbols.
19903export_symbols_cmds=$lt_export_symbols_cmds
19904
19905# Symbols that should not be listed in the preloaded symbols.
19906exclude_expsyms=$lt_exclude_expsyms
19907
19908# Symbols that must always be exported.
19909include_expsyms=$lt_include_expsyms
19910
19911# Commands necessary for linking programs (against libraries) with templates.
19912prelink_cmds=$lt_prelink_cmds
19913
19914# Commands necessary for finishing linking programs.
19915postlink_cmds=$lt_postlink_cmds
19916
19917# Specify filename containing input files.
19918file_list_spec=$lt_file_list_spec
19919
19920# How to hardcode a shared library path into an executable.
19921hardcode_action=$hardcode_action
19922
19923# The directories searched by this compiler when creating a shared library.
19924compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19925
19926# Dependencies to place before and after the objects being linked to
19927# create a shared library.
19928predep_objects=$lt_predep_objects
19929postdep_objects=$lt_postdep_objects
19930predeps=$lt_predeps
19931postdeps=$lt_postdeps
19932
19933# The library search path used internally by the compiler when linking
19934# a shared library.
19935compiler_lib_search_path=$lt_compiler_lib_search_path
19936
19937# ### END LIBTOOL CONFIG
19938
19939_LT_EOF
19940
19941 case $host_os in
19942 aix3*)
19943 cat <<\_LT_EOF >> "$cfgfile"
19944# AIX sometimes has problems with the GCC collect2 program. For some
19945# reason, if we set the COLLECT_NAMES environment variable, the problems
19946# vanish in a puff of smoke.
19947if test "X${COLLECT_NAMES+set}" != Xset; then
19948 COLLECT_NAMES=
19949 export COLLECT_NAMES
19950fi
19951_LT_EOF
19952 ;;
19953 esac
19954
19955
19956ltmain="$ac_aux_dir/ltmain.sh"
19957
19958
19959 # We use sed instead of cat because bash on DJGPP gets confused if
19960 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19961 # text mode, it properly converts lines to CR/LF. This bash problem
19962 # is reportedly fixed, but why not run on old versions too?
19963 sed '$q' "$ltmain" >> "$cfgfile" \
19964 || (rm -f "$cfgfile"; exit 1)
19965
19966 if test x"$xsi_shell" = xyes; then
19967 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19968func_dirname ()\
19969{\
19970\ case ${1} in\
19971\ */*) func_dirname_result="${1%/*}${2}" ;;\
19972\ * ) func_dirname_result="${3}" ;;\
19973\ esac\
19974} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19975 && mv -f "$cfgfile.tmp" "$cfgfile" \
19976 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19977test 0 -eq $? || _lt_function_replace_fail=:
19978
19979
19980 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19981func_basename ()\
19982{\
19983\ func_basename_result="${1##*/}"\
19984} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19985 && mv -f "$cfgfile.tmp" "$cfgfile" \
19986 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19987test 0 -eq $? || _lt_function_replace_fail=:
19988
19989
19990 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19991func_dirname_and_basename ()\
19992{\
19993\ case ${1} in\
19994\ */*) func_dirname_result="${1%/*}${2}" ;;\
19995\ * ) func_dirname_result="${3}" ;;\
19996\ esac\
19997\ func_basename_result="${1##*/}"\
19998} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19999 && mv -f "$cfgfile.tmp" "$cfgfile" \
20000 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20001test 0 -eq $? || _lt_function_replace_fail=:
20002
20003
20004 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20005func_stripname ()\
20006{\
20007\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20008\ # positional parameters, so assign one to ordinary parameter first.\
20009\ func_stripname_result=${3}\
20010\ func_stripname_result=${func_stripname_result#"${1}"}\
20011\ func_stripname_result=${func_stripname_result%"${2}"}\
20012} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20013 && mv -f "$cfgfile.tmp" "$cfgfile" \
20014 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20015test 0 -eq $? || _lt_function_replace_fail=:
20016
20017
20018 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20019func_split_long_opt ()\
20020{\
20021\ func_split_long_opt_name=${1%%=*}\
20022\ func_split_long_opt_arg=${1#*=}\
20023} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20024 && mv -f "$cfgfile.tmp" "$cfgfile" \
20025 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20026test 0 -eq $? || _lt_function_replace_fail=:
20027
20028
20029 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20030func_split_short_opt ()\
20031{\
20032\ func_split_short_opt_arg=${1#??}\
20033\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20034} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20035 && mv -f "$cfgfile.tmp" "$cfgfile" \
20036 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20037test 0 -eq $? || _lt_function_replace_fail=:
20038
20039
20040 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20041func_lo2o ()\
20042{\
20043\ case ${1} in\
20044\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20045\ *) func_lo2o_result=${1} ;;\
20046\ esac\
20047} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20048 && mv -f "$cfgfile.tmp" "$cfgfile" \
20049 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20050test 0 -eq $? || _lt_function_replace_fail=:
20051
20052
20053 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20054func_xform ()\
20055{\
20056 func_xform_result=${1%.*}.lo\
20057} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20058 && mv -f "$cfgfile.tmp" "$cfgfile" \
20059 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20060test 0 -eq $? || _lt_function_replace_fail=:
20061
20062
20063 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20064func_arith ()\
20065{\
20066 func_arith_result=$(( $* ))\
20067} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20068 && mv -f "$cfgfile.tmp" "$cfgfile" \
20069 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20070test 0 -eq $? || _lt_function_replace_fail=:
20071
20072
20073 sed -e '/^func_len ()$/,/^} # func_len /c\
20074func_len ()\
20075{\
20076 func_len_result=${#1}\
20077} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20078 && mv -f "$cfgfile.tmp" "$cfgfile" \
20079 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20080test 0 -eq $? || _lt_function_replace_fail=:
20081
20082fi
20083
20084if test x"$lt_shell_append" = xyes; then
20085 sed -e '/^func_append ()$/,/^} # func_append /c\
20086func_append ()\
20087{\
20088 eval "${1}+=\\${2}"\
20089} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20090 && mv -f "$cfgfile.tmp" "$cfgfile" \
20091 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20092test 0 -eq $? || _lt_function_replace_fail=:
20093
20094
20095 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20096func_append_quoted ()\
20097{\
20098\ func_quote_for_eval "${2}"\
20099\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20100} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20101 && mv -f "$cfgfile.tmp" "$cfgfile" \
20102 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20103test 0 -eq $? || _lt_function_replace_fail=:
20104
20105
20106 # Save a `func_append' function call where possible by direct use of '+='
20107 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20108 && mv -f "$cfgfile.tmp" "$cfgfile" \
20109 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20110 test 0 -eq $? || _lt_function_replace_fail=:
20111else
20112 # Save a `func_append' function call even when '+=' is not available
20113 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20114 && mv -f "$cfgfile.tmp" "$cfgfile" \
20115 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20116 test 0 -eq $? || _lt_function_replace_fail=:
20117fi
20118
20119if test x"$_lt_function_replace_fail" = x":"; then
20120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20121$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20122fi
20123
20124
20125 mv -f "$cfgfile" "$ofile" ||
20126 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20127 chmod +x "$ofile"
20128
20129
20130 cat <<_LT_EOF >> "$ofile"
20131
20132# ### BEGIN LIBTOOL TAG CONFIG: CXX
20133
20134# The linker used to build libraries.
20135LD=$lt_LD_CXX
20136
20137# How to create reloadable object files.
20138reload_flag=$lt_reload_flag_CXX
20139reload_cmds=$lt_reload_cmds_CXX
20140
20141# Commands used to build an old-style archive.
20142old_archive_cmds=$lt_old_archive_cmds_CXX
20143
20144# A language specific compiler.
20145CC=$lt_compiler_CXX
20146
20147# Is the compiler the GNU compiler?
20148with_gcc=$GCC_CXX
20149
20150# Compiler flag to turn off builtin functions.
20151no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20152
20153# Additional compiler flags for building library objects.
20154pic_flag=$lt_lt_prog_compiler_pic_CXX
20155
20156# How to pass a linker flag through the compiler.
20157wl=$lt_lt_prog_compiler_wl_CXX
20158
20159# Compiler flag to prevent dynamic linking.
20160link_static_flag=$lt_lt_prog_compiler_static_CXX
20161
20162# Does compiler simultaneously support -c and -o options?
20163compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20164
20165# Whether or not to add -lc for building shared libraries.
20166build_libtool_need_lc=$archive_cmds_need_lc_CXX
20167
20168# Whether or not to disallow shared libs when runtime libs are static.
20169allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20170
20171# Compiler flag to allow reflexive dlopens.
20172export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20173
20174# Compiler flag to generate shared objects directly from archives.
20175whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20176
20177# Whether the compiler copes with passing no objects directly.
20178compiler_needs_object=$lt_compiler_needs_object_CXX
20179
20180# Create an old-style archive from a shared archive.
20181old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20182
20183# Create a temporary old-style archive to link instead of a shared archive.
20184old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20185
20186# Commands used to build a shared archive.
20187archive_cmds=$lt_archive_cmds_CXX
20188archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20189
20190# Commands used to build a loadable module if different from building
20191# a shared archive.
20192module_cmds=$lt_module_cmds_CXX
20193module_expsym_cmds=$lt_module_expsym_cmds_CXX
20194
20195# Whether we are building with GNU ld or not.
20196with_gnu_ld=$lt_with_gnu_ld_CXX
20197
20198# Flag that allows shared libraries with undefined symbols to be built.
20199allow_undefined_flag=$lt_allow_undefined_flag_CXX
20200
20201# Flag that enforces no undefined symbols.
20202no_undefined_flag=$lt_no_undefined_flag_CXX
20203
20204# Flag to hardcode \$libdir into a binary during linking.
20205# This must work even if \$libdir does not exist
20206hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20207
20208# Whether we need a single "-rpath" flag with a separated argument.
20209hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20210
20211# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20212# DIR into the resulting binary.
20213hardcode_direct=$hardcode_direct_CXX
20214
20215# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20216# DIR into the resulting binary and the resulting library dependency is
20217# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20218# library is relocated.
20219hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20220
20221# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20222# into the resulting binary.
20223hardcode_minus_L=$hardcode_minus_L_CXX
20224
20225# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20226# into the resulting binary.
20227hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20228
20229# Set to "yes" if building a shared library automatically hardcodes DIR
20230# into the library and all subsequent libraries and executables linked
20231# against it.
20232hardcode_automatic=$hardcode_automatic_CXX
20233
20234# Set to yes if linker adds runtime paths of dependent libraries
20235# to runtime path list.
20236inherit_rpath=$inherit_rpath_CXX
20237
20238# Whether libtool must link a program against all its dependency libraries.
20239link_all_deplibs=$link_all_deplibs_CXX
20240
20241# Set to "yes" if exported symbols are required.
20242always_export_symbols=$always_export_symbols_CXX
20243
20244# The commands to list exported symbols.
20245export_symbols_cmds=$lt_export_symbols_cmds_CXX
20246
20247# Symbols that should not be listed in the preloaded symbols.
20248exclude_expsyms=$lt_exclude_expsyms_CXX
20249
20250# Symbols that must always be exported.
20251include_expsyms=$lt_include_expsyms_CXX
20252
20253# Commands necessary for linking programs (against libraries) with templates.
20254prelink_cmds=$lt_prelink_cmds_CXX
20255
20256# Commands necessary for finishing linking programs.
20257postlink_cmds=$lt_postlink_cmds_CXX
20258
20259# Specify filename containing input files.
20260file_list_spec=$lt_file_list_spec_CXX
20261
20262# How to hardcode a shared library path into an executable.
20263hardcode_action=$hardcode_action_CXX
20264
20265# The directories searched by this compiler when creating a shared library.
20266compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20267
20268# Dependencies to place before and after the objects being linked to
20269# create a shared library.
20270predep_objects=$lt_predep_objects_CXX
20271postdep_objects=$lt_postdep_objects_CXX
20272predeps=$lt_predeps_CXX
20273postdeps=$lt_postdeps_CXX
20274
20275# The library search path used internally by the compiler when linking
20276# a shared library.
20277compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20278
20279# ### END LIBTOOL TAG CONFIG: CXX
20280_LT_EOF
20281
20282 ;;
Jeff Thompson39128c62013-06-19 14:08:51 -070020283
20284 esac
20285done # for ac_tag
20286
20287
20288as_fn_exit 0
20289_ACEOF
20290ac_clean_files=$ac_clean_files_save
20291
20292test $ac_write_fail = 0 ||
20293 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20294
20295
20296# configure is writing to config.log, and then calls config.status.
20297# config.status does its own redirection, appending to config.log.
20298# Unfortunately, on DOS this fails, as config.log is still kept open
20299# by configure, so config.status won't be able to write to it; its
20300# output is simply discarded. So we exec the FD to /dev/null,
20301# effectively closing config.log, so it can be properly (re)opened and
20302# appended to by config.status. When coming back to configure, we
20303# need to make the FD available again.
20304if test "$no_create" != yes; then
20305 ac_cs_success=:
20306 ac_config_status_args=
20307 test "$silent" = yes &&
20308 ac_config_status_args="$ac_config_status_args --quiet"
20309 exec 5>/dev/null
20310 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20311 exec 5>>config.log
20312 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20313 # would make configure fail if this is the last instruction.
20314 $ac_cs_success || as_fn_exit 1
20315fi
20316if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20318$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20319fi
20320