blob: b34a2c89ac92c0f1cb4414e292b68096fcf0aeb6 [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
Jeff Thompsona04f23c2013-09-16 17:48:38 -07002325am__api_version='1.14'
Jeff Thompson39128c62013-06-19 14:08:51 -07002326
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
Jeff Thompsona04f23c2013-09-16 17:48:38 -07002882# POSIX will say in a future version that running "rm -f" with no argument
2883# is OK; and we want to be able to make that assumption in our Makefile
2884# recipes. So use an aggressive probe to check that the usage we want is
2885# actually supported "in the wild" to an acceptable degree.
2886# See automake bug#10828.
2887# To make any issue more visible, cause the running configure to be aborted
2888# by default if the 'rm' program in use doesn't match our expectations; the
2889# user can still override this though.
2890if rm -f && rm -fr && rm -rf; then : OK; else
2891 cat >&2 <<'END'
2892Oops!
2893
2894Your 'rm' program seems unable to run without file operands specified
2895on the command line, even when the '-f' option is present. This is contrary
2896to the behaviour of most rm programs out there, and not conforming with
2897the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2898
2899Please tell bug-automake@gnu.org about your system, including the value
2900of your $PATH and any error possibly output before this message. This
2901can help us improve future automake versions.
2902
2903END
2904 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2905 echo 'Configuration will proceed anyway, since you have set the' >&2
2906 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2907 echo >&2
2908 else
2909 cat >&2 <<'END'
2910Aborting the configuration process, to ensure you take notice of the issue.
2911
2912You can download and install GNU coreutils to get an 'rm' implementation
2913that behaves properly: <http://www.gnu.org/software/coreutils/>.
2914
2915If you want to complete the configuration process using your problematic
2916'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2917to "yes", and re-run configure.
2918
2919END
2920 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2921 fi
2922fi
Jeff Thompson39128c62013-06-19 14:08:51 -07002923
2924ac_config_headers="$ac_config_headers config.h"
2925
Jeff Thompson47053ad2013-08-05 10:36:53 -07002926
2927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2928$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2929 # Check whether --enable-maintainer-mode was given.
2930if test "${enable_maintainer_mode+set}" = set; then :
2931 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2932else
2933 USE_MAINTAINER_MODE=no
2934fi
2935
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2937$as_echo "$USE_MAINTAINER_MODE" >&6; }
2938 if test $USE_MAINTAINER_MODE = yes; then
2939 MAINTAINER_MODE_TRUE=
2940 MAINTAINER_MODE_FALSE='#'
2941else
2942 MAINTAINER_MODE_TRUE='#'
2943 MAINTAINER_MODE_FALSE=
2944fi
2945
2946 MAINT=$MAINTAINER_MODE_TRUE
2947
2948
Jeff Thompson39128c62013-06-19 14:08:51 -07002949DEPDIR="${am__leading_dot}deps"
2950
2951ac_config_commands="$ac_config_commands depfiles"
2952
2953
2954am_make=${MAKE-make}
2955cat > confinc << 'END'
2956am__doit:
2957 @echo this is the am__doit target
2958.PHONY: am__doit
2959END
2960# If we don't find an include directive, just comment out the code.
2961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2962$as_echo_n "checking for style of include used by $am_make... " >&6; }
2963am__include="#"
2964am__quote=
2965_am_result=none
2966# First try GNU make style include.
2967echo "include confinc" > confmf
2968# Ignore all kinds of additional output from 'make'.
2969case `$am_make -s -f confmf 2> /dev/null` in #(
2970*the\ am__doit\ target*)
2971 am__include=include
2972 am__quote=
2973 _am_result=GNU
2974 ;;
2975esac
2976# Now try BSD make style include.
2977if test "$am__include" = "#"; then
2978 echo '.include "confinc"' > confmf
2979 case `$am_make -s -f confmf 2> /dev/null` in #(
2980 *the\ am__doit\ target*)
2981 am__include=.include
2982 am__quote="\""
2983 _am_result=BSD
2984 ;;
2985 esac
2986fi
2987
2988
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2990$as_echo "$_am_result" >&6; }
2991rm -f confinc confmf
2992
2993# Check whether --enable-dependency-tracking was given.
2994if test "${enable_dependency_tracking+set}" = set; then :
2995 enableval=$enable_dependency_tracking;
2996fi
2997
2998if test "x$enable_dependency_tracking" != xno; then
2999 am_depcomp="$ac_aux_dir/depcomp"
3000 AMDEPBACKSLASH='\'
3001 am__nodep='_no'
3002fi
3003 if test "x$enable_dependency_tracking" != xno; then
3004 AMDEP_TRUE=
3005 AMDEP_FALSE='#'
3006else
3007 AMDEP_TRUE='#'
3008 AMDEP_FALSE=
3009fi
3010
3011
Jeff Thompson36174062013-06-21 16:03:44 -07003012ac_ext=c
3013ac_cpp='$CPP $CPPFLAGS'
3014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3016ac_compiler_gnu=$ac_cv_c_compiler_gnu
3017if test -n "$ac_tool_prefix"; then
3018 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3019set dummy ${ac_tool_prefix}gcc; ac_word=$2
3020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021$as_echo_n "checking for $ac_word... " >&6; }
3022if ${ac_cv_prog_CC+:} false; then :
3023 $as_echo_n "(cached) " >&6
3024else
3025 if test -n "$CC"; then
3026 ac_cv_prog_CC="$CC" # Let the user override the test.
3027else
3028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029for as_dir in $PATH
3030do
3031 IFS=$as_save_IFS
3032 test -z "$as_dir" && as_dir=.
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3035 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3037 break 2
3038 fi
3039done
3040 done
3041IFS=$as_save_IFS
3042
3043fi
3044fi
3045CC=$ac_cv_prog_CC
3046if test -n "$CC"; then
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3048$as_echo "$CC" >&6; }
3049else
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051$as_echo "no" >&6; }
3052fi
3053
3054
3055fi
3056if test -z "$ac_cv_prog_CC"; then
3057 ac_ct_CC=$CC
3058 # Extract the first word of "gcc", so it can be a program name with args.
3059set dummy gcc; ac_word=$2
3060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3061$as_echo_n "checking for $ac_word... " >&6; }
3062if ${ac_cv_prog_ac_ct_CC+:} false; then :
3063 $as_echo_n "(cached) " >&6
3064else
3065 if test -n "$ac_ct_CC"; then
3066 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3067else
3068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069for as_dir in $PATH
3070do
3071 IFS=$as_save_IFS
3072 test -z "$as_dir" && as_dir=.
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3075 ac_cv_prog_ac_ct_CC="gcc"
3076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3077 break 2
3078 fi
3079done
3080 done
3081IFS=$as_save_IFS
3082
3083fi
3084fi
3085ac_ct_CC=$ac_cv_prog_ac_ct_CC
3086if test -n "$ac_ct_CC"; then
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3088$as_echo "$ac_ct_CC" >&6; }
3089else
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091$as_echo "no" >&6; }
3092fi
3093
3094 if test "x$ac_ct_CC" = x; then
3095 CC=""
3096 else
3097 case $cross_compiling:$ac_tool_warned in
3098yes:)
3099{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3100$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3101ac_tool_warned=yes ;;
3102esac
3103 CC=$ac_ct_CC
3104 fi
3105else
3106 CC="$ac_cv_prog_CC"
3107fi
3108
3109if test -z "$CC"; then
3110 if test -n "$ac_tool_prefix"; then
3111 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3112set dummy ${ac_tool_prefix}cc; ac_word=$2
3113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114$as_echo_n "checking for $ac_word... " >&6; }
3115if ${ac_cv_prog_CC+:} false; then :
3116 $as_echo_n "(cached) " >&6
3117else
3118 if test -n "$CC"; then
3119 ac_cv_prog_CC="$CC" # Let the user override the test.
3120else
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 ac_cv_prog_CC="${ac_tool_prefix}cc"
3129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130 break 2
3131 fi
3132done
3133 done
3134IFS=$as_save_IFS
3135
3136fi
3137fi
3138CC=$ac_cv_prog_CC
3139if test -n "$CC"; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3141$as_echo "$CC" >&6; }
3142else
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144$as_echo "no" >&6; }
3145fi
3146
3147
3148 fi
3149fi
3150if test -z "$CC"; then
3151 # Extract the first word of "cc", so it can be a program name with args.
3152set dummy cc; ac_word=$2
3153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3154$as_echo_n "checking for $ac_word... " >&6; }
3155if ${ac_cv_prog_CC+:} false; then :
3156 $as_echo_n "(cached) " >&6
3157else
3158 if test -n "$CC"; then
3159 ac_cv_prog_CC="$CC" # Let the user override the test.
3160else
3161 ac_prog_rejected=no
3162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163for as_dir in $PATH
3164do
3165 IFS=$as_save_IFS
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3169 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3170 ac_prog_rejected=yes
3171 continue
3172 fi
3173 ac_cv_prog_CC="cc"
3174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175 break 2
3176 fi
3177done
3178 done
3179IFS=$as_save_IFS
3180
3181if test $ac_prog_rejected = yes; then
3182 # We found a bogon in the path, so make sure we never use it.
3183 set dummy $ac_cv_prog_CC
3184 shift
3185 if test $# != 0; then
3186 # We chose a different compiler from the bogus one.
3187 # However, it has the same basename, so the bogon will be chosen
3188 # first if we set CC to just the basename; use the full file name.
3189 shift
3190 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3191 fi
3192fi
3193fi
3194fi
3195CC=$ac_cv_prog_CC
3196if test -n "$CC"; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3198$as_echo "$CC" >&6; }
3199else
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201$as_echo "no" >&6; }
3202fi
3203
3204
3205fi
3206if test -z "$CC"; then
3207 if test -n "$ac_tool_prefix"; then
3208 for ac_prog in cl.exe
3209 do
3210 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3211set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213$as_echo_n "checking for $ac_word... " >&6; }
3214if ${ac_cv_prog_CC+:} false; then :
3215 $as_echo_n "(cached) " >&6
3216else
3217 if test -n "$CC"; then
3218 ac_cv_prog_CC="$CC" # Let the user override the test.
3219else
3220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221for as_dir in $PATH
3222do
3223 IFS=$as_save_IFS
3224 test -z "$as_dir" && as_dir=.
3225 for ac_exec_ext in '' $ac_executable_extensions; do
3226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3227 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229 break 2
3230 fi
3231done
3232 done
3233IFS=$as_save_IFS
3234
3235fi
3236fi
3237CC=$ac_cv_prog_CC
3238if test -n "$CC"; then
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3240$as_echo "$CC" >&6; }
3241else
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243$as_echo "no" >&6; }
3244fi
3245
3246
3247 test -n "$CC" && break
3248 done
3249fi
3250if test -z "$CC"; then
3251 ac_ct_CC=$CC
3252 for ac_prog in cl.exe
3253do
3254 # Extract the first word of "$ac_prog", so it can be a program name with args.
3255set dummy $ac_prog; ac_word=$2
3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257$as_echo_n "checking for $ac_word... " >&6; }
3258if ${ac_cv_prog_ac_ct_CC+:} false; then :
3259 $as_echo_n "(cached) " >&6
3260else
3261 if test -n "$ac_ct_CC"; then
3262 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3263else
3264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265for as_dir in $PATH
3266do
3267 IFS=$as_save_IFS
3268 test -z "$as_dir" && as_dir=.
3269 for ac_exec_ext in '' $ac_executable_extensions; do
3270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3271 ac_cv_prog_ac_ct_CC="$ac_prog"
3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273 break 2
3274 fi
3275done
3276 done
3277IFS=$as_save_IFS
3278
3279fi
3280fi
3281ac_ct_CC=$ac_cv_prog_ac_ct_CC
3282if test -n "$ac_ct_CC"; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3284$as_echo "$ac_ct_CC" >&6; }
3285else
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287$as_echo "no" >&6; }
3288fi
3289
3290
3291 test -n "$ac_ct_CC" && break
3292done
3293
3294 if test "x$ac_ct_CC" = x; then
3295 CC=""
3296 else
3297 case $cross_compiling:$ac_tool_warned in
3298yes:)
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3301ac_tool_warned=yes ;;
3302esac
3303 CC=$ac_ct_CC
3304 fi
3305fi
3306
3307fi
3308
3309
3310test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3312as_fn_error $? "no acceptable C compiler found in \$PATH
3313See \`config.log' for more details" "$LINENO" 5; }
3314
3315# Provide some information about the compiler.
3316$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3317set X $ac_compile
3318ac_compiler=$2
3319for ac_option in --version -v -V -qversion; do
3320 { { ac_try="$ac_compiler $ac_option >&5"
3321case "(($ac_try" in
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3324esac
3325eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326$as_echo "$ac_try_echo"; } >&5
3327 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3328 ac_status=$?
3329 if test -s conftest.err; then
3330 sed '10a\
3331... rest of stderr output deleted ...
3332 10q' conftest.err >conftest.er1
3333 cat conftest.er1 >&5
3334 fi
3335 rm -f conftest.er1 conftest.err
3336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3337 test $ac_status = 0; }
3338done
3339
Jeff Thompson4f031642013-08-05 11:03:16 -07003340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341/* end confdefs.h. */
3342
3343int
3344main ()
3345{
3346
3347 ;
3348 return 0;
3349}
3350_ACEOF
3351ac_clean_files_save=$ac_clean_files
3352ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3353# Try to create an executable without -o first, disregard a.out.
3354# It will help us diagnose broken compilers, and finding out an intuition
3355# of exeext.
3356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3357$as_echo_n "checking whether the C compiler works... " >&6; }
3358ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3359
3360# The possible output files:
3361ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3362
3363ac_rmfiles=
3364for ac_file in $ac_files
3365do
3366 case $ac_file in
3367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3368 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3369 esac
3370done
3371rm -f $ac_rmfiles
3372
3373if { { ac_try="$ac_link_default"
3374case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3377esac
3378eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379$as_echo "$ac_try_echo"; } >&5
3380 (eval "$ac_link_default") 2>&5
3381 ac_status=$?
3382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3383 test $ac_status = 0; }; then :
3384 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3385# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3386# in a Makefile. We should not override ac_cv_exeext if it was cached,
3387# so that the user can short-circuit this test for compilers unknown to
3388# Autoconf.
3389for ac_file in $ac_files ''
3390do
3391 test -f "$ac_file" || continue
3392 case $ac_file in
3393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3394 ;;
3395 [ab].out )
3396 # We found the default executable, but exeext='' is most
3397 # certainly right.
3398 break;;
3399 *.* )
3400 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3401 then :; else
3402 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3403 fi
3404 # We set ac_cv_exeext here because the later test for it is not
3405 # safe: cross compilers may not add the suffix if given an `-o'
3406 # argument, so we may need to know it at that point already.
3407 # Even if this section looks crufty: it has the advantage of
3408 # actually working.
3409 break;;
3410 * )
3411 break;;
3412 esac
3413done
3414test "$ac_cv_exeext" = no && ac_cv_exeext=
3415
3416else
3417 ac_file=''
3418fi
3419if test -z "$ac_file"; then :
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421$as_echo "no" >&6; }
3422$as_echo "$as_me: failed program was:" >&5
3423sed 's/^/| /' conftest.$ac_ext >&5
3424
3425{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3426$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3427as_fn_error 77 "C compiler cannot create executables
3428See \`config.log' for more details" "$LINENO" 5; }
3429else
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3431$as_echo "yes" >&6; }
3432fi
3433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3434$as_echo_n "checking for C compiler default output file name... " >&6; }
3435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3436$as_echo "$ac_file" >&6; }
3437ac_exeext=$ac_cv_exeext
3438
3439rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3440ac_clean_files=$ac_clean_files_save
3441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3442$as_echo_n "checking for suffix of executables... " >&6; }
3443if { { ac_try="$ac_link"
3444case "(($ac_try" in
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3447esac
3448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3449$as_echo "$ac_try_echo"; } >&5
3450 (eval "$ac_link") 2>&5
3451 ac_status=$?
3452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3453 test $ac_status = 0; }; then :
3454 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3455# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3456# work properly (i.e., refer to `conftest.exe'), while it won't with
3457# `rm'.
3458for ac_file in conftest.exe conftest conftest.*; do
3459 test -f "$ac_file" || continue
3460 case $ac_file in
3461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3462 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3463 break;;
3464 * ) break;;
3465 esac
3466done
3467else
3468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3470as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3471See \`config.log' for more details" "$LINENO" 5; }
3472fi
3473rm -f conftest conftest$ac_cv_exeext
3474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3475$as_echo "$ac_cv_exeext" >&6; }
3476
3477rm -f conftest.$ac_ext
3478EXEEXT=$ac_cv_exeext
3479ac_exeext=$EXEEXT
3480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481/* end confdefs.h. */
3482#include <stdio.h>
3483int
3484main ()
3485{
3486FILE *f = fopen ("conftest.out", "w");
3487 return ferror (f) || fclose (f) != 0;
3488
3489 ;
3490 return 0;
3491}
3492_ACEOF
3493ac_clean_files="$ac_clean_files conftest.out"
3494# Check that the compiler produces executables we can run. If not, either
3495# the compiler is broken, or we cross compile.
3496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3497$as_echo_n "checking whether we are cross compiling... " >&6; }
3498if test "$cross_compiling" != yes; then
3499 { { ac_try="$ac_link"
3500case "(($ac_try" in
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3503esac
3504eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3505$as_echo "$ac_try_echo"; } >&5
3506 (eval "$ac_link") 2>&5
3507 ac_status=$?
3508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3509 test $ac_status = 0; }
3510 if { ac_try='./conftest$ac_cv_exeext'
3511 { { case "(($ac_try" in
3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513 *) ac_try_echo=$ac_try;;
3514esac
3515eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3516$as_echo "$ac_try_echo"; } >&5
3517 (eval "$ac_try") 2>&5
3518 ac_status=$?
3519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3520 test $ac_status = 0; }; }; then
3521 cross_compiling=no
3522 else
3523 if test "$cross_compiling" = maybe; then
3524 cross_compiling=yes
3525 else
3526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3527$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3528as_fn_error $? "cannot run C compiled programs.
3529If you meant to cross compile, use \`--host'.
3530See \`config.log' for more details" "$LINENO" 5; }
3531 fi
3532 fi
3533fi
3534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3535$as_echo "$cross_compiling" >&6; }
3536
3537rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3538ac_clean_files=$ac_clean_files_save
3539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3540$as_echo_n "checking for suffix of object files... " >&6; }
3541if ${ac_cv_objext+:} false; then :
3542 $as_echo_n "(cached) " >&6
3543else
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545/* end confdefs.h. */
3546
3547int
3548main ()
3549{
3550
3551 ;
3552 return 0;
3553}
3554_ACEOF
3555rm -f conftest.o conftest.obj
3556if { { ac_try="$ac_compile"
3557case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3560esac
3561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3562$as_echo "$ac_try_echo"; } >&5
3563 (eval "$ac_compile") 2>&5
3564 ac_status=$?
3565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3566 test $ac_status = 0; }; then :
3567 for ac_file in conftest.o conftest.obj conftest.*; do
3568 test -f "$ac_file" || continue;
3569 case $ac_file in
3570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3571 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3572 break;;
3573 esac
3574done
3575else
3576 $as_echo "$as_me: failed program was:" >&5
3577sed 's/^/| /' conftest.$ac_ext >&5
3578
3579{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581as_fn_error $? "cannot compute suffix of object files: cannot compile
3582See \`config.log' for more details" "$LINENO" 5; }
3583fi
3584rm -f conftest.$ac_cv_objext conftest.$ac_ext
3585fi
3586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3587$as_echo "$ac_cv_objext" >&6; }
3588OBJEXT=$ac_cv_objext
3589ac_objext=$OBJEXT
Jeff Thompson36174062013-06-21 16:03:44 -07003590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3591$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3592if ${ac_cv_c_compiler_gnu+:} false; then :
3593 $as_echo_n "(cached) " >&6
3594else
3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596/* end confdefs.h. */
3597
3598int
3599main ()
3600{
3601#ifndef __GNUC__
3602 choke me
3603#endif
3604
3605 ;
3606 return 0;
3607}
3608_ACEOF
3609if ac_fn_c_try_compile "$LINENO"; then :
3610 ac_compiler_gnu=yes
3611else
3612 ac_compiler_gnu=no
3613fi
3614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3615ac_cv_c_compiler_gnu=$ac_compiler_gnu
3616
3617fi
3618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3619$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3620if test $ac_compiler_gnu = yes; then
3621 GCC=yes
3622else
3623 GCC=
3624fi
3625ac_test_CFLAGS=${CFLAGS+set}
3626ac_save_CFLAGS=$CFLAGS
3627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3628$as_echo_n "checking whether $CC accepts -g... " >&6; }
3629if ${ac_cv_prog_cc_g+:} false; then :
3630 $as_echo_n "(cached) " >&6
3631else
3632 ac_save_c_werror_flag=$ac_c_werror_flag
3633 ac_c_werror_flag=yes
3634 ac_cv_prog_cc_g=no
3635 CFLAGS="-g"
3636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637/* end confdefs.h. */
3638
3639int
3640main ()
3641{
3642
3643 ;
3644 return 0;
3645}
3646_ACEOF
3647if ac_fn_c_try_compile "$LINENO"; then :
3648 ac_cv_prog_cc_g=yes
3649else
3650 CFLAGS=""
3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652/* end confdefs.h. */
3653
3654int
3655main ()
3656{
3657
3658 ;
3659 return 0;
3660}
3661_ACEOF
3662if ac_fn_c_try_compile "$LINENO"; then :
3663
3664else
3665 ac_c_werror_flag=$ac_save_c_werror_flag
3666 CFLAGS="-g"
3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668/* end confdefs.h. */
3669
3670int
3671main ()
3672{
3673
3674 ;
3675 return 0;
3676}
3677_ACEOF
3678if ac_fn_c_try_compile "$LINENO"; then :
3679 ac_cv_prog_cc_g=yes
3680fi
3681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3682fi
3683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684fi
3685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3686 ac_c_werror_flag=$ac_save_c_werror_flag
3687fi
3688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3689$as_echo "$ac_cv_prog_cc_g" >&6; }
3690if test "$ac_test_CFLAGS" = set; then
3691 CFLAGS=$ac_save_CFLAGS
3692elif test $ac_cv_prog_cc_g = yes; then
3693 if test "$GCC" = yes; then
3694 CFLAGS="-g -O2"
3695 else
3696 CFLAGS="-g"
3697 fi
3698else
3699 if test "$GCC" = yes; then
3700 CFLAGS="-O2"
3701 else
3702 CFLAGS=
3703 fi
3704fi
3705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3706$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3707if ${ac_cv_prog_cc_c89+:} false; then :
3708 $as_echo_n "(cached) " >&6
3709else
3710 ac_cv_prog_cc_c89=no
3711ac_save_CC=$CC
3712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713/* end confdefs.h. */
3714#include <stdarg.h>
3715#include <stdio.h>
3716struct stat;
3717/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3718struct buf { int x; };
3719FILE * (*rcsopen) (struct buf *, struct stat *, int);
3720static char *e (p, i)
3721 char **p;
3722 int i;
3723{
3724 return p[i];
3725}
3726static char *f (char * (*g) (char **, int), char **p, ...)
3727{
3728 char *s;
3729 va_list v;
3730 va_start (v,p);
3731 s = g (p, va_arg (v,int));
3732 va_end (v);
3733 return s;
3734}
3735
3736/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3737 function prototypes and stuff, but not '\xHH' hex character constants.
3738 These don't provoke an error unfortunately, instead are silently treated
3739 as 'x'. The following induces an error, until -std is added to get
3740 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3741 array size at least. It's necessary to write '\x00'==0 to get something
3742 that's true only with -std. */
3743int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3744
3745/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3746 inside strings and character constants. */
3747#define FOO(x) 'x'
3748int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3749
3750int test (int i, double x);
3751struct s1 {int (*f) (int a);};
3752struct s2 {int (*f) (double a);};
3753int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3754int argc;
3755char **argv;
3756int
3757main ()
3758{
3759return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3760 ;
3761 return 0;
3762}
3763_ACEOF
3764for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3765 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3766do
3767 CC="$ac_save_CC $ac_arg"
3768 if ac_fn_c_try_compile "$LINENO"; then :
3769 ac_cv_prog_cc_c89=$ac_arg
3770fi
3771rm -f core conftest.err conftest.$ac_objext
3772 test "x$ac_cv_prog_cc_c89" != "xno" && break
3773done
3774rm -f conftest.$ac_ext
3775CC=$ac_save_CC
3776
3777fi
3778# AC_CACHE_VAL
3779case "x$ac_cv_prog_cc_c89" in
3780 x)
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3782$as_echo "none needed" >&6; } ;;
3783 xno)
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3785$as_echo "unsupported" >&6; } ;;
3786 *)
3787 CC="$CC $ac_cv_prog_cc_c89"
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3789$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3790esac
3791if test "x$ac_cv_prog_cc_c89" != xno; then :
3792
3793fi
3794
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07003795ac_ext=c
3796ac_cpp='$CPP $CPPFLAGS'
3797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3799ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeff Thompson36174062013-06-21 16:03:44 -07003800
Jeff Thompsona04f23c2013-09-16 17:48:38 -07003801ac_ext=c
3802ac_cpp='$CPP $CPPFLAGS'
3803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3805ac_compiler_gnu=$ac_cv_c_compiler_gnu
3806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3807$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3808if ${am_cv_prog_cc_c_o+:} false; then :
3809 $as_echo_n "(cached) " >&6
3810else
3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812/* end confdefs.h. */
3813
3814int
3815main ()
3816{
3817
3818 ;
3819 return 0;
3820}
3821_ACEOF
3822 # Make sure it works both with $CC and with simple cc.
3823 # Following AC_PROG_CC_C_O, we do the test twice because some
3824 # compilers refuse to overwrite an existing .o file with -o,
3825 # though they will create one.
3826 am_cv_prog_cc_c_o=yes
3827 for am_i in 1 2; do
3828 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3829 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3830 ac_status=$?
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } \
3833 && test -f conftest2.$ac_objext; then
3834 : OK
3835 else
3836 am_cv_prog_cc_c_o=no
3837 break
3838 fi
3839 done
3840 rm -f core conftest*
3841 unset am_i
3842fi
3843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3844$as_echo "$am_cv_prog_cc_c_o" >&6; }
3845if test "$am_cv_prog_cc_c_o" != yes; then
3846 # Losing compiler, so override with the script.
3847 # FIXME: It is wrong to rewrite CC.
3848 # But if we don't then we get into trouble of one sort or another.
3849 # A longer-term fix would be to have automake use am__CC in this case,
3850 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3851 CC="$am_aux_dir/compile $CC"
3852fi
3853ac_ext=c
3854ac_cpp='$CPP $CPPFLAGS'
3855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857ac_compiler_gnu=$ac_cv_c_compiler_gnu
3858
3859
Jeff Thompson36174062013-06-21 16:03:44 -07003860depcc="$CC" am_compiler_list=
3861
3862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3863$as_echo_n "checking dependency style of $depcc... " >&6; }
3864if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3865 $as_echo_n "(cached) " >&6
3866else
3867 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3868 # We make a subdir and do the tests there. Otherwise we can end up
3869 # making bogus files that we don't know about and never remove. For
3870 # instance it was reported that on HP-UX the gcc test will end up
3871 # making a dummy file named 'D' -- because '-MD' means "put the output
3872 # in D".
3873 rm -rf conftest.dir
3874 mkdir conftest.dir
3875 # Copy depcomp to subdir because otherwise we won't find it if we're
3876 # using a relative directory.
3877 cp "$am_depcomp" conftest.dir
3878 cd conftest.dir
3879 # We will build objects and dependencies in a subdirectory because
3880 # it helps to detect inapplicable dependency modes. For instance
3881 # both Tru64's cc and ICC support -MD to output dependencies as a
3882 # side effect of compilation, but ICC will put the dependencies in
3883 # the current directory while Tru64 will put them in the object
3884 # directory.
3885 mkdir sub
3886
3887 am_cv_CC_dependencies_compiler_type=none
3888 if test "$am_compiler_list" = ""; then
3889 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3890 fi
3891 am__universal=false
3892 case " $depcc " in #(
3893 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3894 esac
3895
3896 for depmode in $am_compiler_list; do
3897 # Setup a source with many dependencies, because some compilers
3898 # like to wrap large dependency lists on column 80 (with \), and
3899 # we should not choose a depcomp mode which is confused by this.
3900 #
3901 # We need to recreate these files for each test, as the compiler may
3902 # overwrite some of them when testing with obscure command lines.
3903 # This happens at least with the AIX C compiler.
3904 : > sub/conftest.c
3905 for i in 1 2 3 4 5 6; do
3906 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3907 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3908 # Solaris 10 /bin/sh.
3909 echo '/* dummy */' > sub/conftst$i.h
3910 done
3911 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3912
3913 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3914 # mode. It turns out that the SunPro C++ compiler does not properly
3915 # handle '-M -o', and we need to detect this. Also, some Intel
3916 # versions had trouble with output in subdirs.
3917 am__obj=sub/conftest.${OBJEXT-o}
3918 am__minus_obj="-o $am__obj"
3919 case $depmode in
3920 gcc)
3921 # This depmode causes a compiler race in universal mode.
3922 test "$am__universal" = false || continue
3923 ;;
3924 nosideeffect)
3925 # After this tag, mechanisms are not by side-effect, so they'll
3926 # only be used when explicitly requested.
3927 if test "x$enable_dependency_tracking" = xyes; then
3928 continue
3929 else
3930 break
3931 fi
3932 ;;
3933 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3934 # This compiler won't grok '-c -o', but also, the minuso test has
3935 # not run yet. These depmodes are late enough in the game, and
3936 # so weak that their functioning should not be impacted.
3937 am__obj=conftest.${OBJEXT-o}
3938 am__minus_obj=
3939 ;;
3940 none) break ;;
3941 esac
3942 if depmode=$depmode \
3943 source=sub/conftest.c object=$am__obj \
3944 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3945 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3946 >/dev/null 2>conftest.err &&
3947 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3948 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3949 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3950 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3951 # icc doesn't choke on unknown options, it will just issue warnings
3952 # or remarks (even with -Werror). So we grep stderr for any message
3953 # that says an option was ignored or not supported.
3954 # When given -MP, icc 7.0 and 7.1 complain thusly:
3955 # icc: Command line warning: ignoring option '-M'; no argument required
3956 # The diagnosis changed in icc 8.0:
3957 # icc: Command line remark: option '-MP' not supported
3958 if (grep 'ignoring option' conftest.err ||
3959 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3960 am_cv_CC_dependencies_compiler_type=$depmode
3961 break
3962 fi
3963 fi
3964 done
3965
3966 cd ..
3967 rm -rf conftest.dir
3968else
3969 am_cv_CC_dependencies_compiler_type=none
3970fi
3971
3972fi
3973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3974$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3975CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3976
3977 if
3978 test "x$enable_dependency_tracking" != xno \
3979 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3980 am__fastdepCC_TRUE=
3981 am__fastdepCC_FALSE='#'
3982else
3983 am__fastdepCC_TRUE='#'
3984 am__fastdepCC_FALSE=
3985fi
3986
3987
Jeff Thompson36174062013-06-21 16:03:44 -07003988
3989if test -n "$ac_tool_prefix"; then
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07003990 for ac_prog in ar lib "link -lib"
Jeff Thompson36174062013-06-21 16:03:44 -07003991 do
3992 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3993set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3995$as_echo_n "checking for $ac_word... " >&6; }
3996if ${ac_cv_prog_AR+:} false; then :
3997 $as_echo_n "(cached) " >&6
3998else
3999 if test -n "$AR"; then
4000 ac_cv_prog_AR="$AR" # Let the user override the test.
4001else
4002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003for as_dir in $PATH
4004do
4005 IFS=$as_save_IFS
4006 test -z "$as_dir" && as_dir=.
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4009 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4011 break 2
4012 fi
4013done
4014 done
4015IFS=$as_save_IFS
4016
4017fi
4018fi
4019AR=$ac_cv_prog_AR
4020if test -n "$AR"; then
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4022$as_echo "$AR" >&6; }
4023else
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4025$as_echo "no" >&6; }
4026fi
4027
4028
4029 test -n "$AR" && break
4030 done
4031fi
4032if test -z "$AR"; then
4033 ac_ct_AR=$AR
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004034 for ac_prog in ar lib "link -lib"
Jeff Thompson36174062013-06-21 16:03:44 -07004035do
4036 # Extract the first word of "$ac_prog", so it can be a program name with args.
4037set dummy $ac_prog; ac_word=$2
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4039$as_echo_n "checking for $ac_word... " >&6; }
4040if ${ac_cv_prog_ac_ct_AR+:} false; then :
4041 $as_echo_n "(cached) " >&6
4042else
4043 if test -n "$ac_ct_AR"; then
4044 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4045else
4046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047for as_dir in $PATH
4048do
4049 IFS=$as_save_IFS
4050 test -z "$as_dir" && as_dir=.
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4053 ac_cv_prog_ac_ct_AR="$ac_prog"
4054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4055 break 2
4056 fi
4057done
4058 done
4059IFS=$as_save_IFS
4060
4061fi
4062fi
4063ac_ct_AR=$ac_cv_prog_ac_ct_AR
4064if test -n "$ac_ct_AR"; then
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4066$as_echo "$ac_ct_AR" >&6; }
4067else
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069$as_echo "no" >&6; }
4070fi
4071
4072
4073 test -n "$ac_ct_AR" && break
4074done
4075
4076 if test "x$ac_ct_AR" = x; then
4077 AR="false"
4078 else
4079 case $cross_compiling:$ac_tool_warned in
4080yes:)
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4083ac_tool_warned=yes ;;
4084esac
4085 AR=$ac_ct_AR
4086 fi
4087fi
4088
4089: ${AR=ar}
Jeff Thompson36174062013-06-21 16:03:44 -07004090
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4092$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4093if ${am_cv_ar_interface+:} false; then :
Jeff Thompson36174062013-06-21 16:03:44 -07004094 $as_echo_n "(cached) " >&6
4095else
Jeff Thompsona04f23c2013-09-16 17:48:38 -07004096 ac_ext=c
4097ac_cpp='$CPP $CPPFLAGS'
4098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100ac_compiler_gnu=$ac_cv_c_compiler_gnu
4101
4102 am_cv_ar_interface=ar
Jeff Thompson36174062013-06-21 16:03:44 -07004103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104/* end confdefs.h. */
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004105int some_variable = 0;
Jeff Thompson36174062013-06-21 16:03:44 -07004106_ACEOF
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004107if ac_fn_c_try_compile "$LINENO"; then :
4108 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4110 (eval $am_ar_try) 2>&5
Jeff Thompson36174062013-06-21 16:03:44 -07004111 ac_status=$?
4112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4113 test $ac_status = 0; }
4114 if test "$ac_status" -eq 0; then
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004115 am_cv_ar_interface=ar
4116 else
4117 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4119 (eval $am_ar_try) 2>&5
Jeff Thompson36174062013-06-21 16:03:44 -07004120 ac_status=$?
4121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4122 test $ac_status = 0; }
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004123 if test "$ac_status" -eq 0; then
4124 am_cv_ar_interface=lib
4125 else
4126 am_cv_ar_interface=unknown
Jeff Thompson36174062013-06-21 16:03:44 -07004127 fi
4128 fi
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004129 rm -f conftest.lib libconftest.a
Jeff Thompson36174062013-06-21 16:03:44 -07004130
4131fi
4132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jeff Thompsona04f23c2013-09-16 17:48:38 -07004133 ac_ext=c
4134ac_cpp='$CPP $CPPFLAGS'
4135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeff Thompson36174062013-06-21 16:03:44 -07004138
4139fi
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4141$as_echo "$am_cv_ar_interface" >&6; }
Jeff Thompson36174062013-06-21 16:03:44 -07004142
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004143case $am_cv_ar_interface in
4144ar)
Jeff Thompson36174062013-06-21 16:03:44 -07004145 ;;
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004146lib)
4147 # Microsoft lib, so override with the ar-lib wrapper script.
4148 # FIXME: It is wrong to rewrite AR.
4149 # But if we don't then we get into trouble of one sort or another.
4150 # A longer-term fix would be to have automake use am__AR in this case,
4151 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4152 # similar.
4153 AR="$am_aux_dir/ar-lib $AR"
Jeff Thompson36174062013-06-21 16:03:44 -07004154 ;;
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004155unknown)
4156 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
Jeff Thompson36174062013-06-21 16:03:44 -07004157 ;;
4158esac
4159
Jeff Thompson4f031642013-08-05 11:03:16 -07004160case `pwd` in
4161 *\ * | *\ *)
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4163$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4164esac
4165
4166
4167
4168macro_version='2.4.2'
4169macro_revision='1.3337'
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183ltmain="$ac_aux_dir/ltmain.sh"
4184
4185# Make sure we can run config.sub.
4186$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4187 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4188
4189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4190$as_echo_n "checking build system type... " >&6; }
4191if ${ac_cv_build+:} false; then :
4192 $as_echo_n "(cached) " >&6
4193else
4194 ac_build_alias=$build_alias
4195test "x$ac_build_alias" = x &&
4196 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4197test "x$ac_build_alias" = x &&
4198 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4199ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4200 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4201
4202fi
4203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4204$as_echo "$ac_cv_build" >&6; }
4205case $ac_cv_build in
4206*-*-*) ;;
4207*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4208esac
4209build=$ac_cv_build
4210ac_save_IFS=$IFS; IFS='-'
4211set x $ac_cv_build
4212shift
4213build_cpu=$1
4214build_vendor=$2
4215shift; shift
4216# Remember, the first character of IFS is used to create $*,
4217# except with old shells:
4218build_os=$*
4219IFS=$ac_save_IFS
4220case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4221
4222
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4224$as_echo_n "checking host system type... " >&6; }
4225if ${ac_cv_host+:} false; then :
4226 $as_echo_n "(cached) " >&6
4227else
4228 if test "x$host_alias" = x; then
4229 ac_cv_host=$ac_cv_build
4230else
4231 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4232 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4233fi
4234
4235fi
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4237$as_echo "$ac_cv_host" >&6; }
4238case $ac_cv_host in
4239*-*-*) ;;
4240*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4241esac
4242host=$ac_cv_host
4243ac_save_IFS=$IFS; IFS='-'
4244set x $ac_cv_host
4245shift
4246host_cpu=$1
4247host_vendor=$2
4248shift; shift
4249# Remember, the first character of IFS is used to create $*,
4250# except with old shells:
4251host_os=$*
4252IFS=$ac_save_IFS
4253case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4254
4255
4256# Backslashify metacharacters that are still active within
4257# double-quoted strings.
4258sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4259
4260# Same as above, but do not quote variable references.
4261double_quote_subst='s/\(["`\\]\)/\\\1/g'
4262
4263# Sed substitution to delay expansion of an escaped shell variable in a
4264# double_quote_subst'ed string.
4265delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4266
4267# Sed substitution to delay expansion of an escaped single quote.
4268delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4269
4270# Sed substitution to avoid accidental globbing in evaled expressions
4271no_glob_subst='s/\*/\\\*/g'
4272
4273ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4274ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4275ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4276
4277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4278$as_echo_n "checking how to print strings... " >&6; }
4279# Test print first, because it will be a builtin if present.
4280if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4281 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4282 ECHO='print -r --'
4283elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4284 ECHO='printf %s\n'
4285else
4286 # Use this function as a fallback that always works.
4287 func_fallback_echo ()
4288 {
4289 eval 'cat <<_LTECHO_EOF
4290$1
4291_LTECHO_EOF'
4292 }
4293 ECHO='func_fallback_echo'
4294fi
4295
4296# func_echo_all arg...
4297# Invoke $ECHO with all args, space-separated.
4298func_echo_all ()
4299{
4300 $ECHO ""
4301}
4302
4303case "$ECHO" in
4304 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4305$as_echo "printf" >&6; } ;;
4306 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4307$as_echo "print -r" >&6; } ;;
4308 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4309$as_echo "cat" >&6; } ;;
4310esac
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4326$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4327if ${ac_cv_path_SED+:} false; then :
4328 $as_echo_n "(cached) " >&6
4329else
4330 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4331 for ac_i in 1 2 3 4 5 6 7; do
4332 ac_script="$ac_script$as_nl$ac_script"
4333 done
4334 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4335 { ac_script=; unset ac_script;}
4336 if test -z "$SED"; then
4337 ac_path_SED_found=false
4338 # Loop through the user's path and test for each of PROGNAME-LIST
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340for as_dir in $PATH
4341do
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
4344 for ac_prog in sed gsed; do
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4347 as_fn_executable_p "$ac_path_SED" || continue
4348# Check for GNU ac_path_SED and select it if it is found.
4349 # Check for GNU $ac_path_SED
4350case `"$ac_path_SED" --version 2>&1` in
4351*GNU*)
4352 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4353*)
4354 ac_count=0
4355 $as_echo_n 0123456789 >"conftest.in"
4356 while :
4357 do
4358 cat "conftest.in" "conftest.in" >"conftest.tmp"
4359 mv "conftest.tmp" "conftest.in"
4360 cp "conftest.in" "conftest.nl"
4361 $as_echo '' >> "conftest.nl"
4362 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4363 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4364 as_fn_arith $ac_count + 1 && ac_count=$as_val
4365 if test $ac_count -gt ${ac_path_SED_max-0}; then
4366 # Best one so far, save it but keep looking for a better one
4367 ac_cv_path_SED="$ac_path_SED"
4368 ac_path_SED_max=$ac_count
4369 fi
4370 # 10*(2^10) chars as input seems more than enough
4371 test $ac_count -gt 10 && break
4372 done
4373 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4374esac
4375
4376 $ac_path_SED_found && break 3
4377 done
4378 done
4379 done
4380IFS=$as_save_IFS
4381 if test -z "$ac_cv_path_SED"; then
4382 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4383 fi
4384else
4385 ac_cv_path_SED=$SED
4386fi
4387
4388fi
4389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4390$as_echo "$ac_cv_path_SED" >&6; }
4391 SED="$ac_cv_path_SED"
4392 rm -f conftest.sed
4393
4394test -z "$SED" && SED=sed
4395Xsed="$SED -e 1s/^X//"
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4408$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4409if ${ac_cv_path_GREP+:} false; then :
4410 $as_echo_n "(cached) " >&6
4411else
4412 if test -z "$GREP"; then
4413 ac_path_GREP_found=false
4414 # Loop through the user's path and test for each of PROGNAME-LIST
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4417do
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
4420 for ac_prog in grep ggrep; do
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4423 as_fn_executable_p "$ac_path_GREP" || continue
4424# Check for GNU ac_path_GREP and select it if it is found.
4425 # Check for GNU $ac_path_GREP
4426case `"$ac_path_GREP" --version 2>&1` in
4427*GNU*)
4428 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4429*)
4430 ac_count=0
4431 $as_echo_n 0123456789 >"conftest.in"
4432 while :
4433 do
4434 cat "conftest.in" "conftest.in" >"conftest.tmp"
4435 mv "conftest.tmp" "conftest.in"
4436 cp "conftest.in" "conftest.nl"
4437 $as_echo 'GREP' >> "conftest.nl"
4438 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4439 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4440 as_fn_arith $ac_count + 1 && ac_count=$as_val
4441 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4442 # Best one so far, save it but keep looking for a better one
4443 ac_cv_path_GREP="$ac_path_GREP"
4444 ac_path_GREP_max=$ac_count
4445 fi
4446 # 10*(2^10) chars as input seems more than enough
4447 test $ac_count -gt 10 && break
4448 done
4449 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4450esac
4451
4452 $ac_path_GREP_found && break 3
4453 done
4454 done
4455 done
4456IFS=$as_save_IFS
4457 if test -z "$ac_cv_path_GREP"; then
4458 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4459 fi
4460else
4461 ac_cv_path_GREP=$GREP
4462fi
4463
4464fi
4465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4466$as_echo "$ac_cv_path_GREP" >&6; }
4467 GREP="$ac_cv_path_GREP"
4468
4469
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4471$as_echo_n "checking for egrep... " >&6; }
4472if ${ac_cv_path_EGREP+:} false; then :
4473 $as_echo_n "(cached) " >&6
4474else
4475 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4476 then ac_cv_path_EGREP="$GREP -E"
4477 else
4478 if test -z "$EGREP"; then
4479 ac_path_EGREP_found=false
4480 # Loop through the user's path and test for each of PROGNAME-LIST
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4483do
4484 IFS=$as_save_IFS
4485 test -z "$as_dir" && as_dir=.
4486 for ac_prog in egrep; do
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4489 as_fn_executable_p "$ac_path_EGREP" || continue
4490# Check for GNU ac_path_EGREP and select it if it is found.
4491 # Check for GNU $ac_path_EGREP
4492case `"$ac_path_EGREP" --version 2>&1` in
4493*GNU*)
4494 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4495*)
4496 ac_count=0
4497 $as_echo_n 0123456789 >"conftest.in"
4498 while :
4499 do
4500 cat "conftest.in" "conftest.in" >"conftest.tmp"
4501 mv "conftest.tmp" "conftest.in"
4502 cp "conftest.in" "conftest.nl"
4503 $as_echo 'EGREP' >> "conftest.nl"
4504 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4505 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4506 as_fn_arith $ac_count + 1 && ac_count=$as_val
4507 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4508 # Best one so far, save it but keep looking for a better one
4509 ac_cv_path_EGREP="$ac_path_EGREP"
4510 ac_path_EGREP_max=$ac_count
4511 fi
4512 # 10*(2^10) chars as input seems more than enough
4513 test $ac_count -gt 10 && break
4514 done
4515 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4516esac
4517
4518 $ac_path_EGREP_found && break 3
4519 done
4520 done
4521 done
4522IFS=$as_save_IFS
4523 if test -z "$ac_cv_path_EGREP"; then
4524 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4525 fi
4526else
4527 ac_cv_path_EGREP=$EGREP
4528fi
4529
4530 fi
4531fi
4532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4533$as_echo "$ac_cv_path_EGREP" >&6; }
4534 EGREP="$ac_cv_path_EGREP"
4535
4536
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4538$as_echo_n "checking for fgrep... " >&6; }
4539if ${ac_cv_path_FGREP+:} false; then :
4540 $as_echo_n "(cached) " >&6
4541else
4542 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4543 then ac_cv_path_FGREP="$GREP -F"
4544 else
4545 if test -z "$FGREP"; then
4546 ac_path_FGREP_found=false
4547 # Loop through the user's path and test for each of PROGNAME-LIST
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4550do
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
4553 for ac_prog in fgrep; do
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4556 as_fn_executable_p "$ac_path_FGREP" || continue
4557# Check for GNU ac_path_FGREP and select it if it is found.
4558 # Check for GNU $ac_path_FGREP
4559case `"$ac_path_FGREP" --version 2>&1` in
4560*GNU*)
4561 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4562*)
4563 ac_count=0
4564 $as_echo_n 0123456789 >"conftest.in"
4565 while :
4566 do
4567 cat "conftest.in" "conftest.in" >"conftest.tmp"
4568 mv "conftest.tmp" "conftest.in"
4569 cp "conftest.in" "conftest.nl"
4570 $as_echo 'FGREP' >> "conftest.nl"
4571 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4572 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4573 as_fn_arith $ac_count + 1 && ac_count=$as_val
4574 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4575 # Best one so far, save it but keep looking for a better one
4576 ac_cv_path_FGREP="$ac_path_FGREP"
4577 ac_path_FGREP_max=$ac_count
4578 fi
4579 # 10*(2^10) chars as input seems more than enough
4580 test $ac_count -gt 10 && break
4581 done
4582 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4583esac
4584
4585 $ac_path_FGREP_found && break 3
4586 done
4587 done
4588 done
4589IFS=$as_save_IFS
4590 if test -z "$ac_cv_path_FGREP"; then
4591 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4592 fi
4593else
4594 ac_cv_path_FGREP=$FGREP
4595fi
4596
4597 fi
4598fi
4599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4600$as_echo "$ac_cv_path_FGREP" >&6; }
4601 FGREP="$ac_cv_path_FGREP"
4602
4603
4604test -z "$GREP" && GREP=grep
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624# Check whether --with-gnu-ld was given.
4625if test "${with_gnu_ld+set}" = set; then :
4626 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4627else
4628 with_gnu_ld=no
4629fi
4630
4631ac_prog=ld
4632if test "$GCC" = yes; then
4633 # Check if gcc -print-prog-name=ld gives a path.
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4635$as_echo_n "checking for ld used by $CC... " >&6; }
4636 case $host in
4637 *-*-mingw*)
4638 # gcc leaves a trailing carriage return which upsets mingw
4639 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4640 *)
4641 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4642 esac
4643 case $ac_prog in
4644 # Accept absolute paths.
4645 [\\/]* | ?:[\\/]*)
4646 re_direlt='/[^/][^/]*/\.\./'
4647 # Canonicalize the pathname of ld
4648 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4649 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4650 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4651 done
4652 test -z "$LD" && LD="$ac_prog"
4653 ;;
4654 "")
4655 # If it fails, then pretend we aren't using GCC.
4656 ac_prog=ld
4657 ;;
4658 *)
4659 # If it is relative, then search for the first ld in PATH.
4660 with_gnu_ld=unknown
4661 ;;
4662 esac
4663elif test "$with_gnu_ld" = yes; then
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4665$as_echo_n "checking for GNU ld... " >&6; }
4666else
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4668$as_echo_n "checking for non-GNU ld... " >&6; }
4669fi
4670if ${lt_cv_path_LD+:} false; then :
4671 $as_echo_n "(cached) " >&6
4672else
4673 if test -z "$LD"; then
4674 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4675 for ac_dir in $PATH; do
4676 IFS="$lt_save_ifs"
4677 test -z "$ac_dir" && ac_dir=.
4678 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4679 lt_cv_path_LD="$ac_dir/$ac_prog"
4680 # Check to see if the program is GNU ld. I'd rather use --version,
4681 # but apparently some variants of GNU ld only accept -v.
4682 # Break only if it was the GNU/non-GNU ld that we prefer.
4683 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4684 *GNU* | *'with BFD'*)
4685 test "$with_gnu_ld" != no && break
4686 ;;
4687 *)
4688 test "$with_gnu_ld" != yes && break
4689 ;;
4690 esac
4691 fi
4692 done
4693 IFS="$lt_save_ifs"
4694else
4695 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4696fi
4697fi
4698
4699LD="$lt_cv_path_LD"
4700if test -n "$LD"; then
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4702$as_echo "$LD" >&6; }
4703else
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705$as_echo "no" >&6; }
4706fi
4707test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4709$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4710if ${lt_cv_prog_gnu_ld+:} false; then :
4711 $as_echo_n "(cached) " >&6
4712else
4713 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4714case `$LD -v 2>&1 </dev/null` in
4715*GNU* | *'with BFD'*)
4716 lt_cv_prog_gnu_ld=yes
4717 ;;
4718*)
4719 lt_cv_prog_gnu_ld=no
4720 ;;
4721esac
4722fi
4723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4724$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4725with_gnu_ld=$lt_cv_prog_gnu_ld
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4736$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4737if ${lt_cv_path_NM+:} false; then :
4738 $as_echo_n "(cached) " >&6
4739else
4740 if test -n "$NM"; then
4741 # Let the user override the test.
4742 lt_cv_path_NM="$NM"
4743else
4744 lt_nm_to_check="${ac_tool_prefix}nm"
4745 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4746 lt_nm_to_check="$lt_nm_to_check nm"
4747 fi
4748 for lt_tmp_nm in $lt_nm_to_check; do
4749 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4750 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4751 IFS="$lt_save_ifs"
4752 test -z "$ac_dir" && ac_dir=.
4753 tmp_nm="$ac_dir/$lt_tmp_nm"
4754 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4755 # Check to see if the nm accepts a BSD-compat flag.
4756 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4757 # nm: unknown option "B" ignored
4758 # Tru64's nm complains that /dev/null is an invalid object file
4759 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4760 */dev/null* | *'Invalid file or object type'*)
4761 lt_cv_path_NM="$tmp_nm -B"
4762 break
4763 ;;
4764 *)
4765 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4766 */dev/null*)
4767 lt_cv_path_NM="$tmp_nm -p"
4768 break
4769 ;;
4770 *)
4771 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4772 continue # so that we can try to find one that supports BSD flags
4773 ;;
4774 esac
4775 ;;
4776 esac
4777 fi
4778 done
4779 IFS="$lt_save_ifs"
4780 done
4781 : ${lt_cv_path_NM=no}
4782fi
4783fi
4784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4785$as_echo "$lt_cv_path_NM" >&6; }
4786if test "$lt_cv_path_NM" != "no"; then
4787 NM="$lt_cv_path_NM"
4788else
4789 # Didn't find any BSD compatible name lister, look for dumpbin.
4790 if test -n "$DUMPBIN"; then :
4791 # Let the user override the test.
4792 else
4793 if test -n "$ac_tool_prefix"; then
4794 for ac_prog in dumpbin "link -dump"
4795 do
4796 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4797set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4799$as_echo_n "checking for $ac_word... " >&6; }
4800if ${ac_cv_prog_DUMPBIN+:} false; then :
4801 $as_echo_n "(cached) " >&6
4802else
4803 if test -n "$DUMPBIN"; then
4804 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4805else
4806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807for as_dir in $PATH
4808do
4809 IFS=$as_save_IFS
4810 test -z "$as_dir" && as_dir=.
4811 for ac_exec_ext in '' $ac_executable_extensions; do
4812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4813 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4815 break 2
4816 fi
4817done
4818 done
4819IFS=$as_save_IFS
4820
4821fi
4822fi
4823DUMPBIN=$ac_cv_prog_DUMPBIN
4824if test -n "$DUMPBIN"; then
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4826$as_echo "$DUMPBIN" >&6; }
4827else
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4829$as_echo "no" >&6; }
4830fi
4831
4832
4833 test -n "$DUMPBIN" && break
4834 done
4835fi
4836if test -z "$DUMPBIN"; then
4837 ac_ct_DUMPBIN=$DUMPBIN
4838 for ac_prog in dumpbin "link -dump"
4839do
4840 # Extract the first word of "$ac_prog", so it can be a program name with args.
4841set dummy $ac_prog; ac_word=$2
4842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4843$as_echo_n "checking for $ac_word... " >&6; }
4844if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4845 $as_echo_n "(cached) " >&6
4846else
4847 if test -n "$ac_ct_DUMPBIN"; then
4848 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4849else
4850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851for as_dir in $PATH
4852do
4853 IFS=$as_save_IFS
4854 test -z "$as_dir" && as_dir=.
4855 for ac_exec_ext in '' $ac_executable_extensions; do
4856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4857 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4859 break 2
4860 fi
4861done
4862 done
4863IFS=$as_save_IFS
4864
4865fi
4866fi
4867ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4868if test -n "$ac_ct_DUMPBIN"; then
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4870$as_echo "$ac_ct_DUMPBIN" >&6; }
4871else
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4873$as_echo "no" >&6; }
4874fi
4875
4876
4877 test -n "$ac_ct_DUMPBIN" && break
4878done
4879
4880 if test "x$ac_ct_DUMPBIN" = x; then
4881 DUMPBIN=":"
4882 else
4883 case $cross_compiling:$ac_tool_warned in
4884yes:)
4885{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4886$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4887ac_tool_warned=yes ;;
4888esac
4889 DUMPBIN=$ac_ct_DUMPBIN
4890 fi
4891fi
4892
4893 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4894 *COFF*)
4895 DUMPBIN="$DUMPBIN -symbols"
4896 ;;
4897 *)
4898 DUMPBIN=:
4899 ;;
4900 esac
4901 fi
4902
4903 if test "$DUMPBIN" != ":"; then
4904 NM="$DUMPBIN"
4905 fi
4906fi
4907test -z "$NM" && NM=nm
4908
4909
4910
4911
4912
4913
4914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4915$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4916if ${lt_cv_nm_interface+:} false; then :
4917 $as_echo_n "(cached) " >&6
4918else
4919 lt_cv_nm_interface="BSD nm"
4920 echo "int some_variable = 0;" > conftest.$ac_ext
4921 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4922 (eval "$ac_compile" 2>conftest.err)
4923 cat conftest.err >&5
4924 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4925 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4926 cat conftest.err >&5
4927 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4928 cat conftest.out >&5
4929 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4930 lt_cv_nm_interface="MS dumpbin"
4931 fi
4932 rm -f conftest*
4933fi
4934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4935$as_echo "$lt_cv_nm_interface" >&6; }
4936
4937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4938$as_echo_n "checking whether ln -s works... " >&6; }
4939LN_S=$as_ln_s
4940if test "$LN_S" = "ln -s"; then
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4942$as_echo "yes" >&6; }
4943else
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4945$as_echo "no, using $LN_S" >&6; }
4946fi
4947
4948# find the maximum length of command line arguments
4949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4950$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4951if ${lt_cv_sys_max_cmd_len+:} false; then :
4952 $as_echo_n "(cached) " >&6
4953else
4954 i=0
4955 teststring="ABCD"
4956
4957 case $build_os in
4958 msdosdjgpp*)
4959 # On DJGPP, this test can blow up pretty badly due to problems in libc
4960 # (any single argument exceeding 2000 bytes causes a buffer overrun
4961 # during glob expansion). Even if it were fixed, the result of this
4962 # check would be larger than it should be.
4963 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4964 ;;
4965
4966 gnu*)
4967 # Under GNU Hurd, this test is not required because there is
4968 # no limit to the length of command line arguments.
4969 # Libtool will interpret -1 as no limit whatsoever
4970 lt_cv_sys_max_cmd_len=-1;
4971 ;;
4972
4973 cygwin* | mingw* | cegcc*)
4974 # On Win9x/ME, this test blows up -- it succeeds, but takes
4975 # about 5 minutes as the teststring grows exponentially.
4976 # Worse, since 9x/ME are not pre-emptively multitasking,
4977 # you end up with a "frozen" computer, even though with patience
4978 # the test eventually succeeds (with a max line length of 256k).
4979 # Instead, let's just punt: use the minimum linelength reported by
4980 # all of the supported platforms: 8192 (on NT/2K/XP).
4981 lt_cv_sys_max_cmd_len=8192;
4982 ;;
4983
4984 mint*)
4985 # On MiNT this can take a long time and run out of memory.
4986 lt_cv_sys_max_cmd_len=8192;
4987 ;;
4988
4989 amigaos*)
4990 # On AmigaOS with pdksh, this test takes hours, literally.
4991 # So we just punt and use a minimum line length of 8192.
4992 lt_cv_sys_max_cmd_len=8192;
4993 ;;
4994
4995 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4996 # This has been around since 386BSD, at least. Likely further.
4997 if test -x /sbin/sysctl; then
4998 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4999 elif test -x /usr/sbin/sysctl; then
5000 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5001 else
5002 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5003 fi
5004 # And add a safety zone
5005 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5006 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5007 ;;
5008
5009 interix*)
5010 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5011 lt_cv_sys_max_cmd_len=196608
5012 ;;
5013
5014 os2*)
5015 # The test takes a long time on OS/2.
5016 lt_cv_sys_max_cmd_len=8192
5017 ;;
5018
5019 osf*)
5020 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5021 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5022 # nice to cause kernel panics so lets avoid the loop below.
5023 # First set a reasonable default.
5024 lt_cv_sys_max_cmd_len=16384
5025 #
5026 if test -x /sbin/sysconfig; then
5027 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5028 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5029 esac
5030 fi
5031 ;;
5032 sco3.2v5*)
5033 lt_cv_sys_max_cmd_len=102400
5034 ;;
5035 sysv5* | sco5v6* | sysv4.2uw2*)
5036 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5037 if test -n "$kargmax"; then
5038 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5039 else
5040 lt_cv_sys_max_cmd_len=32768
5041 fi
5042 ;;
5043 *)
5044 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5045 if test -n "$lt_cv_sys_max_cmd_len"; then
5046 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5047 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5048 else
5049 # Make teststring a little bigger before we do anything with it.
5050 # a 1K string should be a reasonable start.
5051 for i in 1 2 3 4 5 6 7 8 ; do
5052 teststring=$teststring$teststring
5053 done
5054 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5055 # If test is not a shell built-in, we'll probably end up computing a
5056 # maximum length that is only half of the actual maximum length, but
5057 # we can't tell.
5058 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5059 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5060 test $i != 17 # 1/2 MB should be enough
5061 do
5062 i=`expr $i + 1`
5063 teststring=$teststring$teststring
5064 done
5065 # Only check the string length outside the loop.
5066 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5067 teststring=
5068 # Add a significant safety factor because C++ compilers can tack on
5069 # massive amounts of additional arguments before passing them to the
5070 # linker. It appears as though 1/2 is a usable value.
5071 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5072 fi
5073 ;;
5074 esac
5075
5076fi
5077
5078if test -n $lt_cv_sys_max_cmd_len ; then
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5080$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5081else
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5083$as_echo "none" >&6; }
5084fi
5085max_cmd_len=$lt_cv_sys_max_cmd_len
5086
5087
5088
5089
5090
5091
5092: ${CP="cp -f"}
5093: ${MV="mv -f"}
5094: ${RM="rm -f"}
5095
5096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5097$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5098# Try some XSI features
5099xsi_shell=no
5100( _lt_dummy="a/b/c"
5101 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5102 = c,a/b,b/c, \
5103 && eval 'test $(( 1 + 1 )) -eq 2 \
5104 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5105 && xsi_shell=yes
5106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5107$as_echo "$xsi_shell" >&6; }
5108
5109
5110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5111$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5112lt_shell_append=no
5113( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5114 >/dev/null 2>&1 \
5115 && lt_shell_append=yes
5116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5117$as_echo "$lt_shell_append" >&6; }
5118
5119
5120if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5121 lt_unset=unset
5122else
5123 lt_unset=false
5124fi
5125
5126
5127
5128
5129
5130# test EBCDIC or ASCII
5131case `echo X|tr X '\101'` in
5132 A) # ASCII based system
5133 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5134 lt_SP2NL='tr \040 \012'
5135 lt_NL2SP='tr \015\012 \040\040'
5136 ;;
5137 *) # EBCDIC based system
5138 lt_SP2NL='tr \100 \n'
5139 lt_NL2SP='tr \r\n \100\100'
5140 ;;
5141esac
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5152$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5153if ${lt_cv_to_host_file_cmd+:} false; then :
5154 $as_echo_n "(cached) " >&6
5155else
5156 case $host in
5157 *-*-mingw* )
5158 case $build in
5159 *-*-mingw* ) # actually msys
5160 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5161 ;;
5162 *-*-cygwin* )
5163 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5164 ;;
5165 * ) # otherwise, assume *nix
5166 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5167 ;;
5168 esac
5169 ;;
5170 *-*-cygwin* )
5171 case $build in
5172 *-*-mingw* ) # actually msys
5173 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5174 ;;
5175 *-*-cygwin* )
5176 lt_cv_to_host_file_cmd=func_convert_file_noop
5177 ;;
5178 * ) # otherwise, assume *nix
5179 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5180 ;;
5181 esac
5182 ;;
5183 * ) # unhandled hosts (and "normal" native builds)
5184 lt_cv_to_host_file_cmd=func_convert_file_noop
5185 ;;
5186esac
5187
5188fi
5189
5190to_host_file_cmd=$lt_cv_to_host_file_cmd
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5192$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5193
5194
5195
5196
5197
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5199$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5200if ${lt_cv_to_tool_file_cmd+:} false; then :
5201 $as_echo_n "(cached) " >&6
5202else
5203 #assume ordinary cross tools, or native build.
5204lt_cv_to_tool_file_cmd=func_convert_file_noop
5205case $host in
5206 *-*-mingw* )
5207 case $build in
5208 *-*-mingw* ) # actually msys
5209 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5210 ;;
5211 esac
5212 ;;
5213esac
5214
5215fi
5216
5217to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5219$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5220
5221
5222
5223
5224
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5226$as_echo_n "checking for $LD option to reload object files... " >&6; }
5227if ${lt_cv_ld_reload_flag+:} false; then :
5228 $as_echo_n "(cached) " >&6
5229else
5230 lt_cv_ld_reload_flag='-r'
5231fi
5232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5233$as_echo "$lt_cv_ld_reload_flag" >&6; }
5234reload_flag=$lt_cv_ld_reload_flag
5235case $reload_flag in
5236"" | " "*) ;;
5237*) reload_flag=" $reload_flag" ;;
5238esac
5239reload_cmds='$LD$reload_flag -o $output$reload_objs'
5240case $host_os in
5241 cygwin* | mingw* | pw32* | cegcc*)
5242 if test "$GCC" != yes; then
5243 reload_cmds=false
5244 fi
5245 ;;
5246 darwin*)
5247 if test "$GCC" = yes; then
5248 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5249 else
5250 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5251 fi
5252 ;;
5253esac
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263if test -n "$ac_tool_prefix"; then
5264 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5265set dummy ${ac_tool_prefix}objdump; ac_word=$2
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5267$as_echo_n "checking for $ac_word... " >&6; }
5268if ${ac_cv_prog_OBJDUMP+:} false; then :
5269 $as_echo_n "(cached) " >&6
5270else
5271 if test -n "$OBJDUMP"; then
5272 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5273else
5274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275for as_dir in $PATH
5276do
5277 IFS=$as_save_IFS
5278 test -z "$as_dir" && as_dir=.
5279 for ac_exec_ext in '' $ac_executable_extensions; do
5280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5281 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5283 break 2
5284 fi
5285done
5286 done
5287IFS=$as_save_IFS
5288
5289fi
5290fi
5291OBJDUMP=$ac_cv_prog_OBJDUMP
5292if test -n "$OBJDUMP"; then
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5294$as_echo "$OBJDUMP" >&6; }
5295else
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297$as_echo "no" >&6; }
5298fi
5299
5300
5301fi
5302if test -z "$ac_cv_prog_OBJDUMP"; then
5303 ac_ct_OBJDUMP=$OBJDUMP
5304 # Extract the first word of "objdump", so it can be a program name with args.
5305set dummy objdump; ac_word=$2
5306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5307$as_echo_n "checking for $ac_word... " >&6; }
5308if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5309 $as_echo_n "(cached) " >&6
5310else
5311 if test -n "$ac_ct_OBJDUMP"; then
5312 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5313else
5314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315for as_dir in $PATH
5316do
5317 IFS=$as_save_IFS
5318 test -z "$as_dir" && as_dir=.
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5321 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5323 break 2
5324 fi
5325done
5326 done
5327IFS=$as_save_IFS
5328
5329fi
5330fi
5331ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5332if test -n "$ac_ct_OBJDUMP"; then
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5334$as_echo "$ac_ct_OBJDUMP" >&6; }
5335else
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337$as_echo "no" >&6; }
5338fi
5339
5340 if test "x$ac_ct_OBJDUMP" = x; then
5341 OBJDUMP="false"
5342 else
5343 case $cross_compiling:$ac_tool_warned in
5344yes:)
5345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5347ac_tool_warned=yes ;;
5348esac
5349 OBJDUMP=$ac_ct_OBJDUMP
5350 fi
5351else
5352 OBJDUMP="$ac_cv_prog_OBJDUMP"
5353fi
5354
5355test -z "$OBJDUMP" && OBJDUMP=objdump
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5366$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5367if ${lt_cv_deplibs_check_method+:} false; then :
5368 $as_echo_n "(cached) " >&6
5369else
5370 lt_cv_file_magic_cmd='$MAGIC_CMD'
5371lt_cv_file_magic_test_file=
5372lt_cv_deplibs_check_method='unknown'
5373# Need to set the preceding variable on all platforms that support
5374# interlibrary dependencies.
5375# 'none' -- dependencies not supported.
5376# `unknown' -- same as none, but documents that we really don't know.
5377# 'pass_all' -- all dependencies passed with no checks.
5378# 'test_compile' -- check by making test program.
5379# 'file_magic [[regex]]' -- check by looking for files in library path
5380# which responds to the $file_magic_cmd with a given extended regex.
5381# If you have `file' or equivalent on your system and you're not sure
5382# whether `pass_all' will *always* work, you probably want this one.
5383
5384case $host_os in
5385aix[4-9]*)
5386 lt_cv_deplibs_check_method=pass_all
5387 ;;
5388
5389beos*)
5390 lt_cv_deplibs_check_method=pass_all
5391 ;;
5392
5393bsdi[45]*)
5394 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5395 lt_cv_file_magic_cmd='/usr/bin/file -L'
5396 lt_cv_file_magic_test_file=/shlib/libc.so
5397 ;;
5398
5399cygwin*)
5400 # func_win32_libid is a shell function defined in ltmain.sh
5401 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5402 lt_cv_file_magic_cmd='func_win32_libid'
5403 ;;
5404
5405mingw* | pw32*)
5406 # Base MSYS/MinGW do not provide the 'file' command needed by
5407 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5408 # unless we find 'file', for example because we are cross-compiling.
5409 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5410 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5411 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5412 lt_cv_file_magic_cmd='func_win32_libid'
5413 else
5414 # Keep this pattern in sync with the one in func_win32_libid.
5415 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5416 lt_cv_file_magic_cmd='$OBJDUMP -f'
5417 fi
5418 ;;
5419
5420cegcc*)
5421 # use the weaker test based on 'objdump'. See mingw*.
5422 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5423 lt_cv_file_magic_cmd='$OBJDUMP -f'
5424 ;;
5425
5426darwin* | rhapsody*)
5427 lt_cv_deplibs_check_method=pass_all
5428 ;;
5429
5430freebsd* | dragonfly*)
5431 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5432 case $host_cpu in
5433 i*86 )
5434 # Not sure whether the presence of OpenBSD here was a mistake.
5435 # Let's accept both of them until this is cleared up.
5436 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5437 lt_cv_file_magic_cmd=/usr/bin/file
5438 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5439 ;;
5440 esac
5441 else
5442 lt_cv_deplibs_check_method=pass_all
5443 fi
5444 ;;
5445
5446gnu*)
5447 lt_cv_deplibs_check_method=pass_all
5448 ;;
5449
5450haiku*)
5451 lt_cv_deplibs_check_method=pass_all
5452 ;;
5453
5454hpux10.20* | hpux11*)
5455 lt_cv_file_magic_cmd=/usr/bin/file
5456 case $host_cpu in
5457 ia64*)
5458 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5459 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5460 ;;
5461 hppa*64*)
5462 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]'
5463 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5464 ;;
5465 *)
5466 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5467 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5468 ;;
5469 esac
5470 ;;
5471
5472interix[3-9]*)
5473 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5474 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5475 ;;
5476
5477irix5* | irix6* | nonstopux*)
5478 case $LD in
5479 *-32|*"-32 ") libmagic=32-bit;;
5480 *-n32|*"-n32 ") libmagic=N32;;
5481 *-64|*"-64 ") libmagic=64-bit;;
5482 *) libmagic=never-match;;
5483 esac
5484 lt_cv_deplibs_check_method=pass_all
5485 ;;
5486
5487# This must be glibc/ELF.
5488linux* | k*bsd*-gnu | kopensolaris*-gnu)
5489 lt_cv_deplibs_check_method=pass_all
5490 ;;
5491
5492netbsd*)
5493 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5494 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5495 else
5496 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5497 fi
5498 ;;
5499
5500newos6*)
5501 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5502 lt_cv_file_magic_cmd=/usr/bin/file
5503 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5504 ;;
5505
5506*nto* | *qnx*)
5507 lt_cv_deplibs_check_method=pass_all
5508 ;;
5509
5510openbsd*)
5511 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5512 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5513 else
5514 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5515 fi
5516 ;;
5517
5518osf3* | osf4* | osf5*)
5519 lt_cv_deplibs_check_method=pass_all
5520 ;;
5521
5522rdos*)
5523 lt_cv_deplibs_check_method=pass_all
5524 ;;
5525
5526solaris*)
5527 lt_cv_deplibs_check_method=pass_all
5528 ;;
5529
5530sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5531 lt_cv_deplibs_check_method=pass_all
5532 ;;
5533
5534sysv4 | sysv4.3*)
5535 case $host_vendor in
5536 motorola)
5537 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]'
5538 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5539 ;;
5540 ncr)
5541 lt_cv_deplibs_check_method=pass_all
5542 ;;
5543 sequent)
5544 lt_cv_file_magic_cmd='/bin/file'
5545 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5546 ;;
5547 sni)
5548 lt_cv_file_magic_cmd='/bin/file'
5549 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5550 lt_cv_file_magic_test_file=/lib/libc.so
5551 ;;
5552 siemens)
5553 lt_cv_deplibs_check_method=pass_all
5554 ;;
5555 pc)
5556 lt_cv_deplibs_check_method=pass_all
5557 ;;
5558 esac
5559 ;;
5560
5561tpf*)
5562 lt_cv_deplibs_check_method=pass_all
5563 ;;
5564esac
5565
5566fi
5567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5568$as_echo "$lt_cv_deplibs_check_method" >&6; }
5569
5570file_magic_glob=
5571want_nocaseglob=no
5572if test "$build" = "$host"; then
5573 case $host_os in
5574 mingw* | pw32*)
5575 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5576 want_nocaseglob=yes
5577 else
5578 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5579 fi
5580 ;;
5581 esac
5582fi
5583
5584file_magic_cmd=$lt_cv_file_magic_cmd
5585deplibs_check_method=$lt_cv_deplibs_check_method
5586test -z "$deplibs_check_method" && deplibs_check_method=unknown
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609if test -n "$ac_tool_prefix"; then
5610 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5611set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5613$as_echo_n "checking for $ac_word... " >&6; }
5614if ${ac_cv_prog_DLLTOOL+:} false; then :
5615 $as_echo_n "(cached) " >&6
5616else
5617 if test -n "$DLLTOOL"; then
5618 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5619else
5620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621for as_dir in $PATH
5622do
5623 IFS=$as_save_IFS
5624 test -z "$as_dir" && as_dir=.
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5627 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 break 2
5630 fi
5631done
5632 done
5633IFS=$as_save_IFS
5634
5635fi
5636fi
5637DLLTOOL=$ac_cv_prog_DLLTOOL
5638if test -n "$DLLTOOL"; then
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5640$as_echo "$DLLTOOL" >&6; }
5641else
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643$as_echo "no" >&6; }
5644fi
5645
5646
5647fi
5648if test -z "$ac_cv_prog_DLLTOOL"; then
5649 ac_ct_DLLTOOL=$DLLTOOL
5650 # Extract the first word of "dlltool", so it can be a program name with args.
5651set dummy dlltool; ac_word=$2
5652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5653$as_echo_n "checking for $ac_word... " >&6; }
5654if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5655 $as_echo_n "(cached) " >&6
5656else
5657 if test -n "$ac_ct_DLLTOOL"; then
5658 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5659else
5660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661for as_dir in $PATH
5662do
5663 IFS=$as_save_IFS
5664 test -z "$as_dir" && as_dir=.
5665 for ac_exec_ext in '' $ac_executable_extensions; do
5666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5667 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5669 break 2
5670 fi
5671done
5672 done
5673IFS=$as_save_IFS
5674
5675fi
5676fi
5677ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5678if test -n "$ac_ct_DLLTOOL"; then
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5680$as_echo "$ac_ct_DLLTOOL" >&6; }
5681else
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683$as_echo "no" >&6; }
5684fi
5685
5686 if test "x$ac_ct_DLLTOOL" = x; then
5687 DLLTOOL="false"
5688 else
5689 case $cross_compiling:$ac_tool_warned in
5690yes:)
5691{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5692$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5693ac_tool_warned=yes ;;
5694esac
5695 DLLTOOL=$ac_ct_DLLTOOL
5696 fi
5697else
5698 DLLTOOL="$ac_cv_prog_DLLTOOL"
5699fi
5700
5701test -z "$DLLTOOL" && DLLTOOL=dlltool
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5713$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5714if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5715 $as_echo_n "(cached) " >&6
5716else
5717 lt_cv_sharedlib_from_linklib_cmd='unknown'
5718
5719case $host_os in
5720cygwin* | mingw* | pw32* | cegcc*)
5721 # two different shell functions defined in ltmain.sh
5722 # decide which to use based on capabilities of $DLLTOOL
5723 case `$DLLTOOL --help 2>&1` in
5724 *--identify-strict*)
5725 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5726 ;;
5727 *)
5728 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5729 ;;
5730 esac
5731 ;;
5732*)
5733 # fallback: assume linklib IS sharedlib
5734 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5735 ;;
5736esac
5737
5738fi
5739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5740$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5741sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5742test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5743
5744
5745
5746
5747
5748
5749
5750if test -n "$ac_tool_prefix"; then
5751 for ac_prog in ar
5752 do
5753 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5754set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5756$as_echo_n "checking for $ac_word... " >&6; }
5757if ${ac_cv_prog_AR+:} false; then :
5758 $as_echo_n "(cached) " >&6
5759else
5760 if test -n "$AR"; then
5761 ac_cv_prog_AR="$AR" # Let the user override the test.
5762else
5763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764for as_dir in $PATH
5765do
5766 IFS=$as_save_IFS
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5770 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5772 break 2
5773 fi
5774done
5775 done
5776IFS=$as_save_IFS
5777
5778fi
5779fi
5780AR=$ac_cv_prog_AR
5781if test -n "$AR"; then
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5783$as_echo "$AR" >&6; }
5784else
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786$as_echo "no" >&6; }
5787fi
5788
5789
5790 test -n "$AR" && break
5791 done
5792fi
5793if test -z "$AR"; then
5794 ac_ct_AR=$AR
5795 for ac_prog in ar
5796do
5797 # Extract the first word of "$ac_prog", so it can be a program name with args.
5798set dummy $ac_prog; ac_word=$2
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5800$as_echo_n "checking for $ac_word... " >&6; }
5801if ${ac_cv_prog_ac_ct_AR+:} false; then :
5802 $as_echo_n "(cached) " >&6
5803else
5804 if test -n "$ac_ct_AR"; then
5805 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5806else
5807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808for as_dir in $PATH
5809do
5810 IFS=$as_save_IFS
5811 test -z "$as_dir" && as_dir=.
5812 for ac_exec_ext in '' $ac_executable_extensions; do
5813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5814 ac_cv_prog_ac_ct_AR="$ac_prog"
5815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5816 break 2
5817 fi
5818done
5819 done
5820IFS=$as_save_IFS
5821
5822fi
5823fi
5824ac_ct_AR=$ac_cv_prog_ac_ct_AR
5825if test -n "$ac_ct_AR"; then
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5827$as_echo "$ac_ct_AR" >&6; }
5828else
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5830$as_echo "no" >&6; }
5831fi
5832
5833
5834 test -n "$ac_ct_AR" && break
5835done
5836
5837 if test "x$ac_ct_AR" = x; then
5838 AR="false"
5839 else
5840 case $cross_compiling:$ac_tool_warned in
5841yes:)
5842{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5844ac_tool_warned=yes ;;
5845esac
5846 AR=$ac_ct_AR
5847 fi
5848fi
5849
5850: ${AR=ar}
5851: ${AR_FLAGS=cru}
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5864$as_echo_n "checking for archiver @FILE support... " >&6; }
5865if ${lt_cv_ar_at_file+:} false; then :
5866 $as_echo_n "(cached) " >&6
5867else
5868 lt_cv_ar_at_file=no
5869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870/* end confdefs.h. */
5871
5872int
5873main ()
5874{
5875
5876 ;
5877 return 0;
5878}
5879_ACEOF
5880if ac_fn_c_try_compile "$LINENO"; then :
5881 echo conftest.$ac_objext > conftest.lst
5882 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5884 (eval $lt_ar_try) 2>&5
5885 ac_status=$?
5886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5887 test $ac_status = 0; }
5888 if test "$ac_status" -eq 0; then
5889 # Ensure the archiver fails upon bogus file names.
5890 rm -f conftest.$ac_objext libconftest.a
5891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5892 (eval $lt_ar_try) 2>&5
5893 ac_status=$?
5894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5895 test $ac_status = 0; }
5896 if test "$ac_status" -ne 0; then
5897 lt_cv_ar_at_file=@
5898 fi
5899 fi
5900 rm -f conftest.* libconftest.a
5901
5902fi
5903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5904
5905fi
5906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5907$as_echo "$lt_cv_ar_at_file" >&6; }
5908
5909if test "x$lt_cv_ar_at_file" = xno; then
5910 archiver_list_spec=
5911else
5912 archiver_list_spec=$lt_cv_ar_at_file
5913fi
5914
5915
5916
5917
5918
5919
5920
5921if test -n "$ac_tool_prefix"; then
5922 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5923set dummy ${ac_tool_prefix}strip; ac_word=$2
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5925$as_echo_n "checking for $ac_word... " >&6; }
5926if ${ac_cv_prog_STRIP+:} false; then :
5927 $as_echo_n "(cached) " >&6
5928else
5929 if test -n "$STRIP"; then
5930 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5931else
5932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933for as_dir in $PATH
5934do
5935 IFS=$as_save_IFS
5936 test -z "$as_dir" && as_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5939 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5941 break 2
5942 fi
5943done
5944 done
5945IFS=$as_save_IFS
5946
5947fi
5948fi
5949STRIP=$ac_cv_prog_STRIP
5950if test -n "$STRIP"; then
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5952$as_echo "$STRIP" >&6; }
5953else
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5955$as_echo "no" >&6; }
5956fi
5957
5958
5959fi
5960if test -z "$ac_cv_prog_STRIP"; then
5961 ac_ct_STRIP=$STRIP
5962 # Extract the first word of "strip", so it can be a program name with args.
5963set dummy strip; ac_word=$2
5964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5965$as_echo_n "checking for $ac_word... " >&6; }
5966if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5967 $as_echo_n "(cached) " >&6
5968else
5969 if test -n "$ac_ct_STRIP"; then
5970 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5971else
5972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973for as_dir in $PATH
5974do
5975 IFS=$as_save_IFS
5976 test -z "$as_dir" && as_dir=.
5977 for ac_exec_ext in '' $ac_executable_extensions; do
5978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5979 ac_cv_prog_ac_ct_STRIP="strip"
5980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 break 2
5982 fi
5983done
5984 done
5985IFS=$as_save_IFS
5986
5987fi
5988fi
5989ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5990if test -n "$ac_ct_STRIP"; then
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5992$as_echo "$ac_ct_STRIP" >&6; }
5993else
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995$as_echo "no" >&6; }
5996fi
5997
5998 if test "x$ac_ct_STRIP" = x; then
5999 STRIP=":"
6000 else
6001 case $cross_compiling:$ac_tool_warned in
6002yes:)
6003{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6005ac_tool_warned=yes ;;
6006esac
6007 STRIP=$ac_ct_STRIP
6008 fi
6009else
6010 STRIP="$ac_cv_prog_STRIP"
6011fi
6012
6013test -z "$STRIP" && STRIP=:
6014
6015
6016
6017
6018
6019
6020if test -n "$ac_tool_prefix"; then
6021 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6022set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6024$as_echo_n "checking for $ac_word... " >&6; }
6025if ${ac_cv_prog_RANLIB+:} false; then :
6026 $as_echo_n "(cached) " >&6
6027else
6028 if test -n "$RANLIB"; then
6029 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6030else
6031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032for as_dir in $PATH
6033do
6034 IFS=$as_save_IFS
6035 test -z "$as_dir" && as_dir=.
6036 for ac_exec_ext in '' $ac_executable_extensions; do
6037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6038 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6040 break 2
6041 fi
6042done
6043 done
6044IFS=$as_save_IFS
6045
6046fi
6047fi
6048RANLIB=$ac_cv_prog_RANLIB
6049if test -n "$RANLIB"; then
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6051$as_echo "$RANLIB" >&6; }
6052else
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6054$as_echo "no" >&6; }
6055fi
6056
6057
6058fi
6059if test -z "$ac_cv_prog_RANLIB"; then
6060 ac_ct_RANLIB=$RANLIB
6061 # Extract the first word of "ranlib", so it can be a program name with args.
6062set dummy ranlib; ac_word=$2
6063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6064$as_echo_n "checking for $ac_word... " >&6; }
6065if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6066 $as_echo_n "(cached) " >&6
6067else
6068 if test -n "$ac_ct_RANLIB"; then
6069 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6070else
6071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072for as_dir in $PATH
6073do
6074 IFS=$as_save_IFS
6075 test -z "$as_dir" && as_dir=.
6076 for ac_exec_ext in '' $ac_executable_extensions; do
6077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6078 ac_cv_prog_ac_ct_RANLIB="ranlib"
6079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 break 2
6081 fi
6082done
6083 done
6084IFS=$as_save_IFS
6085
6086fi
6087fi
6088ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6089if test -n "$ac_ct_RANLIB"; then
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6091$as_echo "$ac_ct_RANLIB" >&6; }
6092else
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6094$as_echo "no" >&6; }
6095fi
6096
6097 if test "x$ac_ct_RANLIB" = x; then
6098 RANLIB=":"
6099 else
6100 case $cross_compiling:$ac_tool_warned in
6101yes:)
6102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6104ac_tool_warned=yes ;;
6105esac
6106 RANLIB=$ac_ct_RANLIB
6107 fi
6108else
6109 RANLIB="$ac_cv_prog_RANLIB"
6110fi
6111
6112test -z "$RANLIB" && RANLIB=:
6113
6114
6115
6116
6117
6118
6119# Determine commands to create old-style static archives.
6120old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6121old_postinstall_cmds='chmod 644 $oldlib'
6122old_postuninstall_cmds=
6123
6124if test -n "$RANLIB"; then
6125 case $host_os in
6126 openbsd*)
6127 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6128 ;;
6129 *)
6130 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6131 ;;
6132 esac
6133 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6134fi
6135
6136case $host_os in
6137 darwin*)
6138 lock_old_archive_extraction=yes ;;
6139 *)
6140 lock_old_archive_extraction=no ;;
6141esac
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181# If no C compiler was specified, use CC.
6182LTCC=${LTCC-"$CC"}
6183
6184# If no C compiler flags were specified, use CFLAGS.
6185LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6186
6187# Allow CC to be a program name with arguments.
6188compiler=$CC
6189
6190
6191# Check for command to grab the raw symbol name followed by C symbol from nm.
6192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6193$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6194if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6195 $as_echo_n "(cached) " >&6
6196else
6197
6198# These are sane defaults that work on at least a few old systems.
6199# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6200
6201# Character class describing NM global symbol codes.
6202symcode='[BCDEGRST]'
6203
6204# Regexp to match symbols that can be accessed directly from C.
6205sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6206
6207# Define system-specific variables.
6208case $host_os in
6209aix*)
6210 symcode='[BCDT]'
6211 ;;
6212cygwin* | mingw* | pw32* | cegcc*)
6213 symcode='[ABCDGISTW]'
6214 ;;
6215hpux*)
6216 if test "$host_cpu" = ia64; then
6217 symcode='[ABCDEGRST]'
6218 fi
6219 ;;
6220irix* | nonstopux*)
6221 symcode='[BCDEGRST]'
6222 ;;
6223osf*)
6224 symcode='[BCDEGQRST]'
6225 ;;
6226solaris*)
6227 symcode='[BDRT]'
6228 ;;
6229sco3.2v5*)
6230 symcode='[DT]'
6231 ;;
6232sysv4.2uw2*)
6233 symcode='[DT]'
6234 ;;
6235sysv5* | sco5v6* | unixware* | OpenUNIX*)
6236 symcode='[ABDT]'
6237 ;;
6238sysv4)
6239 symcode='[DFNSTU]'
6240 ;;
6241esac
6242
6243# If we're using GNU nm, then use its standard symbol codes.
6244case `$NM -V 2>&1` in
6245*GNU* | *'with BFD'*)
6246 symcode='[ABCDGIRSTW]' ;;
6247esac
6248
6249# Transform an extracted symbol line into a proper C declaration.
6250# Some systems (esp. on ia64) link data and code symbols differently,
6251# so use this general approach.
6252lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6253
6254# Transform an extracted symbol line into symbol name and symbol address
6255lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6256lt_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'"
6257
6258# Handle CRLF in mingw tool chain
6259opt_cr=
6260case $build_os in
6261mingw*)
6262 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6263 ;;
6264esac
6265
6266# Try without a prefix underscore, then with it.
6267for ac_symprfx in "" "_"; do
6268
6269 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6270 symxfrm="\\1 $ac_symprfx\\2 \\2"
6271
6272 # Write the raw and C identifiers.
6273 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6274 # Fake it for dumpbin and say T for any non-static function
6275 # and D for any global variable.
6276 # Also find C++ and __fastcall symbols from MSVC++,
6277 # which start with @ or ?.
6278 lt_cv_sys_global_symbol_pipe="$AWK '"\
6279" {last_section=section; section=\$ 3};"\
6280" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6281" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6282" \$ 0!~/External *\|/{next};"\
6283" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6284" {if(hide[section]) next};"\
6285" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6286" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6287" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6288" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6289" ' prfx=^$ac_symprfx"
6290 else
6291 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6292 fi
6293 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6294
6295 # Check to see that the pipe works correctly.
6296 pipe_works=no
6297
6298 rm -f conftest*
6299 cat > conftest.$ac_ext <<_LT_EOF
6300#ifdef __cplusplus
6301extern "C" {
6302#endif
6303char nm_test_var;
6304void nm_test_func(void);
6305void nm_test_func(void){}
6306#ifdef __cplusplus
6307}
6308#endif
6309int main(){nm_test_var='a';nm_test_func();return(0);}
6310_LT_EOF
6311
6312 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6313 (eval $ac_compile) 2>&5
6314 ac_status=$?
6315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6316 test $ac_status = 0; }; then
6317 # Now try to grab the symbols.
6318 nlist=conftest.nm
6319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6320 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6321 ac_status=$?
6322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6323 test $ac_status = 0; } && test -s "$nlist"; then
6324 # Try sorting and uniquifying the output.
6325 if sort "$nlist" | uniq > "$nlist"T; then
6326 mv -f "$nlist"T "$nlist"
6327 else
6328 rm -f "$nlist"T
6329 fi
6330
6331 # Make sure that we snagged all the symbols we need.
6332 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6333 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6334 cat <<_LT_EOF > conftest.$ac_ext
6335/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6336#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6337/* DATA imports from DLLs on WIN32 con't be const, because runtime
6338 relocations are performed -- see ld's documentation on pseudo-relocs. */
6339# define LT_DLSYM_CONST
6340#elif defined(__osf__)
6341/* This system does not cope well with relocations in const data. */
6342# define LT_DLSYM_CONST
6343#else
6344# define LT_DLSYM_CONST const
6345#endif
6346
6347#ifdef __cplusplus
6348extern "C" {
6349#endif
6350
6351_LT_EOF
6352 # Now generate the symbol file.
6353 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6354
6355 cat <<_LT_EOF >> conftest.$ac_ext
6356
6357/* The mapping between symbol names and symbols. */
6358LT_DLSYM_CONST struct {
6359 const char *name;
6360 void *address;
6361}
6362lt__PROGRAM__LTX_preloaded_symbols[] =
6363{
6364 { "@PROGRAM@", (void *) 0 },
6365_LT_EOF
6366 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6367 cat <<\_LT_EOF >> conftest.$ac_ext
6368 {0, (void *) 0}
6369};
6370
6371/* This works around a problem in FreeBSD linker */
6372#ifdef FREEBSD_WORKAROUND
6373static const void *lt_preloaded_setup() {
6374 return lt__PROGRAM__LTX_preloaded_symbols;
6375}
6376#endif
6377
6378#ifdef __cplusplus
6379}
6380#endif
6381_LT_EOF
6382 # Now try linking the two files.
6383 mv conftest.$ac_objext conftstm.$ac_objext
6384 lt_globsym_save_LIBS=$LIBS
6385 lt_globsym_save_CFLAGS=$CFLAGS
6386 LIBS="conftstm.$ac_objext"
6387 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6389 (eval $ac_link) 2>&5
6390 ac_status=$?
6391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6392 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6393 pipe_works=yes
6394 fi
6395 LIBS=$lt_globsym_save_LIBS
6396 CFLAGS=$lt_globsym_save_CFLAGS
6397 else
6398 echo "cannot find nm_test_func in $nlist" >&5
6399 fi
6400 else
6401 echo "cannot find nm_test_var in $nlist" >&5
6402 fi
6403 else
6404 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6405 fi
6406 else
6407 echo "$progname: failed program was:" >&5
6408 cat conftest.$ac_ext >&5
6409 fi
6410 rm -rf conftest* conftst*
6411
6412 # Do not use the global_symbol_pipe unless it works.
6413 if test "$pipe_works" = yes; then
6414 break
6415 else
6416 lt_cv_sys_global_symbol_pipe=
6417 fi
6418done
6419
6420fi
6421
6422if test -z "$lt_cv_sys_global_symbol_pipe"; then
6423 lt_cv_sys_global_symbol_to_cdecl=
6424fi
6425if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6427$as_echo "failed" >&6; }
6428else
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6430$as_echo "ok" >&6; }
6431fi
6432
6433# Response file support.
6434if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6435 nm_file_list_spec='@'
6436elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6437 nm_file_list_spec='@'
6438fi
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6467$as_echo_n "checking for sysroot... " >&6; }
6468
6469# Check whether --with-sysroot was given.
6470if test "${with_sysroot+set}" = set; then :
6471 withval=$with_sysroot;
6472else
6473 with_sysroot=no
6474fi
6475
6476
6477lt_sysroot=
6478case ${with_sysroot} in #(
6479 yes)
6480 if test "$GCC" = yes; then
6481 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6482 fi
6483 ;; #(
6484 /*)
6485 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6486 ;; #(
6487 no|'')
6488 ;; #(
6489 *)
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6491$as_echo "${with_sysroot}" >&6; }
6492 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6493 ;;
6494esac
6495
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6497$as_echo "${lt_sysroot:-no}" >&6; }
6498
6499
6500
6501
6502
6503# Check whether --enable-libtool-lock was given.
6504if test "${enable_libtool_lock+set}" = set; then :
6505 enableval=$enable_libtool_lock;
6506fi
6507
6508test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6509
6510# Some flags need to be propagated to the compiler or linker for good
6511# libtool support.
6512case $host in
6513ia64-*-hpux*)
6514 # Find out which ABI we are using.
6515 echo 'int i;' > conftest.$ac_ext
6516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6517 (eval $ac_compile) 2>&5
6518 ac_status=$?
6519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6520 test $ac_status = 0; }; then
6521 case `/usr/bin/file conftest.$ac_objext` in
6522 *ELF-32*)
6523 HPUX_IA64_MODE="32"
6524 ;;
6525 *ELF-64*)
6526 HPUX_IA64_MODE="64"
6527 ;;
6528 esac
6529 fi
6530 rm -rf conftest*
6531 ;;
6532*-*-irix6*)
6533 # Find out which ABI we are using.
6534 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6536 (eval $ac_compile) 2>&5
6537 ac_status=$?
6538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6539 test $ac_status = 0; }; then
6540 if test "$lt_cv_prog_gnu_ld" = yes; then
6541 case `/usr/bin/file conftest.$ac_objext` in
6542 *32-bit*)
6543 LD="${LD-ld} -melf32bsmip"
6544 ;;
6545 *N32*)
6546 LD="${LD-ld} -melf32bmipn32"
6547 ;;
6548 *64-bit*)
6549 LD="${LD-ld} -melf64bmip"
6550 ;;
6551 esac
6552 else
6553 case `/usr/bin/file conftest.$ac_objext` in
6554 *32-bit*)
6555 LD="${LD-ld} -32"
6556 ;;
6557 *N32*)
6558 LD="${LD-ld} -n32"
6559 ;;
6560 *64-bit*)
6561 LD="${LD-ld} -64"
6562 ;;
6563 esac
6564 fi
6565 fi
6566 rm -rf conftest*
6567 ;;
6568
6569x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6570s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6571 # Find out which ABI we are using.
6572 echo 'int i;' > conftest.$ac_ext
6573 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6574 (eval $ac_compile) 2>&5
6575 ac_status=$?
6576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6577 test $ac_status = 0; }; then
6578 case `/usr/bin/file conftest.o` in
6579 *32-bit*)
6580 case $host in
6581 x86_64-*kfreebsd*-gnu)
6582 LD="${LD-ld} -m elf_i386_fbsd"
6583 ;;
6584 x86_64-*linux*)
6585 LD="${LD-ld} -m elf_i386"
6586 ;;
6587 ppc64-*linux*|powerpc64-*linux*)
6588 LD="${LD-ld} -m elf32ppclinux"
6589 ;;
6590 s390x-*linux*)
6591 LD="${LD-ld} -m elf_s390"
6592 ;;
6593 sparc64-*linux*)
6594 LD="${LD-ld} -m elf32_sparc"
6595 ;;
6596 esac
6597 ;;
6598 *64-bit*)
6599 case $host in
6600 x86_64-*kfreebsd*-gnu)
6601 LD="${LD-ld} -m elf_x86_64_fbsd"
6602 ;;
6603 x86_64-*linux*)
6604 LD="${LD-ld} -m elf_x86_64"
6605 ;;
6606 ppc*-*linux*|powerpc*-*linux*)
6607 LD="${LD-ld} -m elf64ppc"
6608 ;;
6609 s390*-*linux*|s390*-*tpf*)
6610 LD="${LD-ld} -m elf64_s390"
6611 ;;
6612 sparc*-*linux*)
6613 LD="${LD-ld} -m elf64_sparc"
6614 ;;
6615 esac
6616 ;;
6617 esac
6618 fi
6619 rm -rf conftest*
6620 ;;
6621
6622*-*-sco3.2v5*)
6623 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6624 SAVE_CFLAGS="$CFLAGS"
6625 CFLAGS="$CFLAGS -belf"
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6627$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6628if ${lt_cv_cc_needs_belf+:} false; then :
6629 $as_echo_n "(cached) " >&6
6630else
6631 ac_ext=c
6632ac_cpp='$CPP $CPPFLAGS'
6633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6635ac_compiler_gnu=$ac_cv_c_compiler_gnu
6636
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638/* end confdefs.h. */
6639
6640int
6641main ()
6642{
6643
6644 ;
6645 return 0;
6646}
6647_ACEOF
6648if ac_fn_c_try_link "$LINENO"; then :
6649 lt_cv_cc_needs_belf=yes
6650else
6651 lt_cv_cc_needs_belf=no
6652fi
6653rm -f core conftest.err conftest.$ac_objext \
6654 conftest$ac_exeext conftest.$ac_ext
6655 ac_ext=c
6656ac_cpp='$CPP $CPPFLAGS'
6657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6659ac_compiler_gnu=$ac_cv_c_compiler_gnu
6660
6661fi
6662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6663$as_echo "$lt_cv_cc_needs_belf" >&6; }
6664 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6665 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6666 CFLAGS="$SAVE_CFLAGS"
6667 fi
6668 ;;
6669*-*solaris*)
6670 # Find out which ABI we are using.
6671 echo 'int i;' > conftest.$ac_ext
6672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6673 (eval $ac_compile) 2>&5
6674 ac_status=$?
6675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6676 test $ac_status = 0; }; then
6677 case `/usr/bin/file conftest.o` in
6678 *64-bit*)
6679 case $lt_cv_prog_gnu_ld in
6680 yes*)
6681 case $host in
6682 i?86-*-solaris*)
6683 LD="${LD-ld} -m elf_x86_64"
6684 ;;
6685 sparc*-*-solaris*)
6686 LD="${LD-ld} -m elf64_sparc"
6687 ;;
6688 esac
6689 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6690 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6691 LD="${LD-ld}_sol2"
6692 fi
6693 ;;
6694 *)
6695 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6696 LD="${LD-ld} -64"
6697 fi
6698 ;;
6699 esac
6700 ;;
6701 esac
6702 fi
6703 rm -rf conftest*
6704 ;;
6705esac
6706
6707need_locks="$enable_libtool_lock"
6708
6709if test -n "$ac_tool_prefix"; then
6710 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6711set dummy ${ac_tool_prefix}mt; ac_word=$2
6712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6713$as_echo_n "checking for $ac_word... " >&6; }
6714if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6715 $as_echo_n "(cached) " >&6
6716else
6717 if test -n "$MANIFEST_TOOL"; then
6718 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6719else
6720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721for as_dir in $PATH
6722do
6723 IFS=$as_save_IFS
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6727 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 break 2
6730 fi
6731done
6732 done
6733IFS=$as_save_IFS
6734
6735fi
6736fi
6737MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6738if test -n "$MANIFEST_TOOL"; then
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6740$as_echo "$MANIFEST_TOOL" >&6; }
6741else
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743$as_echo "no" >&6; }
6744fi
6745
6746
6747fi
6748if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6749 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6750 # Extract the first word of "mt", so it can be a program name with args.
6751set dummy mt; ac_word=$2
6752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6753$as_echo_n "checking for $ac_word... " >&6; }
6754if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6755 $as_echo_n "(cached) " >&6
6756else
6757 if test -n "$ac_ct_MANIFEST_TOOL"; then
6758 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6759else
6760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761for as_dir in $PATH
6762do
6763 IFS=$as_save_IFS
6764 test -z "$as_dir" && as_dir=.
6765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6767 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6769 break 2
6770 fi
6771done
6772 done
6773IFS=$as_save_IFS
6774
6775fi
6776fi
6777ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6778if test -n "$ac_ct_MANIFEST_TOOL"; then
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6780$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6781else
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6783$as_echo "no" >&6; }
6784fi
6785
6786 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6787 MANIFEST_TOOL=":"
6788 else
6789 case $cross_compiling:$ac_tool_warned in
6790yes:)
6791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6793ac_tool_warned=yes ;;
6794esac
6795 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6796 fi
6797else
6798 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6799fi
6800
6801test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6803$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6804if ${lt_cv_path_mainfest_tool+:} false; then :
6805 $as_echo_n "(cached) " >&6
6806else
6807 lt_cv_path_mainfest_tool=no
6808 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6809 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6810 cat conftest.err >&5
6811 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6812 lt_cv_path_mainfest_tool=yes
6813 fi
6814 rm -f conftest*
6815fi
6816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6817$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6818if test "x$lt_cv_path_mainfest_tool" != xyes; then
6819 MANIFEST_TOOL=:
6820fi
6821
6822
6823
6824
6825
6826
6827 case $host_os in
6828 rhapsody* | darwin*)
6829 if test -n "$ac_tool_prefix"; then
6830 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6831set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6833$as_echo_n "checking for $ac_word... " >&6; }
6834if ${ac_cv_prog_DSYMUTIL+:} false; then :
6835 $as_echo_n "(cached) " >&6
6836else
6837 if test -n "$DSYMUTIL"; then
6838 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6839else
6840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841for as_dir in $PATH
6842do
6843 IFS=$as_save_IFS
6844 test -z "$as_dir" && as_dir=.
6845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6847 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 break 2
6850 fi
6851done
6852 done
6853IFS=$as_save_IFS
6854
6855fi
6856fi
6857DSYMUTIL=$ac_cv_prog_DSYMUTIL
6858if test -n "$DSYMUTIL"; then
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6860$as_echo "$DSYMUTIL" >&6; }
6861else
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863$as_echo "no" >&6; }
6864fi
6865
6866
6867fi
6868if test -z "$ac_cv_prog_DSYMUTIL"; then
6869 ac_ct_DSYMUTIL=$DSYMUTIL
6870 # Extract the first word of "dsymutil", so it can be a program name with args.
6871set dummy dsymutil; ac_word=$2
6872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873$as_echo_n "checking for $ac_word... " >&6; }
6874if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6875 $as_echo_n "(cached) " >&6
6876else
6877 if test -n "$ac_ct_DSYMUTIL"; then
6878 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6879else
6880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881for as_dir in $PATH
6882do
6883 IFS=$as_save_IFS
6884 test -z "$as_dir" && as_dir=.
6885 for ac_exec_ext in '' $ac_executable_extensions; do
6886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6887 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6889 break 2
6890 fi
6891done
6892 done
6893IFS=$as_save_IFS
6894
6895fi
6896fi
6897ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6898if test -n "$ac_ct_DSYMUTIL"; then
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6900$as_echo "$ac_ct_DSYMUTIL" >&6; }
6901else
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903$as_echo "no" >&6; }
6904fi
6905
6906 if test "x$ac_ct_DSYMUTIL" = x; then
6907 DSYMUTIL=":"
6908 else
6909 case $cross_compiling:$ac_tool_warned in
6910yes:)
6911{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6912$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6913ac_tool_warned=yes ;;
6914esac
6915 DSYMUTIL=$ac_ct_DSYMUTIL
6916 fi
6917else
6918 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6919fi
6920
6921 if test -n "$ac_tool_prefix"; then
6922 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6923set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6925$as_echo_n "checking for $ac_word... " >&6; }
6926if ${ac_cv_prog_NMEDIT+:} false; then :
6927 $as_echo_n "(cached) " >&6
6928else
6929 if test -n "$NMEDIT"; then
6930 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6931else
6932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933for as_dir in $PATH
6934do
6935 IFS=$as_save_IFS
6936 test -z "$as_dir" && as_dir=.
6937 for ac_exec_ext in '' $ac_executable_extensions; do
6938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6939 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6941 break 2
6942 fi
6943done
6944 done
6945IFS=$as_save_IFS
6946
6947fi
6948fi
6949NMEDIT=$ac_cv_prog_NMEDIT
6950if test -n "$NMEDIT"; then
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6952$as_echo "$NMEDIT" >&6; }
6953else
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6955$as_echo "no" >&6; }
6956fi
6957
6958
6959fi
6960if test -z "$ac_cv_prog_NMEDIT"; then
6961 ac_ct_NMEDIT=$NMEDIT
6962 # Extract the first word of "nmedit", so it can be a program name with args.
6963set dummy nmedit; ac_word=$2
6964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6965$as_echo_n "checking for $ac_word... " >&6; }
6966if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6967 $as_echo_n "(cached) " >&6
6968else
6969 if test -n "$ac_ct_NMEDIT"; then
6970 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6971else
6972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973for as_dir in $PATH
6974do
6975 IFS=$as_save_IFS
6976 test -z "$as_dir" && as_dir=.
6977 for ac_exec_ext in '' $ac_executable_extensions; do
6978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6979 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6981 break 2
6982 fi
6983done
6984 done
6985IFS=$as_save_IFS
6986
6987fi
6988fi
6989ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6990if test -n "$ac_ct_NMEDIT"; then
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6992$as_echo "$ac_ct_NMEDIT" >&6; }
6993else
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6995$as_echo "no" >&6; }
6996fi
6997
6998 if test "x$ac_ct_NMEDIT" = x; then
6999 NMEDIT=":"
7000 else
7001 case $cross_compiling:$ac_tool_warned in
7002yes:)
7003{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7005ac_tool_warned=yes ;;
7006esac
7007 NMEDIT=$ac_ct_NMEDIT
7008 fi
7009else
7010 NMEDIT="$ac_cv_prog_NMEDIT"
7011fi
7012
7013 if test -n "$ac_tool_prefix"; then
7014 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7015set dummy ${ac_tool_prefix}lipo; ac_word=$2
7016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7017$as_echo_n "checking for $ac_word... " >&6; }
7018if ${ac_cv_prog_LIPO+:} false; then :
7019 $as_echo_n "(cached) " >&6
7020else
7021 if test -n "$LIPO"; then
7022 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7023else
7024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025for as_dir in $PATH
7026do
7027 IFS=$as_save_IFS
7028 test -z "$as_dir" && as_dir=.
7029 for ac_exec_ext in '' $ac_executable_extensions; do
7030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7031 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7033 break 2
7034 fi
7035done
7036 done
7037IFS=$as_save_IFS
7038
7039fi
7040fi
7041LIPO=$ac_cv_prog_LIPO
7042if test -n "$LIPO"; then
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7044$as_echo "$LIPO" >&6; }
7045else
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7047$as_echo "no" >&6; }
7048fi
7049
7050
7051fi
7052if test -z "$ac_cv_prog_LIPO"; then
7053 ac_ct_LIPO=$LIPO
7054 # Extract the first word of "lipo", so it can be a program name with args.
7055set dummy lipo; ac_word=$2
7056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057$as_echo_n "checking for $ac_word... " >&6; }
7058if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7059 $as_echo_n "(cached) " >&6
7060else
7061 if test -n "$ac_ct_LIPO"; then
7062 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7063else
7064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065for as_dir in $PATH
7066do
7067 IFS=$as_save_IFS
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7071 ac_cv_prog_ac_ct_LIPO="lipo"
7072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 break 2
7074 fi
7075done
7076 done
7077IFS=$as_save_IFS
7078
7079fi
7080fi
7081ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7082if test -n "$ac_ct_LIPO"; then
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7084$as_echo "$ac_ct_LIPO" >&6; }
7085else
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7087$as_echo "no" >&6; }
7088fi
7089
7090 if test "x$ac_ct_LIPO" = x; then
7091 LIPO=":"
7092 else
7093 case $cross_compiling:$ac_tool_warned in
7094yes:)
7095{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7096$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7097ac_tool_warned=yes ;;
7098esac
7099 LIPO=$ac_ct_LIPO
7100 fi
7101else
7102 LIPO="$ac_cv_prog_LIPO"
7103fi
7104
7105 if test -n "$ac_tool_prefix"; then
7106 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7107set dummy ${ac_tool_prefix}otool; ac_word=$2
7108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7109$as_echo_n "checking for $ac_word... " >&6; }
7110if ${ac_cv_prog_OTOOL+:} false; then :
7111 $as_echo_n "(cached) " >&6
7112else
7113 if test -n "$OTOOL"; then
7114 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7115else
7116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117for as_dir in $PATH
7118do
7119 IFS=$as_save_IFS
7120 test -z "$as_dir" && as_dir=.
7121 for ac_exec_ext in '' $ac_executable_extensions; do
7122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7123 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7125 break 2
7126 fi
7127done
7128 done
7129IFS=$as_save_IFS
7130
7131fi
7132fi
7133OTOOL=$ac_cv_prog_OTOOL
7134if test -n "$OTOOL"; then
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7136$as_echo "$OTOOL" >&6; }
7137else
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7139$as_echo "no" >&6; }
7140fi
7141
7142
7143fi
7144if test -z "$ac_cv_prog_OTOOL"; then
7145 ac_ct_OTOOL=$OTOOL
7146 # Extract the first word of "otool", so it can be a program name with args.
7147set dummy otool; ac_word=$2
7148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7149$as_echo_n "checking for $ac_word... " >&6; }
7150if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7151 $as_echo_n "(cached) " >&6
7152else
7153 if test -n "$ac_ct_OTOOL"; then
7154 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7155else
7156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157for as_dir in $PATH
7158do
7159 IFS=$as_save_IFS
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7163 ac_cv_prog_ac_ct_OTOOL="otool"
7164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 break 2
7166 fi
7167done
7168 done
7169IFS=$as_save_IFS
7170
7171fi
7172fi
7173ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7174if test -n "$ac_ct_OTOOL"; then
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7176$as_echo "$ac_ct_OTOOL" >&6; }
7177else
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179$as_echo "no" >&6; }
7180fi
7181
7182 if test "x$ac_ct_OTOOL" = x; then
7183 OTOOL=":"
7184 else
7185 case $cross_compiling:$ac_tool_warned in
7186yes:)
7187{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7188$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7189ac_tool_warned=yes ;;
7190esac
7191 OTOOL=$ac_ct_OTOOL
7192 fi
7193else
7194 OTOOL="$ac_cv_prog_OTOOL"
7195fi
7196
7197 if test -n "$ac_tool_prefix"; then
7198 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7199set dummy ${ac_tool_prefix}otool64; ac_word=$2
7200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7201$as_echo_n "checking for $ac_word... " >&6; }
7202if ${ac_cv_prog_OTOOL64+:} false; then :
7203 $as_echo_n "(cached) " >&6
7204else
7205 if test -n "$OTOOL64"; then
7206 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7207else
7208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209for as_dir in $PATH
7210do
7211 IFS=$as_save_IFS
7212 test -z "$as_dir" && as_dir=.
7213 for ac_exec_ext in '' $ac_executable_extensions; do
7214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7215 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7217 break 2
7218 fi
7219done
7220 done
7221IFS=$as_save_IFS
7222
7223fi
7224fi
7225OTOOL64=$ac_cv_prog_OTOOL64
7226if test -n "$OTOOL64"; then
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7228$as_echo "$OTOOL64" >&6; }
7229else
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7231$as_echo "no" >&6; }
7232fi
7233
7234
7235fi
7236if test -z "$ac_cv_prog_OTOOL64"; then
7237 ac_ct_OTOOL64=$OTOOL64
7238 # Extract the first word of "otool64", so it can be a program name with args.
7239set dummy otool64; ac_word=$2
7240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7241$as_echo_n "checking for $ac_word... " >&6; }
7242if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7243 $as_echo_n "(cached) " >&6
7244else
7245 if test -n "$ac_ct_OTOOL64"; then
7246 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7247else
7248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249for as_dir in $PATH
7250do
7251 IFS=$as_save_IFS
7252 test -z "$as_dir" && as_dir=.
7253 for ac_exec_ext in '' $ac_executable_extensions; do
7254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7255 ac_cv_prog_ac_ct_OTOOL64="otool64"
7256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7257 break 2
7258 fi
7259done
7260 done
7261IFS=$as_save_IFS
7262
7263fi
7264fi
7265ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7266if test -n "$ac_ct_OTOOL64"; then
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7268$as_echo "$ac_ct_OTOOL64" >&6; }
7269else
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271$as_echo "no" >&6; }
7272fi
7273
7274 if test "x$ac_ct_OTOOL64" = x; then
7275 OTOOL64=":"
7276 else
7277 case $cross_compiling:$ac_tool_warned in
7278yes:)
7279{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7280$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7281ac_tool_warned=yes ;;
7282esac
7283 OTOOL64=$ac_ct_OTOOL64
7284 fi
7285else
7286 OTOOL64="$ac_cv_prog_OTOOL64"
7287fi
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7316$as_echo_n "checking for -single_module linker flag... " >&6; }
7317if ${lt_cv_apple_cc_single_mod+:} false; then :
7318 $as_echo_n "(cached) " >&6
7319else
7320 lt_cv_apple_cc_single_mod=no
7321 if test -z "${LT_MULTI_MODULE}"; then
7322 # By default we will add the -single_module flag. You can override
7323 # by either setting the environment variable LT_MULTI_MODULE
7324 # non-empty at configure time, or by adding -multi_module to the
7325 # link flags.
7326 rm -rf libconftest.dylib*
7327 echo "int foo(void){return 1;}" > conftest.c
7328 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7329-dynamiclib -Wl,-single_module conftest.c" >&5
7330 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7331 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7332 _lt_result=$?
7333 # If there is a non-empty error log, and "single_module"
7334 # appears in it, assume the flag caused a linker warning
7335 if test -s conftest.err && $GREP single_module conftest.err; then
7336 cat conftest.err >&5
7337 # Otherwise, if the output was created with a 0 exit code from
7338 # the compiler, it worked.
7339 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7340 lt_cv_apple_cc_single_mod=yes
7341 else
7342 cat conftest.err >&5
7343 fi
7344 rm -rf libconftest.dylib*
7345 rm -f conftest.*
7346 fi
7347fi
7348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7349$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7350
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7352$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7353if ${lt_cv_ld_exported_symbols_list+:} false; then :
7354 $as_echo_n "(cached) " >&6
7355else
7356 lt_cv_ld_exported_symbols_list=no
7357 save_LDFLAGS=$LDFLAGS
7358 echo "_main" > conftest.sym
7359 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361/* end confdefs.h. */
7362
7363int
7364main ()
7365{
7366
7367 ;
7368 return 0;
7369}
7370_ACEOF
7371if ac_fn_c_try_link "$LINENO"; then :
7372 lt_cv_ld_exported_symbols_list=yes
7373else
7374 lt_cv_ld_exported_symbols_list=no
7375fi
7376rm -f core conftest.err conftest.$ac_objext \
7377 conftest$ac_exeext conftest.$ac_ext
7378 LDFLAGS="$save_LDFLAGS"
7379
7380fi
7381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7382$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7383
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7385$as_echo_n "checking for -force_load linker flag... " >&6; }
7386if ${lt_cv_ld_force_load+:} false; then :
7387 $as_echo_n "(cached) " >&6
7388else
7389 lt_cv_ld_force_load=no
7390 cat > conftest.c << _LT_EOF
7391int forced_loaded() { return 2;}
7392_LT_EOF
7393 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7394 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7395 echo "$AR cru libconftest.a conftest.o" >&5
7396 $AR cru libconftest.a conftest.o 2>&5
7397 echo "$RANLIB libconftest.a" >&5
7398 $RANLIB libconftest.a 2>&5
7399 cat > conftest.c << _LT_EOF
7400int main() { return 0;}
7401_LT_EOF
7402 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7403 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7404 _lt_result=$?
7405 if test -s conftest.err && $GREP force_load conftest.err; then
7406 cat conftest.err >&5
7407 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7408 lt_cv_ld_force_load=yes
7409 else
7410 cat conftest.err >&5
7411 fi
7412 rm -f conftest.err libconftest.a conftest conftest.c
7413 rm -rf conftest.dSYM
7414
7415fi
7416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7417$as_echo "$lt_cv_ld_force_load" >&6; }
7418 case $host_os in
7419 rhapsody* | darwin1.[012])
7420 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7421 darwin1.*)
7422 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7423 darwin*) # darwin 5.x on
7424 # if running on 10.5 or later, the deployment target defaults
7425 # to the OS version, if on x86, and 10.4, the deployment
7426 # target defaults to 10.4. Don't you love it?
7427 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7428 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7429 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7430 10.[012]*)
7431 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7432 10.*)
7433 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7434 esac
7435 ;;
7436 esac
7437 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7438 _lt_dar_single_mod='$single_module'
7439 fi
7440 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7441 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7442 else
7443 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7444 fi
7445 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7446 _lt_dsymutil='~$DSYMUTIL $lib || :'
7447 else
7448 _lt_dsymutil=
7449 fi
7450 ;;
7451 esac
7452
7453ac_ext=c
7454ac_cpp='$CPP $CPPFLAGS'
7455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7457ac_compiler_gnu=$ac_cv_c_compiler_gnu
7458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7459$as_echo_n "checking how to run the C preprocessor... " >&6; }
7460# On Suns, sometimes $CPP names a directory.
7461if test -n "$CPP" && test -d "$CPP"; then
7462 CPP=
7463fi
7464if test -z "$CPP"; then
7465 if ${ac_cv_prog_CPP+:} false; then :
7466 $as_echo_n "(cached) " >&6
7467else
7468 # Double quotes because CPP needs to be expanded
7469 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7470 do
7471 ac_preproc_ok=false
7472for ac_c_preproc_warn_flag in '' yes
7473do
7474 # Use a header file that comes with gcc, so configuring glibc
7475 # with a fresh cross-compiler works.
7476 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7477 # <limits.h> exists even on freestanding compilers.
7478 # On the NeXT, cc -E runs the code through the compiler's parser,
7479 # not just through cpp. "Syntax error" is here to catch this case.
7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481/* end confdefs.h. */
7482#ifdef __STDC__
7483# include <limits.h>
7484#else
7485# include <assert.h>
7486#endif
7487 Syntax error
7488_ACEOF
7489if ac_fn_c_try_cpp "$LINENO"; then :
7490
7491else
7492 # Broken: fails on valid input.
7493continue
7494fi
7495rm -f conftest.err conftest.i conftest.$ac_ext
7496
7497 # OK, works on sane cases. Now check whether nonexistent headers
7498 # can be detected and how.
7499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7500/* end confdefs.h. */
7501#include <ac_nonexistent.h>
7502_ACEOF
7503if ac_fn_c_try_cpp "$LINENO"; then :
7504 # Broken: success on invalid input.
7505continue
7506else
7507 # Passes both tests.
7508ac_preproc_ok=:
7509break
7510fi
7511rm -f conftest.err conftest.i conftest.$ac_ext
7512
7513done
7514# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7515rm -f conftest.i conftest.err conftest.$ac_ext
7516if $ac_preproc_ok; then :
7517 break
7518fi
7519
7520 done
7521 ac_cv_prog_CPP=$CPP
7522
7523fi
7524 CPP=$ac_cv_prog_CPP
7525else
7526 ac_cv_prog_CPP=$CPP
7527fi
7528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7529$as_echo "$CPP" >&6; }
7530ac_preproc_ok=false
7531for ac_c_preproc_warn_flag in '' yes
7532do
7533 # Use a header file that comes with gcc, so configuring glibc
7534 # with a fresh cross-compiler works.
7535 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7536 # <limits.h> exists even on freestanding compilers.
7537 # On the NeXT, cc -E runs the code through the compiler's parser,
7538 # not just through cpp. "Syntax error" is here to catch this case.
7539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7540/* end confdefs.h. */
7541#ifdef __STDC__
7542# include <limits.h>
7543#else
7544# include <assert.h>
7545#endif
7546 Syntax error
7547_ACEOF
7548if ac_fn_c_try_cpp "$LINENO"; then :
7549
7550else
7551 # Broken: fails on valid input.
7552continue
7553fi
7554rm -f conftest.err conftest.i conftest.$ac_ext
7555
7556 # OK, works on sane cases. Now check whether nonexistent headers
7557 # can be detected and how.
7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559/* end confdefs.h. */
7560#include <ac_nonexistent.h>
7561_ACEOF
7562if ac_fn_c_try_cpp "$LINENO"; then :
7563 # Broken: success on invalid input.
7564continue
7565else
7566 # Passes both tests.
7567ac_preproc_ok=:
7568break
7569fi
7570rm -f conftest.err conftest.i conftest.$ac_ext
7571
7572done
7573# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7574rm -f conftest.i conftest.err conftest.$ac_ext
7575if $ac_preproc_ok; then :
7576
7577else
7578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7580as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7581See \`config.log' for more details" "$LINENO" 5; }
7582fi
7583
7584ac_ext=c
7585ac_cpp='$CPP $CPPFLAGS'
7586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7588ac_compiler_gnu=$ac_cv_c_compiler_gnu
7589
7590
7591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7592$as_echo_n "checking for ANSI C header files... " >&6; }
7593if ${ac_cv_header_stdc+:} false; then :
7594 $as_echo_n "(cached) " >&6
7595else
7596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597/* end confdefs.h. */
7598#include <stdlib.h>
7599#include <stdarg.h>
7600#include <string.h>
7601#include <float.h>
7602
7603int
7604main ()
7605{
7606
7607 ;
7608 return 0;
7609}
7610_ACEOF
7611if ac_fn_c_try_compile "$LINENO"; then :
7612 ac_cv_header_stdc=yes
7613else
7614 ac_cv_header_stdc=no
7615fi
7616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7617
7618if test $ac_cv_header_stdc = yes; then
7619 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7621/* end confdefs.h. */
7622#include <string.h>
7623
7624_ACEOF
7625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7626 $EGREP "memchr" >/dev/null 2>&1; then :
7627
7628else
7629 ac_cv_header_stdc=no
7630fi
7631rm -f conftest*
7632
7633fi
7634
7635if test $ac_cv_header_stdc = yes; then
7636 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638/* end confdefs.h. */
7639#include <stdlib.h>
7640
7641_ACEOF
7642if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7643 $EGREP "free" >/dev/null 2>&1; then :
7644
7645else
7646 ac_cv_header_stdc=no
7647fi
7648rm -f conftest*
7649
7650fi
7651
7652if test $ac_cv_header_stdc = yes; then
7653 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7654 if test "$cross_compiling" = yes; then :
7655 :
7656else
7657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7658/* end confdefs.h. */
7659#include <ctype.h>
7660#include <stdlib.h>
7661#if ((' ' & 0x0FF) == 0x020)
7662# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7663# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7664#else
7665# define ISLOWER(c) \
7666 (('a' <= (c) && (c) <= 'i') \
7667 || ('j' <= (c) && (c) <= 'r') \
7668 || ('s' <= (c) && (c) <= 'z'))
7669# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7670#endif
7671
7672#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7673int
7674main ()
7675{
7676 int i;
7677 for (i = 0; i < 256; i++)
7678 if (XOR (islower (i), ISLOWER (i))
7679 || toupper (i) != TOUPPER (i))
7680 return 2;
7681 return 0;
7682}
7683_ACEOF
7684if ac_fn_c_try_run "$LINENO"; then :
7685
7686else
7687 ac_cv_header_stdc=no
7688fi
7689rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7690 conftest.$ac_objext conftest.beam conftest.$ac_ext
7691fi
7692
7693fi
7694fi
7695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7696$as_echo "$ac_cv_header_stdc" >&6; }
7697if test $ac_cv_header_stdc = yes; then
7698
7699$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7700
7701fi
7702
7703# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7704for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7705 inttypes.h stdint.h unistd.h
7706do :
7707 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7708ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7709"
7710if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7711 cat >>confdefs.h <<_ACEOF
7712#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7713_ACEOF
7714
7715fi
7716
7717done
7718
7719
7720for ac_header in dlfcn.h
7721do :
7722 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7723"
7724if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7725 cat >>confdefs.h <<_ACEOF
7726#define HAVE_DLFCN_H 1
7727_ACEOF
7728
7729fi
7730
7731done
7732
7733
7734
7735
7736
7737# Set options
7738
7739
7740
7741 enable_dlopen=no
7742
7743
7744 enable_win32_dll=no
7745
7746
7747 # Check whether --enable-shared was given.
7748if test "${enable_shared+set}" = set; then :
7749 enableval=$enable_shared; p=${PACKAGE-default}
7750 case $enableval in
7751 yes) enable_shared=yes ;;
7752 no) enable_shared=no ;;
7753 *)
7754 enable_shared=no
7755 # Look at the argument we got. We use all the common list separators.
7756 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7757 for pkg in $enableval; do
7758 IFS="$lt_save_ifs"
7759 if test "X$pkg" = "X$p"; then
7760 enable_shared=yes
7761 fi
7762 done
7763 IFS="$lt_save_ifs"
7764 ;;
7765 esac
7766else
7767 enable_shared=yes
7768fi
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778 # Check whether --enable-static was given.
7779if test "${enable_static+set}" = set; then :
7780 enableval=$enable_static; p=${PACKAGE-default}
7781 case $enableval in
7782 yes) enable_static=yes ;;
7783 no) enable_static=no ;;
7784 *)
7785 enable_static=no
7786 # Look at the argument we got. We use all the common list separators.
7787 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7788 for pkg in $enableval; do
7789 IFS="$lt_save_ifs"
7790 if test "X$pkg" = "X$p"; then
7791 enable_static=yes
7792 fi
7793 done
7794 IFS="$lt_save_ifs"
7795 ;;
7796 esac
7797else
7798 enable_static=yes
7799fi
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810# Check whether --with-pic was given.
7811if test "${with_pic+set}" = set; then :
7812 withval=$with_pic; lt_p=${PACKAGE-default}
7813 case $withval in
7814 yes|no) pic_mode=$withval ;;
7815 *)
7816 pic_mode=default
7817 # Look at the argument we got. We use all the common list separators.
7818 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7819 for lt_pkg in $withval; do
7820 IFS="$lt_save_ifs"
7821 if test "X$lt_pkg" = "X$lt_p"; then
7822 pic_mode=yes
7823 fi
7824 done
7825 IFS="$lt_save_ifs"
7826 ;;
7827 esac
7828else
7829 pic_mode=default
7830fi
7831
7832
7833test -z "$pic_mode" && pic_mode=default
7834
7835
7836
7837
7838
7839
7840
7841 # Check whether --enable-fast-install was given.
7842if test "${enable_fast_install+set}" = set; then :
7843 enableval=$enable_fast_install; p=${PACKAGE-default}
7844 case $enableval in
7845 yes) enable_fast_install=yes ;;
7846 no) enable_fast_install=no ;;
7847 *)
7848 enable_fast_install=no
7849 # Look at the argument we got. We use all the common list separators.
7850 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7851 for pkg in $enableval; do
7852 IFS="$lt_save_ifs"
7853 if test "X$pkg" = "X$p"; then
7854 enable_fast_install=yes
7855 fi
7856 done
7857 IFS="$lt_save_ifs"
7858 ;;
7859 esac
7860else
7861 enable_fast_install=yes
7862fi
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874# This can be used to rebuild libtool when needed
7875LIBTOOL_DEPS="$ltmain"
7876
7877# Always use our own libtool.
7878LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909test -z "$LN_S" && LN_S="ln -s"
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924if test -n "${ZSH_VERSION+set}" ; then
7925 setopt NO_GLOB_SUBST
7926fi
7927
7928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7929$as_echo_n "checking for objdir... " >&6; }
7930if ${lt_cv_objdir+:} false; then :
7931 $as_echo_n "(cached) " >&6
7932else
7933 rm -f .libs 2>/dev/null
7934mkdir .libs 2>/dev/null
7935if test -d .libs; then
7936 lt_cv_objdir=.libs
7937else
7938 # MS-DOS does not allow filenames that begin with a dot.
7939 lt_cv_objdir=_libs
7940fi
7941rmdir .libs 2>/dev/null
7942fi
7943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7944$as_echo "$lt_cv_objdir" >&6; }
7945objdir=$lt_cv_objdir
7946
7947
7948
7949
7950
7951cat >>confdefs.h <<_ACEOF
7952#define LT_OBJDIR "$lt_cv_objdir/"
7953_ACEOF
7954
7955
7956
7957
7958case $host_os in
7959aix3*)
7960 # AIX sometimes has problems with the GCC collect2 program. For some
7961 # reason, if we set the COLLECT_NAMES environment variable, the problems
7962 # vanish in a puff of smoke.
7963 if test "X${COLLECT_NAMES+set}" != Xset; then
7964 COLLECT_NAMES=
7965 export COLLECT_NAMES
7966 fi
7967 ;;
7968esac
7969
7970# Global variables:
7971ofile=libtool
7972can_build_shared=yes
7973
7974# All known linkers require a `.a' archive for static linking (except MSVC,
7975# which needs '.lib').
7976libext=a
7977
7978with_gnu_ld="$lt_cv_prog_gnu_ld"
7979
7980old_CC="$CC"
7981old_CFLAGS="$CFLAGS"
7982
7983# Set sane defaults for various variables
7984test -z "$CC" && CC=cc
7985test -z "$LTCC" && LTCC=$CC
7986test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7987test -z "$LD" && LD=ld
7988test -z "$ac_objext" && ac_objext=o
7989
7990for cc_temp in $compiler""; do
7991 case $cc_temp in
7992 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7993 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7994 \-*) ;;
7995 *) break;;
7996 esac
7997done
7998cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7999
8000
8001# Only perform the check for file, if the check method requires it
8002test -z "$MAGIC_CMD" && MAGIC_CMD=file
8003case $deplibs_check_method in
8004file_magic*)
8005 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8007$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8008if ${lt_cv_path_MAGIC_CMD+:} false; then :
8009 $as_echo_n "(cached) " >&6
8010else
8011 case $MAGIC_CMD in
8012[\\/*] | ?:[\\/]*)
8013 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8014 ;;
8015*)
8016 lt_save_MAGIC_CMD="$MAGIC_CMD"
8017 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8018 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8019 for ac_dir in $ac_dummy; do
8020 IFS="$lt_save_ifs"
8021 test -z "$ac_dir" && ac_dir=.
8022 if test -f $ac_dir/${ac_tool_prefix}file; then
8023 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8024 if test -n "$file_magic_test_file"; then
8025 case $deplibs_check_method in
8026 "file_magic "*)
8027 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8028 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8029 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8030 $EGREP "$file_magic_regex" > /dev/null; then
8031 :
8032 else
8033 cat <<_LT_EOF 1>&2
8034
8035*** Warning: the command libtool uses to detect shared libraries,
8036*** $file_magic_cmd, produces output that libtool cannot recognize.
8037*** The result is that libtool may fail to recognize shared libraries
8038*** as such. This will affect the creation of libtool libraries that
8039*** depend on shared libraries, but programs linked with such libtool
8040*** libraries will work regardless of this problem. Nevertheless, you
8041*** may want to report the problem to your system manager and/or to
8042*** bug-libtool@gnu.org
8043
8044_LT_EOF
8045 fi ;;
8046 esac
8047 fi
8048 break
8049 fi
8050 done
8051 IFS="$lt_save_ifs"
8052 MAGIC_CMD="$lt_save_MAGIC_CMD"
8053 ;;
8054esac
8055fi
8056
8057MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8058if test -n "$MAGIC_CMD"; then
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8060$as_echo "$MAGIC_CMD" >&6; }
8061else
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8063$as_echo "no" >&6; }
8064fi
8065
8066
8067
8068
8069
8070if test -z "$lt_cv_path_MAGIC_CMD"; then
8071 if test -n "$ac_tool_prefix"; then
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8073$as_echo_n "checking for file... " >&6; }
8074if ${lt_cv_path_MAGIC_CMD+:} false; then :
8075 $as_echo_n "(cached) " >&6
8076else
8077 case $MAGIC_CMD in
8078[\\/*] | ?:[\\/]*)
8079 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8080 ;;
8081*)
8082 lt_save_MAGIC_CMD="$MAGIC_CMD"
8083 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8084 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8085 for ac_dir in $ac_dummy; do
8086 IFS="$lt_save_ifs"
8087 test -z "$ac_dir" && ac_dir=.
8088 if test -f $ac_dir/file; then
8089 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8090 if test -n "$file_magic_test_file"; then
8091 case $deplibs_check_method in
8092 "file_magic "*)
8093 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8094 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8095 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8096 $EGREP "$file_magic_regex" > /dev/null; then
8097 :
8098 else
8099 cat <<_LT_EOF 1>&2
8100
8101*** Warning: the command libtool uses to detect shared libraries,
8102*** $file_magic_cmd, produces output that libtool cannot recognize.
8103*** The result is that libtool may fail to recognize shared libraries
8104*** as such. This will affect the creation of libtool libraries that
8105*** depend on shared libraries, but programs linked with such libtool
8106*** libraries will work regardless of this problem. Nevertheless, you
8107*** may want to report the problem to your system manager and/or to
8108*** bug-libtool@gnu.org
8109
8110_LT_EOF
8111 fi ;;
8112 esac
8113 fi
8114 break
8115 fi
8116 done
8117 IFS="$lt_save_ifs"
8118 MAGIC_CMD="$lt_save_MAGIC_CMD"
8119 ;;
8120esac
8121fi
8122
8123MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8124if test -n "$MAGIC_CMD"; then
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8126$as_echo "$MAGIC_CMD" >&6; }
8127else
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8129$as_echo "no" >&6; }
8130fi
8131
8132
8133 else
8134 MAGIC_CMD=:
8135 fi
8136fi
8137
8138 fi
8139 ;;
8140esac
8141
8142# Use C for the default configuration in the libtool script
8143
8144lt_save_CC="$CC"
8145ac_ext=c
8146ac_cpp='$CPP $CPPFLAGS'
8147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8149ac_compiler_gnu=$ac_cv_c_compiler_gnu
8150
8151
8152# Source file extension for C test sources.
8153ac_ext=c
8154
8155# Object file extension for compiled C test sources.
8156objext=o
8157objext=$objext
8158
8159# Code to be used in simple compile tests
8160lt_simple_compile_test_code="int some_variable = 0;"
8161
8162# Code to be used in simple link tests
8163lt_simple_link_test_code='int main(){return(0);}'
8164
8165
8166
8167
8168
8169
8170
8171# If no C compiler was specified, use CC.
8172LTCC=${LTCC-"$CC"}
8173
8174# If no C compiler flags were specified, use CFLAGS.
8175LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8176
8177# Allow CC to be a program name with arguments.
8178compiler=$CC
8179
8180# Save the default compiler, since it gets overwritten when the other
8181# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8182compiler_DEFAULT=$CC
8183
8184# save warnings/boilerplate of simple test code
8185ac_outfile=conftest.$ac_objext
8186echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8187eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8188_lt_compiler_boilerplate=`cat conftest.err`
8189$RM conftest*
8190
8191ac_outfile=conftest.$ac_objext
8192echo "$lt_simple_link_test_code" >conftest.$ac_ext
8193eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8194_lt_linker_boilerplate=`cat conftest.err`
8195$RM -r conftest*
8196
8197
8198if test -n "$compiler"; then
8199
8200lt_prog_compiler_no_builtin_flag=
8201
8202if test "$GCC" = yes; then
8203 case $cc_basename in
8204 nvcc*)
8205 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8206 *)
8207 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8208 esac
8209
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8211$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8212if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8213 $as_echo_n "(cached) " >&6
8214else
8215 lt_cv_prog_compiler_rtti_exceptions=no
8216 ac_outfile=conftest.$ac_objext
8217 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8218 lt_compiler_flag="-fno-rtti -fno-exceptions"
8219 # Insert the option either (1) after the last *FLAGS variable, or
8220 # (2) before a word containing "conftest.", or (3) at the end.
8221 # Note that $ac_compile itself does not contain backslashes and begins
8222 # with a dollar sign (not a hyphen), so the echo should work correctly.
8223 # The option is referenced via a variable to avoid confusing sed.
8224 lt_compile=`echo "$ac_compile" | $SED \
8225 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8226 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8227 -e 's:$: $lt_compiler_flag:'`
8228 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8229 (eval "$lt_compile" 2>conftest.err)
8230 ac_status=$?
8231 cat conftest.err >&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 if (exit $ac_status) && test -s "$ac_outfile"; then
8234 # The compiler can only warn and ignore the option if not recognized
8235 # So say no if there are warnings other than the usual output.
8236 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8237 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8238 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8239 lt_cv_prog_compiler_rtti_exceptions=yes
8240 fi
8241 fi
8242 $RM conftest*
8243
8244fi
8245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8246$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8247
8248if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8249 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8250else
8251 :
8252fi
8253
8254fi
8255
8256
8257
8258
8259
8260
8261 lt_prog_compiler_wl=
8262lt_prog_compiler_pic=
8263lt_prog_compiler_static=
8264
8265
8266 if test "$GCC" = yes; then
8267 lt_prog_compiler_wl='-Wl,'
8268 lt_prog_compiler_static='-static'
8269
8270 case $host_os in
8271 aix*)
8272 # All AIX code is PIC.
8273 if test "$host_cpu" = ia64; then
8274 # AIX 5 now supports IA64 processor
8275 lt_prog_compiler_static='-Bstatic'
8276 fi
8277 ;;
8278
8279 amigaos*)
8280 case $host_cpu in
8281 powerpc)
8282 # see comment about AmigaOS4 .so support
8283 lt_prog_compiler_pic='-fPIC'
8284 ;;
8285 m68k)
8286 # FIXME: we need at least 68020 code to build shared libraries, but
8287 # adding the `-m68020' flag to GCC prevents building anything better,
8288 # like `-m68040'.
8289 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8290 ;;
8291 esac
8292 ;;
8293
8294 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8295 # PIC is the default for these OSes.
8296 ;;
8297
8298 mingw* | cygwin* | pw32* | os2* | cegcc*)
8299 # This hack is so that the source file can tell whether it is being
8300 # built for inclusion in a dll (and should export symbols for example).
8301 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8302 # (--disable-auto-import) libraries
8303 lt_prog_compiler_pic='-DDLL_EXPORT'
8304 ;;
8305
8306 darwin* | rhapsody*)
8307 # PIC is the default on this platform
8308 # Common symbols not allowed in MH_DYLIB files
8309 lt_prog_compiler_pic='-fno-common'
8310 ;;
8311
8312 haiku*)
8313 # PIC is the default for Haiku.
8314 # The "-static" flag exists, but is broken.
8315 lt_prog_compiler_static=
8316 ;;
8317
8318 hpux*)
8319 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8320 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8321 # sets the default TLS model and affects inlining.
8322 case $host_cpu in
8323 hppa*64*)
8324 # +Z the default
8325 ;;
8326 *)
8327 lt_prog_compiler_pic='-fPIC'
8328 ;;
8329 esac
8330 ;;
8331
8332 interix[3-9]*)
8333 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8334 # Instead, we relocate shared libraries at runtime.
8335 ;;
8336
8337 msdosdjgpp*)
8338 # Just because we use GCC doesn't mean we suddenly get shared libraries
8339 # on systems that don't support them.
8340 lt_prog_compiler_can_build_shared=no
8341 enable_shared=no
8342 ;;
8343
8344 *nto* | *qnx*)
8345 # QNX uses GNU C++, but need to define -shared option too, otherwise
8346 # it will coredump.
8347 lt_prog_compiler_pic='-fPIC -shared'
8348 ;;
8349
8350 sysv4*MP*)
8351 if test -d /usr/nec; then
8352 lt_prog_compiler_pic=-Kconform_pic
8353 fi
8354 ;;
8355
8356 *)
8357 lt_prog_compiler_pic='-fPIC'
8358 ;;
8359 esac
8360
8361 case $cc_basename in
8362 nvcc*) # Cuda Compiler Driver 2.2
8363 lt_prog_compiler_wl='-Xlinker '
8364 if test -n "$lt_prog_compiler_pic"; then
8365 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8366 fi
8367 ;;
8368 esac
8369 else
8370 # PORTME Check for flag to pass linker flags through the system compiler.
8371 case $host_os in
8372 aix*)
8373 lt_prog_compiler_wl='-Wl,'
8374 if test "$host_cpu" = ia64; then
8375 # AIX 5 now supports IA64 processor
8376 lt_prog_compiler_static='-Bstatic'
8377 else
8378 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8379 fi
8380 ;;
8381
8382 mingw* | cygwin* | pw32* | os2* | cegcc*)
8383 # This hack is so that the source file can tell whether it is being
8384 # built for inclusion in a dll (and should export symbols for example).
8385 lt_prog_compiler_pic='-DDLL_EXPORT'
8386 ;;
8387
8388 hpux9* | hpux10* | hpux11*)
8389 lt_prog_compiler_wl='-Wl,'
8390 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8391 # not for PA HP-UX.
8392 case $host_cpu in
8393 hppa*64*|ia64*)
8394 # +Z the default
8395 ;;
8396 *)
8397 lt_prog_compiler_pic='+Z'
8398 ;;
8399 esac
8400 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8401 lt_prog_compiler_static='${wl}-a ${wl}archive'
8402 ;;
8403
8404 irix5* | irix6* | nonstopux*)
8405 lt_prog_compiler_wl='-Wl,'
8406 # PIC (with -KPIC) is the default.
8407 lt_prog_compiler_static='-non_shared'
8408 ;;
8409
8410 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8411 case $cc_basename in
8412 # old Intel for x86_64 which still supported -KPIC.
8413 ecc*)
8414 lt_prog_compiler_wl='-Wl,'
8415 lt_prog_compiler_pic='-KPIC'
8416 lt_prog_compiler_static='-static'
8417 ;;
8418 # icc used to be incompatible with GCC.
8419 # ICC 10 doesn't accept -KPIC any more.
8420 icc* | ifort*)
8421 lt_prog_compiler_wl='-Wl,'
8422 lt_prog_compiler_pic='-fPIC'
8423 lt_prog_compiler_static='-static'
8424 ;;
8425 # Lahey Fortran 8.1.
8426 lf95*)
8427 lt_prog_compiler_wl='-Wl,'
8428 lt_prog_compiler_pic='--shared'
8429 lt_prog_compiler_static='--static'
8430 ;;
8431 nagfor*)
8432 # NAG Fortran compiler
8433 lt_prog_compiler_wl='-Wl,-Wl,,'
8434 lt_prog_compiler_pic='-PIC'
8435 lt_prog_compiler_static='-Bstatic'
8436 ;;
8437 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8438 # Portland Group compilers (*not* the Pentium gcc compiler,
8439 # which looks to be a dead project)
8440 lt_prog_compiler_wl='-Wl,'
8441 lt_prog_compiler_pic='-fpic'
8442 lt_prog_compiler_static='-Bstatic'
8443 ;;
8444 ccc*)
8445 lt_prog_compiler_wl='-Wl,'
8446 # All Alpha code is PIC.
8447 lt_prog_compiler_static='-non_shared'
8448 ;;
8449 xl* | bgxl* | bgf* | mpixl*)
8450 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8451 lt_prog_compiler_wl='-Wl,'
8452 lt_prog_compiler_pic='-qpic'
8453 lt_prog_compiler_static='-qstaticlink'
8454 ;;
8455 *)
8456 case `$CC -V 2>&1 | sed 5q` in
8457 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8458 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8459 lt_prog_compiler_pic='-KPIC'
8460 lt_prog_compiler_static='-Bstatic'
8461 lt_prog_compiler_wl=''
8462 ;;
8463 *Sun\ F* | *Sun*Fortran*)
8464 lt_prog_compiler_pic='-KPIC'
8465 lt_prog_compiler_static='-Bstatic'
8466 lt_prog_compiler_wl='-Qoption ld '
8467 ;;
8468 *Sun\ C*)
8469 # Sun C 5.9
8470 lt_prog_compiler_pic='-KPIC'
8471 lt_prog_compiler_static='-Bstatic'
8472 lt_prog_compiler_wl='-Wl,'
8473 ;;
8474 *Intel*\ [CF]*Compiler*)
8475 lt_prog_compiler_wl='-Wl,'
8476 lt_prog_compiler_pic='-fPIC'
8477 lt_prog_compiler_static='-static'
8478 ;;
8479 *Portland\ Group*)
8480 lt_prog_compiler_wl='-Wl,'
8481 lt_prog_compiler_pic='-fpic'
8482 lt_prog_compiler_static='-Bstatic'
8483 ;;
8484 esac
8485 ;;
8486 esac
8487 ;;
8488
8489 newsos6)
8490 lt_prog_compiler_pic='-KPIC'
8491 lt_prog_compiler_static='-Bstatic'
8492 ;;
8493
8494 *nto* | *qnx*)
8495 # QNX uses GNU C++, but need to define -shared option too, otherwise
8496 # it will coredump.
8497 lt_prog_compiler_pic='-fPIC -shared'
8498 ;;
8499
8500 osf3* | osf4* | osf5*)
8501 lt_prog_compiler_wl='-Wl,'
8502 # All OSF/1 code is PIC.
8503 lt_prog_compiler_static='-non_shared'
8504 ;;
8505
8506 rdos*)
8507 lt_prog_compiler_static='-non_shared'
8508 ;;
8509
8510 solaris*)
8511 lt_prog_compiler_pic='-KPIC'
8512 lt_prog_compiler_static='-Bstatic'
8513 case $cc_basename in
8514 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8515 lt_prog_compiler_wl='-Qoption ld ';;
8516 *)
8517 lt_prog_compiler_wl='-Wl,';;
8518 esac
8519 ;;
8520
8521 sunos4*)
8522 lt_prog_compiler_wl='-Qoption ld '
8523 lt_prog_compiler_pic='-PIC'
8524 lt_prog_compiler_static='-Bstatic'
8525 ;;
8526
8527 sysv4 | sysv4.2uw2* | sysv4.3*)
8528 lt_prog_compiler_wl='-Wl,'
8529 lt_prog_compiler_pic='-KPIC'
8530 lt_prog_compiler_static='-Bstatic'
8531 ;;
8532
8533 sysv4*MP*)
8534 if test -d /usr/nec ;then
8535 lt_prog_compiler_pic='-Kconform_pic'
8536 lt_prog_compiler_static='-Bstatic'
8537 fi
8538 ;;
8539
8540 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8541 lt_prog_compiler_wl='-Wl,'
8542 lt_prog_compiler_pic='-KPIC'
8543 lt_prog_compiler_static='-Bstatic'
8544 ;;
8545
8546 unicos*)
8547 lt_prog_compiler_wl='-Wl,'
8548 lt_prog_compiler_can_build_shared=no
8549 ;;
8550
8551 uts4*)
8552 lt_prog_compiler_pic='-pic'
8553 lt_prog_compiler_static='-Bstatic'
8554 ;;
8555
8556 *)
8557 lt_prog_compiler_can_build_shared=no
8558 ;;
8559 esac
8560 fi
8561
8562case $host_os in
8563 # For platforms which do not support PIC, -DPIC is meaningless:
8564 *djgpp*)
8565 lt_prog_compiler_pic=
8566 ;;
8567 *)
8568 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8569 ;;
8570esac
8571
8572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8573$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8574if ${lt_cv_prog_compiler_pic+:} false; then :
8575 $as_echo_n "(cached) " >&6
8576else
8577 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8578fi
8579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8580$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8581lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8582
8583#
8584# Check to make sure the PIC flag actually works.
8585#
8586if test -n "$lt_prog_compiler_pic"; then
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8588$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8589if ${lt_cv_prog_compiler_pic_works+:} false; then :
8590 $as_echo_n "(cached) " >&6
8591else
8592 lt_cv_prog_compiler_pic_works=no
8593 ac_outfile=conftest.$ac_objext
8594 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8595 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
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 # The option is referenced via a variable to avoid confusing sed.
8601 lt_compile=`echo "$ac_compile" | $SED \
8602 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8603 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8604 -e 's:$: $lt_compiler_flag:'`
8605 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8606 (eval "$lt_compile" 2>conftest.err)
8607 ac_status=$?
8608 cat conftest.err >&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 if (exit $ac_status) && test -s "$ac_outfile"; then
8611 # The compiler can only warn and ignore the option if not recognized
8612 # So say no if there are warnings other than the usual output.
8613 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8614 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8615 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8616 lt_cv_prog_compiler_pic_works=yes
8617 fi
8618 fi
8619 $RM conftest*
8620
8621fi
8622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8623$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8624
8625if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8626 case $lt_prog_compiler_pic in
8627 "" | " "*) ;;
8628 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8629 esac
8630else
8631 lt_prog_compiler_pic=
8632 lt_prog_compiler_can_build_shared=no
8633fi
8634
8635fi
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647#
8648# Check to make sure the static flag actually works.
8649#
8650wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8652$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8653if ${lt_cv_prog_compiler_static_works+:} false; then :
8654 $as_echo_n "(cached) " >&6
8655else
8656 lt_cv_prog_compiler_static_works=no
8657 save_LDFLAGS="$LDFLAGS"
8658 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8659 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8660 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8661 # The linker can only warn and ignore the option if not recognized
8662 # So say no if there are warnings
8663 if test -s conftest.err; then
8664 # Append any errors to the config.log.
8665 cat conftest.err 1>&5
8666 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8668 if diff conftest.exp conftest.er2 >/dev/null; then
8669 lt_cv_prog_compiler_static_works=yes
8670 fi
8671 else
8672 lt_cv_prog_compiler_static_works=yes
8673 fi
8674 fi
8675 $RM -r conftest*
8676 LDFLAGS="$save_LDFLAGS"
8677
8678fi
8679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8680$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8681
8682if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8683 :
8684else
8685 lt_prog_compiler_static=
8686fi
8687
8688
8689
8690
8691
8692
8693
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8695$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8696if ${lt_cv_prog_compiler_c_o+:} false; then :
8697 $as_echo_n "(cached) " >&6
8698else
8699 lt_cv_prog_compiler_c_o=no
8700 $RM -r conftest 2>/dev/null
8701 mkdir conftest
8702 cd conftest
8703 mkdir out
8704 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8705
8706 lt_compiler_flag="-o out/conftest2.$ac_objext"
8707 # Insert the option either (1) after the last *FLAGS variable, or
8708 # (2) before a word containing "conftest.", or (3) at the end.
8709 # Note that $ac_compile itself does not contain backslashes and begins
8710 # with a dollar sign (not a hyphen), so the echo should work correctly.
8711 lt_compile=`echo "$ac_compile" | $SED \
8712 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8714 -e 's:$: $lt_compiler_flag:'`
8715 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8716 (eval "$lt_compile" 2>out/conftest.err)
8717 ac_status=$?
8718 cat out/conftest.err >&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8721 then
8722 # The compiler can only warn and ignore the option if not recognized
8723 # So say no if there are warnings
8724 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8725 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8726 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8727 lt_cv_prog_compiler_c_o=yes
8728 fi
8729 fi
8730 chmod u+w . 2>&5
8731 $RM conftest*
8732 # SGI C++ compiler will create directory out/ii_files/ for
8733 # template instantiation
8734 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8735 $RM out/* && rmdir out
8736 cd ..
8737 $RM -r conftest
8738 $RM conftest*
8739
8740fi
8741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8742$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8743
8744
8745
8746
8747
8748
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8750$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8751if ${lt_cv_prog_compiler_c_o+:} false; then :
8752 $as_echo_n "(cached) " >&6
8753else
8754 lt_cv_prog_compiler_c_o=no
8755 $RM -r conftest 2>/dev/null
8756 mkdir conftest
8757 cd conftest
8758 mkdir out
8759 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8760
8761 lt_compiler_flag="-o out/conftest2.$ac_objext"
8762 # Insert the option either (1) after the last *FLAGS variable, or
8763 # (2) before a word containing "conftest.", or (3) at the end.
8764 # Note that $ac_compile itself does not contain backslashes and begins
8765 # with a dollar sign (not a hyphen), so the echo should work correctly.
8766 lt_compile=`echo "$ac_compile" | $SED \
8767 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8768 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8769 -e 's:$: $lt_compiler_flag:'`
8770 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8771 (eval "$lt_compile" 2>out/conftest.err)
8772 ac_status=$?
8773 cat out/conftest.err >&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8776 then
8777 # The compiler can only warn and ignore the option if not recognized
8778 # So say no if there are warnings
8779 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8780 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8781 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8782 lt_cv_prog_compiler_c_o=yes
8783 fi
8784 fi
8785 chmod u+w . 2>&5
8786 $RM conftest*
8787 # SGI C++ compiler will create directory out/ii_files/ for
8788 # template instantiation
8789 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8790 $RM out/* && rmdir out
8791 cd ..
8792 $RM -r conftest
8793 $RM conftest*
8794
8795fi
8796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8797$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8798
8799
8800
8801
8802hard_links="nottested"
8803if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8804 # do not overwrite the value of need_locks provided by the user
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8806$as_echo_n "checking if we can lock with hard links... " >&6; }
8807 hard_links=yes
8808 $RM conftest*
8809 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8810 touch conftest.a
8811 ln conftest.a conftest.b 2>&5 || hard_links=no
8812 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8814$as_echo "$hard_links" >&6; }
8815 if test "$hard_links" = no; then
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8817$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8818 need_locks=warn
8819 fi
8820else
8821 need_locks=no
8822fi
8823
8824
8825
8826
8827
8828
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8830$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8831
8832 runpath_var=
8833 allow_undefined_flag=
8834 always_export_symbols=no
8835 archive_cmds=
8836 archive_expsym_cmds=
8837 compiler_needs_object=no
8838 enable_shared_with_static_runtimes=no
8839 export_dynamic_flag_spec=
8840 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8841 hardcode_automatic=no
8842 hardcode_direct=no
8843 hardcode_direct_absolute=no
8844 hardcode_libdir_flag_spec=
8845 hardcode_libdir_separator=
8846 hardcode_minus_L=no
8847 hardcode_shlibpath_var=unsupported
8848 inherit_rpath=no
8849 link_all_deplibs=unknown
8850 module_cmds=
8851 module_expsym_cmds=
8852 old_archive_from_new_cmds=
8853 old_archive_from_expsyms_cmds=
8854 thread_safe_flag_spec=
8855 whole_archive_flag_spec=
8856 # include_expsyms should be a list of space-separated symbols to be *always*
8857 # included in the symbol list
8858 include_expsyms=
8859 # exclude_expsyms can be an extended regexp of symbols to exclude
8860 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8861 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8862 # as well as any symbol that contains `d'.
8863 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8864 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8865 # platforms (ab)use it in PIC code, but their linkers get confused if
8866 # the symbol is explicitly referenced. Since portable code cannot
8867 # rely on this symbol name, it's probably fine to never include it in
8868 # preloaded symbol tables.
8869 # Exclude shared library initialization/finalization symbols.
8870 extract_expsyms_cmds=
8871
8872 case $host_os in
8873 cygwin* | mingw* | pw32* | cegcc*)
8874 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8875 # When not using gcc, we currently assume that we are using
8876 # Microsoft Visual C++.
8877 if test "$GCC" != yes; then
8878 with_gnu_ld=no
8879 fi
8880 ;;
8881 interix*)
8882 # we just hope/assume this is gcc and not c89 (= MSVC++)
8883 with_gnu_ld=yes
8884 ;;
8885 openbsd*)
8886 with_gnu_ld=no
8887 ;;
8888 esac
8889
8890 ld_shlibs=yes
8891
8892 # On some targets, GNU ld is compatible enough with the native linker
8893 # that we're better off using the native interface for both.
8894 lt_use_gnu_ld_interface=no
8895 if test "$with_gnu_ld" = yes; then
8896 case $host_os in
8897 aix*)
8898 # The AIX port of GNU ld has always aspired to compatibility
8899 # with the native linker. However, as the warning in the GNU ld
8900 # block says, versions before 2.19.5* couldn't really create working
8901 # shared libraries, regardless of the interface used.
8902 case `$LD -v 2>&1` in
8903 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8904 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8905 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8906 *)
8907 lt_use_gnu_ld_interface=yes
8908 ;;
8909 esac
8910 ;;
8911 *)
8912 lt_use_gnu_ld_interface=yes
8913 ;;
8914 esac
8915 fi
8916
8917 if test "$lt_use_gnu_ld_interface" = yes; then
8918 # If archive_cmds runs LD, not CC, wlarc should be empty
8919 wlarc='${wl}'
8920
8921 # Set some defaults for GNU ld with shared library support. These
8922 # are reset later if shared libraries are not supported. Putting them
8923 # here allows them to be overridden if necessary.
8924 runpath_var=LD_RUN_PATH
8925 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8926 export_dynamic_flag_spec='${wl}--export-dynamic'
8927 # ancient GNU ld didn't support --whole-archive et. al.
8928 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8929 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8930 else
8931 whole_archive_flag_spec=
8932 fi
8933 supports_anon_versioning=no
8934 case `$LD -v 2>&1` in
8935 *GNU\ gold*) supports_anon_versioning=yes ;;
8936 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8937 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8938 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8939 *\ 2.11.*) ;; # other 2.11 versions
8940 *) supports_anon_versioning=yes ;;
8941 esac
8942
8943 # See if GNU ld supports shared libraries.
8944 case $host_os in
8945 aix[3-9]*)
8946 # On AIX/PPC, the GNU linker is very broken
8947 if test "$host_cpu" != ia64; then
8948 ld_shlibs=no
8949 cat <<_LT_EOF 1>&2
8950
8951*** Warning: the GNU linker, at least up to release 2.19, is reported
8952*** to be unable to reliably create shared libraries on AIX.
8953*** Therefore, libtool is disabling shared libraries support. If you
8954*** really care for shared libraries, you may want to install binutils
8955*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8956*** You will then need to restart the configuration process.
8957
8958_LT_EOF
8959 fi
8960 ;;
8961
8962 amigaos*)
8963 case $host_cpu in
8964 powerpc)
8965 # see comment about AmigaOS4 .so support
8966 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8967 archive_expsym_cmds=''
8968 ;;
8969 m68k)
8970 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)'
8971 hardcode_libdir_flag_spec='-L$libdir'
8972 hardcode_minus_L=yes
8973 ;;
8974 esac
8975 ;;
8976
8977 beos*)
8978 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8979 allow_undefined_flag=unsupported
8980 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8981 # support --undefined. This deserves some investigation. FIXME
8982 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8983 else
8984 ld_shlibs=no
8985 fi
8986 ;;
8987
8988 cygwin* | mingw* | pw32* | cegcc*)
8989 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8990 # as there is no search path for DLLs.
8991 hardcode_libdir_flag_spec='-L$libdir'
8992 export_dynamic_flag_spec='${wl}--export-all-symbols'
8993 allow_undefined_flag=unsupported
8994 always_export_symbols=no
8995 enable_shared_with_static_runtimes=yes
8996 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'
8997 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8998
8999 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9001 # If the export-symbols file already is a .def file (1st line
9002 # is EXPORTS), use it as is; otherwise, prepend...
9003 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9004 cp $export_symbols $output_objdir/$soname.def;
9005 else
9006 echo EXPORTS > $output_objdir/$soname.def;
9007 cat $export_symbols >> $output_objdir/$soname.def;
9008 fi~
9009 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9010 else
9011 ld_shlibs=no
9012 fi
9013 ;;
9014
9015 haiku*)
9016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9017 link_all_deplibs=yes
9018 ;;
9019
9020 interix[3-9]*)
9021 hardcode_direct=no
9022 hardcode_shlibpath_var=no
9023 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9024 export_dynamic_flag_spec='${wl}-E'
9025 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9026 # Instead, shared libraries are loaded at an image base (0x10000000 by
9027 # default) and relocated if they conflict, which is a slow very memory
9028 # consuming and fragmenting process. To avoid this, we pick a random,
9029 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9030 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9031 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9032 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'
9033 ;;
9034
9035 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9036 tmp_diet=no
9037 if test "$host_os" = linux-dietlibc; then
9038 case $cc_basename in
9039 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9040 esac
9041 fi
9042 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9043 && test "$tmp_diet" = no
9044 then
9045 tmp_addflag=' $pic_flag'
9046 tmp_sharedflag='-shared'
9047 case $cc_basename,$host_cpu in
9048 pgcc*) # Portland Group C compiler
9049 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'
9050 tmp_addflag=' $pic_flag'
9051 ;;
9052 pgf77* | pgf90* | pgf95* | pgfortran*)
9053 # Portland Group f77 and f90 compilers
9054 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'
9055 tmp_addflag=' $pic_flag -Mnomain' ;;
9056 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9057 tmp_addflag=' -i_dynamic' ;;
9058 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9059 tmp_addflag=' -i_dynamic -nofor_main' ;;
9060 ifc* | ifort*) # Intel Fortran compiler
9061 tmp_addflag=' -nofor_main' ;;
9062 lf95*) # Lahey Fortran 8.1
9063 whole_archive_flag_spec=
9064 tmp_sharedflag='--shared' ;;
9065 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9066 tmp_sharedflag='-qmkshrobj'
9067 tmp_addflag= ;;
9068 nvcc*) # Cuda Compiler Driver 2.2
9069 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'
9070 compiler_needs_object=yes
9071 ;;
9072 esac
9073 case `$CC -V 2>&1 | sed 5q` in
9074 *Sun\ C*) # Sun C 5.9
9075 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'
9076 compiler_needs_object=yes
9077 tmp_sharedflag='-G' ;;
9078 *Sun\ F*) # Sun Fortran 8.3
9079 tmp_sharedflag='-G' ;;
9080 esac
9081 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9082
9083 if test "x$supports_anon_versioning" = xyes; then
9084 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9085 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9086 echo "local: *; };" >> $output_objdir/$libname.ver~
9087 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9088 fi
9089
9090 case $cc_basename in
9091 xlf* | bgf* | bgxlf* | mpixlf*)
9092 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9093 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9094 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9095 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9096 if test "x$supports_anon_versioning" = xyes; then
9097 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9098 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9099 echo "local: *; };" >> $output_objdir/$libname.ver~
9100 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9101 fi
9102 ;;
9103 esac
9104 else
9105 ld_shlibs=no
9106 fi
9107 ;;
9108
9109 netbsd*)
9110 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9111 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9112 wlarc=
9113 else
9114 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9115 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9116 fi
9117 ;;
9118
9119 solaris*)
9120 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9121 ld_shlibs=no
9122 cat <<_LT_EOF 1>&2
9123
9124*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9125*** create shared libraries on Solaris systems. Therefore, libtool
9126*** is disabling shared libraries support. We urge you to upgrade GNU
9127*** binutils to release 2.9.1 or newer. Another option is to modify
9128*** your PATH or compiler configuration so that the native linker is
9129*** used, and then restart.
9130
9131_LT_EOF
9132 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9133 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9134 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9135 else
9136 ld_shlibs=no
9137 fi
9138 ;;
9139
9140 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9141 case `$LD -v 2>&1` in
9142 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9143 ld_shlibs=no
9144 cat <<_LT_EOF 1>&2
9145
9146*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9147*** reliably create shared libraries on SCO systems. Therefore, libtool
9148*** is disabling shared libraries support. We urge you to upgrade GNU
9149*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9150*** your PATH or compiler configuration so that the native linker is
9151*** used, and then restart.
9152
9153_LT_EOF
9154 ;;
9155 *)
9156 # For security reasons, it is highly recommended that you always
9157 # use absolute paths for naming shared libraries, and exclude the
9158 # DT_RUNPATH tag from executables and libraries. But doing so
9159 # requires that you compile everything twice, which is a pain.
9160 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9161 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9162 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9163 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9164 else
9165 ld_shlibs=no
9166 fi
9167 ;;
9168 esac
9169 ;;
9170
9171 sunos4*)
9172 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9173 wlarc=
9174 hardcode_direct=yes
9175 hardcode_shlibpath_var=no
9176 ;;
9177
9178 *)
9179 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9180 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9181 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9182 else
9183 ld_shlibs=no
9184 fi
9185 ;;
9186 esac
9187
9188 if test "$ld_shlibs" = no; then
9189 runpath_var=
9190 hardcode_libdir_flag_spec=
9191 export_dynamic_flag_spec=
9192 whole_archive_flag_spec=
9193 fi
9194 else
9195 # PORTME fill in a description of your system's linker (not GNU ld)
9196 case $host_os in
9197 aix3*)
9198 allow_undefined_flag=unsupported
9199 always_export_symbols=yes
9200 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'
9201 # Note: this linker hardcodes the directories in LIBPATH if there
9202 # are no directories specified by -L.
9203 hardcode_minus_L=yes
9204 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9205 # Neither direct hardcoding nor static linking is supported with a
9206 # broken collect2.
9207 hardcode_direct=unsupported
9208 fi
9209 ;;
9210
9211 aix[4-9]*)
9212 if test "$host_cpu" = ia64; then
9213 # On IA64, the linker does run time linking by default, so we don't
9214 # have to do anything special.
9215 aix_use_runtimelinking=no
9216 exp_sym_flag='-Bexport'
9217 no_entry_flag=""
9218 else
9219 # If we're using GNU nm, then we don't want the "-C" option.
9220 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9221 # Also, AIX nm treats weak defined symbols like other global
9222 # defined symbols, whereas GNU nm marks them as "W".
9223 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9224 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'
9225 else
9226 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'
9227 fi
9228 aix_use_runtimelinking=no
9229
9230 # Test if we are trying to use run time linking or normal
9231 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9232 # need to do runtime linking.
9233 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9234 for ld_flag in $LDFLAGS; do
9235 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9236 aix_use_runtimelinking=yes
9237 break
9238 fi
9239 done
9240 ;;
9241 esac
9242
9243 exp_sym_flag='-bexport'
9244 no_entry_flag='-bnoentry'
9245 fi
9246
9247 # When large executables or shared objects are built, AIX ld can
9248 # have problems creating the table of contents. If linking a library
9249 # or program results in "error TOC overflow" add -mminimal-toc to
9250 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9251 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9252
9253 archive_cmds=''
9254 hardcode_direct=yes
9255 hardcode_direct_absolute=yes
9256 hardcode_libdir_separator=':'
9257 link_all_deplibs=yes
9258 file_list_spec='${wl}-f,'
9259
9260 if test "$GCC" = yes; then
9261 case $host_os in aix4.[012]|aix4.[012].*)
9262 # We only want to do this on AIX 4.2 and lower, the check
9263 # below for broken collect2 doesn't work under 4.3+
9264 collect2name=`${CC} -print-prog-name=collect2`
9265 if test -f "$collect2name" &&
9266 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9267 then
9268 # We have reworked collect2
9269 :
9270 else
9271 # We have old collect2
9272 hardcode_direct=unsupported
9273 # It fails to find uninstalled libraries when the uninstalled
9274 # path is not listed in the libpath. Setting hardcode_minus_L
9275 # to unsupported forces relinking
9276 hardcode_minus_L=yes
9277 hardcode_libdir_flag_spec='-L$libdir'
9278 hardcode_libdir_separator=
9279 fi
9280 ;;
9281 esac
9282 shared_flag='-shared'
9283 if test "$aix_use_runtimelinking" = yes; then
9284 shared_flag="$shared_flag "'${wl}-G'
9285 fi
9286 else
9287 # not using gcc
9288 if test "$host_cpu" = ia64; then
9289 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9290 # chokes on -Wl,-G. The following line is correct:
9291 shared_flag='-G'
9292 else
9293 if test "$aix_use_runtimelinking" = yes; then
9294 shared_flag='${wl}-G'
9295 else
9296 shared_flag='${wl}-bM:SRE'
9297 fi
9298 fi
9299 fi
9300
9301 export_dynamic_flag_spec='${wl}-bexpall'
9302 # It seems that -bexpall does not export symbols beginning with
9303 # underscore (_), so it is better to generate a list of symbols to export.
9304 always_export_symbols=yes
9305 if test "$aix_use_runtimelinking" = yes; then
9306 # Warning - without using the other runtime loading flags (-brtl),
9307 # -berok will link without error, but may produce a broken library.
9308 allow_undefined_flag='-berok'
9309 # Determine the default libpath from the value encoded in an
9310 # empty executable.
9311 if test "${lt_cv_aix_libpath+set}" = set; then
9312 aix_libpath=$lt_cv_aix_libpath
9313else
9314 if ${lt_cv_aix_libpath_+:} false; then :
9315 $as_echo_n "(cached) " >&6
9316else
9317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9318/* end confdefs.h. */
9319
9320int
9321main ()
9322{
9323
9324 ;
9325 return 0;
9326}
9327_ACEOF
9328if ac_fn_c_try_link "$LINENO"; then :
9329
9330 lt_aix_libpath_sed='
9331 /Import File Strings/,/^$/ {
9332 /^0/ {
9333 s/^0 *\([^ ]*\) *$/\1/
9334 p
9335 }
9336 }'
9337 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9338 # Check for a 64-bit object if we didn't find anything.
9339 if test -z "$lt_cv_aix_libpath_"; then
9340 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9341 fi
9342fi
9343rm -f core conftest.err conftest.$ac_objext \
9344 conftest$ac_exeext conftest.$ac_ext
9345 if test -z "$lt_cv_aix_libpath_"; then
9346 lt_cv_aix_libpath_="/usr/lib:/lib"
9347 fi
9348
9349fi
9350
9351 aix_libpath=$lt_cv_aix_libpath_
9352fi
9353
9354 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9355 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"
9356 else
9357 if test "$host_cpu" = ia64; then
9358 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9359 allow_undefined_flag="-z nodefs"
9360 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"
9361 else
9362 # Determine the default libpath from the value encoded in an
9363 # empty executable.
9364 if test "${lt_cv_aix_libpath+set}" = set; then
9365 aix_libpath=$lt_cv_aix_libpath
9366else
9367 if ${lt_cv_aix_libpath_+:} false; then :
9368 $as_echo_n "(cached) " >&6
9369else
9370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9371/* end confdefs.h. */
9372
9373int
9374main ()
9375{
9376
9377 ;
9378 return 0;
9379}
9380_ACEOF
9381if ac_fn_c_try_link "$LINENO"; then :
9382
9383 lt_aix_libpath_sed='
9384 /Import File Strings/,/^$/ {
9385 /^0/ {
9386 s/^0 *\([^ ]*\) *$/\1/
9387 p
9388 }
9389 }'
9390 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9391 # Check for a 64-bit object if we didn't find anything.
9392 if test -z "$lt_cv_aix_libpath_"; then
9393 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9394 fi
9395fi
9396rm -f core conftest.err conftest.$ac_objext \
9397 conftest$ac_exeext conftest.$ac_ext
9398 if test -z "$lt_cv_aix_libpath_"; then
9399 lt_cv_aix_libpath_="/usr/lib:/lib"
9400 fi
9401
9402fi
9403
9404 aix_libpath=$lt_cv_aix_libpath_
9405fi
9406
9407 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9408 # Warning - without using the other run time loading flags,
9409 # -berok will link without error, but may produce a broken library.
9410 no_undefined_flag=' ${wl}-bernotok'
9411 allow_undefined_flag=' ${wl}-berok'
9412 if test "$with_gnu_ld" = yes; then
9413 # We only use this code for GNU lds that support --whole-archive.
9414 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9415 else
9416 # Exported symbols can be pulled into shared objects from archives
9417 whole_archive_flag_spec='$convenience'
9418 fi
9419 archive_cmds_need_lc=yes
9420 # This is similar to how AIX traditionally builds its shared libraries.
9421 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'
9422 fi
9423 fi
9424 ;;
9425
9426 amigaos*)
9427 case $host_cpu in
9428 powerpc)
9429 # see comment about AmigaOS4 .so support
9430 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9431 archive_expsym_cmds=''
9432 ;;
9433 m68k)
9434 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)'
9435 hardcode_libdir_flag_spec='-L$libdir'
9436 hardcode_minus_L=yes
9437 ;;
9438 esac
9439 ;;
9440
9441 bsdi[45]*)
9442 export_dynamic_flag_spec=-rdynamic
9443 ;;
9444
9445 cygwin* | mingw* | pw32* | cegcc*)
9446 # When not using gcc, we currently assume that we are using
9447 # Microsoft Visual C++.
9448 # hardcode_libdir_flag_spec is actually meaningless, as there is
9449 # no search path for DLLs.
9450 case $cc_basename in
9451 cl*)
9452 # Native MSVC
9453 hardcode_libdir_flag_spec=' '
9454 allow_undefined_flag=unsupported
9455 always_export_symbols=yes
9456 file_list_spec='@'
9457 # Tell ltmain to make .lib files, not .a files.
9458 libext=lib
9459 # Tell ltmain to make .dll files, not .so files.
9460 shrext_cmds=".dll"
9461 # FIXME: Setting linknames here is a bad hack.
9462 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9463 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9464 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9465 else
9466 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9467 fi~
9468 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9469 linknames='
9470 # The linker will not automatically build a static lib if we build a DLL.
9471 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9472 enable_shared_with_static_runtimes=yes
9473 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9474 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9475 # Don't use ranlib
9476 old_postinstall_cmds='chmod 644 $oldlib'
9477 postlink_cmds='lt_outputfile="@OUTPUT@"~
9478 lt_tool_outputfile="@TOOL_OUTPUT@"~
9479 case $lt_outputfile in
9480 *.exe|*.EXE) ;;
9481 *)
9482 lt_outputfile="$lt_outputfile.exe"
9483 lt_tool_outputfile="$lt_tool_outputfile.exe"
9484 ;;
9485 esac~
9486 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9487 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9488 $RM "$lt_outputfile.manifest";
9489 fi'
9490 ;;
9491 *)
9492 # Assume MSVC wrapper
9493 hardcode_libdir_flag_spec=' '
9494 allow_undefined_flag=unsupported
9495 # Tell ltmain to make .lib files, not .a files.
9496 libext=lib
9497 # Tell ltmain to make .dll files, not .so files.
9498 shrext_cmds=".dll"
9499 # FIXME: Setting linknames here is a bad hack.
9500 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9501 # The linker will automatically build a .lib file if we build a DLL.
9502 old_archive_from_new_cmds='true'
9503 # FIXME: Should let the user specify the lib program.
9504 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9505 enable_shared_with_static_runtimes=yes
9506 ;;
9507 esac
9508 ;;
9509
9510 darwin* | rhapsody*)
9511
9512
9513 archive_cmds_need_lc=no
9514 hardcode_direct=no
9515 hardcode_automatic=yes
9516 hardcode_shlibpath_var=unsupported
9517 if test "$lt_cv_ld_force_load" = "yes"; then
9518 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\"`'
9519
9520 else
9521 whole_archive_flag_spec=''
9522 fi
9523 link_all_deplibs=yes
9524 allow_undefined_flag="$_lt_dar_allow_undefined"
9525 case $cc_basename in
9526 ifort*) _lt_dar_can_shared=yes ;;
9527 *) _lt_dar_can_shared=$GCC ;;
9528 esac
9529 if test "$_lt_dar_can_shared" = "yes"; then
9530 output_verbose_link_cmd=func_echo_all
9531 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9532 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9533 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}"
9534 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}"
9535
9536 else
9537 ld_shlibs=no
9538 fi
9539
9540 ;;
9541
9542 dgux*)
9543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9544 hardcode_libdir_flag_spec='-L$libdir'
9545 hardcode_shlibpath_var=no
9546 ;;
9547
9548 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9549 # support. Future versions do this automatically, but an explicit c++rt0.o
9550 # does not break anything, and helps significantly (at the cost of a little
9551 # extra space).
9552 freebsd2.2*)
9553 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9554 hardcode_libdir_flag_spec='-R$libdir'
9555 hardcode_direct=yes
9556 hardcode_shlibpath_var=no
9557 ;;
9558
9559 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9560 freebsd2.*)
9561 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9562 hardcode_direct=yes
9563 hardcode_minus_L=yes
9564 hardcode_shlibpath_var=no
9565 ;;
9566
9567 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9568 freebsd* | dragonfly*)
9569 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9570 hardcode_libdir_flag_spec='-R$libdir'
9571 hardcode_direct=yes
9572 hardcode_shlibpath_var=no
9573 ;;
9574
9575 hpux9*)
9576 if test "$GCC" = yes; then
9577 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'
9578 else
9579 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'
9580 fi
9581 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9582 hardcode_libdir_separator=:
9583 hardcode_direct=yes
9584
9585 # hardcode_minus_L: Not really in the search PATH,
9586 # but as the default location of the library.
9587 hardcode_minus_L=yes
9588 export_dynamic_flag_spec='${wl}-E'
9589 ;;
9590
9591 hpux10*)
9592 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9593 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9594 else
9595 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9596 fi
9597 if test "$with_gnu_ld" = no; then
9598 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9599 hardcode_libdir_separator=:
9600 hardcode_direct=yes
9601 hardcode_direct_absolute=yes
9602 export_dynamic_flag_spec='${wl}-E'
9603 # hardcode_minus_L: Not really in the search PATH,
9604 # but as the default location of the library.
9605 hardcode_minus_L=yes
9606 fi
9607 ;;
9608
9609 hpux11*)
9610 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9611 case $host_cpu in
9612 hppa*64*)
9613 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9614 ;;
9615 ia64*)
9616 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9617 ;;
9618 *)
9619 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9620 ;;
9621 esac
9622 else
9623 case $host_cpu in
9624 hppa*64*)
9625 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9626 ;;
9627 ia64*)
9628 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9629 ;;
9630 *)
9631
9632 # Older versions of the 11.00 compiler do not understand -b yet
9633 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9635$as_echo_n "checking if $CC understands -b... " >&6; }
9636if ${lt_cv_prog_compiler__b+:} false; then :
9637 $as_echo_n "(cached) " >&6
9638else
9639 lt_cv_prog_compiler__b=no
9640 save_LDFLAGS="$LDFLAGS"
9641 LDFLAGS="$LDFLAGS -b"
9642 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9643 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9644 # The linker can only warn and ignore the option if not recognized
9645 # So say no if there are warnings
9646 if test -s conftest.err; then
9647 # Append any errors to the config.log.
9648 cat conftest.err 1>&5
9649 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9650 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9651 if diff conftest.exp conftest.er2 >/dev/null; then
9652 lt_cv_prog_compiler__b=yes
9653 fi
9654 else
9655 lt_cv_prog_compiler__b=yes
9656 fi
9657 fi
9658 $RM -r conftest*
9659 LDFLAGS="$save_LDFLAGS"
9660
9661fi
9662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9663$as_echo "$lt_cv_prog_compiler__b" >&6; }
9664
9665if test x"$lt_cv_prog_compiler__b" = xyes; then
9666 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9667else
9668 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9669fi
9670
9671 ;;
9672 esac
9673 fi
9674 if test "$with_gnu_ld" = no; then
9675 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9676 hardcode_libdir_separator=:
9677
9678 case $host_cpu in
9679 hppa*64*|ia64*)
9680 hardcode_direct=no
9681 hardcode_shlibpath_var=no
9682 ;;
9683 *)
9684 hardcode_direct=yes
9685 hardcode_direct_absolute=yes
9686 export_dynamic_flag_spec='${wl}-E'
9687
9688 # hardcode_minus_L: Not really in the search PATH,
9689 # but as the default location of the library.
9690 hardcode_minus_L=yes
9691 ;;
9692 esac
9693 fi
9694 ;;
9695
9696 irix5* | irix6* | nonstopux*)
9697 if test "$GCC" = yes; then
9698 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'
9699 # Try to use the -exported_symbol ld option, if it does not
9700 # work, assume that -exports_file does not work either and
9701 # implicitly export all symbols.
9702 # This should be the same for all languages, so no per-tag cache variable.
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9704$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9705if ${lt_cv_irix_exported_symbol+:} false; then :
9706 $as_echo_n "(cached) " >&6
9707else
9708 save_LDFLAGS="$LDFLAGS"
9709 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711/* end confdefs.h. */
9712int foo (void) { return 0; }
9713_ACEOF
9714if ac_fn_c_try_link "$LINENO"; then :
9715 lt_cv_irix_exported_symbol=yes
9716else
9717 lt_cv_irix_exported_symbol=no
9718fi
9719rm -f core conftest.err conftest.$ac_objext \
9720 conftest$ac_exeext conftest.$ac_ext
9721 LDFLAGS="$save_LDFLAGS"
9722fi
9723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9724$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9725 if test "$lt_cv_irix_exported_symbol" = yes; then
9726 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'
9727 fi
9728 else
9729 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'
9730 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'
9731 fi
9732 archive_cmds_need_lc='no'
9733 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9734 hardcode_libdir_separator=:
9735 inherit_rpath=yes
9736 link_all_deplibs=yes
9737 ;;
9738
9739 netbsd*)
9740 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9741 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9742 else
9743 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9744 fi
9745 hardcode_libdir_flag_spec='-R$libdir'
9746 hardcode_direct=yes
9747 hardcode_shlibpath_var=no
9748 ;;
9749
9750 newsos6)
9751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9752 hardcode_direct=yes
9753 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9754 hardcode_libdir_separator=:
9755 hardcode_shlibpath_var=no
9756 ;;
9757
9758 *nto* | *qnx*)
9759 ;;
9760
9761 openbsd*)
9762 if test -f /usr/libexec/ld.so; then
9763 hardcode_direct=yes
9764 hardcode_shlibpath_var=no
9765 hardcode_direct_absolute=yes
9766 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9767 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9768 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9769 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9770 export_dynamic_flag_spec='${wl}-E'
9771 else
9772 case $host_os in
9773 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9774 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9775 hardcode_libdir_flag_spec='-R$libdir'
9776 ;;
9777 *)
9778 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9779 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9780 ;;
9781 esac
9782 fi
9783 else
9784 ld_shlibs=no
9785 fi
9786 ;;
9787
9788 os2*)
9789 hardcode_libdir_flag_spec='-L$libdir'
9790 hardcode_minus_L=yes
9791 allow_undefined_flag=unsupported
9792 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'
9793 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9794 ;;
9795
9796 osf3*)
9797 if test "$GCC" = yes; then
9798 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9799 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'
9800 else
9801 allow_undefined_flag=' -expect_unresolved \*'
9802 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'
9803 fi
9804 archive_cmds_need_lc='no'
9805 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9806 hardcode_libdir_separator=:
9807 ;;
9808
9809 osf4* | osf5*) # as osf3* with the addition of -msym flag
9810 if test "$GCC" = yes; then
9811 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9812 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'
9813 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9814 else
9815 allow_undefined_flag=' -expect_unresolved \*'
9816 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'
9817 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~
9818 $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'
9819
9820 # Both c and cxx compiler support -rpath directly
9821 hardcode_libdir_flag_spec='-rpath $libdir'
9822 fi
9823 archive_cmds_need_lc='no'
9824 hardcode_libdir_separator=:
9825 ;;
9826
9827 solaris*)
9828 no_undefined_flag=' -z defs'
9829 if test "$GCC" = yes; then
9830 wlarc='${wl}'
9831 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9832 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9833 $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'
9834 else
9835 case `$CC -V 2>&1` in
9836 *"Compilers 5.0"*)
9837 wlarc=''
9838 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9839 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9840 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9841 ;;
9842 *)
9843 wlarc='${wl}'
9844 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9845 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9846 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9847 ;;
9848 esac
9849 fi
9850 hardcode_libdir_flag_spec='-R$libdir'
9851 hardcode_shlibpath_var=no
9852 case $host_os in
9853 solaris2.[0-5] | solaris2.[0-5].*) ;;
9854 *)
9855 # The compiler driver will combine and reorder linker options,
9856 # but understands `-z linker_flag'. GCC discards it without `$wl',
9857 # but is careful enough not to reorder.
9858 # Supported since Solaris 2.6 (maybe 2.5.1?)
9859 if test "$GCC" = yes; then
9860 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9861 else
9862 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9863 fi
9864 ;;
9865 esac
9866 link_all_deplibs=yes
9867 ;;
9868
9869 sunos4*)
9870 if test "x$host_vendor" = xsequent; then
9871 # Use $CC to link under sequent, because it throws in some extra .o
9872 # files that make .init and .fini sections work.
9873 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9874 else
9875 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9876 fi
9877 hardcode_libdir_flag_spec='-L$libdir'
9878 hardcode_direct=yes
9879 hardcode_minus_L=yes
9880 hardcode_shlibpath_var=no
9881 ;;
9882
9883 sysv4)
9884 case $host_vendor in
9885 sni)
9886 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9887 hardcode_direct=yes # is this really true???
9888 ;;
9889 siemens)
9890 ## LD is ld it makes a PLAMLIB
9891 ## CC just makes a GrossModule.
9892 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9893 reload_cmds='$CC -r -o $output$reload_objs'
9894 hardcode_direct=no
9895 ;;
9896 motorola)
9897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9898 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9899 ;;
9900 esac
9901 runpath_var='LD_RUN_PATH'
9902 hardcode_shlibpath_var=no
9903 ;;
9904
9905 sysv4.3*)
9906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9907 hardcode_shlibpath_var=no
9908 export_dynamic_flag_spec='-Bexport'
9909 ;;
9910
9911 sysv4*MP*)
9912 if test -d /usr/nec; then
9913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9914 hardcode_shlibpath_var=no
9915 runpath_var=LD_RUN_PATH
9916 hardcode_runpath_var=yes
9917 ld_shlibs=yes
9918 fi
9919 ;;
9920
9921 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9922 no_undefined_flag='${wl}-z,text'
9923 archive_cmds_need_lc=no
9924 hardcode_shlibpath_var=no
9925 runpath_var='LD_RUN_PATH'
9926
9927 if test "$GCC" = yes; then
9928 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9929 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9930 else
9931 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9932 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9933 fi
9934 ;;
9935
9936 sysv5* | sco3.2v5* | sco5v6*)
9937 # Note: We can NOT use -z defs as we might desire, because we do not
9938 # link with -lc, and that would cause any symbols used from libc to
9939 # always be unresolved, which means just about no library would
9940 # ever link correctly. If we're not using GNU ld we use -z text
9941 # though, which does catch some bad symbols but isn't as heavy-handed
9942 # as -z defs.
9943 no_undefined_flag='${wl}-z,text'
9944 allow_undefined_flag='${wl}-z,nodefs'
9945 archive_cmds_need_lc=no
9946 hardcode_shlibpath_var=no
9947 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9948 hardcode_libdir_separator=':'
9949 link_all_deplibs=yes
9950 export_dynamic_flag_spec='${wl}-Bexport'
9951 runpath_var='LD_RUN_PATH'
9952
9953 if test "$GCC" = yes; then
9954 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9955 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9956 else
9957 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9958 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9959 fi
9960 ;;
9961
9962 uts4*)
9963 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9964 hardcode_libdir_flag_spec='-L$libdir'
9965 hardcode_shlibpath_var=no
9966 ;;
9967
9968 *)
9969 ld_shlibs=no
9970 ;;
9971 esac
9972
9973 if test x$host_vendor = xsni; then
9974 case $host in
9975 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9976 export_dynamic_flag_spec='${wl}-Blargedynsym'
9977 ;;
9978 esac
9979 fi
9980 fi
9981
9982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9983$as_echo "$ld_shlibs" >&6; }
9984test "$ld_shlibs" = no && can_build_shared=no
9985
9986with_gnu_ld=$with_gnu_ld
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002#
10003# Do we need to explicitly link libc?
10004#
10005case "x$archive_cmds_need_lc" in
10006x|xyes)
10007 # Assume -lc should be added
10008 archive_cmds_need_lc=yes
10009
10010 if test "$enable_shared" = yes && test "$GCC" = yes; then
10011 case $archive_cmds in
10012 *'~'*)
10013 # FIXME: we may have to deal with multi-command sequences.
10014 ;;
10015 '$CC '*)
10016 # Test whether the compiler implicitly links with -lc since on some
10017 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10018 # to ld, don't add -lc before -lgcc.
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10020$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10021if ${lt_cv_archive_cmds_need_lc+:} false; then :
10022 $as_echo_n "(cached) " >&6
10023else
10024 $RM conftest*
10025 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10026
10027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10028 (eval $ac_compile) 2>&5
10029 ac_status=$?
10030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10031 test $ac_status = 0; } 2>conftest.err; then
10032 soname=conftest
10033 lib=conftest
10034 libobjs=conftest.$ac_objext
10035 deplibs=
10036 wl=$lt_prog_compiler_wl
10037 pic_flag=$lt_prog_compiler_pic
10038 compiler_flags=-v
10039 linker_flags=-v
10040 verstring=
10041 output_objdir=.
10042 libname=conftest
10043 lt_save_allow_undefined_flag=$allow_undefined_flag
10044 allow_undefined_flag=
10045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10046 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10047 ac_status=$?
10048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10049 test $ac_status = 0; }
10050 then
10051 lt_cv_archive_cmds_need_lc=no
10052 else
10053 lt_cv_archive_cmds_need_lc=yes
10054 fi
10055 allow_undefined_flag=$lt_save_allow_undefined_flag
10056 else
10057 cat conftest.err 1>&5
10058 fi
10059 $RM conftest*
10060
10061fi
10062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10063$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10064 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10065 ;;
10066 esac
10067 fi
10068 ;;
10069esac
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
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10223$as_echo_n "checking dynamic linker characteristics... " >&6; }
10224
10225if test "$GCC" = yes; then
10226 case $host_os in
10227 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10228 *) lt_awk_arg="/^libraries:/" ;;
10229 esac
10230 case $host_os in
10231 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10232 *) lt_sed_strip_eq="s,=/,/,g" ;;
10233 esac
10234 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10235 case $lt_search_path_spec in
10236 *\;*)
10237 # if the path contains ";" then we assume it to be the separator
10238 # otherwise default to the standard path separator (i.e. ":") - it is
10239 # assumed that no part of a normal pathname contains ";" but that should
10240 # okay in the real world where ";" in dirpaths is itself problematic.
10241 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10242 ;;
10243 *)
10244 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10245 ;;
10246 esac
10247 # Ok, now we have the path, separated by spaces, we can step through it
10248 # and add multilib dir if necessary.
10249 lt_tmp_lt_search_path_spec=
10250 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10251 for lt_sys_path in $lt_search_path_spec; do
10252 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10253 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10254 else
10255 test -d "$lt_sys_path" && \
10256 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10257 fi
10258 done
10259 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10260BEGIN {RS=" "; FS="/|\n";} {
10261 lt_foo="";
10262 lt_count=0;
10263 for (lt_i = NF; lt_i > 0; lt_i--) {
10264 if ($lt_i != "" && $lt_i != ".") {
10265 if ($lt_i == "..") {
10266 lt_count++;
10267 } else {
10268 if (lt_count == 0) {
10269 lt_foo="/" $lt_i lt_foo;
10270 } else {
10271 lt_count--;
10272 }
10273 }
10274 }
10275 }
10276 if (lt_foo != "") { lt_freq[lt_foo]++; }
10277 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10278}'`
10279 # AWK program above erroneously prepends '/' to C:/dos/paths
10280 # for these hosts.
10281 case $host_os in
10282 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10283 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10284 esac
10285 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10286else
10287 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10288fi
10289library_names_spec=
10290libname_spec='lib$name'
10291soname_spec=
10292shrext_cmds=".so"
10293postinstall_cmds=
10294postuninstall_cmds=
10295finish_cmds=
10296finish_eval=
10297shlibpath_var=
10298shlibpath_overrides_runpath=unknown
10299version_type=none
10300dynamic_linker="$host_os ld.so"
10301sys_lib_dlsearch_path_spec="/lib /usr/lib"
10302need_lib_prefix=unknown
10303hardcode_into_libs=no
10304
10305# when you set need_version to no, make sure it does not cause -set_version
10306# flags to be left without arguments
10307need_version=unknown
10308
10309case $host_os in
10310aix3*)
10311 version_type=linux # correct to gnu/linux during the next big refactor
10312 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10313 shlibpath_var=LIBPATH
10314
10315 # AIX 3 has no versioning support, so we append a major version to the name.
10316 soname_spec='${libname}${release}${shared_ext}$major'
10317 ;;
10318
10319aix[4-9]*)
10320 version_type=linux # correct to gnu/linux during the next big refactor
10321 need_lib_prefix=no
10322 need_version=no
10323 hardcode_into_libs=yes
10324 if test "$host_cpu" = ia64; then
10325 # AIX 5 supports IA64
10326 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10327 shlibpath_var=LD_LIBRARY_PATH
10328 else
10329 # With GCC up to 2.95.x, collect2 would create an import file
10330 # for dependence libraries. The import file would start with
10331 # the line `#! .'. This would cause the generated library to
10332 # depend on `.', always an invalid library. This was fixed in
10333 # development snapshots of GCC prior to 3.0.
10334 case $host_os in
10335 aix4 | aix4.[01] | aix4.[01].*)
10336 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10337 echo ' yes '
10338 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10339 :
10340 else
10341 can_build_shared=no
10342 fi
10343 ;;
10344 esac
10345 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10346 # soname into executable. Probably we can add versioning support to
10347 # collect2, so additional links can be useful in future.
10348 if test "$aix_use_runtimelinking" = yes; then
10349 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10350 # instead of lib<name>.a to let people know that these are not
10351 # typical AIX shared libraries.
10352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10353 else
10354 # We preserve .a as extension for shared libraries through AIX4.2
10355 # and later when we are not doing run time linking.
10356 library_names_spec='${libname}${release}.a $libname.a'
10357 soname_spec='${libname}${release}${shared_ext}$major'
10358 fi
10359 shlibpath_var=LIBPATH
10360 fi
10361 ;;
10362
10363amigaos*)
10364 case $host_cpu in
10365 powerpc)
10366 # Since July 2007 AmigaOS4 officially supports .so libraries.
10367 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10369 ;;
10370 m68k)
10371 library_names_spec='$libname.ixlibrary $libname.a'
10372 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10373 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'
10374 ;;
10375 esac
10376 ;;
10377
10378beos*)
10379 library_names_spec='${libname}${shared_ext}'
10380 dynamic_linker="$host_os ld.so"
10381 shlibpath_var=LIBRARY_PATH
10382 ;;
10383
10384bsdi[45]*)
10385 version_type=linux # correct to gnu/linux during the next big refactor
10386 need_version=no
10387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10388 soname_spec='${libname}${release}${shared_ext}$major'
10389 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10390 shlibpath_var=LD_LIBRARY_PATH
10391 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10392 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10393 # the default ld.so.conf also contains /usr/contrib/lib and
10394 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10395 # libtool to hard-code these into programs
10396 ;;
10397
10398cygwin* | mingw* | pw32* | cegcc*)
10399 version_type=windows
10400 shrext_cmds=".dll"
10401 need_version=no
10402 need_lib_prefix=no
10403
10404 case $GCC,$cc_basename in
10405 yes,*)
10406 # gcc
10407 library_names_spec='$libname.dll.a'
10408 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10409 postinstall_cmds='base_file=`basename \${file}`~
10410 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10411 dldir=$destdir/`dirname \$dlpath`~
10412 test -d \$dldir || mkdir -p \$dldir~
10413 $install_prog $dir/$dlname \$dldir/$dlname~
10414 chmod a+x \$dldir/$dlname~
10415 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10416 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10417 fi'
10418 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10419 dlpath=$dir/\$dldll~
10420 $RM \$dlpath'
10421 shlibpath_overrides_runpath=yes
10422
10423 case $host_os in
10424 cygwin*)
10425 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10426 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10427
10428 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10429 ;;
10430 mingw* | cegcc*)
10431 # MinGW DLLs use traditional 'lib' prefix
10432 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10433 ;;
10434 pw32*)
10435 # pw32 DLLs use 'pw' prefix rather than 'lib'
10436 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10437 ;;
10438 esac
10439 dynamic_linker='Win32 ld.exe'
10440 ;;
10441
10442 *,cl*)
10443 # Native MSVC
10444 libname_spec='$name'
10445 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10446 library_names_spec='${libname}.dll.lib'
10447
10448 case $build_os in
10449 mingw*)
10450 sys_lib_search_path_spec=
10451 lt_save_ifs=$IFS
10452 IFS=';'
10453 for lt_path in $LIB
10454 do
10455 IFS=$lt_save_ifs
10456 # Let DOS variable expansion print the short 8.3 style file name.
10457 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10458 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10459 done
10460 IFS=$lt_save_ifs
10461 # Convert to MSYS style.
10462 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10463 ;;
10464 cygwin*)
10465 # Convert to unix form, then to dos form, then back to unix form
10466 # but this time dos style (no spaces!) so that the unix form looks
10467 # like /cygdrive/c/PROGRA~1:/cygdr...
10468 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10469 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10470 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10471 ;;
10472 *)
10473 sys_lib_search_path_spec="$LIB"
10474 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10475 # It is most probably a Windows format PATH.
10476 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10477 else
10478 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10479 fi
10480 # FIXME: find the short name or the path components, as spaces are
10481 # common. (e.g. "Program Files" -> "PROGRA~1")
10482 ;;
10483 esac
10484
10485 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10486 postinstall_cmds='base_file=`basename \${file}`~
10487 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10488 dldir=$destdir/`dirname \$dlpath`~
10489 test -d \$dldir || mkdir -p \$dldir~
10490 $install_prog $dir/$dlname \$dldir/$dlname'
10491 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10492 dlpath=$dir/\$dldll~
10493 $RM \$dlpath'
10494 shlibpath_overrides_runpath=yes
10495 dynamic_linker='Win32 link.exe'
10496 ;;
10497
10498 *)
10499 # Assume MSVC wrapper
10500 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10501 dynamic_linker='Win32 ld.exe'
10502 ;;
10503 esac
10504 # FIXME: first we should search . and the directory the executable is in
10505 shlibpath_var=PATH
10506 ;;
10507
10508darwin* | rhapsody*)
10509 dynamic_linker="$host_os dyld"
10510 version_type=darwin
10511 need_lib_prefix=no
10512 need_version=no
10513 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10514 soname_spec='${libname}${release}${major}$shared_ext'
10515 shlibpath_overrides_runpath=yes
10516 shlibpath_var=DYLD_LIBRARY_PATH
10517 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10518
10519 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10520 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10521 ;;
10522
10523dgux*)
10524 version_type=linux # correct to gnu/linux during the next big refactor
10525 need_lib_prefix=no
10526 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
10530 ;;
10531
10532freebsd* | dragonfly*)
10533 # DragonFly does not have aout. When/if they implement a new
10534 # versioning mechanism, adjust this.
10535 if test -x /usr/bin/objformat; then
10536 objformat=`/usr/bin/objformat`
10537 else
10538 case $host_os in
10539 freebsd[23].*) objformat=aout ;;
10540 *) objformat=elf ;;
10541 esac
10542 fi
10543 version_type=freebsd-$objformat
10544 case $version_type in
10545 freebsd-elf*)
10546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10547 need_version=no
10548 need_lib_prefix=no
10549 ;;
10550 freebsd-*)
10551 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10552 need_version=yes
10553 ;;
10554 esac
10555 shlibpath_var=LD_LIBRARY_PATH
10556 case $host_os in
10557 freebsd2.*)
10558 shlibpath_overrides_runpath=yes
10559 ;;
10560 freebsd3.[01]* | freebsdelf3.[01]*)
10561 shlibpath_overrides_runpath=yes
10562 hardcode_into_libs=yes
10563 ;;
10564 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10565 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10566 shlibpath_overrides_runpath=no
10567 hardcode_into_libs=yes
10568 ;;
10569 *) # from 4.6 on, and DragonFly
10570 shlibpath_overrides_runpath=yes
10571 hardcode_into_libs=yes
10572 ;;
10573 esac
10574 ;;
10575
10576gnu*)
10577 version_type=linux # correct to gnu/linux during the next big refactor
10578 need_lib_prefix=no
10579 need_version=no
10580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10581 soname_spec='${libname}${release}${shared_ext}$major'
10582 shlibpath_var=LD_LIBRARY_PATH
10583 shlibpath_overrides_runpath=no
10584 hardcode_into_libs=yes
10585 ;;
10586
10587haiku*)
10588 version_type=linux # correct to gnu/linux during the next big refactor
10589 need_lib_prefix=no
10590 need_version=no
10591 dynamic_linker="$host_os runtime_loader"
10592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10593 soname_spec='${libname}${release}${shared_ext}$major'
10594 shlibpath_var=LIBRARY_PATH
10595 shlibpath_overrides_runpath=yes
10596 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10597 hardcode_into_libs=yes
10598 ;;
10599
10600hpux9* | hpux10* | hpux11*)
10601 # Give a soname corresponding to the major version so that dld.sl refuses to
10602 # link against other versions.
10603 version_type=sunos
10604 need_lib_prefix=no
10605 need_version=no
10606 case $host_cpu in
10607 ia64*)
10608 shrext_cmds='.so'
10609 hardcode_into_libs=yes
10610 dynamic_linker="$host_os dld.so"
10611 shlibpath_var=LD_LIBRARY_PATH
10612 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10614 soname_spec='${libname}${release}${shared_ext}$major'
10615 if test "X$HPUX_IA64_MODE" = X32; then
10616 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10617 else
10618 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10619 fi
10620 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10621 ;;
10622 hppa*64*)
10623 shrext_cmds='.sl'
10624 hardcode_into_libs=yes
10625 dynamic_linker="$host_os dld.sl"
10626 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10627 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10629 soname_spec='${libname}${release}${shared_ext}$major'
10630 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10631 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10632 ;;
10633 *)
10634 shrext_cmds='.sl'
10635 dynamic_linker="$host_os dld.sl"
10636 shlibpath_var=SHLIB_PATH
10637 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10639 soname_spec='${libname}${release}${shared_ext}$major'
10640 ;;
10641 esac
10642 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10643 postinstall_cmds='chmod 555 $lib'
10644 # or fails outright, so override atomically:
10645 install_override_mode=555
10646 ;;
10647
10648interix[3-9]*)
10649 version_type=linux # correct to gnu/linux during the next big refactor
10650 need_lib_prefix=no
10651 need_version=no
10652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10653 soname_spec='${libname}${release}${shared_ext}$major'
10654 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10655 shlibpath_var=LD_LIBRARY_PATH
10656 shlibpath_overrides_runpath=no
10657 hardcode_into_libs=yes
10658 ;;
10659
10660irix5* | irix6* | nonstopux*)
10661 case $host_os in
10662 nonstopux*) version_type=nonstopux ;;
10663 *)
10664 if test "$lt_cv_prog_gnu_ld" = yes; then
10665 version_type=linux # correct to gnu/linux during the next big refactor
10666 else
10667 version_type=irix
10668 fi ;;
10669 esac
10670 need_lib_prefix=no
10671 need_version=no
10672 soname_spec='${libname}${release}${shared_ext}$major'
10673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10674 case $host_os in
10675 irix5* | nonstopux*)
10676 libsuff= shlibsuff=
10677 ;;
10678 *)
10679 case $LD in # libtool.m4 will add one of these switches to LD
10680 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10681 libsuff= shlibsuff= libmagic=32-bit;;
10682 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10683 libsuff=32 shlibsuff=N32 libmagic=N32;;
10684 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10685 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10686 *) libsuff= shlibsuff= libmagic=never-match;;
10687 esac
10688 ;;
10689 esac
10690 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10691 shlibpath_overrides_runpath=no
10692 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10693 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10694 hardcode_into_libs=yes
10695 ;;
10696
10697# No shared lib support for Linux oldld, aout, or coff.
10698linux*oldld* | linux*aout* | linux*coff*)
10699 dynamic_linker=no
10700 ;;
10701
10702# This must be glibc/ELF.
10703linux* | k*bsd*-gnu | kopensolaris*-gnu)
10704 version_type=linux # correct to gnu/linux during the next big refactor
10705 need_lib_prefix=no
10706 need_version=no
10707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10708 soname_spec='${libname}${release}${shared_ext}$major'
10709 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10710 shlibpath_var=LD_LIBRARY_PATH
10711 shlibpath_overrides_runpath=no
10712
10713 # Some binutils ld are patched to set DT_RUNPATH
10714 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10715 $as_echo_n "(cached) " >&6
10716else
10717 lt_cv_shlibpath_overrides_runpath=no
10718 save_LDFLAGS=$LDFLAGS
10719 save_libdir=$libdir
10720 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10721 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10723/* end confdefs.h. */
10724
10725int
10726main ()
10727{
10728
10729 ;
10730 return 0;
10731}
10732_ACEOF
10733if ac_fn_c_try_link "$LINENO"; then :
10734 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10735 lt_cv_shlibpath_overrides_runpath=yes
10736fi
10737fi
10738rm -f core conftest.err conftest.$ac_objext \
10739 conftest$ac_exeext conftest.$ac_ext
10740 LDFLAGS=$save_LDFLAGS
10741 libdir=$save_libdir
10742
10743fi
10744
10745 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10746
10747 # This implies no fast_install, which is unacceptable.
10748 # Some rework will be needed to allow for fast_install
10749 # before this can be enabled.
10750 hardcode_into_libs=yes
10751
10752 # Append ld.so.conf contents to the search path
10753 if test -f /etc/ld.so.conf; then
10754 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' ' '`
10755 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10756 fi
10757
10758 # We used to test for /lib/ld.so.1 and disable shared libraries on
10759 # powerpc, because MkLinux only supported shared libraries with the
10760 # GNU dynamic linker. Since this was broken with cross compilers,
10761 # most powerpc-linux boxes support dynamic linking these days and
10762 # people can always --disable-shared, the test was removed, and we
10763 # assume the GNU/Linux dynamic linker is in use.
10764 dynamic_linker='GNU/Linux ld.so'
10765 ;;
10766
10767netbsd*)
10768 version_type=sunos
10769 need_lib_prefix=no
10770 need_version=no
10771 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10773 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10774 dynamic_linker='NetBSD (a.out) ld.so'
10775 else
10776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10777 soname_spec='${libname}${release}${shared_ext}$major'
10778 dynamic_linker='NetBSD ld.elf_so'
10779 fi
10780 shlibpath_var=LD_LIBRARY_PATH
10781 shlibpath_overrides_runpath=yes
10782 hardcode_into_libs=yes
10783 ;;
10784
10785newsos6)
10786 version_type=linux # correct to gnu/linux during the next big refactor
10787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10788 shlibpath_var=LD_LIBRARY_PATH
10789 shlibpath_overrides_runpath=yes
10790 ;;
10791
10792*nto* | *qnx*)
10793 version_type=qnx
10794 need_lib_prefix=no
10795 need_version=no
10796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10797 soname_spec='${libname}${release}${shared_ext}$major'
10798 shlibpath_var=LD_LIBRARY_PATH
10799 shlibpath_overrides_runpath=no
10800 hardcode_into_libs=yes
10801 dynamic_linker='ldqnx.so'
10802 ;;
10803
10804openbsd*)
10805 version_type=sunos
10806 sys_lib_dlsearch_path_spec="/usr/lib"
10807 need_lib_prefix=no
10808 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10809 case $host_os in
10810 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10811 *) need_version=no ;;
10812 esac
10813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10814 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10815 shlibpath_var=LD_LIBRARY_PATH
10816 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10817 case $host_os in
10818 openbsd2.[89] | openbsd2.[89].*)
10819 shlibpath_overrides_runpath=no
10820 ;;
10821 *)
10822 shlibpath_overrides_runpath=yes
10823 ;;
10824 esac
10825 else
10826 shlibpath_overrides_runpath=yes
10827 fi
10828 ;;
10829
10830os2*)
10831 libname_spec='$name'
10832 shrext_cmds=".dll"
10833 need_lib_prefix=no
10834 library_names_spec='$libname${shared_ext} $libname.a'
10835 dynamic_linker='OS/2 ld.exe'
10836 shlibpath_var=LIBPATH
10837 ;;
10838
10839osf3* | osf4* | osf5*)
10840 version_type=osf
10841 need_lib_prefix=no
10842 need_version=no
10843 soname_spec='${libname}${release}${shared_ext}$major'
10844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10845 shlibpath_var=LD_LIBRARY_PATH
10846 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10847 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10848 ;;
10849
10850rdos*)
10851 dynamic_linker=no
10852 ;;
10853
10854solaris*)
10855 version_type=linux # correct to gnu/linux during the next big refactor
10856 need_lib_prefix=no
10857 need_version=no
10858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10859 soname_spec='${libname}${release}${shared_ext}$major'
10860 shlibpath_var=LD_LIBRARY_PATH
10861 shlibpath_overrides_runpath=yes
10862 hardcode_into_libs=yes
10863 # ldd complains unless libraries are executable
10864 postinstall_cmds='chmod +x $lib'
10865 ;;
10866
10867sunos4*)
10868 version_type=sunos
10869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10870 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10871 shlibpath_var=LD_LIBRARY_PATH
10872 shlibpath_overrides_runpath=yes
10873 if test "$with_gnu_ld" = yes; then
10874 need_lib_prefix=no
10875 fi
10876 need_version=yes
10877 ;;
10878
10879sysv4 | sysv4.3*)
10880 version_type=linux # correct to gnu/linux during the next big refactor
10881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10882 soname_spec='${libname}${release}${shared_ext}$major'
10883 shlibpath_var=LD_LIBRARY_PATH
10884 case $host_vendor in
10885 sni)
10886 shlibpath_overrides_runpath=no
10887 need_lib_prefix=no
10888 runpath_var=LD_RUN_PATH
10889 ;;
10890 siemens)
10891 need_lib_prefix=no
10892 ;;
10893 motorola)
10894 need_lib_prefix=no
10895 need_version=no
10896 shlibpath_overrides_runpath=no
10897 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10898 ;;
10899 esac
10900 ;;
10901
10902sysv4*MP*)
10903 if test -d /usr/nec ;then
10904 version_type=linux # correct to gnu/linux during the next big refactor
10905 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10906 soname_spec='$libname${shared_ext}.$major'
10907 shlibpath_var=LD_LIBRARY_PATH
10908 fi
10909 ;;
10910
10911sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10912 version_type=freebsd-elf
10913 need_lib_prefix=no
10914 need_version=no
10915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10916 soname_spec='${libname}${release}${shared_ext}$major'
10917 shlibpath_var=LD_LIBRARY_PATH
10918 shlibpath_overrides_runpath=yes
10919 hardcode_into_libs=yes
10920 if test "$with_gnu_ld" = yes; then
10921 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10922 else
10923 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10924 case $host_os in
10925 sco3.2v5*)
10926 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10927 ;;
10928 esac
10929 fi
10930 sys_lib_dlsearch_path_spec='/usr/lib'
10931 ;;
10932
10933tpf*)
10934 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10935 version_type=linux # correct to gnu/linux during the next big refactor
10936 need_lib_prefix=no
10937 need_version=no
10938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10939 shlibpath_var=LD_LIBRARY_PATH
10940 shlibpath_overrides_runpath=no
10941 hardcode_into_libs=yes
10942 ;;
10943
10944uts4*)
10945 version_type=linux # correct to gnu/linux during the next big refactor
10946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10947 soname_spec='${libname}${release}${shared_ext}$major'
10948 shlibpath_var=LD_LIBRARY_PATH
10949 ;;
10950
10951*)
10952 dynamic_linker=no
10953 ;;
10954esac
10955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10956$as_echo "$dynamic_linker" >&6; }
10957test "$dynamic_linker" = no && can_build_shared=no
10958
10959variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10960if test "$GCC" = yes; then
10961 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10962fi
10963
10964if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10965 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10966fi
10967if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10968 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10969fi
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11063$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11064hardcode_action=
11065if test -n "$hardcode_libdir_flag_spec" ||
11066 test -n "$runpath_var" ||
11067 test "X$hardcode_automatic" = "Xyes" ; then
11068
11069 # We can hardcode non-existent directories.
11070 if test "$hardcode_direct" != no &&
11071 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11072 # have to relink, otherwise we might link with an installed library
11073 # when we should be linking with a yet-to-be-installed one
11074 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11075 test "$hardcode_minus_L" != no; then
11076 # Linking always hardcodes the temporary library directory.
11077 hardcode_action=relink
11078 else
11079 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11080 hardcode_action=immediate
11081 fi
11082else
11083 # We cannot hardcode anything, or else we can only hardcode existing
11084 # directories.
11085 hardcode_action=unsupported
11086fi
11087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11088$as_echo "$hardcode_action" >&6; }
11089
11090if test "$hardcode_action" = relink ||
11091 test "$inherit_rpath" = yes; then
11092 # Fast installation is not supported
11093 enable_fast_install=no
11094elif test "$shlibpath_overrides_runpath" = yes ||
11095 test "$enable_shared" = no; then
11096 # Fast installation is not necessary
11097 enable_fast_install=needless
11098fi
11099
11100
11101
11102
11103
11104
11105 if test "x$enable_dlopen" != xyes; then
11106 enable_dlopen=unknown
11107 enable_dlopen_self=unknown
11108 enable_dlopen_self_static=unknown
11109else
11110 lt_cv_dlopen=no
11111 lt_cv_dlopen_libs=
11112
11113 case $host_os in
11114 beos*)
11115 lt_cv_dlopen="load_add_on"
11116 lt_cv_dlopen_libs=
11117 lt_cv_dlopen_self=yes
11118 ;;
11119
11120 mingw* | pw32* | cegcc*)
11121 lt_cv_dlopen="LoadLibrary"
11122 lt_cv_dlopen_libs=
11123 ;;
11124
11125 cygwin*)
11126 lt_cv_dlopen="dlopen"
11127 lt_cv_dlopen_libs=
11128 ;;
11129
11130 darwin*)
11131 # if libdl is installed we need to link against it
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11133$as_echo_n "checking for dlopen in -ldl... " >&6; }
11134if ${ac_cv_lib_dl_dlopen+:} false; then :
11135 $as_echo_n "(cached) " >&6
11136else
11137 ac_check_lib_save_LIBS=$LIBS
11138LIBS="-ldl $LIBS"
11139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11140/* end confdefs.h. */
11141
11142/* Override any GCC internal prototype to avoid an error.
11143 Use char because int might match the return type of a GCC
11144 builtin and then its argument prototype would still apply. */
11145#ifdef __cplusplus
11146extern "C"
11147#endif
11148char dlopen ();
11149int
11150main ()
11151{
11152return dlopen ();
11153 ;
11154 return 0;
11155}
11156_ACEOF
11157if ac_fn_c_try_link "$LINENO"; then :
11158 ac_cv_lib_dl_dlopen=yes
11159else
11160 ac_cv_lib_dl_dlopen=no
11161fi
11162rm -f core conftest.err conftest.$ac_objext \
11163 conftest$ac_exeext conftest.$ac_ext
11164LIBS=$ac_check_lib_save_LIBS
11165fi
11166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11167$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11168if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11169 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11170else
11171
11172 lt_cv_dlopen="dyld"
11173 lt_cv_dlopen_libs=
11174 lt_cv_dlopen_self=yes
11175
11176fi
11177
11178 ;;
11179
11180 *)
11181 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11182if test "x$ac_cv_func_shl_load" = xyes; then :
11183 lt_cv_dlopen="shl_load"
11184else
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11186$as_echo_n "checking for shl_load in -ldld... " >&6; }
11187if ${ac_cv_lib_dld_shl_load+:} false; then :
11188 $as_echo_n "(cached) " >&6
11189else
11190 ac_check_lib_save_LIBS=$LIBS
11191LIBS="-ldld $LIBS"
11192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11193/* end confdefs.h. */
11194
11195/* Override any GCC internal prototype to avoid an error.
11196 Use char because int might match the return type of a GCC
11197 builtin and then its argument prototype would still apply. */
11198#ifdef __cplusplus
11199extern "C"
11200#endif
11201char shl_load ();
11202int
11203main ()
11204{
11205return shl_load ();
11206 ;
11207 return 0;
11208}
11209_ACEOF
11210if ac_fn_c_try_link "$LINENO"; then :
11211 ac_cv_lib_dld_shl_load=yes
11212else
11213 ac_cv_lib_dld_shl_load=no
11214fi
11215rm -f core conftest.err conftest.$ac_objext \
11216 conftest$ac_exeext conftest.$ac_ext
11217LIBS=$ac_check_lib_save_LIBS
11218fi
11219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11220$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11221if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11222 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11223else
11224 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11225if test "x$ac_cv_func_dlopen" = xyes; then :
11226 lt_cv_dlopen="dlopen"
11227else
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11229$as_echo_n "checking for dlopen in -ldl... " >&6; }
11230if ${ac_cv_lib_dl_dlopen+:} false; then :
11231 $as_echo_n "(cached) " >&6
11232else
11233 ac_check_lib_save_LIBS=$LIBS
11234LIBS="-ldl $LIBS"
11235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11236/* end confdefs.h. */
11237
11238/* Override any GCC internal prototype to avoid an error.
11239 Use char because int might match the return type of a GCC
11240 builtin and then its argument prototype would still apply. */
11241#ifdef __cplusplus
11242extern "C"
11243#endif
11244char dlopen ();
11245int
11246main ()
11247{
11248return dlopen ();
11249 ;
11250 return 0;
11251}
11252_ACEOF
11253if ac_fn_c_try_link "$LINENO"; then :
11254 ac_cv_lib_dl_dlopen=yes
11255else
11256 ac_cv_lib_dl_dlopen=no
11257fi
11258rm -f core conftest.err conftest.$ac_objext \
11259 conftest$ac_exeext conftest.$ac_ext
11260LIBS=$ac_check_lib_save_LIBS
11261fi
11262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11263$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11264if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11265 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11266else
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11268$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11269if ${ac_cv_lib_svld_dlopen+:} false; then :
11270 $as_echo_n "(cached) " >&6
11271else
11272 ac_check_lib_save_LIBS=$LIBS
11273LIBS="-lsvld $LIBS"
11274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11275/* end confdefs.h. */
11276
11277/* Override any GCC internal prototype to avoid an error.
11278 Use char because int might match the return type of a GCC
11279 builtin and then its argument prototype would still apply. */
11280#ifdef __cplusplus
11281extern "C"
11282#endif
11283char dlopen ();
11284int
11285main ()
11286{
11287return dlopen ();
11288 ;
11289 return 0;
11290}
11291_ACEOF
11292if ac_fn_c_try_link "$LINENO"; then :
11293 ac_cv_lib_svld_dlopen=yes
11294else
11295 ac_cv_lib_svld_dlopen=no
11296fi
11297rm -f core conftest.err conftest.$ac_objext \
11298 conftest$ac_exeext conftest.$ac_ext
11299LIBS=$ac_check_lib_save_LIBS
11300fi
11301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11302$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11303if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11304 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11305else
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11307$as_echo_n "checking for dld_link in -ldld... " >&6; }
11308if ${ac_cv_lib_dld_dld_link+:} false; then :
11309 $as_echo_n "(cached) " >&6
11310else
11311 ac_check_lib_save_LIBS=$LIBS
11312LIBS="-ldld $LIBS"
11313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11314/* end confdefs.h. */
11315
11316/* Override any GCC internal prototype to avoid an error.
11317 Use char because int might match the return type of a GCC
11318 builtin and then its argument prototype would still apply. */
11319#ifdef __cplusplus
11320extern "C"
11321#endif
11322char dld_link ();
11323int
11324main ()
11325{
11326return dld_link ();
11327 ;
11328 return 0;
11329}
11330_ACEOF
11331if ac_fn_c_try_link "$LINENO"; then :
11332 ac_cv_lib_dld_dld_link=yes
11333else
11334 ac_cv_lib_dld_dld_link=no
11335fi
11336rm -f core conftest.err conftest.$ac_objext \
11337 conftest$ac_exeext conftest.$ac_ext
11338LIBS=$ac_check_lib_save_LIBS
11339fi
11340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11341$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11342if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11343 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11344fi
11345
11346
11347fi
11348
11349
11350fi
11351
11352
11353fi
11354
11355
11356fi
11357
11358
11359fi
11360
11361 ;;
11362 esac
11363
11364 if test "x$lt_cv_dlopen" != xno; then
11365 enable_dlopen=yes
11366 else
11367 enable_dlopen=no
11368 fi
11369
11370 case $lt_cv_dlopen in
11371 dlopen)
11372 save_CPPFLAGS="$CPPFLAGS"
11373 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11374
11375 save_LDFLAGS="$LDFLAGS"
11376 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11377
11378 save_LIBS="$LIBS"
11379 LIBS="$lt_cv_dlopen_libs $LIBS"
11380
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11382$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11383if ${lt_cv_dlopen_self+:} false; then :
11384 $as_echo_n "(cached) " >&6
11385else
11386 if test "$cross_compiling" = yes; then :
11387 lt_cv_dlopen_self=cross
11388else
11389 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11390 lt_status=$lt_dlunknown
11391 cat > conftest.$ac_ext <<_LT_EOF
11392#line $LINENO "configure"
11393#include "confdefs.h"
11394
11395#if HAVE_DLFCN_H
11396#include <dlfcn.h>
11397#endif
11398
11399#include <stdio.h>
11400
11401#ifdef RTLD_GLOBAL
11402# define LT_DLGLOBAL RTLD_GLOBAL
11403#else
11404# ifdef DL_GLOBAL
11405# define LT_DLGLOBAL DL_GLOBAL
11406# else
11407# define LT_DLGLOBAL 0
11408# endif
11409#endif
11410
11411/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11412 find out it does not work in some platform. */
11413#ifndef LT_DLLAZY_OR_NOW
11414# ifdef RTLD_LAZY
11415# define LT_DLLAZY_OR_NOW RTLD_LAZY
11416# else
11417# ifdef DL_LAZY
11418# define LT_DLLAZY_OR_NOW DL_LAZY
11419# else
11420# ifdef RTLD_NOW
11421# define LT_DLLAZY_OR_NOW RTLD_NOW
11422# else
11423# ifdef DL_NOW
11424# define LT_DLLAZY_OR_NOW DL_NOW
11425# else
11426# define LT_DLLAZY_OR_NOW 0
11427# endif
11428# endif
11429# endif
11430# endif
11431#endif
11432
11433/* When -fvisbility=hidden is used, assume the code has been annotated
11434 correspondingly for the symbols needed. */
11435#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11436int fnord () __attribute__((visibility("default")));
11437#endif
11438
11439int fnord () { return 42; }
11440int main ()
11441{
11442 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11443 int status = $lt_dlunknown;
11444
11445 if (self)
11446 {
11447 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11448 else
11449 {
11450 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11451 else puts (dlerror ());
11452 }
11453 /* dlclose (self); */
11454 }
11455 else
11456 puts (dlerror ());
11457
11458 return status;
11459}
11460_LT_EOF
11461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11462 (eval $ac_link) 2>&5
11463 ac_status=$?
11464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11465 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11466 (./conftest; exit; ) >&5 2>/dev/null
11467 lt_status=$?
11468 case x$lt_status in
11469 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11470 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11471 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11472 esac
11473 else :
11474 # compilation failed
11475 lt_cv_dlopen_self=no
11476 fi
11477fi
11478rm -fr conftest*
11479
11480
11481fi
11482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11483$as_echo "$lt_cv_dlopen_self" >&6; }
11484
11485 if test "x$lt_cv_dlopen_self" = xyes; then
11486 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11488$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11489if ${lt_cv_dlopen_self_static+:} false; then :
11490 $as_echo_n "(cached) " >&6
11491else
11492 if test "$cross_compiling" = yes; then :
11493 lt_cv_dlopen_self_static=cross
11494else
11495 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11496 lt_status=$lt_dlunknown
11497 cat > conftest.$ac_ext <<_LT_EOF
11498#line $LINENO "configure"
11499#include "confdefs.h"
11500
11501#if HAVE_DLFCN_H
11502#include <dlfcn.h>
11503#endif
11504
11505#include <stdio.h>
11506
11507#ifdef RTLD_GLOBAL
11508# define LT_DLGLOBAL RTLD_GLOBAL
11509#else
11510# ifdef DL_GLOBAL
11511# define LT_DLGLOBAL DL_GLOBAL
11512# else
11513# define LT_DLGLOBAL 0
11514# endif
11515#endif
11516
11517/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11518 find out it does not work in some platform. */
11519#ifndef LT_DLLAZY_OR_NOW
11520# ifdef RTLD_LAZY
11521# define LT_DLLAZY_OR_NOW RTLD_LAZY
11522# else
11523# ifdef DL_LAZY
11524# define LT_DLLAZY_OR_NOW DL_LAZY
11525# else
11526# ifdef RTLD_NOW
11527# define LT_DLLAZY_OR_NOW RTLD_NOW
11528# else
11529# ifdef DL_NOW
11530# define LT_DLLAZY_OR_NOW DL_NOW
11531# else
11532# define LT_DLLAZY_OR_NOW 0
11533# endif
11534# endif
11535# endif
11536# endif
11537#endif
11538
11539/* When -fvisbility=hidden is used, assume the code has been annotated
11540 correspondingly for the symbols needed. */
11541#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11542int fnord () __attribute__((visibility("default")));
11543#endif
11544
11545int fnord () { return 42; }
11546int main ()
11547{
11548 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11549 int status = $lt_dlunknown;
11550
11551 if (self)
11552 {
11553 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11554 else
11555 {
11556 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11557 else puts (dlerror ());
11558 }
11559 /* dlclose (self); */
11560 }
11561 else
11562 puts (dlerror ());
11563
11564 return status;
11565}
11566_LT_EOF
11567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11568 (eval $ac_link) 2>&5
11569 ac_status=$?
11570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11571 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11572 (./conftest; exit; ) >&5 2>/dev/null
11573 lt_status=$?
11574 case x$lt_status in
11575 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11576 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11577 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11578 esac
11579 else :
11580 # compilation failed
11581 lt_cv_dlopen_self_static=no
11582 fi
11583fi
11584rm -fr conftest*
11585
11586
11587fi
11588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11589$as_echo "$lt_cv_dlopen_self_static" >&6; }
11590 fi
11591
11592 CPPFLAGS="$save_CPPFLAGS"
11593 LDFLAGS="$save_LDFLAGS"
11594 LIBS="$save_LIBS"
11595 ;;
11596 esac
11597
11598 case $lt_cv_dlopen_self in
11599 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11600 *) enable_dlopen_self=unknown ;;
11601 esac
11602
11603 case $lt_cv_dlopen_self_static in
11604 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11605 *) enable_dlopen_self_static=unknown ;;
11606 esac
11607fi
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625striplib=
11626old_striplib=
11627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11628$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11629if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11630 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11631 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11633$as_echo "yes" >&6; }
11634else
11635# FIXME - insert some real tests, host_os isn't really good enough
11636 case $host_os in
11637 darwin*)
11638 if test -n "$STRIP" ; then
11639 striplib="$STRIP -x"
11640 old_striplib="$STRIP -S"
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11642$as_echo "yes" >&6; }
11643 else
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645$as_echo "no" >&6; }
11646 fi
11647 ;;
11648 *)
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11650$as_echo "no" >&6; }
11651 ;;
11652 esac
11653fi
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666 # Report which library types will actually be built
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11668$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11670$as_echo "$can_build_shared" >&6; }
11671
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11673$as_echo_n "checking whether to build shared libraries... " >&6; }
11674 test "$can_build_shared" = "no" && enable_shared=no
11675
11676 # On AIX, shared libraries and static libraries use the same namespace, and
11677 # are all built from PIC.
11678 case $host_os in
11679 aix3*)
11680 test "$enable_shared" = yes && enable_static=no
11681 if test -n "$RANLIB"; then
11682 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11683 postinstall_cmds='$RANLIB $lib'
11684 fi
11685 ;;
11686
11687 aix[4-9]*)
11688 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11689 test "$enable_shared" = yes && enable_static=no
11690 fi
11691 ;;
11692 esac
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11694$as_echo "$enable_shared" >&6; }
11695
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11697$as_echo_n "checking whether to build static libraries... " >&6; }
11698 # Make sure either enable_shared or enable_static is yes.
11699 test "$enable_shared" = yes || enable_static=yes
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11701$as_echo "$enable_static" >&6; }
11702
11703
11704
11705
11706fi
11707ac_ext=c
11708ac_cpp='$CPP $CPPFLAGS'
11709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11711ac_compiler_gnu=$ac_cv_c_compiler_gnu
11712
11713CC="$lt_save_CC"
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729 ac_config_commands="$ac_config_commands libtool"
11730
11731
11732
11733
11734# Only expand once:
11735
11736
11737ac_ext=cpp
11738ac_cpp='$CXXCPP $CPPFLAGS'
11739ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11740ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11741ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11742if test -z "$CXX"; then
11743 if test -n "$CCC"; then
11744 CXX=$CCC
11745 else
11746 if test -n "$ac_tool_prefix"; then
11747 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11748 do
11749 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11750set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11752$as_echo_n "checking for $ac_word... " >&6; }
11753if ${ac_cv_prog_CXX+:} false; then :
11754 $as_echo_n "(cached) " >&6
11755else
11756 if test -n "$CXX"; then
11757 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11758else
11759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11760for as_dir in $PATH
11761do
11762 IFS=$as_save_IFS
11763 test -z "$as_dir" && as_dir=.
11764 for ac_exec_ext in '' $ac_executable_extensions; do
11765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11766 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11768 break 2
11769 fi
11770done
11771 done
11772IFS=$as_save_IFS
11773
11774fi
11775fi
11776CXX=$ac_cv_prog_CXX
11777if test -n "$CXX"; then
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11779$as_echo "$CXX" >&6; }
11780else
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11782$as_echo "no" >&6; }
11783fi
11784
11785
11786 test -n "$CXX" && break
11787 done
11788fi
11789if test -z "$CXX"; then
11790 ac_ct_CXX=$CXX
11791 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11792do
11793 # Extract the first word of "$ac_prog", so it can be a program name with args.
11794set dummy $ac_prog; ac_word=$2
11795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11796$as_echo_n "checking for $ac_word... " >&6; }
11797if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11798 $as_echo_n "(cached) " >&6
11799else
11800 if test -n "$ac_ct_CXX"; then
11801 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11802else
11803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11804for as_dir in $PATH
11805do
11806 IFS=$as_save_IFS
11807 test -z "$as_dir" && as_dir=.
11808 for ac_exec_ext in '' $ac_executable_extensions; do
11809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11810 ac_cv_prog_ac_ct_CXX="$ac_prog"
11811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11812 break 2
11813 fi
11814done
11815 done
11816IFS=$as_save_IFS
11817
11818fi
11819fi
11820ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11821if test -n "$ac_ct_CXX"; then
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11823$as_echo "$ac_ct_CXX" >&6; }
11824else
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11826$as_echo "no" >&6; }
11827fi
11828
11829
11830 test -n "$ac_ct_CXX" && break
11831done
11832
11833 if test "x$ac_ct_CXX" = x; then
11834 CXX="g++"
11835 else
11836 case $cross_compiling:$ac_tool_warned in
11837yes:)
11838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11840ac_tool_warned=yes ;;
11841esac
11842 CXX=$ac_ct_CXX
11843 fi
11844fi
11845
11846 fi
11847fi
11848# Provide some information about the compiler.
11849$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11850set X $ac_compile
11851ac_compiler=$2
11852for ac_option in --version -v -V -qversion; do
11853 { { ac_try="$ac_compiler $ac_option >&5"
11854case "(($ac_try" in
11855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11856 *) ac_try_echo=$ac_try;;
11857esac
11858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11859$as_echo "$ac_try_echo"; } >&5
11860 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11861 ac_status=$?
11862 if test -s conftest.err; then
11863 sed '10a\
11864... rest of stderr output deleted ...
11865 10q' conftest.err >conftest.er1
11866 cat conftest.er1 >&5
11867 fi
11868 rm -f conftest.er1 conftest.err
11869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11870 test $ac_status = 0; }
11871done
11872
11873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11874$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11875if ${ac_cv_cxx_compiler_gnu+:} false; then :
11876 $as_echo_n "(cached) " >&6
11877else
11878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11879/* end confdefs.h. */
11880
11881int
11882main ()
11883{
11884#ifndef __GNUC__
11885 choke me
11886#endif
11887
11888 ;
11889 return 0;
11890}
11891_ACEOF
11892if ac_fn_cxx_try_compile "$LINENO"; then :
11893 ac_compiler_gnu=yes
11894else
11895 ac_compiler_gnu=no
11896fi
11897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11898ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11899
11900fi
11901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11902$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11903if test $ac_compiler_gnu = yes; then
11904 GXX=yes
11905else
11906 GXX=
11907fi
11908ac_test_CXXFLAGS=${CXXFLAGS+set}
11909ac_save_CXXFLAGS=$CXXFLAGS
11910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11911$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11912if ${ac_cv_prog_cxx_g+:} false; then :
11913 $as_echo_n "(cached) " >&6
11914else
11915 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11916 ac_cxx_werror_flag=yes
11917 ac_cv_prog_cxx_g=no
11918 CXXFLAGS="-g"
11919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11920/* end confdefs.h. */
11921
11922int
11923main ()
11924{
11925
11926 ;
11927 return 0;
11928}
11929_ACEOF
11930if ac_fn_cxx_try_compile "$LINENO"; then :
11931 ac_cv_prog_cxx_g=yes
11932else
11933 CXXFLAGS=""
11934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11935/* end confdefs.h. */
11936
11937int
11938main ()
11939{
11940
11941 ;
11942 return 0;
11943}
11944_ACEOF
11945if ac_fn_cxx_try_compile "$LINENO"; then :
11946
11947else
11948 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11949 CXXFLAGS="-g"
11950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11951/* end confdefs.h. */
11952
11953int
11954main ()
11955{
11956
11957 ;
11958 return 0;
11959}
11960_ACEOF
11961if ac_fn_cxx_try_compile "$LINENO"; then :
11962 ac_cv_prog_cxx_g=yes
11963fi
11964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11965fi
11966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11967fi
11968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11969 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11970fi
11971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11972$as_echo "$ac_cv_prog_cxx_g" >&6; }
11973if test "$ac_test_CXXFLAGS" = set; then
11974 CXXFLAGS=$ac_save_CXXFLAGS
11975elif test $ac_cv_prog_cxx_g = yes; then
11976 if test "$GXX" = yes; then
11977 CXXFLAGS="-g -O2"
11978 else
11979 CXXFLAGS="-g"
11980 fi
11981else
11982 if test "$GXX" = yes; then
11983 CXXFLAGS="-O2"
11984 else
11985 CXXFLAGS=
11986 fi
11987fi
11988ac_ext=c
11989ac_cpp='$CPP $CPPFLAGS'
11990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11992ac_compiler_gnu=$ac_cv_c_compiler_gnu
11993
11994depcc="$CXX" am_compiler_list=
11995
11996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11997$as_echo_n "checking dependency style of $depcc... " >&6; }
11998if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
11999 $as_echo_n "(cached) " >&6
12000else
12001 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12002 # We make a subdir and do the tests there. Otherwise we can end up
12003 # making bogus files that we don't know about and never remove. For
12004 # instance it was reported that on HP-UX the gcc test will end up
12005 # making a dummy file named 'D' -- because '-MD' means "put the output
12006 # in D".
12007 rm -rf conftest.dir
12008 mkdir conftest.dir
12009 # Copy depcomp to subdir because otherwise we won't find it if we're
12010 # using a relative directory.
12011 cp "$am_depcomp" conftest.dir
12012 cd conftest.dir
12013 # We will build objects and dependencies in a subdirectory because
12014 # it helps to detect inapplicable dependency modes. For instance
12015 # both Tru64's cc and ICC support -MD to output dependencies as a
12016 # side effect of compilation, but ICC will put the dependencies in
12017 # the current directory while Tru64 will put them in the object
12018 # directory.
12019 mkdir sub
12020
12021 am_cv_CXX_dependencies_compiler_type=none
12022 if test "$am_compiler_list" = ""; then
12023 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12024 fi
12025 am__universal=false
12026 case " $depcc " in #(
12027 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12028 esac
12029
12030 for depmode in $am_compiler_list; do
12031 # Setup a source with many dependencies, because some compilers
12032 # like to wrap large dependency lists on column 80 (with \), and
12033 # we should not choose a depcomp mode which is confused by this.
12034 #
12035 # We need to recreate these files for each test, as the compiler may
12036 # overwrite some of them when testing with obscure command lines.
12037 # This happens at least with the AIX C compiler.
12038 : > sub/conftest.c
12039 for i in 1 2 3 4 5 6; do
12040 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12041 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12042 # Solaris 10 /bin/sh.
12043 echo '/* dummy */' > sub/conftst$i.h
12044 done
12045 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12046
12047 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12048 # mode. It turns out that the SunPro C++ compiler does not properly
12049 # handle '-M -o', and we need to detect this. Also, some Intel
12050 # versions had trouble with output in subdirs.
12051 am__obj=sub/conftest.${OBJEXT-o}
12052 am__minus_obj="-o $am__obj"
12053 case $depmode in
12054 gcc)
12055 # This depmode causes a compiler race in universal mode.
12056 test "$am__universal" = false || continue
12057 ;;
12058 nosideeffect)
12059 # After this tag, mechanisms are not by side-effect, so they'll
12060 # only be used when explicitly requested.
12061 if test "x$enable_dependency_tracking" = xyes; then
12062 continue
12063 else
12064 break
12065 fi
12066 ;;
12067 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12068 # This compiler won't grok '-c -o', but also, the minuso test has
12069 # not run yet. These depmodes are late enough in the game, and
12070 # so weak that their functioning should not be impacted.
12071 am__obj=conftest.${OBJEXT-o}
12072 am__minus_obj=
12073 ;;
12074 none) break ;;
12075 esac
12076 if depmode=$depmode \
12077 source=sub/conftest.c object=$am__obj \
12078 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12079 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12080 >/dev/null 2>conftest.err &&
12081 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12082 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12083 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12084 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12085 # icc doesn't choke on unknown options, it will just issue warnings
12086 # or remarks (even with -Werror). So we grep stderr for any message
12087 # that says an option was ignored or not supported.
12088 # When given -MP, icc 7.0 and 7.1 complain thusly:
12089 # icc: Command line warning: ignoring option '-M'; no argument required
12090 # The diagnosis changed in icc 8.0:
12091 # icc: Command line remark: option '-MP' not supported
12092 if (grep 'ignoring option' conftest.err ||
12093 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12094 am_cv_CXX_dependencies_compiler_type=$depmode
12095 break
12096 fi
12097 fi
12098 done
12099
12100 cd ..
12101 rm -rf conftest.dir
12102else
12103 am_cv_CXX_dependencies_compiler_type=none
12104fi
12105
12106fi
12107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12108$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12109CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12110
12111 if
12112 test "x$enable_dependency_tracking" != xno \
12113 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12114 am__fastdepCXX_TRUE=
12115 am__fastdepCXX_FALSE='#'
12116else
12117 am__fastdepCXX_TRUE='#'
12118 am__fastdepCXX_FALSE=
12119fi
12120
12121
12122
12123
12124func_stripname_cnf ()
12125{
12126 case ${2} in
12127 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12128 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12129 esac
12130} # func_stripname_cnf
12131
12132 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12133 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12134 (test "X$CXX" != "Xg++"))) ; then
12135 ac_ext=cpp
12136ac_cpp='$CXXCPP $CPPFLAGS'
12137ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12138ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12139ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12141$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12142if test -z "$CXXCPP"; then
12143 if ${ac_cv_prog_CXXCPP+:} false; then :
12144 $as_echo_n "(cached) " >&6
12145else
12146 # Double quotes because CXXCPP needs to be expanded
12147 for CXXCPP in "$CXX -E" "/lib/cpp"
12148 do
12149 ac_preproc_ok=false
12150for ac_cxx_preproc_warn_flag in '' yes
12151do
12152 # Use a header file that comes with gcc, so configuring glibc
12153 # with a fresh cross-compiler works.
12154 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12155 # <limits.h> exists even on freestanding compilers.
12156 # On the NeXT, cc -E runs the code through the compiler's parser,
12157 # not just through cpp. "Syntax error" is here to catch this case.
12158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12159/* end confdefs.h. */
12160#ifdef __STDC__
12161# include <limits.h>
12162#else
12163# include <assert.h>
12164#endif
12165 Syntax error
12166_ACEOF
12167if ac_fn_cxx_try_cpp "$LINENO"; then :
12168
12169else
12170 # Broken: fails on valid input.
12171continue
12172fi
12173rm -f conftest.err conftest.i conftest.$ac_ext
12174
12175 # OK, works on sane cases. Now check whether nonexistent headers
12176 # can be detected and how.
12177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12178/* end confdefs.h. */
12179#include <ac_nonexistent.h>
12180_ACEOF
12181if ac_fn_cxx_try_cpp "$LINENO"; then :
12182 # Broken: success on invalid input.
12183continue
12184else
12185 # Passes both tests.
12186ac_preproc_ok=:
12187break
12188fi
12189rm -f conftest.err conftest.i conftest.$ac_ext
12190
12191done
12192# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12193rm -f conftest.i conftest.err conftest.$ac_ext
12194if $ac_preproc_ok; then :
12195 break
12196fi
12197
12198 done
12199 ac_cv_prog_CXXCPP=$CXXCPP
12200
12201fi
12202 CXXCPP=$ac_cv_prog_CXXCPP
12203else
12204 ac_cv_prog_CXXCPP=$CXXCPP
12205fi
12206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12207$as_echo "$CXXCPP" >&6; }
12208ac_preproc_ok=false
12209for ac_cxx_preproc_warn_flag in '' yes
12210do
12211 # Use a header file that comes with gcc, so configuring glibc
12212 # with a fresh cross-compiler works.
12213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12214 # <limits.h> exists even on freestanding compilers.
12215 # On the NeXT, cc -E runs the code through the compiler's parser,
12216 # not just through cpp. "Syntax error" is here to catch this case.
12217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12218/* end confdefs.h. */
12219#ifdef __STDC__
12220# include <limits.h>
12221#else
12222# include <assert.h>
12223#endif
12224 Syntax error
12225_ACEOF
12226if ac_fn_cxx_try_cpp "$LINENO"; then :
12227
12228else
12229 # Broken: fails on valid input.
12230continue
12231fi
12232rm -f conftest.err conftest.i conftest.$ac_ext
12233
12234 # OK, works on sane cases. Now check whether nonexistent headers
12235 # can be detected and how.
12236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12237/* end confdefs.h. */
12238#include <ac_nonexistent.h>
12239_ACEOF
12240if ac_fn_cxx_try_cpp "$LINENO"; then :
12241 # Broken: success on invalid input.
12242continue
12243else
12244 # Passes both tests.
12245ac_preproc_ok=:
12246break
12247fi
12248rm -f conftest.err conftest.i conftest.$ac_ext
12249
12250done
12251# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12252rm -f conftest.i conftest.err conftest.$ac_ext
12253if $ac_preproc_ok; then :
12254
12255else
12256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12258as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12259See \`config.log' for more details" "$LINENO" 5; }
12260fi
12261
12262ac_ext=c
12263ac_cpp='$CPP $CPPFLAGS'
12264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12266ac_compiler_gnu=$ac_cv_c_compiler_gnu
12267
12268else
12269 _lt_caught_CXX_error=yes
12270fi
12271
12272ac_ext=cpp
12273ac_cpp='$CXXCPP $CPPFLAGS'
12274ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12275ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12276ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12277
12278archive_cmds_need_lc_CXX=no
12279allow_undefined_flag_CXX=
12280always_export_symbols_CXX=no
12281archive_expsym_cmds_CXX=
12282compiler_needs_object_CXX=no
12283export_dynamic_flag_spec_CXX=
12284hardcode_direct_CXX=no
12285hardcode_direct_absolute_CXX=no
12286hardcode_libdir_flag_spec_CXX=
12287hardcode_libdir_separator_CXX=
12288hardcode_minus_L_CXX=no
12289hardcode_shlibpath_var_CXX=unsupported
12290hardcode_automatic_CXX=no
12291inherit_rpath_CXX=no
12292module_cmds_CXX=
12293module_expsym_cmds_CXX=
12294link_all_deplibs_CXX=unknown
12295old_archive_cmds_CXX=$old_archive_cmds
12296reload_flag_CXX=$reload_flag
12297reload_cmds_CXX=$reload_cmds
12298no_undefined_flag_CXX=
12299whole_archive_flag_spec_CXX=
12300enable_shared_with_static_runtimes_CXX=no
12301
12302# Source file extension for C++ test sources.
12303ac_ext=cpp
12304
12305# Object file extension for compiled C++ test sources.
12306objext=o
12307objext_CXX=$objext
12308
12309# No sense in running all these tests if we already determined that
12310# the CXX compiler isn't working. Some variables (like enable_shared)
12311# are currently assumed to apply to all compilers on this platform,
12312# and will be corrupted by setting them based on a non-working compiler.
12313if test "$_lt_caught_CXX_error" != yes; then
12314 # Code to be used in simple compile tests
12315 lt_simple_compile_test_code="int some_variable = 0;"
12316
12317 # Code to be used in simple link tests
12318 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12319
12320 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12321
12322
12323
12324
12325
12326
12327# If no C compiler was specified, use CC.
12328LTCC=${LTCC-"$CC"}
12329
12330# If no C compiler flags were specified, use CFLAGS.
12331LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12332
12333# Allow CC to be a program name with arguments.
12334compiler=$CC
12335
12336
12337 # save warnings/boilerplate of simple test code
12338 ac_outfile=conftest.$ac_objext
12339echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12340eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12341_lt_compiler_boilerplate=`cat conftest.err`
12342$RM conftest*
12343
12344 ac_outfile=conftest.$ac_objext
12345echo "$lt_simple_link_test_code" >conftest.$ac_ext
12346eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12347_lt_linker_boilerplate=`cat conftest.err`
12348$RM -r conftest*
12349
12350
12351 # Allow CC to be a program name with arguments.
12352 lt_save_CC=$CC
12353 lt_save_CFLAGS=$CFLAGS
12354 lt_save_LD=$LD
12355 lt_save_GCC=$GCC
12356 GCC=$GXX
12357 lt_save_with_gnu_ld=$with_gnu_ld
12358 lt_save_path_LD=$lt_cv_path_LD
12359 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12360 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12361 else
12362 $as_unset lt_cv_prog_gnu_ld
12363 fi
12364 if test -n "${lt_cv_path_LDCXX+set}"; then
12365 lt_cv_path_LD=$lt_cv_path_LDCXX
12366 else
12367 $as_unset lt_cv_path_LD
12368 fi
12369 test -z "${LDCXX+set}" || LD=$LDCXX
12370 CC=${CXX-"c++"}
12371 CFLAGS=$CXXFLAGS
12372 compiler=$CC
12373 compiler_CXX=$CC
12374 for cc_temp in $compiler""; do
12375 case $cc_temp in
12376 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12377 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12378 \-*) ;;
12379 *) break;;
12380 esac
12381done
12382cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12383
12384
12385 if test -n "$compiler"; then
12386 # We don't want -fno-exception when compiling C++ code, so set the
12387 # no_builtin_flag separately
12388 if test "$GXX" = yes; then
12389 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12390 else
12391 lt_prog_compiler_no_builtin_flag_CXX=
12392 fi
12393
12394 if test "$GXX" = yes; then
12395 # Set up default GNU C++ configuration
12396
12397
12398
12399# Check whether --with-gnu-ld was given.
12400if test "${with_gnu_ld+set}" = set; then :
12401 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12402else
12403 with_gnu_ld=no
12404fi
12405
12406ac_prog=ld
12407if test "$GCC" = yes; then
12408 # Check if gcc -print-prog-name=ld gives a path.
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12410$as_echo_n "checking for ld used by $CC... " >&6; }
12411 case $host in
12412 *-*-mingw*)
12413 # gcc leaves a trailing carriage return which upsets mingw
12414 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12415 *)
12416 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12417 esac
12418 case $ac_prog in
12419 # Accept absolute paths.
12420 [\\/]* | ?:[\\/]*)
12421 re_direlt='/[^/][^/]*/\.\./'
12422 # Canonicalize the pathname of ld
12423 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12424 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12425 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12426 done
12427 test -z "$LD" && LD="$ac_prog"
12428 ;;
12429 "")
12430 # If it fails, then pretend we aren't using GCC.
12431 ac_prog=ld
12432 ;;
12433 *)
12434 # If it is relative, then search for the first ld in PATH.
12435 with_gnu_ld=unknown
12436 ;;
12437 esac
12438elif test "$with_gnu_ld" = yes; then
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12440$as_echo_n "checking for GNU ld... " >&6; }
12441else
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12443$as_echo_n "checking for non-GNU ld... " >&6; }
12444fi
12445if ${lt_cv_path_LD+:} false; then :
12446 $as_echo_n "(cached) " >&6
12447else
12448 if test -z "$LD"; then
12449 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12450 for ac_dir in $PATH; do
12451 IFS="$lt_save_ifs"
12452 test -z "$ac_dir" && ac_dir=.
12453 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12454 lt_cv_path_LD="$ac_dir/$ac_prog"
12455 # Check to see if the program is GNU ld. I'd rather use --version,
12456 # but apparently some variants of GNU ld only accept -v.
12457 # Break only if it was the GNU/non-GNU ld that we prefer.
12458 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12459 *GNU* | *'with BFD'*)
12460 test "$with_gnu_ld" != no && break
12461 ;;
12462 *)
12463 test "$with_gnu_ld" != yes && break
12464 ;;
12465 esac
12466 fi
12467 done
12468 IFS="$lt_save_ifs"
12469else
12470 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12471fi
12472fi
12473
12474LD="$lt_cv_path_LD"
12475if test -n "$LD"; then
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12477$as_echo "$LD" >&6; }
12478else
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12480$as_echo "no" >&6; }
12481fi
12482test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12484$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12485if ${lt_cv_prog_gnu_ld+:} false; then :
12486 $as_echo_n "(cached) " >&6
12487else
12488 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12489case `$LD -v 2>&1 </dev/null` in
12490*GNU* | *'with BFD'*)
12491 lt_cv_prog_gnu_ld=yes
12492 ;;
12493*)
12494 lt_cv_prog_gnu_ld=no
12495 ;;
12496esac
12497fi
12498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12499$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12500with_gnu_ld=$lt_cv_prog_gnu_ld
12501
12502
12503
12504
12505
12506
12507
12508 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12509 # archiving commands below assume that GNU ld is being used.
12510 if test "$with_gnu_ld" = yes; then
12511 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12512 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'
12513
12514 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12515 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12516
12517 # If archive_cmds runs LD, not CC, wlarc should be empty
12518 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12519 # investigate it a little bit more. (MM)
12520 wlarc='${wl}'
12521
12522 # ancient GNU ld didn't support --whole-archive et. al.
12523 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12524 $GREP 'no-whole-archive' > /dev/null; then
12525 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12526 else
12527 whole_archive_flag_spec_CXX=
12528 fi
12529 else
12530 with_gnu_ld=no
12531 wlarc=
12532
12533 # A generic and very simple default shared library creation
12534 # command for GNU C++ for the case where it uses the native
12535 # linker, instead of GNU ld. If possible, this setting should
12536 # overridden to take advantage of the native linker features on
12537 # the platform it is being used on.
12538 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12539 fi
12540
12541 # Commands to make compiler produce verbose output that lists
12542 # what "hidden" libraries, object files and flags are used when
12543 # linking a shared library.
12544 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12545
12546 else
12547 GXX=no
12548 with_gnu_ld=no
12549 wlarc=
12550 fi
12551
12552 # PORTME: fill in a description of your system's C++ link characteristics
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12554$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12555 ld_shlibs_CXX=yes
12556 case $host_os in
12557 aix3*)
12558 # FIXME: insert proper C++ library support
12559 ld_shlibs_CXX=no
12560 ;;
12561 aix[4-9]*)
12562 if test "$host_cpu" = ia64; then
12563 # On IA64, the linker does run time linking by default, so we don't
12564 # have to do anything special.
12565 aix_use_runtimelinking=no
12566 exp_sym_flag='-Bexport'
12567 no_entry_flag=""
12568 else
12569 aix_use_runtimelinking=no
12570
12571 # Test if we are trying to use run time linking or normal
12572 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12573 # need to do runtime linking.
12574 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12575 for ld_flag in $LDFLAGS; do
12576 case $ld_flag in
12577 *-brtl*)
12578 aix_use_runtimelinking=yes
12579 break
12580 ;;
12581 esac
12582 done
12583 ;;
12584 esac
12585
12586 exp_sym_flag='-bexport'
12587 no_entry_flag='-bnoentry'
12588 fi
12589
12590 # When large executables or shared objects are built, AIX ld can
12591 # have problems creating the table of contents. If linking a library
12592 # or program results in "error TOC overflow" add -mminimal-toc to
12593 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12594 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12595
12596 archive_cmds_CXX=''
12597 hardcode_direct_CXX=yes
12598 hardcode_direct_absolute_CXX=yes
12599 hardcode_libdir_separator_CXX=':'
12600 link_all_deplibs_CXX=yes
12601 file_list_spec_CXX='${wl}-f,'
12602
12603 if test "$GXX" = yes; then
12604 case $host_os in aix4.[012]|aix4.[012].*)
12605 # We only want to do this on AIX 4.2 and lower, the check
12606 # below for broken collect2 doesn't work under 4.3+
12607 collect2name=`${CC} -print-prog-name=collect2`
12608 if test -f "$collect2name" &&
12609 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12610 then
12611 # We have reworked collect2
12612 :
12613 else
12614 # We have old collect2
12615 hardcode_direct_CXX=unsupported
12616 # It fails to find uninstalled libraries when the uninstalled
12617 # path is not listed in the libpath. Setting hardcode_minus_L
12618 # to unsupported forces relinking
12619 hardcode_minus_L_CXX=yes
12620 hardcode_libdir_flag_spec_CXX='-L$libdir'
12621 hardcode_libdir_separator_CXX=
12622 fi
12623 esac
12624 shared_flag='-shared'
12625 if test "$aix_use_runtimelinking" = yes; then
12626 shared_flag="$shared_flag "'${wl}-G'
12627 fi
12628 else
12629 # not using gcc
12630 if test "$host_cpu" = ia64; then
12631 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12632 # chokes on -Wl,-G. The following line is correct:
12633 shared_flag='-G'
12634 else
12635 if test "$aix_use_runtimelinking" = yes; then
12636 shared_flag='${wl}-G'
12637 else
12638 shared_flag='${wl}-bM:SRE'
12639 fi
12640 fi
12641 fi
12642
12643 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12644 # It seems that -bexpall does not export symbols beginning with
12645 # underscore (_), so it is better to generate a list of symbols to
12646 # export.
12647 always_export_symbols_CXX=yes
12648 if test "$aix_use_runtimelinking" = yes; then
12649 # Warning - without using the other runtime loading flags (-brtl),
12650 # -berok will link without error, but may produce a broken library.
12651 allow_undefined_flag_CXX='-berok'
12652 # Determine the default libpath from the value encoded in an empty
12653 # executable.
12654 if test "${lt_cv_aix_libpath+set}" = set; then
12655 aix_libpath=$lt_cv_aix_libpath
12656else
12657 if ${lt_cv_aix_libpath__CXX+:} false; then :
12658 $as_echo_n "(cached) " >&6
12659else
12660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661/* end confdefs.h. */
12662
12663int
12664main ()
12665{
12666
12667 ;
12668 return 0;
12669}
12670_ACEOF
12671if ac_fn_cxx_try_link "$LINENO"; then :
12672
12673 lt_aix_libpath_sed='
12674 /Import File Strings/,/^$/ {
12675 /^0/ {
12676 s/^0 *\([^ ]*\) *$/\1/
12677 p
12678 }
12679 }'
12680 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12681 # Check for a 64-bit object if we didn't find anything.
12682 if test -z "$lt_cv_aix_libpath__CXX"; then
12683 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12684 fi
12685fi
12686rm -f core conftest.err conftest.$ac_objext \
12687 conftest$ac_exeext conftest.$ac_ext
12688 if test -z "$lt_cv_aix_libpath__CXX"; then
12689 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12690 fi
12691
12692fi
12693
12694 aix_libpath=$lt_cv_aix_libpath__CXX
12695fi
12696
12697 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12698
12699 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"
12700 else
12701 if test "$host_cpu" = ia64; then
12702 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12703 allow_undefined_flag_CXX="-z nodefs"
12704 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"
12705 else
12706 # Determine the default libpath from the value encoded in an
12707 # empty executable.
12708 if test "${lt_cv_aix_libpath+set}" = set; then
12709 aix_libpath=$lt_cv_aix_libpath
12710else
12711 if ${lt_cv_aix_libpath__CXX+:} false; then :
12712 $as_echo_n "(cached) " >&6
12713else
12714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12715/* end confdefs.h. */
12716
12717int
12718main ()
12719{
12720
12721 ;
12722 return 0;
12723}
12724_ACEOF
12725if ac_fn_cxx_try_link "$LINENO"; then :
12726
12727 lt_aix_libpath_sed='
12728 /Import File Strings/,/^$/ {
12729 /^0/ {
12730 s/^0 *\([^ ]*\) *$/\1/
12731 p
12732 }
12733 }'
12734 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12735 # Check for a 64-bit object if we didn't find anything.
12736 if test -z "$lt_cv_aix_libpath__CXX"; then
12737 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12738 fi
12739fi
12740rm -f core conftest.err conftest.$ac_objext \
12741 conftest$ac_exeext conftest.$ac_ext
12742 if test -z "$lt_cv_aix_libpath__CXX"; then
12743 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12744 fi
12745
12746fi
12747
12748 aix_libpath=$lt_cv_aix_libpath__CXX
12749fi
12750
12751 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12752 # Warning - without using the other run time loading flags,
12753 # -berok will link without error, but may produce a broken library.
12754 no_undefined_flag_CXX=' ${wl}-bernotok'
12755 allow_undefined_flag_CXX=' ${wl}-berok'
12756 if test "$with_gnu_ld" = yes; then
12757 # We only use this code for GNU lds that support --whole-archive.
12758 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12759 else
12760 # Exported symbols can be pulled into shared objects from archives
12761 whole_archive_flag_spec_CXX='$convenience'
12762 fi
12763 archive_cmds_need_lc_CXX=yes
12764 # This is similar to how AIX traditionally builds its shared
12765 # libraries.
12766 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'
12767 fi
12768 fi
12769 ;;
12770
12771 beos*)
12772 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12773 allow_undefined_flag_CXX=unsupported
12774 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12775 # support --undefined. This deserves some investigation. FIXME
12776 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12777 else
12778 ld_shlibs_CXX=no
12779 fi
12780 ;;
12781
12782 chorus*)
12783 case $cc_basename in
12784 *)
12785 # FIXME: insert proper C++ library support
12786 ld_shlibs_CXX=no
12787 ;;
12788 esac
12789 ;;
12790
12791 cygwin* | mingw* | pw32* | cegcc*)
12792 case $GXX,$cc_basename in
12793 ,cl* | no,cl*)
12794 # Native MSVC
12795 # hardcode_libdir_flag_spec is actually meaningless, as there is
12796 # no search path for DLLs.
12797 hardcode_libdir_flag_spec_CXX=' '
12798 allow_undefined_flag_CXX=unsupported
12799 always_export_symbols_CXX=yes
12800 file_list_spec_CXX='@'
12801 # Tell ltmain to make .lib files, not .a files.
12802 libext=lib
12803 # Tell ltmain to make .dll files, not .so files.
12804 shrext_cmds=".dll"
12805 # FIXME: Setting linknames here is a bad hack.
12806 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12807 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12808 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12809 else
12810 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12811 fi~
12812 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12813 linknames='
12814 # The linker will not automatically build a static lib if we build a DLL.
12815 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12816 enable_shared_with_static_runtimes_CXX=yes
12817 # Don't use ranlib
12818 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12819 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12820 lt_tool_outputfile="@TOOL_OUTPUT@"~
12821 case $lt_outputfile in
12822 *.exe|*.EXE) ;;
12823 *)
12824 lt_outputfile="$lt_outputfile.exe"
12825 lt_tool_outputfile="$lt_tool_outputfile.exe"
12826 ;;
12827 esac~
12828 func_to_tool_file "$lt_outputfile"~
12829 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12830 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12831 $RM "$lt_outputfile.manifest";
12832 fi'
12833 ;;
12834 *)
12835 # g++
12836 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12837 # as there is no search path for DLLs.
12838 hardcode_libdir_flag_spec_CXX='-L$libdir'
12839 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12840 allow_undefined_flag_CXX=unsupported
12841 always_export_symbols_CXX=no
12842 enable_shared_with_static_runtimes_CXX=yes
12843
12844 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12845 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'
12846 # If the export-symbols file already is a .def file (1st line
12847 # is EXPORTS), use it as is; otherwise, prepend...
12848 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12849 cp $export_symbols $output_objdir/$soname.def;
12850 else
12851 echo EXPORTS > $output_objdir/$soname.def;
12852 cat $export_symbols >> $output_objdir/$soname.def;
12853 fi~
12854 $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'
12855 else
12856 ld_shlibs_CXX=no
12857 fi
12858 ;;
12859 esac
12860 ;;
12861 darwin* | rhapsody*)
12862
12863
12864 archive_cmds_need_lc_CXX=no
12865 hardcode_direct_CXX=no
12866 hardcode_automatic_CXX=yes
12867 hardcode_shlibpath_var_CXX=unsupported
12868 if test "$lt_cv_ld_force_load" = "yes"; then
12869 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\"`'
12870
12871 else
12872 whole_archive_flag_spec_CXX=''
12873 fi
12874 link_all_deplibs_CXX=yes
12875 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12876 case $cc_basename in
12877 ifort*) _lt_dar_can_shared=yes ;;
12878 *) _lt_dar_can_shared=$GCC ;;
12879 esac
12880 if test "$_lt_dar_can_shared" = "yes"; then
12881 output_verbose_link_cmd=func_echo_all
12882 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}"
12883 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12884 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}"
12885 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}"
12886 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12887 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}"
12888 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}"
12889 fi
12890
12891 else
12892 ld_shlibs_CXX=no
12893 fi
12894
12895 ;;
12896
12897 dgux*)
12898 case $cc_basename in
12899 ec++*)
12900 # FIXME: insert proper C++ library support
12901 ld_shlibs_CXX=no
12902 ;;
12903 ghcx*)
12904 # Green Hills C++ Compiler
12905 # FIXME: insert proper C++ library support
12906 ld_shlibs_CXX=no
12907 ;;
12908 *)
12909 # FIXME: insert proper C++ library support
12910 ld_shlibs_CXX=no
12911 ;;
12912 esac
12913 ;;
12914
12915 freebsd2.*)
12916 # C++ shared libraries reported to be fairly broken before
12917 # switch to ELF
12918 ld_shlibs_CXX=no
12919 ;;
12920
12921 freebsd-elf*)
12922 archive_cmds_need_lc_CXX=no
12923 ;;
12924
12925 freebsd* | dragonfly*)
12926 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12927 # conventions
12928 ld_shlibs_CXX=yes
12929 ;;
12930
12931 gnu*)
12932 ;;
12933
12934 haiku*)
12935 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12936 link_all_deplibs_CXX=yes
12937 ;;
12938
12939 hpux9*)
12940 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12941 hardcode_libdir_separator_CXX=:
12942 export_dynamic_flag_spec_CXX='${wl}-E'
12943 hardcode_direct_CXX=yes
12944 hardcode_minus_L_CXX=yes # Not in the search PATH,
12945 # but as the default
12946 # location of the library.
12947
12948 case $cc_basename in
12949 CC*)
12950 # FIXME: insert proper C++ library support
12951 ld_shlibs_CXX=no
12952 ;;
12953 aCC*)
12954 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'
12955 # Commands to make compiler produce verbose output that lists
12956 # what "hidden" libraries, object files and flags are used when
12957 # linking a shared library.
12958 #
12959 # There doesn't appear to be a way to prevent this compiler from
12960 # explicitly linking system object files so we need to strip them
12961 # from the output so that they don't get included in the library
12962 # dependencies.
12963 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"'
12964 ;;
12965 *)
12966 if test "$GXX" = yes; then
12967 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'
12968 else
12969 # FIXME: insert proper C++ library support
12970 ld_shlibs_CXX=no
12971 fi
12972 ;;
12973 esac
12974 ;;
12975
12976 hpux10*|hpux11*)
12977 if test $with_gnu_ld = no; then
12978 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12979 hardcode_libdir_separator_CXX=:
12980
12981 case $host_cpu in
12982 hppa*64*|ia64*)
12983 ;;
12984 *)
12985 export_dynamic_flag_spec_CXX='${wl}-E'
12986 ;;
12987 esac
12988 fi
12989 case $host_cpu in
12990 hppa*64*|ia64*)
12991 hardcode_direct_CXX=no
12992 hardcode_shlibpath_var_CXX=no
12993 ;;
12994 *)
12995 hardcode_direct_CXX=yes
12996 hardcode_direct_absolute_CXX=yes
12997 hardcode_minus_L_CXX=yes # Not in the search PATH,
12998 # but as the default
12999 # location of the library.
13000 ;;
13001 esac
13002
13003 case $cc_basename in
13004 CC*)
13005 # FIXME: insert proper C++ library support
13006 ld_shlibs_CXX=no
13007 ;;
13008 aCC*)
13009 case $host_cpu in
13010 hppa*64*)
13011 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13012 ;;
13013 ia64*)
13014 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13015 ;;
13016 *)
13017 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13018 ;;
13019 esac
13020 # Commands to make compiler produce verbose output that lists
13021 # what "hidden" libraries, object files and flags are used when
13022 # linking a shared library.
13023 #
13024 # There doesn't appear to be a way to prevent this compiler from
13025 # explicitly linking system object files so we need to strip them
13026 # from the output so that they don't get included in the library
13027 # dependencies.
13028 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"'
13029 ;;
13030 *)
13031 if test "$GXX" = yes; then
13032 if test $with_gnu_ld = no; then
13033 case $host_cpu in
13034 hppa*64*)
13035 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13036 ;;
13037 ia64*)
13038 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13039 ;;
13040 *)
13041 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'
13042 ;;
13043 esac
13044 fi
13045 else
13046 # FIXME: insert proper C++ library support
13047 ld_shlibs_CXX=no
13048 fi
13049 ;;
13050 esac
13051 ;;
13052
13053 interix[3-9]*)
13054 hardcode_direct_CXX=no
13055 hardcode_shlibpath_var_CXX=no
13056 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13057 export_dynamic_flag_spec_CXX='${wl}-E'
13058 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13059 # Instead, shared libraries are loaded at an image base (0x10000000 by
13060 # default) and relocated if they conflict, which is a slow very memory
13061 # consuming and fragmenting process. To avoid this, we pick a random,
13062 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13063 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13064 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'
13065 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'
13066 ;;
13067 irix5* | irix6*)
13068 case $cc_basename in
13069 CC*)
13070 # SGI C++
13071 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'
13072
13073 # Archives containing C++ object files must be created using
13074 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13075 # necessary to make sure instantiated templates are included
13076 # in the archive.
13077 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13078 ;;
13079 *)
13080 if test "$GXX" = yes; then
13081 if test "$with_gnu_ld" = no; then
13082 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'
13083 else
13084 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'
13085 fi
13086 fi
13087 link_all_deplibs_CXX=yes
13088 ;;
13089 esac
13090 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13091 hardcode_libdir_separator_CXX=:
13092 inherit_rpath_CXX=yes
13093 ;;
13094
13095 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13096 case $cc_basename in
13097 KCC*)
13098 # Kuck and Associates, Inc. (KAI) C++ Compiler
13099
13100 # KCC will only create a shared library if the output file
13101 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13102 # to its proper name (with version) after linking.
13103 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'
13104 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'
13105 # Commands to make compiler produce verbose output that lists
13106 # what "hidden" libraries, object files and flags are used when
13107 # linking a shared library.
13108 #
13109 # There doesn't appear to be a way to prevent this compiler from
13110 # explicitly linking system object files so we need to strip them
13111 # from the output so that they don't get included in the library
13112 # dependencies.
13113 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"'
13114
13115 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13116 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13117
13118 # Archives containing C++ object files must be created using
13119 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13120 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13121 ;;
13122 icpc* | ecpc* )
13123 # Intel C++
13124 with_gnu_ld=yes
13125 # version 8.0 and above of icpc choke on multiply defined symbols
13126 # if we add $predep_objects and $postdep_objects, however 7.1 and
13127 # earlier do not add the objects themselves.
13128 case `$CC -V 2>&1` in
13129 *"Version 7."*)
13130 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13131 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'
13132 ;;
13133 *) # Version 8.0 or newer
13134 tmp_idyn=
13135 case $host_cpu in
13136 ia64*) tmp_idyn=' -i_dynamic';;
13137 esac
13138 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13139 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'
13140 ;;
13141 esac
13142 archive_cmds_need_lc_CXX=no
13143 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13144 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13145 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13146 ;;
13147 pgCC* | pgcpp*)
13148 # Portland Group C++ compiler
13149 case `$CC -V` in
13150 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13151 prelink_cmds_CXX='tpldir=Template.dir~
13152 rm -rf $tpldir~
13153 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13154 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13155 old_archive_cmds_CXX='tpldir=Template.dir~
13156 rm -rf $tpldir~
13157 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13158 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13159 $RANLIB $oldlib'
13160 archive_cmds_CXX='tpldir=Template.dir~
13161 rm -rf $tpldir~
13162 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13163 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13164 archive_expsym_cmds_CXX='tpldir=Template.dir~
13165 rm -rf $tpldir~
13166 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13167 $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'
13168 ;;
13169 *) # Version 6 and above use weak symbols
13170 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13171 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'
13172 ;;
13173 esac
13174
13175 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13176 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13177 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'
13178 ;;
13179 cxx*)
13180 # Compaq C++
13181 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13182 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'
13183
13184 runpath_var=LD_RUN_PATH
13185 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13186 hardcode_libdir_separator_CXX=:
13187
13188 # Commands to make compiler produce verbose output that lists
13189 # what "hidden" libraries, object files and flags are used when
13190 # linking a shared library.
13191 #
13192 # There doesn't appear to be a way to prevent this compiler from
13193 # explicitly linking system object files so we need to strip them
13194 # from the output so that they don't get included in the library
13195 # dependencies.
13196 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'
13197 ;;
13198 xl* | mpixl* | bgxl*)
13199 # IBM XL 8.0 on PPC, with GNU ld
13200 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13201 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13202 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13203 if test "x$supports_anon_versioning" = xyes; then
13204 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13205 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13206 echo "local: *; };" >> $output_objdir/$libname.ver~
13207 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13208 fi
13209 ;;
13210 *)
13211 case `$CC -V 2>&1 | sed 5q` in
13212 *Sun\ C*)
13213 # Sun C++ 5.9
13214 no_undefined_flag_CXX=' -zdefs'
13215 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13216 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'
13217 hardcode_libdir_flag_spec_CXX='-R$libdir'
13218 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'
13219 compiler_needs_object_CXX=yes
13220
13221 # Not sure whether something based on
13222 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13223 # would be better.
13224 output_verbose_link_cmd='func_echo_all'
13225
13226 # Archives containing C++ object files must be created using
13227 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13228 # necessary to make sure instantiated templates are included
13229 # in the archive.
13230 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13231 ;;
13232 esac
13233 ;;
13234 esac
13235 ;;
13236
13237 lynxos*)
13238 # FIXME: insert proper C++ library support
13239 ld_shlibs_CXX=no
13240 ;;
13241
13242 m88k*)
13243 # FIXME: insert proper C++ library support
13244 ld_shlibs_CXX=no
13245 ;;
13246
13247 mvs*)
13248 case $cc_basename in
13249 cxx*)
13250 # FIXME: insert proper C++ library support
13251 ld_shlibs_CXX=no
13252 ;;
13253 *)
13254 # FIXME: insert proper C++ library support
13255 ld_shlibs_CXX=no
13256 ;;
13257 esac
13258 ;;
13259
13260 netbsd*)
13261 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13262 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13263 wlarc=
13264 hardcode_libdir_flag_spec_CXX='-R$libdir'
13265 hardcode_direct_CXX=yes
13266 hardcode_shlibpath_var_CXX=no
13267 fi
13268 # Workaround some broken pre-1.5 toolchains
13269 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13270 ;;
13271
13272 *nto* | *qnx*)
13273 ld_shlibs_CXX=yes
13274 ;;
13275
13276 openbsd2*)
13277 # C++ shared libraries are fairly broken
13278 ld_shlibs_CXX=no
13279 ;;
13280
13281 openbsd*)
13282 if test -f /usr/libexec/ld.so; then
13283 hardcode_direct_CXX=yes
13284 hardcode_shlibpath_var_CXX=no
13285 hardcode_direct_absolute_CXX=yes
13286 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13287 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13288 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13289 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13290 export_dynamic_flag_spec_CXX='${wl}-E'
13291 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13292 fi
13293 output_verbose_link_cmd=func_echo_all
13294 else
13295 ld_shlibs_CXX=no
13296 fi
13297 ;;
13298
13299 osf3* | osf4* | osf5*)
13300 case $cc_basename in
13301 KCC*)
13302 # Kuck and Associates, Inc. (KAI) C++ Compiler
13303
13304 # KCC will only create a shared library if the output file
13305 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13306 # to its proper name (with version) after linking.
13307 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'
13308
13309 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13310 hardcode_libdir_separator_CXX=:
13311
13312 # Archives containing C++ object files must be created using
13313 # the KAI C++ compiler.
13314 case $host in
13315 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13316 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13317 esac
13318 ;;
13319 RCC*)
13320 # Rational C++ 2.4.1
13321 # FIXME: insert proper C++ library support
13322 ld_shlibs_CXX=no
13323 ;;
13324 cxx*)
13325 case $host in
13326 osf3*)
13327 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13328 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'
13329 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13330 ;;
13331 *)
13332 allow_undefined_flag_CXX=' -expect_unresolved \*'
13333 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'
13334 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13335 echo "-hidden">> $lib.exp~
13336 $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~
13337 $RM $lib.exp'
13338 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13339 ;;
13340 esac
13341
13342 hardcode_libdir_separator_CXX=:
13343
13344 # Commands to make compiler produce verbose output that lists
13345 # what "hidden" libraries, object files and flags are used when
13346 # linking a shared library.
13347 #
13348 # There doesn't appear to be a way to prevent this compiler from
13349 # explicitly linking system object files so we need to strip them
13350 # from the output so that they don't get included in the library
13351 # dependencies.
13352 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"'
13353 ;;
13354 *)
13355 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13356 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13357 case $host in
13358 osf3*)
13359 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'
13360 ;;
13361 *)
13362 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'
13363 ;;
13364 esac
13365
13366 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13367 hardcode_libdir_separator_CXX=:
13368
13369 # Commands to make compiler produce verbose output that lists
13370 # what "hidden" libraries, object files and flags are used when
13371 # linking a shared library.
13372 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13373
13374 else
13375 # FIXME: insert proper C++ library support
13376 ld_shlibs_CXX=no
13377 fi
13378 ;;
13379 esac
13380 ;;
13381
13382 psos*)
13383 # FIXME: insert proper C++ library support
13384 ld_shlibs_CXX=no
13385 ;;
13386
13387 sunos4*)
13388 case $cc_basename in
13389 CC*)
13390 # Sun C++ 4.x
13391 # FIXME: insert proper C++ library support
13392 ld_shlibs_CXX=no
13393 ;;
13394 lcc*)
13395 # Lucid
13396 # FIXME: insert proper C++ library support
13397 ld_shlibs_CXX=no
13398 ;;
13399 *)
13400 # FIXME: insert proper C++ library support
13401 ld_shlibs_CXX=no
13402 ;;
13403 esac
13404 ;;
13405
13406 solaris*)
13407 case $cc_basename in
13408 CC* | sunCC*)
13409 # Sun C++ 4.2, 5.x and Centerline C++
13410 archive_cmds_need_lc_CXX=yes
13411 no_undefined_flag_CXX=' -zdefs'
13412 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13413 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13414 $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'
13415
13416 hardcode_libdir_flag_spec_CXX='-R$libdir'
13417 hardcode_shlibpath_var_CXX=no
13418 case $host_os in
13419 solaris2.[0-5] | solaris2.[0-5].*) ;;
13420 *)
13421 # The compiler driver will combine and reorder linker options,
13422 # but understands `-z linker_flag'.
13423 # Supported since Solaris 2.6 (maybe 2.5.1?)
13424 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13425 ;;
13426 esac
13427 link_all_deplibs_CXX=yes
13428
13429 output_verbose_link_cmd='func_echo_all'
13430
13431 # Archives containing C++ object files must be created using
13432 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13433 # necessary to make sure instantiated templates are included
13434 # in the archive.
13435 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13436 ;;
13437 gcx*)
13438 # Green Hills C++ Compiler
13439 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13440
13441 # The C++ compiler must be used to create the archive.
13442 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13443 ;;
13444 *)
13445 # GNU C++ compiler with Solaris linker
13446 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13447 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13448 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13449 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13450 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13451 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13452
13453 # Commands to make compiler produce verbose output that lists
13454 # what "hidden" libraries, object files and flags are used when
13455 # linking a shared library.
13456 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13457 else
13458 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13459 # platform.
13460 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13461 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13462 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13463
13464 # Commands to make compiler produce verbose output that lists
13465 # what "hidden" libraries, object files and flags are used when
13466 # linking a shared library.
13467 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13468 fi
13469
13470 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13471 case $host_os in
13472 solaris2.[0-5] | solaris2.[0-5].*) ;;
13473 *)
13474 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13475 ;;
13476 esac
13477 fi
13478 ;;
13479 esac
13480 ;;
13481
13482 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13483 no_undefined_flag_CXX='${wl}-z,text'
13484 archive_cmds_need_lc_CXX=no
13485 hardcode_shlibpath_var_CXX=no
13486 runpath_var='LD_RUN_PATH'
13487
13488 case $cc_basename in
13489 CC*)
13490 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13491 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13492 ;;
13493 *)
13494 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13495 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13496 ;;
13497 esac
13498 ;;
13499
13500 sysv5* | sco3.2v5* | sco5v6*)
13501 # Note: We can NOT use -z defs as we might desire, because we do not
13502 # link with -lc, and that would cause any symbols used from libc to
13503 # always be unresolved, which means just about no library would
13504 # ever link correctly. If we're not using GNU ld we use -z text
13505 # though, which does catch some bad symbols but isn't as heavy-handed
13506 # as -z defs.
13507 no_undefined_flag_CXX='${wl}-z,text'
13508 allow_undefined_flag_CXX='${wl}-z,nodefs'
13509 archive_cmds_need_lc_CXX=no
13510 hardcode_shlibpath_var_CXX=no
13511 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13512 hardcode_libdir_separator_CXX=':'
13513 link_all_deplibs_CXX=yes
13514 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13515 runpath_var='LD_RUN_PATH'
13516
13517 case $cc_basename in
13518 CC*)
13519 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13520 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13521 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13522 '"$old_archive_cmds_CXX"
13523 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13524 '"$reload_cmds_CXX"
13525 ;;
13526 *)
13527 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13528 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13529 ;;
13530 esac
13531 ;;
13532
13533 tandem*)
13534 case $cc_basename in
13535 NCC*)
13536 # NonStop-UX NCC 3.20
13537 # FIXME: insert proper C++ library support
13538 ld_shlibs_CXX=no
13539 ;;
13540 *)
13541 # FIXME: insert proper C++ library support
13542 ld_shlibs_CXX=no
13543 ;;
13544 esac
13545 ;;
13546
13547 vxworks*)
13548 # FIXME: insert proper C++ library support
13549 ld_shlibs_CXX=no
13550 ;;
13551
13552 *)
13553 # FIXME: insert proper C++ library support
13554 ld_shlibs_CXX=no
13555 ;;
13556 esac
13557
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13559$as_echo "$ld_shlibs_CXX" >&6; }
13560 test "$ld_shlibs_CXX" = no && can_build_shared=no
13561
13562 GCC_CXX="$GXX"
13563 LD_CXX="$LD"
13564
13565 ## CAVEAT EMPTOR:
13566 ## There is no encapsulation within the following macros, do not change
13567 ## the running order or otherwise move them around unless you know exactly
13568 ## what you are doing...
13569 # Dependencies to place before and after the object being linked:
13570predep_objects_CXX=
13571postdep_objects_CXX=
13572predeps_CXX=
13573postdeps_CXX=
13574compiler_lib_search_path_CXX=
13575
13576cat > conftest.$ac_ext <<_LT_EOF
13577class Foo
13578{
13579public:
13580 Foo (void) { a = 0; }
13581private:
13582 int a;
13583};
13584_LT_EOF
13585
13586
13587_lt_libdeps_save_CFLAGS=$CFLAGS
13588case "$CC $CFLAGS " in #(
13589*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13590*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13591*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13592esac
13593
13594if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13595 (eval $ac_compile) 2>&5
13596 ac_status=$?
13597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13598 test $ac_status = 0; }; then
13599 # Parse the compiler output and extract the necessary
13600 # objects, libraries and library flags.
13601
13602 # Sentinel used to keep track of whether or not we are before
13603 # the conftest object file.
13604 pre_test_object_deps_done=no
13605
13606 for p in `eval "$output_verbose_link_cmd"`; do
13607 case ${prev}${p} in
13608
13609 -L* | -R* | -l*)
13610 # Some compilers place space between "-{L,R}" and the path.
13611 # Remove the space.
13612 if test $p = "-L" ||
13613 test $p = "-R"; then
13614 prev=$p
13615 continue
13616 fi
13617
13618 # Expand the sysroot to ease extracting the directories later.
13619 if test -z "$prev"; then
13620 case $p in
13621 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13622 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13623 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13624 esac
13625 fi
13626 case $p in
13627 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13628 esac
13629 if test "$pre_test_object_deps_done" = no; then
13630 case ${prev} in
13631 -L | -R)
13632 # Internal compiler library paths should come after those
13633 # provided the user. The postdeps already come after the
13634 # user supplied libs so there is no need to process them.
13635 if test -z "$compiler_lib_search_path_CXX"; then
13636 compiler_lib_search_path_CXX="${prev}${p}"
13637 else
13638 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13639 fi
13640 ;;
13641 # The "-l" case would never come before the object being
13642 # linked, so don't bother handling this case.
13643 esac
13644 else
13645 if test -z "$postdeps_CXX"; then
13646 postdeps_CXX="${prev}${p}"
13647 else
13648 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13649 fi
13650 fi
13651 prev=
13652 ;;
13653
13654 *.lto.$objext) ;; # Ignore GCC LTO objects
13655 *.$objext)
13656 # This assumes that the test object file only shows up
13657 # once in the compiler output.
13658 if test "$p" = "conftest.$objext"; then
13659 pre_test_object_deps_done=yes
13660 continue
13661 fi
13662
13663 if test "$pre_test_object_deps_done" = no; then
13664 if test -z "$predep_objects_CXX"; then
13665 predep_objects_CXX="$p"
13666 else
13667 predep_objects_CXX="$predep_objects_CXX $p"
13668 fi
13669 else
13670 if test -z "$postdep_objects_CXX"; then
13671 postdep_objects_CXX="$p"
13672 else
13673 postdep_objects_CXX="$postdep_objects_CXX $p"
13674 fi
13675 fi
13676 ;;
13677
13678 *) ;; # Ignore the rest.
13679
13680 esac
13681 done
13682
13683 # Clean up.
13684 rm -f a.out a.exe
13685else
13686 echo "libtool.m4: error: problem compiling CXX test program"
13687fi
13688
13689$RM -f confest.$objext
13690CFLAGS=$_lt_libdeps_save_CFLAGS
13691
13692# PORTME: override above test on systems where it is broken
13693case $host_os in
13694interix[3-9]*)
13695 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13696 # hack all around it, let's just trust "g++" to DTRT.
13697 predep_objects_CXX=
13698 postdep_objects_CXX=
13699 postdeps_CXX=
13700 ;;
13701
13702linux*)
13703 case `$CC -V 2>&1 | sed 5q` in
13704 *Sun\ C*)
13705 # Sun C++ 5.9
13706
13707 # The more standards-conforming stlport4 library is
13708 # incompatible with the Cstd library. Avoid specifying
13709 # it if it's in CXXFLAGS. Ignore libCrun as
13710 # -library=stlport4 depends on it.
13711 case " $CXX $CXXFLAGS " in
13712 *" -library=stlport4 "*)
13713 solaris_use_stlport4=yes
13714 ;;
13715 esac
13716
13717 if test "$solaris_use_stlport4" != yes; then
13718 postdeps_CXX='-library=Cstd -library=Crun'
13719 fi
13720 ;;
13721 esac
13722 ;;
13723
13724solaris*)
13725 case $cc_basename in
13726 CC* | sunCC*)
13727 # The more standards-conforming stlport4 library is
13728 # incompatible with the Cstd library. Avoid specifying
13729 # it if it's in CXXFLAGS. Ignore libCrun as
13730 # -library=stlport4 depends on it.
13731 case " $CXX $CXXFLAGS " in
13732 *" -library=stlport4 "*)
13733 solaris_use_stlport4=yes
13734 ;;
13735 esac
13736
13737 # Adding this requires a known-good setup of shared libraries for
13738 # Sun compiler versions before 5.6, else PIC objects from an old
13739 # archive will be linked into the output, leading to subtle bugs.
13740 if test "$solaris_use_stlport4" != yes; then
13741 postdeps_CXX='-library=Cstd -library=Crun'
13742 fi
13743 ;;
13744 esac
13745 ;;
13746esac
13747
13748
13749case " $postdeps_CXX " in
13750*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13751esac
13752 compiler_lib_search_dirs_CXX=
13753if test -n "${compiler_lib_search_path_CXX}"; then
13754 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13755fi
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787 lt_prog_compiler_wl_CXX=
13788lt_prog_compiler_pic_CXX=
13789lt_prog_compiler_static_CXX=
13790
13791
13792 # C++ specific cases for pic, static, wl, etc.
13793 if test "$GXX" = yes; then
13794 lt_prog_compiler_wl_CXX='-Wl,'
13795 lt_prog_compiler_static_CXX='-static'
13796
13797 case $host_os in
13798 aix*)
13799 # All AIX code is PIC.
13800 if test "$host_cpu" = ia64; then
13801 # AIX 5 now supports IA64 processor
13802 lt_prog_compiler_static_CXX='-Bstatic'
13803 fi
13804 ;;
13805
13806 amigaos*)
13807 case $host_cpu in
13808 powerpc)
13809 # see comment about AmigaOS4 .so support
13810 lt_prog_compiler_pic_CXX='-fPIC'
13811 ;;
13812 m68k)
13813 # FIXME: we need at least 68020 code to build shared libraries, but
13814 # adding the `-m68020' flag to GCC prevents building anything better,
13815 # like `-m68040'.
13816 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13817 ;;
13818 esac
13819 ;;
13820
13821 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13822 # PIC is the default for these OSes.
13823 ;;
13824 mingw* | cygwin* | os2* | pw32* | cegcc*)
13825 # This hack is so that the source file can tell whether it is being
13826 # built for inclusion in a dll (and should export symbols for example).
13827 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13828 # (--disable-auto-import) libraries
13829 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13830 ;;
13831 darwin* | rhapsody*)
13832 # PIC is the default on this platform
13833 # Common symbols not allowed in MH_DYLIB files
13834 lt_prog_compiler_pic_CXX='-fno-common'
13835 ;;
13836 *djgpp*)
13837 # DJGPP does not support shared libraries at all
13838 lt_prog_compiler_pic_CXX=
13839 ;;
13840 haiku*)
13841 # PIC is the default for Haiku.
13842 # The "-static" flag exists, but is broken.
13843 lt_prog_compiler_static_CXX=
13844 ;;
13845 interix[3-9]*)
13846 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13847 # Instead, we relocate shared libraries at runtime.
13848 ;;
13849 sysv4*MP*)
13850 if test -d /usr/nec; then
13851 lt_prog_compiler_pic_CXX=-Kconform_pic
13852 fi
13853 ;;
13854 hpux*)
13855 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13856 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13857 # sets the default TLS model and affects inlining.
13858 case $host_cpu in
13859 hppa*64*)
13860 ;;
13861 *)
13862 lt_prog_compiler_pic_CXX='-fPIC'
13863 ;;
13864 esac
13865 ;;
13866 *qnx* | *nto*)
13867 # QNX uses GNU C++, but need to define -shared option too, otherwise
13868 # it will coredump.
13869 lt_prog_compiler_pic_CXX='-fPIC -shared'
13870 ;;
13871 *)
13872 lt_prog_compiler_pic_CXX='-fPIC'
13873 ;;
13874 esac
13875 else
13876 case $host_os in
13877 aix[4-9]*)
13878 # All AIX code is PIC.
13879 if test "$host_cpu" = ia64; then
13880 # AIX 5 now supports IA64 processor
13881 lt_prog_compiler_static_CXX='-Bstatic'
13882 else
13883 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13884 fi
13885 ;;
13886 chorus*)
13887 case $cc_basename in
13888 cxch68*)
13889 # Green Hills C++ Compiler
13890 # _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"
13891 ;;
13892 esac
13893 ;;
13894 mingw* | cygwin* | os2* | pw32* | cegcc*)
13895 # This hack is so that the source file can tell whether it is being
13896 # built for inclusion in a dll (and should export symbols for example).
13897 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13898 ;;
13899 dgux*)
13900 case $cc_basename in
13901 ec++*)
13902 lt_prog_compiler_pic_CXX='-KPIC'
13903 ;;
13904 ghcx*)
13905 # Green Hills C++ Compiler
13906 lt_prog_compiler_pic_CXX='-pic'
13907 ;;
13908 *)
13909 ;;
13910 esac
13911 ;;
13912 freebsd* | dragonfly*)
13913 # FreeBSD uses GNU C++
13914 ;;
13915 hpux9* | hpux10* | hpux11*)
13916 case $cc_basename in
13917 CC*)
13918 lt_prog_compiler_wl_CXX='-Wl,'
13919 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13920 if test "$host_cpu" != ia64; then
13921 lt_prog_compiler_pic_CXX='+Z'
13922 fi
13923 ;;
13924 aCC*)
13925 lt_prog_compiler_wl_CXX='-Wl,'
13926 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13927 case $host_cpu in
13928 hppa*64*|ia64*)
13929 # +Z the default
13930 ;;
13931 *)
13932 lt_prog_compiler_pic_CXX='+Z'
13933 ;;
13934 esac
13935 ;;
13936 *)
13937 ;;
13938 esac
13939 ;;
13940 interix*)
13941 # This is c89, which is MS Visual C++ (no shared libs)
13942 # Anyone wants to do a port?
13943 ;;
13944 irix5* | irix6* | nonstopux*)
13945 case $cc_basename in
13946 CC*)
13947 lt_prog_compiler_wl_CXX='-Wl,'
13948 lt_prog_compiler_static_CXX='-non_shared'
13949 # CC pic flag -KPIC is the default.
13950 ;;
13951 *)
13952 ;;
13953 esac
13954 ;;
13955 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13956 case $cc_basename in
13957 KCC*)
13958 # KAI C++ Compiler
13959 lt_prog_compiler_wl_CXX='--backend -Wl,'
13960 lt_prog_compiler_pic_CXX='-fPIC'
13961 ;;
13962 ecpc* )
13963 # old Intel C++ for x86_64 which still supported -KPIC.
13964 lt_prog_compiler_wl_CXX='-Wl,'
13965 lt_prog_compiler_pic_CXX='-KPIC'
13966 lt_prog_compiler_static_CXX='-static'
13967 ;;
13968 icpc* )
13969 # Intel C++, used to be incompatible with GCC.
13970 # ICC 10 doesn't accept -KPIC any more.
13971 lt_prog_compiler_wl_CXX='-Wl,'
13972 lt_prog_compiler_pic_CXX='-fPIC'
13973 lt_prog_compiler_static_CXX='-static'
13974 ;;
13975 pgCC* | pgcpp*)
13976 # Portland Group C++ compiler
13977 lt_prog_compiler_wl_CXX='-Wl,'
13978 lt_prog_compiler_pic_CXX='-fpic'
13979 lt_prog_compiler_static_CXX='-Bstatic'
13980 ;;
13981 cxx*)
13982 # Compaq C++
13983 # Make sure the PIC flag is empty. It appears that all Alpha
13984 # Linux and Compaq Tru64 Unix objects are PIC.
13985 lt_prog_compiler_pic_CXX=
13986 lt_prog_compiler_static_CXX='-non_shared'
13987 ;;
13988 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13989 # IBM XL 8.0, 9.0 on PPC and BlueGene
13990 lt_prog_compiler_wl_CXX='-Wl,'
13991 lt_prog_compiler_pic_CXX='-qpic'
13992 lt_prog_compiler_static_CXX='-qstaticlink'
13993 ;;
13994 *)
13995 case `$CC -V 2>&1 | sed 5q` in
13996 *Sun\ C*)
13997 # Sun C++ 5.9
13998 lt_prog_compiler_pic_CXX='-KPIC'
13999 lt_prog_compiler_static_CXX='-Bstatic'
14000 lt_prog_compiler_wl_CXX='-Qoption ld '
14001 ;;
14002 esac
14003 ;;
14004 esac
14005 ;;
14006 lynxos*)
14007 ;;
14008 m88k*)
14009 ;;
14010 mvs*)
14011 case $cc_basename in
14012 cxx*)
14013 lt_prog_compiler_pic_CXX='-W c,exportall'
14014 ;;
14015 *)
14016 ;;
14017 esac
14018 ;;
14019 netbsd*)
14020 ;;
14021 *qnx* | *nto*)
14022 # QNX uses GNU C++, but need to define -shared option too, otherwise
14023 # it will coredump.
14024 lt_prog_compiler_pic_CXX='-fPIC -shared'
14025 ;;
14026 osf3* | osf4* | osf5*)
14027 case $cc_basename in
14028 KCC*)
14029 lt_prog_compiler_wl_CXX='--backend -Wl,'
14030 ;;
14031 RCC*)
14032 # Rational C++ 2.4.1
14033 lt_prog_compiler_pic_CXX='-pic'
14034 ;;
14035 cxx*)
14036 # Digital/Compaq C++
14037 lt_prog_compiler_wl_CXX='-Wl,'
14038 # Make sure the PIC flag is empty. It appears that all Alpha
14039 # Linux and Compaq Tru64 Unix objects are PIC.
14040 lt_prog_compiler_pic_CXX=
14041 lt_prog_compiler_static_CXX='-non_shared'
14042 ;;
14043 *)
14044 ;;
14045 esac
14046 ;;
14047 psos*)
14048 ;;
14049 solaris*)
14050 case $cc_basename in
14051 CC* | sunCC*)
14052 # Sun C++ 4.2, 5.x and Centerline C++
14053 lt_prog_compiler_pic_CXX='-KPIC'
14054 lt_prog_compiler_static_CXX='-Bstatic'
14055 lt_prog_compiler_wl_CXX='-Qoption ld '
14056 ;;
14057 gcx*)
14058 # Green Hills C++ Compiler
14059 lt_prog_compiler_pic_CXX='-PIC'
14060 ;;
14061 *)
14062 ;;
14063 esac
14064 ;;
14065 sunos4*)
14066 case $cc_basename in
14067 CC*)
14068 # Sun C++ 4.x
14069 lt_prog_compiler_pic_CXX='-pic'
14070 lt_prog_compiler_static_CXX='-Bstatic'
14071 ;;
14072 lcc*)
14073 # Lucid
14074 lt_prog_compiler_pic_CXX='-pic'
14075 ;;
14076 *)
14077 ;;
14078 esac
14079 ;;
14080 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14081 case $cc_basename in
14082 CC*)
14083 lt_prog_compiler_wl_CXX='-Wl,'
14084 lt_prog_compiler_pic_CXX='-KPIC'
14085 lt_prog_compiler_static_CXX='-Bstatic'
14086 ;;
14087 esac
14088 ;;
14089 tandem*)
14090 case $cc_basename in
14091 NCC*)
14092 # NonStop-UX NCC 3.20
14093 lt_prog_compiler_pic_CXX='-KPIC'
14094 ;;
14095 *)
14096 ;;
14097 esac
14098 ;;
14099 vxworks*)
14100 ;;
14101 *)
14102 lt_prog_compiler_can_build_shared_CXX=no
14103 ;;
14104 esac
14105 fi
14106
14107case $host_os in
14108 # For platforms which do not support PIC, -DPIC is meaningless:
14109 *djgpp*)
14110 lt_prog_compiler_pic_CXX=
14111 ;;
14112 *)
14113 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14114 ;;
14115esac
14116
14117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14118$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14119if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14120 $as_echo_n "(cached) " >&6
14121else
14122 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14123fi
14124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14125$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14126lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14127
14128#
14129# Check to make sure the PIC flag actually works.
14130#
14131if test -n "$lt_prog_compiler_pic_CXX"; then
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14133$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14134if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14135 $as_echo_n "(cached) " >&6
14136else
14137 lt_cv_prog_compiler_pic_works_CXX=no
14138 ac_outfile=conftest.$ac_objext
14139 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14140 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14141 # Insert the option either (1) after the last *FLAGS variable, or
14142 # (2) before a word containing "conftest.", or (3) at the end.
14143 # Note that $ac_compile itself does not contain backslashes and begins
14144 # with a dollar sign (not a hyphen), so the echo should work correctly.
14145 # The option is referenced via a variable to avoid confusing sed.
14146 lt_compile=`echo "$ac_compile" | $SED \
14147 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14148 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14149 -e 's:$: $lt_compiler_flag:'`
14150 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14151 (eval "$lt_compile" 2>conftest.err)
14152 ac_status=$?
14153 cat conftest.err >&5
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 if (exit $ac_status) && test -s "$ac_outfile"; then
14156 # The compiler can only warn and ignore the option if not recognized
14157 # So say no if there are warnings other than the usual output.
14158 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14159 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14160 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14161 lt_cv_prog_compiler_pic_works_CXX=yes
14162 fi
14163 fi
14164 $RM conftest*
14165
14166fi
14167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14168$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14169
14170if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14171 case $lt_prog_compiler_pic_CXX in
14172 "" | " "*) ;;
14173 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14174 esac
14175else
14176 lt_prog_compiler_pic_CXX=
14177 lt_prog_compiler_can_build_shared_CXX=no
14178fi
14179
14180fi
14181
14182
14183
14184
14185
14186#
14187# Check to make sure the static flag actually works.
14188#
14189wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14191$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14192if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14193 $as_echo_n "(cached) " >&6
14194else
14195 lt_cv_prog_compiler_static_works_CXX=no
14196 save_LDFLAGS="$LDFLAGS"
14197 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14198 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14199 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14200 # The linker can only warn and ignore the option if not recognized
14201 # So say no if there are warnings
14202 if test -s conftest.err; then
14203 # Append any errors to the config.log.
14204 cat conftest.err 1>&5
14205 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14207 if diff conftest.exp conftest.er2 >/dev/null; then
14208 lt_cv_prog_compiler_static_works_CXX=yes
14209 fi
14210 else
14211 lt_cv_prog_compiler_static_works_CXX=yes
14212 fi
14213 fi
14214 $RM -r conftest*
14215 LDFLAGS="$save_LDFLAGS"
14216
14217fi
14218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14219$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14220
14221if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14222 :
14223else
14224 lt_prog_compiler_static_CXX=
14225fi
14226
14227
14228
14229
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14231$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14232if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14233 $as_echo_n "(cached) " >&6
14234else
14235 lt_cv_prog_compiler_c_o_CXX=no
14236 $RM -r conftest 2>/dev/null
14237 mkdir conftest
14238 cd conftest
14239 mkdir out
14240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14241
14242 lt_compiler_flag="-o out/conftest2.$ac_objext"
14243 # Insert the option either (1) after the last *FLAGS variable, or
14244 # (2) before a word containing "conftest.", or (3) at the end.
14245 # Note that $ac_compile itself does not contain backslashes and begins
14246 # with a dollar sign (not a hyphen), so the echo should work correctly.
14247 lt_compile=`echo "$ac_compile" | $SED \
14248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14250 -e 's:$: $lt_compiler_flag:'`
14251 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14252 (eval "$lt_compile" 2>out/conftest.err)
14253 ac_status=$?
14254 cat out/conftest.err >&5
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14257 then
14258 # The compiler can only warn and ignore the option if not recognized
14259 # So say no if there are warnings
14260 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14261 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14262 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14263 lt_cv_prog_compiler_c_o_CXX=yes
14264 fi
14265 fi
14266 chmod u+w . 2>&5
14267 $RM conftest*
14268 # SGI C++ compiler will create directory out/ii_files/ for
14269 # template instantiation
14270 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14271 $RM out/* && rmdir out
14272 cd ..
14273 $RM -r conftest
14274 $RM conftest*
14275
14276fi
14277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14278$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14279
14280
14281
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14283$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14284if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14285 $as_echo_n "(cached) " >&6
14286else
14287 lt_cv_prog_compiler_c_o_CXX=no
14288 $RM -r conftest 2>/dev/null
14289 mkdir conftest
14290 cd conftest
14291 mkdir out
14292 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14293
14294 lt_compiler_flag="-o out/conftest2.$ac_objext"
14295 # Insert the option either (1) after the last *FLAGS variable, or
14296 # (2) before a word containing "conftest.", or (3) at the end.
14297 # Note that $ac_compile itself does not contain backslashes and begins
14298 # with a dollar sign (not a hyphen), so the echo should work correctly.
14299 lt_compile=`echo "$ac_compile" | $SED \
14300 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14301 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14302 -e 's:$: $lt_compiler_flag:'`
14303 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14304 (eval "$lt_compile" 2>out/conftest.err)
14305 ac_status=$?
14306 cat out/conftest.err >&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14309 then
14310 # The compiler can only warn and ignore the option if not recognized
14311 # So say no if there are warnings
14312 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14313 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14314 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14315 lt_cv_prog_compiler_c_o_CXX=yes
14316 fi
14317 fi
14318 chmod u+w . 2>&5
14319 $RM conftest*
14320 # SGI C++ compiler will create directory out/ii_files/ for
14321 # template instantiation
14322 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14323 $RM out/* && rmdir out
14324 cd ..
14325 $RM -r conftest
14326 $RM conftest*
14327
14328fi
14329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14330$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14331
14332
14333
14334
14335hard_links="nottested"
14336if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14337 # do not overwrite the value of need_locks provided by the user
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14339$as_echo_n "checking if we can lock with hard links... " >&6; }
14340 hard_links=yes
14341 $RM conftest*
14342 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14343 touch conftest.a
14344 ln conftest.a conftest.b 2>&5 || hard_links=no
14345 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14347$as_echo "$hard_links" >&6; }
14348 if test "$hard_links" = no; then
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14350$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14351 need_locks=warn
14352 fi
14353else
14354 need_locks=no
14355fi
14356
14357
14358
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14360$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14361
14362 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14363 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14364 case $host_os in
14365 aix[4-9]*)
14366 # If we're using GNU nm, then we don't want the "-C" option.
14367 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14368 # Also, AIX nm treats weak defined symbols like other global defined
14369 # symbols, whereas GNU nm marks them as "W".
14370 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14371 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'
14372 else
14373 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'
14374 fi
14375 ;;
14376 pw32*)
14377 export_symbols_cmds_CXX="$ltdll_cmds"
14378 ;;
14379 cygwin* | mingw* | cegcc*)
14380 case $cc_basename in
14381 cl*)
14382 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14383 ;;
14384 *)
14385 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'
14386 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14387 ;;
14388 esac
14389 ;;
14390 *)
14391 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14392 ;;
14393 esac
14394
14395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14396$as_echo "$ld_shlibs_CXX" >&6; }
14397test "$ld_shlibs_CXX" = no && can_build_shared=no
14398
14399with_gnu_ld_CXX=$with_gnu_ld
14400
14401
14402
14403
14404
14405
14406#
14407# Do we need to explicitly link libc?
14408#
14409case "x$archive_cmds_need_lc_CXX" in
14410x|xyes)
14411 # Assume -lc should be added
14412 archive_cmds_need_lc_CXX=yes
14413
14414 if test "$enable_shared" = yes && test "$GCC" = yes; then
14415 case $archive_cmds_CXX in
14416 *'~'*)
14417 # FIXME: we may have to deal with multi-command sequences.
14418 ;;
14419 '$CC '*)
14420 # Test whether the compiler implicitly links with -lc since on some
14421 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14422 # to ld, don't add -lc before -lgcc.
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14424$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14425if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14426 $as_echo_n "(cached) " >&6
14427else
14428 $RM conftest*
14429 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14430
14431 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14432 (eval $ac_compile) 2>&5
14433 ac_status=$?
14434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14435 test $ac_status = 0; } 2>conftest.err; then
14436 soname=conftest
14437 lib=conftest
14438 libobjs=conftest.$ac_objext
14439 deplibs=
14440 wl=$lt_prog_compiler_wl_CXX
14441 pic_flag=$lt_prog_compiler_pic_CXX
14442 compiler_flags=-v
14443 linker_flags=-v
14444 verstring=
14445 output_objdir=.
14446 libname=conftest
14447 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14448 allow_undefined_flag_CXX=
14449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14450 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14451 ac_status=$?
14452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14453 test $ac_status = 0; }
14454 then
14455 lt_cv_archive_cmds_need_lc_CXX=no
14456 else
14457 lt_cv_archive_cmds_need_lc_CXX=yes
14458 fi
14459 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14460 else
14461 cat conftest.err 1>&5
14462 fi
14463 $RM conftest*
14464
14465fi
14466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14467$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14468 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14469 ;;
14470 esac
14471 fi
14472 ;;
14473esac
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14537$as_echo_n "checking dynamic linker characteristics... " >&6; }
14538
14539library_names_spec=
14540libname_spec='lib$name'
14541soname_spec=
14542shrext_cmds=".so"
14543postinstall_cmds=
14544postuninstall_cmds=
14545finish_cmds=
14546finish_eval=
14547shlibpath_var=
14548shlibpath_overrides_runpath=unknown
14549version_type=none
14550dynamic_linker="$host_os ld.so"
14551sys_lib_dlsearch_path_spec="/lib /usr/lib"
14552need_lib_prefix=unknown
14553hardcode_into_libs=no
14554
14555# when you set need_version to no, make sure it does not cause -set_version
14556# flags to be left without arguments
14557need_version=unknown
14558
14559case $host_os in
14560aix3*)
14561 version_type=linux # correct to gnu/linux during the next big refactor
14562 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14563 shlibpath_var=LIBPATH
14564
14565 # AIX 3 has no versioning support, so we append a major version to the name.
14566 soname_spec='${libname}${release}${shared_ext}$major'
14567 ;;
14568
14569aix[4-9]*)
14570 version_type=linux # correct to gnu/linux during the next big refactor
14571 need_lib_prefix=no
14572 need_version=no
14573 hardcode_into_libs=yes
14574 if test "$host_cpu" = ia64; then
14575 # AIX 5 supports IA64
14576 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14577 shlibpath_var=LD_LIBRARY_PATH
14578 else
14579 # With GCC up to 2.95.x, collect2 would create an import file
14580 # for dependence libraries. The import file would start with
14581 # the line `#! .'. This would cause the generated library to
14582 # depend on `.', always an invalid library. This was fixed in
14583 # development snapshots of GCC prior to 3.0.
14584 case $host_os in
14585 aix4 | aix4.[01] | aix4.[01].*)
14586 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14587 echo ' yes '
14588 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14589 :
14590 else
14591 can_build_shared=no
14592 fi
14593 ;;
14594 esac
14595 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14596 # soname into executable. Probably we can add versioning support to
14597 # collect2, so additional links can be useful in future.
14598 if test "$aix_use_runtimelinking" = yes; then
14599 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14600 # instead of lib<name>.a to let people know that these are not
14601 # typical AIX shared libraries.
14602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14603 else
14604 # We preserve .a as extension for shared libraries through AIX4.2
14605 # and later when we are not doing run time linking.
14606 library_names_spec='${libname}${release}.a $libname.a'
14607 soname_spec='${libname}${release}${shared_ext}$major'
14608 fi
14609 shlibpath_var=LIBPATH
14610 fi
14611 ;;
14612
14613amigaos*)
14614 case $host_cpu in
14615 powerpc)
14616 # Since July 2007 AmigaOS4 officially supports .so libraries.
14617 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14619 ;;
14620 m68k)
14621 library_names_spec='$libname.ixlibrary $libname.a'
14622 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14623 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'
14624 ;;
14625 esac
14626 ;;
14627
14628beos*)
14629 library_names_spec='${libname}${shared_ext}'
14630 dynamic_linker="$host_os ld.so"
14631 shlibpath_var=LIBRARY_PATH
14632 ;;
14633
14634bsdi[45]*)
14635 version_type=linux # correct to gnu/linux during the next big refactor
14636 need_version=no
14637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14638 soname_spec='${libname}${release}${shared_ext}$major'
14639 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14640 shlibpath_var=LD_LIBRARY_PATH
14641 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14642 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14643 # the default ld.so.conf also contains /usr/contrib/lib and
14644 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14645 # libtool to hard-code these into programs
14646 ;;
14647
14648cygwin* | mingw* | pw32* | cegcc*)
14649 version_type=windows
14650 shrext_cmds=".dll"
14651 need_version=no
14652 need_lib_prefix=no
14653
14654 case $GCC,$cc_basename in
14655 yes,*)
14656 # gcc
14657 library_names_spec='$libname.dll.a'
14658 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14659 postinstall_cmds='base_file=`basename \${file}`~
14660 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14661 dldir=$destdir/`dirname \$dlpath`~
14662 test -d \$dldir || mkdir -p \$dldir~
14663 $install_prog $dir/$dlname \$dldir/$dlname~
14664 chmod a+x \$dldir/$dlname~
14665 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14666 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14667 fi'
14668 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14669 dlpath=$dir/\$dldll~
14670 $RM \$dlpath'
14671 shlibpath_overrides_runpath=yes
14672
14673 case $host_os in
14674 cygwin*)
14675 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14676 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14677
14678 ;;
14679 mingw* | cegcc*)
14680 # MinGW DLLs use traditional 'lib' prefix
14681 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14682 ;;
14683 pw32*)
14684 # pw32 DLLs use 'pw' prefix rather than 'lib'
14685 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14686 ;;
14687 esac
14688 dynamic_linker='Win32 ld.exe'
14689 ;;
14690
14691 *,cl*)
14692 # Native MSVC
14693 libname_spec='$name'
14694 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14695 library_names_spec='${libname}.dll.lib'
14696
14697 case $build_os in
14698 mingw*)
14699 sys_lib_search_path_spec=
14700 lt_save_ifs=$IFS
14701 IFS=';'
14702 for lt_path in $LIB
14703 do
14704 IFS=$lt_save_ifs
14705 # Let DOS variable expansion print the short 8.3 style file name.
14706 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14707 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14708 done
14709 IFS=$lt_save_ifs
14710 # Convert to MSYS style.
14711 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14712 ;;
14713 cygwin*)
14714 # Convert to unix form, then to dos form, then back to unix form
14715 # but this time dos style (no spaces!) so that the unix form looks
14716 # like /cygdrive/c/PROGRA~1:/cygdr...
14717 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14718 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14719 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14720 ;;
14721 *)
14722 sys_lib_search_path_spec="$LIB"
14723 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14724 # It is most probably a Windows format PATH.
14725 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14726 else
14727 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14728 fi
14729 # FIXME: find the short name or the path components, as spaces are
14730 # common. (e.g. "Program Files" -> "PROGRA~1")
14731 ;;
14732 esac
14733
14734 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14735 postinstall_cmds='base_file=`basename \${file}`~
14736 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14737 dldir=$destdir/`dirname \$dlpath`~
14738 test -d \$dldir || mkdir -p \$dldir~
14739 $install_prog $dir/$dlname \$dldir/$dlname'
14740 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14741 dlpath=$dir/\$dldll~
14742 $RM \$dlpath'
14743 shlibpath_overrides_runpath=yes
14744 dynamic_linker='Win32 link.exe'
14745 ;;
14746
14747 *)
14748 # Assume MSVC wrapper
14749 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14750 dynamic_linker='Win32 ld.exe'
14751 ;;
14752 esac
14753 # FIXME: first we should search . and the directory the executable is in
14754 shlibpath_var=PATH
14755 ;;
14756
14757darwin* | rhapsody*)
14758 dynamic_linker="$host_os dyld"
14759 version_type=darwin
14760 need_lib_prefix=no
14761 need_version=no
14762 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14763 soname_spec='${libname}${release}${major}$shared_ext'
14764 shlibpath_overrides_runpath=yes
14765 shlibpath_var=DYLD_LIBRARY_PATH
14766 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14767
14768 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14769 ;;
14770
14771dgux*)
14772 version_type=linux # correct to gnu/linux during the next big refactor
14773 need_lib_prefix=no
14774 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
14778 ;;
14779
14780freebsd* | dragonfly*)
14781 # DragonFly does not have aout. When/if they implement a new
14782 # versioning mechanism, adjust this.
14783 if test -x /usr/bin/objformat; then
14784 objformat=`/usr/bin/objformat`
14785 else
14786 case $host_os in
14787 freebsd[23].*) objformat=aout ;;
14788 *) objformat=elf ;;
14789 esac
14790 fi
14791 version_type=freebsd-$objformat
14792 case $version_type in
14793 freebsd-elf*)
14794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14795 need_version=no
14796 need_lib_prefix=no
14797 ;;
14798 freebsd-*)
14799 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14800 need_version=yes
14801 ;;
14802 esac
14803 shlibpath_var=LD_LIBRARY_PATH
14804 case $host_os in
14805 freebsd2.*)
14806 shlibpath_overrides_runpath=yes
14807 ;;
14808 freebsd3.[01]* | freebsdelf3.[01]*)
14809 shlibpath_overrides_runpath=yes
14810 hardcode_into_libs=yes
14811 ;;
14812 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14813 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14814 shlibpath_overrides_runpath=no
14815 hardcode_into_libs=yes
14816 ;;
14817 *) # from 4.6 on, and DragonFly
14818 shlibpath_overrides_runpath=yes
14819 hardcode_into_libs=yes
14820 ;;
14821 esac
14822 ;;
14823
14824gnu*)
14825 version_type=linux # correct to gnu/linux during the next big refactor
14826 need_lib_prefix=no
14827 need_version=no
14828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14829 soname_spec='${libname}${release}${shared_ext}$major'
14830 shlibpath_var=LD_LIBRARY_PATH
14831 shlibpath_overrides_runpath=no
14832 hardcode_into_libs=yes
14833 ;;
14834
14835haiku*)
14836 version_type=linux # correct to gnu/linux during the next big refactor
14837 need_lib_prefix=no
14838 need_version=no
14839 dynamic_linker="$host_os runtime_loader"
14840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14841 soname_spec='${libname}${release}${shared_ext}$major'
14842 shlibpath_var=LIBRARY_PATH
14843 shlibpath_overrides_runpath=yes
14844 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14845 hardcode_into_libs=yes
14846 ;;
14847
14848hpux9* | hpux10* | hpux11*)
14849 # Give a soname corresponding to the major version so that dld.sl refuses to
14850 # link against other versions.
14851 version_type=sunos
14852 need_lib_prefix=no
14853 need_version=no
14854 case $host_cpu in
14855 ia64*)
14856 shrext_cmds='.so'
14857 hardcode_into_libs=yes
14858 dynamic_linker="$host_os dld.so"
14859 shlibpath_var=LD_LIBRARY_PATH
14860 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14862 soname_spec='${libname}${release}${shared_ext}$major'
14863 if test "X$HPUX_IA64_MODE" = X32; then
14864 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14865 else
14866 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14867 fi
14868 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14869 ;;
14870 hppa*64*)
14871 shrext_cmds='.sl'
14872 hardcode_into_libs=yes
14873 dynamic_linker="$host_os dld.sl"
14874 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14877 soname_spec='${libname}${release}${shared_ext}$major'
14878 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14879 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14880 ;;
14881 *)
14882 shrext_cmds='.sl'
14883 dynamic_linker="$host_os dld.sl"
14884 shlibpath_var=SHLIB_PATH
14885 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14887 soname_spec='${libname}${release}${shared_ext}$major'
14888 ;;
14889 esac
14890 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14891 postinstall_cmds='chmod 555 $lib'
14892 # or fails outright, so override atomically:
14893 install_override_mode=555
14894 ;;
14895
14896interix[3-9]*)
14897 version_type=linux # correct to gnu/linux during the next big refactor
14898 need_lib_prefix=no
14899 need_version=no
14900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14901 soname_spec='${libname}${release}${shared_ext}$major'
14902 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14903 shlibpath_var=LD_LIBRARY_PATH
14904 shlibpath_overrides_runpath=no
14905 hardcode_into_libs=yes
14906 ;;
14907
14908irix5* | irix6* | nonstopux*)
14909 case $host_os in
14910 nonstopux*) version_type=nonstopux ;;
14911 *)
14912 if test "$lt_cv_prog_gnu_ld" = yes; then
14913 version_type=linux # correct to gnu/linux during the next big refactor
14914 else
14915 version_type=irix
14916 fi ;;
14917 esac
14918 need_lib_prefix=no
14919 need_version=no
14920 soname_spec='${libname}${release}${shared_ext}$major'
14921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14922 case $host_os in
14923 irix5* | nonstopux*)
14924 libsuff= shlibsuff=
14925 ;;
14926 *)
14927 case $LD in # libtool.m4 will add one of these switches to LD
14928 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14929 libsuff= shlibsuff= libmagic=32-bit;;
14930 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14931 libsuff=32 shlibsuff=N32 libmagic=N32;;
14932 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14933 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14934 *) libsuff= shlibsuff= libmagic=never-match;;
14935 esac
14936 ;;
14937 esac
14938 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14939 shlibpath_overrides_runpath=no
14940 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14941 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14942 hardcode_into_libs=yes
14943 ;;
14944
14945# No shared lib support for Linux oldld, aout, or coff.
14946linux*oldld* | linux*aout* | linux*coff*)
14947 dynamic_linker=no
14948 ;;
14949
14950# This must be glibc/ELF.
14951linux* | k*bsd*-gnu | kopensolaris*-gnu)
14952 version_type=linux # correct to gnu/linux during the next big refactor
14953 need_lib_prefix=no
14954 need_version=no
14955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14956 soname_spec='${libname}${release}${shared_ext}$major'
14957 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14958 shlibpath_var=LD_LIBRARY_PATH
14959 shlibpath_overrides_runpath=no
14960
14961 # Some binutils ld are patched to set DT_RUNPATH
14962 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14963 $as_echo_n "(cached) " >&6
14964else
14965 lt_cv_shlibpath_overrides_runpath=no
14966 save_LDFLAGS=$LDFLAGS
14967 save_libdir=$libdir
14968 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14969 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14971/* end confdefs.h. */
14972
14973int
14974main ()
14975{
14976
14977 ;
14978 return 0;
14979}
14980_ACEOF
14981if ac_fn_cxx_try_link "$LINENO"; then :
14982 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14983 lt_cv_shlibpath_overrides_runpath=yes
14984fi
14985fi
14986rm -f core conftest.err conftest.$ac_objext \
14987 conftest$ac_exeext conftest.$ac_ext
14988 LDFLAGS=$save_LDFLAGS
14989 libdir=$save_libdir
14990
14991fi
14992
14993 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14994
14995 # This implies no fast_install, which is unacceptable.
14996 # Some rework will be needed to allow for fast_install
14997 # before this can be enabled.
14998 hardcode_into_libs=yes
14999
15000 # Append ld.so.conf contents to the search path
15001 if test -f /etc/ld.so.conf; then
15002 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' ' '`
15003 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15004 fi
15005
15006 # We used to test for /lib/ld.so.1 and disable shared libraries on
15007 # powerpc, because MkLinux only supported shared libraries with the
15008 # GNU dynamic linker. Since this was broken with cross compilers,
15009 # most powerpc-linux boxes support dynamic linking these days and
15010 # people can always --disable-shared, the test was removed, and we
15011 # assume the GNU/Linux dynamic linker is in use.
15012 dynamic_linker='GNU/Linux ld.so'
15013 ;;
15014
15015netbsd*)
15016 version_type=sunos
15017 need_lib_prefix=no
15018 need_version=no
15019 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15022 dynamic_linker='NetBSD (a.out) ld.so'
15023 else
15024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15025 soname_spec='${libname}${release}${shared_ext}$major'
15026 dynamic_linker='NetBSD ld.elf_so'
15027 fi
15028 shlibpath_var=LD_LIBRARY_PATH
15029 shlibpath_overrides_runpath=yes
15030 hardcode_into_libs=yes
15031 ;;
15032
15033newsos6)
15034 version_type=linux # correct to gnu/linux during the next big refactor
15035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15036 shlibpath_var=LD_LIBRARY_PATH
15037 shlibpath_overrides_runpath=yes
15038 ;;
15039
15040*nto* | *qnx*)
15041 version_type=qnx
15042 need_lib_prefix=no
15043 need_version=no
15044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15045 soname_spec='${libname}${release}${shared_ext}$major'
15046 shlibpath_var=LD_LIBRARY_PATH
15047 shlibpath_overrides_runpath=no
15048 hardcode_into_libs=yes
15049 dynamic_linker='ldqnx.so'
15050 ;;
15051
15052openbsd*)
15053 version_type=sunos
15054 sys_lib_dlsearch_path_spec="/usr/lib"
15055 need_lib_prefix=no
15056 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15057 case $host_os in
15058 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15059 *) need_version=no ;;
15060 esac
15061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15063 shlibpath_var=LD_LIBRARY_PATH
15064 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15065 case $host_os in
15066 openbsd2.[89] | openbsd2.[89].*)
15067 shlibpath_overrides_runpath=no
15068 ;;
15069 *)
15070 shlibpath_overrides_runpath=yes
15071 ;;
15072 esac
15073 else
15074 shlibpath_overrides_runpath=yes
15075 fi
15076 ;;
15077
15078os2*)
15079 libname_spec='$name'
15080 shrext_cmds=".dll"
15081 need_lib_prefix=no
15082 library_names_spec='$libname${shared_ext} $libname.a'
15083 dynamic_linker='OS/2 ld.exe'
15084 shlibpath_var=LIBPATH
15085 ;;
15086
15087osf3* | osf4* | osf5*)
15088 version_type=osf
15089 need_lib_prefix=no
15090 need_version=no
15091 soname_spec='${libname}${release}${shared_ext}$major'
15092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15093 shlibpath_var=LD_LIBRARY_PATH
15094 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15095 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15096 ;;
15097
15098rdos*)
15099 dynamic_linker=no
15100 ;;
15101
15102solaris*)
15103 version_type=linux # correct to gnu/linux during the next big refactor
15104 need_lib_prefix=no
15105 need_version=no
15106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15107 soname_spec='${libname}${release}${shared_ext}$major'
15108 shlibpath_var=LD_LIBRARY_PATH
15109 shlibpath_overrides_runpath=yes
15110 hardcode_into_libs=yes
15111 # ldd complains unless libraries are executable
15112 postinstall_cmds='chmod +x $lib'
15113 ;;
15114
15115sunos4*)
15116 version_type=sunos
15117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15118 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15119 shlibpath_var=LD_LIBRARY_PATH
15120 shlibpath_overrides_runpath=yes
15121 if test "$with_gnu_ld" = yes; then
15122 need_lib_prefix=no
15123 fi
15124 need_version=yes
15125 ;;
15126
15127sysv4 | sysv4.3*)
15128 version_type=linux # correct to gnu/linux during the next big refactor
15129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15130 soname_spec='${libname}${release}${shared_ext}$major'
15131 shlibpath_var=LD_LIBRARY_PATH
15132 case $host_vendor in
15133 sni)
15134 shlibpath_overrides_runpath=no
15135 need_lib_prefix=no
15136 runpath_var=LD_RUN_PATH
15137 ;;
15138 siemens)
15139 need_lib_prefix=no
15140 ;;
15141 motorola)
15142 need_lib_prefix=no
15143 need_version=no
15144 shlibpath_overrides_runpath=no
15145 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15146 ;;
15147 esac
15148 ;;
15149
15150sysv4*MP*)
15151 if test -d /usr/nec ;then
15152 version_type=linux # correct to gnu/linux during the next big refactor
15153 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15154 soname_spec='$libname${shared_ext}.$major'
15155 shlibpath_var=LD_LIBRARY_PATH
15156 fi
15157 ;;
15158
15159sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15160 version_type=freebsd-elf
15161 need_lib_prefix=no
15162 need_version=no
15163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15164 soname_spec='${libname}${release}${shared_ext}$major'
15165 shlibpath_var=LD_LIBRARY_PATH
15166 shlibpath_overrides_runpath=yes
15167 hardcode_into_libs=yes
15168 if test "$with_gnu_ld" = yes; then
15169 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15170 else
15171 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15172 case $host_os in
15173 sco3.2v5*)
15174 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15175 ;;
15176 esac
15177 fi
15178 sys_lib_dlsearch_path_spec='/usr/lib'
15179 ;;
15180
15181tpf*)
15182 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15183 version_type=linux # correct to gnu/linux during the next big refactor
15184 need_lib_prefix=no
15185 need_version=no
15186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15187 shlibpath_var=LD_LIBRARY_PATH
15188 shlibpath_overrides_runpath=no
15189 hardcode_into_libs=yes
15190 ;;
15191
15192uts4*)
15193 version_type=linux # correct to gnu/linux during the next big refactor
15194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15195 soname_spec='${libname}${release}${shared_ext}$major'
15196 shlibpath_var=LD_LIBRARY_PATH
15197 ;;
15198
15199*)
15200 dynamic_linker=no
15201 ;;
15202esac
15203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15204$as_echo "$dynamic_linker" >&6; }
15205test "$dynamic_linker" = no && can_build_shared=no
15206
15207variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15208if test "$GCC" = yes; then
15209 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15210fi
15211
15212if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15213 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15214fi
15215if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15216 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15217fi
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15257$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15258hardcode_action_CXX=
15259if test -n "$hardcode_libdir_flag_spec_CXX" ||
15260 test -n "$runpath_var_CXX" ||
15261 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15262
15263 # We can hardcode non-existent directories.
15264 if test "$hardcode_direct_CXX" != no &&
15265 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15266 # have to relink, otherwise we might link with an installed library
15267 # when we should be linking with a yet-to-be-installed one
15268 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15269 test "$hardcode_minus_L_CXX" != no; then
15270 # Linking always hardcodes the temporary library directory.
15271 hardcode_action_CXX=relink
15272 else
15273 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15274 hardcode_action_CXX=immediate
15275 fi
15276else
15277 # We cannot hardcode anything, or else we can only hardcode existing
15278 # directories.
15279 hardcode_action_CXX=unsupported
15280fi
15281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15282$as_echo "$hardcode_action_CXX" >&6; }
15283
15284if test "$hardcode_action_CXX" = relink ||
15285 test "$inherit_rpath_CXX" = yes; then
15286 # Fast installation is not supported
15287 enable_fast_install=no
15288elif test "$shlibpath_overrides_runpath" = yes ||
15289 test "$enable_shared" = no; then
15290 # Fast installation is not necessary
15291 enable_fast_install=needless
15292fi
15293
15294
15295
15296
15297
15298
15299
15300 fi # test -n "$compiler"
15301
15302 CC=$lt_save_CC
15303 CFLAGS=$lt_save_CFLAGS
15304 LDCXX=$LD
15305 LD=$lt_save_LD
15306 GCC=$lt_save_GCC
15307 with_gnu_ld=$lt_save_with_gnu_ld
15308 lt_cv_path_LDCXX=$lt_cv_path_LD
15309 lt_cv_path_LD=$lt_save_path_LD
15310 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15311 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15312fi # test "$_lt_caught_CXX_error" != yes
15313
15314ac_ext=c
15315ac_cpp='$CPP $CPPFLAGS'
15316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15318ac_compiler_gnu=$ac_cv_c_compiler_gnu
15319
15320
Jeff Thompson1a1b4c02013-06-28 22:28:51 -070015321
Jeff Thompson36174062013-06-21 16:03:44 -070015322ac_ext=cpp
15323ac_cpp='$CXXCPP $CPPFLAGS'
15324ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15325ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15326ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15327
Jeff Thompson36174062013-06-21 16:03:44 -070015328
Jeff Thompson1b8f4c92013-06-19 16:18:46 -070015329 ax_cxx_compile_cxx11_required=falsednl
15330 ac_ext=cpp
15331ac_cpp='$CXXCPP $CPPFLAGS'
15332ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15333ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15334ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15335 ac_success=no
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
15337$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
15338if ${ax_cv_cxx_compile_cxx11+:} false; then :
15339 $as_echo_n "(cached) " >&6
15340else
15341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15342/* end confdefs.h. */
15343
15344 template <typename T>
15345 struct check
15346 {
15347 static_assert(sizeof(int) <= sizeof(T), "not big enough");
15348 };
15349
15350 typedef check<check<bool>> right_angle_brackets;
15351
15352 int a;
15353 decltype(a) b;
15354
15355 typedef check<int> check_type;
15356 check_type c;
15357 check_type&& cr = static_cast<check_type&&>(c);
15358
15359 auto d = a;
15360
15361_ACEOF
15362if ac_fn_cxx_try_compile "$LINENO"; then :
15363 ax_cv_cxx_compile_cxx11=yes
15364else
15365 ax_cv_cxx_compile_cxx11=no
15366fi
15367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15368fi
15369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
15370$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
15371 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
15372 ac_success=yes
15373 fi
15374
15375 if test x$ac_success = xno; then
15376 for switch in -std=gnu++11 -std=gnu++0x; do
15377 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
15379$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
15380if eval \${$cachevar+:} false; then :
15381 $as_echo_n "(cached) " >&6
15382else
15383 ac_save_CXXFLAGS="$CXXFLAGS"
15384 CXXFLAGS="$CXXFLAGS $switch"
15385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15386/* end confdefs.h. */
15387
15388 template <typename T>
15389 struct check
15390 {
15391 static_assert(sizeof(int) <= sizeof(T), "not big enough");
15392 };
15393
15394 typedef check<check<bool>> right_angle_brackets;
15395
15396 int a;
15397 decltype(a) b;
15398
15399 typedef check<int> check_type;
15400 check_type c;
15401 check_type&& cr = static_cast<check_type&&>(c);
15402
15403 auto d = a;
15404
15405_ACEOF
15406if ac_fn_cxx_try_compile "$LINENO"; then :
15407 eval $cachevar=yes
15408else
15409 eval $cachevar=no
15410fi
15411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15412 CXXFLAGS="$ac_save_CXXFLAGS"
15413fi
15414eval ac_res=\$$cachevar
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15416$as_echo "$ac_res" >&6; }
15417 if eval test x\$$cachevar = xyes; then
15418 CXXFLAGS="$CXXFLAGS $switch"
15419 ac_success=yes
15420 break
15421 fi
15422 done
15423 fi
15424
15425 if test x$ac_success = xno; then
15426 for switch in -std=c++11 -std=c++0x; do
15427 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
15429$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
15430if eval \${$cachevar+:} false; then :
15431 $as_echo_n "(cached) " >&6
15432else
15433 ac_save_CXXFLAGS="$CXXFLAGS"
15434 CXXFLAGS="$CXXFLAGS $switch"
15435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15436/* end confdefs.h. */
15437
15438 template <typename T>
15439 struct check
15440 {
15441 static_assert(sizeof(int) <= sizeof(T), "not big enough");
15442 };
15443
15444 typedef check<check<bool>> right_angle_brackets;
15445
15446 int a;
15447 decltype(a) b;
15448
15449 typedef check<int> check_type;
15450 check_type c;
15451 check_type&& cr = static_cast<check_type&&>(c);
15452
15453 auto d = a;
15454
15455_ACEOF
15456if ac_fn_cxx_try_compile "$LINENO"; then :
15457 eval $cachevar=yes
15458else
15459 eval $cachevar=no
15460fi
15461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15462 CXXFLAGS="$ac_save_CXXFLAGS"
15463fi
15464eval ac_res=\$$cachevar
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15466$as_echo "$ac_res" >&6; }
15467 if eval test x\$$cachevar = xyes; then
15468 CXXFLAGS="$CXXFLAGS $switch"
15469 ac_success=yes
15470 break
15471 fi
15472 done
15473 fi
15474 ac_ext=cpp
15475ac_cpp='$CXXCPP $CPPFLAGS'
15476ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15477ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15478ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15479
15480 if test x$ax_cxx_compile_cxx11_required = xtrue; then
15481 if test x$ac_success = xno; then
15482 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
15483 fi
15484 else
15485 if test x$ac_success = xno; then
15486 HAVE_CXX11=0
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
15488$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
15489 else
15490 HAVE_CXX11=1
15491
15492$as_echo "#define HAVE_CXX11 1" >>confdefs.h
15493
15494 fi
15495
15496
15497 fi
15498
Jeff Thompson8a055e02013-08-09 10:44:28 -070015499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_EncryptInit in -lcrypto" >&5
15500$as_echo_n "checking for EVP_EncryptInit in -lcrypto... " >&6; }
15501if ${ac_cv_lib_crypto_EVP_EncryptInit+:} false; then :
15502 $as_echo_n "(cached) " >&6
15503else
15504 ac_check_lib_save_LIBS=$LIBS
15505LIBS="-lcrypto $LIBS"
15506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15507/* end confdefs.h. */
Jeff Thompsonb3768ae2013-08-08 21:22:45 -070015508
Jeff Thompson8a055e02013-08-09 10:44:28 -070015509/* Override any GCC internal prototype to avoid an error.
15510 Use char because int might match the return type of a GCC
15511 builtin and then its argument prototype would still apply. */
15512#ifdef __cplusplus
15513extern "C"
15514#endif
15515char EVP_EncryptInit ();
15516int
15517main ()
15518{
15519return EVP_EncryptInit ();
15520 ;
15521 return 0;
15522}
15523_ACEOF
15524if ac_fn_cxx_try_link "$LINENO"; then :
15525 ac_cv_lib_crypto_EVP_EncryptInit=yes
15526else
15527 ac_cv_lib_crypto_EVP_EncryptInit=no
15528fi
15529rm -f core conftest.err conftest.$ac_objext \
15530 conftest$ac_exeext conftest.$ac_ext
15531LIBS=$ac_check_lib_save_LIBS
15532fi
15533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_EncryptInit" >&5
15534$as_echo "$ac_cv_lib_crypto_EVP_EncryptInit" >&6; }
15535if test "x$ac_cv_lib_crypto_EVP_EncryptInit" = xyes; then :
15536 cat >>confdefs.h <<_ACEOF
15537#define HAVE_LIBCRYPTO 1
15538_ACEOF
15539
15540 LIBS="-lcrypto $LIBS"
15541
15542else
15543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15544$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15545as_fn_error $? "can't find openssl crypto lib
15546See \`config.log' for more details" "$LINENO" 5; }
15547fi
Jeff Thompsonb3768ae2013-08-08 21:22:45 -070015548
15549
Jeff Thompson39128c62013-06-19 14:08:51 -070015550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::shared_ptr" >&5
15551$as_echo_n "checking for std::shared_ptr... " >&6; }
Jeff Thompson39128c62013-06-19 14:08:51 -070015552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15553/* end confdefs.h. */
15554#include <memory>
15555 std::shared_ptr<int> have_shared_ptr;
15556int
15557main ()
15558{
15559
15560 ;
15561 return 0;
15562}
15563
15564_ACEOF
15565if ac_fn_cxx_try_compile "$LINENO"; then :
15566
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15568$as_echo "yes" >&6; }
15569
15570cat >>confdefs.h <<_ACEOF
15571#define HAVE_STD_SHARED_PTR 1
15572_ACEOF
15573
15574
15575else
15576
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15578$as_echo "no" >&6; }
15579
15580cat >>confdefs.h <<_ACEOF
15581#define HAVE_STD_SHARED_PTR 0
15582_ACEOF
15583
15584
15585fi
15586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jeff Thompson9e9ea9f2013-06-22 10:31:18 -070015587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost::shared_ptr" >&5
15588$as_echo_n "checking for boost::shared_ptr... " >&6; }
Jeff Thompson39128c62013-06-19 14:08:51 -070015589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15590/* end confdefs.h. */
15591#include <boost/shared_ptr.hpp>
15592 boost::shared_ptr<int> have_shared_ptr;
15593int
15594main ()
15595{
15596
15597 ;
15598 return 0;
15599}
15600
15601_ACEOF
15602if ac_fn_cxx_try_compile "$LINENO"; then :
15603
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15605$as_echo "yes" >&6; }
15606
15607cat >>confdefs.h <<_ACEOF
15608#define HAVE_BOOST_SHARED_PTR 1
15609_ACEOF
15610
15611
15612else
15613
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15615$as_echo "no" >&6; }
15616
15617cat >>confdefs.h <<_ACEOF
15618#define HAVE_BOOST_SHARED_PTR 0
15619_ACEOF
15620
15621
15622fi
15623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15624
Jeff Thompsona28eed82013-08-22 16:21:10 -070015625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::function" >&5
15626$as_echo_n "checking for std::function... " >&6; }
15627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15628/* end confdefs.h. */
15629#include <functional>
15630 std::function<int> have_function();
15631int
15632main ()
15633{
15634
15635 ;
15636 return 0;
15637}
15638
15639_ACEOF
15640if ac_fn_cxx_try_compile "$LINENO"; then :
15641
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15643$as_echo "yes" >&6; }
15644
15645cat >>confdefs.h <<_ACEOF
15646#define HAVE_STD_FUNCTION 1
15647_ACEOF
15648
15649
15650else
15651
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15653$as_echo "no" >&6; }
15654
15655cat >>confdefs.h <<_ACEOF
15656#define HAVE_STD_FUNCTION 0
15657_ACEOF
15658
15659
15660fi
15661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost::function" >&5
15663$as_echo_n "checking for boost::function... " >&6; }
15664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15665/* end confdefs.h. */
15666#include <boost/function.hpp>
15667 boost::function<int> have_function();
15668int
15669main ()
15670{
15671
15672 ;
15673 return 0;
15674}
15675
15676_ACEOF
15677if ac_fn_cxx_try_compile "$LINENO"; then :
15678
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15680$as_echo "yes" >&6; }
15681
15682cat >>confdefs.h <<_ACEOF
15683#define HAVE_BOOST_FUNCTION 1
15684_ACEOF
15685
15686
15687else
15688
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15690$as_echo "no" >&6; }
15691
15692cat >>confdefs.h <<_ACEOF
15693#define HAVE_BOOST_FUNCTION 0
15694_ACEOF
15695
15696
15697fi
15698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15699
Jeff Thompsond4a1e162013-07-11 12:41:31 -070015700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcmp" >&5
15701$as_echo_n "checking for memcmp... " >&6; }
15702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15703/* end confdefs.h. */
15704#include <memory.h>
15705 void test() { unsigned char buffer[1]; memcmp(buffer, buffer, 1); }
15706int
15707main ()
15708{
15709
15710 ;
15711 return 0;
15712}
15713
15714_ACEOF
15715if ac_fn_cxx_try_compile "$LINENO"; then :
15716
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15718$as_echo "yes" >&6; }
15719
15720cat >>confdefs.h <<_ACEOF
15721#define HAVE_MEMCMP 1
15722_ACEOF
15723
15724
15725else
15726
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15728$as_echo "no" >&6; }
15729
15730cat >>confdefs.h <<_ACEOF
15731#define HAVE_MEMCMP 0
15732_ACEOF
15733
15734
15735fi
15736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jeff Thompsonc804d522013-06-27 16:54:27 -070015737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcpy" >&5
15738$as_echo_n "checking for memcpy... " >&6; }
15739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15740/* end confdefs.h. */
15741#include <memory.h>
15742 void test() { unsigned char buffer[1]; memcpy(buffer, buffer, 1); }
15743int
15744main ()
15745{
15746
15747 ;
15748 return 0;
15749}
15750
15751_ACEOF
15752if ac_fn_cxx_try_compile "$LINENO"; then :
15753
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15755$as_echo "yes" >&6; }
15756
15757cat >>confdefs.h <<_ACEOF
15758#define HAVE_MEMCPY 1
15759_ACEOF
15760
15761
15762else
15763
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15765$as_echo "no" >&6; }
15766
15767cat >>confdefs.h <<_ACEOF
15768#define HAVE_MEMCPY 0
15769_ACEOF
15770
15771
15772fi
15773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memset" >&5
15775$as_echo_n "checking for memset... " >&6; }
15776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15777/* end confdefs.h. */
15778#include <memory.h>
15779 void test() { unsigned char buffer[1]; memset(buffer, 0, 1); }
15780int
15781main ()
15782{
15783
15784 ;
15785 return 0;
15786}
15787
15788_ACEOF
15789if ac_fn_cxx_try_compile "$LINENO"; then :
15790
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15792$as_echo "yes" >&6; }
15793
15794cat >>confdefs.h <<_ACEOF
15795#define HAVE_MEMSET 1
15796_ACEOF
15797
15798
15799else
15800
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15802$as_echo "no" >&6; }
15803
15804cat >>confdefs.h <<_ACEOF
15805#define HAVE_MEMSET 0
15806_ACEOF
15807
15808
15809fi
15810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15811
Jeff Thompsonca45e552013-06-26 17:40:06 -070015812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822# Files:
15823DX_PROJECT=$PACKAGE_NAME
15824
15825DX_CONFIG=Doxyfile
15826
15827DX_DOCDIR=doxygen-doc
15828
15829
15830# Environment variables used inside doxygen.cfg:
15831DX_ENV="$DX_ENV SRCDIR='$srcdir'"
15832
15833DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
15834
15835DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
15836
15837DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
15838
15839
15840# Doxygen itself:
15841
15842
15843
15844 # Check whether --enable-doxygen-doc was given.
15845if test "${enable_doxygen_doc+set}" = set; then :
15846 enableval=$enable_doxygen_doc;
15847case "$enableval" in
15848#(
15849y|Y|yes|Yes|YES)
15850 DX_FLAG_doc=1
15851
15852
15853;; #(
15854n|N|no|No|NO)
15855 DX_FLAG_doc=0
15856
15857;; #(
15858*)
15859 as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
15860;;
15861esac
15862
15863else
15864
15865DX_FLAG_doc=1
15866
15867
15868
15869fi
15870
15871if test "$DX_FLAG_doc" = 1; then
15872
15873if test -n "$ac_tool_prefix"; then
15874 # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
15875set dummy ${ac_tool_prefix}doxygen; ac_word=$2
15876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15877$as_echo_n "checking for $ac_word... " >&6; }
15878if ${ac_cv_path_DX_DOXYGEN+:} false; then :
15879 $as_echo_n "(cached) " >&6
15880else
15881 case $DX_DOXYGEN in
15882 [\\/]* | ?:[\\/]*)
15883 ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
15884 ;;
15885 *)
15886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15887for as_dir in $PATH
15888do
15889 IFS=$as_save_IFS
15890 test -z "$as_dir" && as_dir=.
15891 for ac_exec_ext in '' $ac_executable_extensions; do
15892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15893 ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
15894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15895 break 2
15896 fi
15897done
15898 done
15899IFS=$as_save_IFS
15900
15901 ;;
15902esac
15903fi
15904DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
15905if test -n "$DX_DOXYGEN"; then
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
15907$as_echo "$DX_DOXYGEN" >&6; }
15908else
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15910$as_echo "no" >&6; }
15911fi
15912
15913
15914fi
15915if test -z "$ac_cv_path_DX_DOXYGEN"; then
15916 ac_pt_DX_DOXYGEN=$DX_DOXYGEN
15917 # Extract the first word of "doxygen", so it can be a program name with args.
15918set dummy doxygen; ac_word=$2
15919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15920$as_echo_n "checking for $ac_word... " >&6; }
15921if ${ac_cv_path_ac_pt_DX_DOXYGEN+:} false; then :
15922 $as_echo_n "(cached) " >&6
15923else
15924 case $ac_pt_DX_DOXYGEN in
15925 [\\/]* | ?:[\\/]*)
15926 ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
15927 ;;
15928 *)
15929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15930for as_dir in $PATH
15931do
15932 IFS=$as_save_IFS
15933 test -z "$as_dir" && as_dir=.
15934 for ac_exec_ext in '' $ac_executable_extensions; do
15935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15936 ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
15937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15938 break 2
15939 fi
15940done
15941 done
15942IFS=$as_save_IFS
15943
15944 ;;
15945esac
15946fi
15947ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
15948if test -n "$ac_pt_DX_DOXYGEN"; then
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
15950$as_echo "$ac_pt_DX_DOXYGEN" >&6; }
15951else
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15953$as_echo "no" >&6; }
15954fi
15955
15956 if test "x$ac_pt_DX_DOXYGEN" = x; then
15957 DX_DOXYGEN=""
15958 else
15959 case $cross_compiling:$ac_tool_warned in
15960yes:)
15961{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15963ac_tool_warned=yes ;;
15964esac
15965 DX_DOXYGEN=$ac_pt_DX_DOXYGEN
15966 fi
15967else
15968 DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
15969fi
15970
15971if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
15973$as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
15974 DX_FLAG_doc=0
15975
15976fi
15977
15978
15979if test -n "$ac_tool_prefix"; then
15980 # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
15981set dummy ${ac_tool_prefix}perl; ac_word=$2
15982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15983$as_echo_n "checking for $ac_word... " >&6; }
15984if ${ac_cv_path_DX_PERL+:} false; then :
15985 $as_echo_n "(cached) " >&6
15986else
15987 case $DX_PERL in
15988 [\\/]* | ?:[\\/]*)
15989 ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
15990 ;;
15991 *)
15992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15993for as_dir in $PATH
15994do
15995 IFS=$as_save_IFS
15996 test -z "$as_dir" && as_dir=.
15997 for ac_exec_ext in '' $ac_executable_extensions; do
15998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15999 ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
16000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16001 break 2
16002 fi
16003done
16004 done
16005IFS=$as_save_IFS
16006
16007 ;;
16008esac
16009fi
16010DX_PERL=$ac_cv_path_DX_PERL
16011if test -n "$DX_PERL"; then
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
16013$as_echo "$DX_PERL" >&6; }
16014else
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16016$as_echo "no" >&6; }
16017fi
16018
16019
16020fi
16021if test -z "$ac_cv_path_DX_PERL"; then
16022 ac_pt_DX_PERL=$DX_PERL
16023 # Extract the first word of "perl", so it can be a program name with args.
16024set dummy perl; ac_word=$2
16025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16026$as_echo_n "checking for $ac_word... " >&6; }
16027if ${ac_cv_path_ac_pt_DX_PERL+:} false; then :
16028 $as_echo_n "(cached) " >&6
16029else
16030 case $ac_pt_DX_PERL in
16031 [\\/]* | ?:[\\/]*)
16032 ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
16033 ;;
16034 *)
16035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16036for as_dir in $PATH
16037do
16038 IFS=$as_save_IFS
16039 test -z "$as_dir" && as_dir=.
16040 for ac_exec_ext in '' $ac_executable_extensions; do
16041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16042 ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
16043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16044 break 2
16045 fi
16046done
16047 done
16048IFS=$as_save_IFS
16049
16050 ;;
16051esac
16052fi
16053ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
16054if test -n "$ac_pt_DX_PERL"; then
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
16056$as_echo "$ac_pt_DX_PERL" >&6; }
16057else
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16059$as_echo "no" >&6; }
16060fi
16061
16062 if test "x$ac_pt_DX_PERL" = x; then
16063 DX_PERL=""
16064 else
16065 case $cross_compiling:$ac_tool_warned in
16066yes:)
16067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16069ac_tool_warned=yes ;;
16070esac
16071 DX_PERL=$ac_pt_DX_PERL
16072 fi
16073else
16074 DX_PERL="$ac_cv_path_DX_PERL"
16075fi
16076
16077if test "$DX_FLAG_doc$DX_PERL" = 1; then
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
16079$as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
16080 DX_FLAG_doc=0
16081
16082fi
16083
16084 :
16085fi
16086 if test "$DX_FLAG_doc" = 1; then
16087 DX_COND_doc_TRUE=
16088 DX_COND_doc_FALSE='#'
16089else
16090 DX_COND_doc_TRUE='#'
16091 DX_COND_doc_FALSE=
16092fi
16093
16094if test "$DX_FLAG_doc" = 1; then
16095 DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
16096
16097 :
16098else
16099
16100 :
16101fi
16102
16103
16104# Dot for graphics:
16105
16106
16107
16108 # Check whether --enable-doxygen-dot was given.
16109if test "${enable_doxygen_dot+set}" = set; then :
16110 enableval=$enable_doxygen_dot;
16111case "$enableval" in
16112#(
16113y|Y|yes|Yes|YES)
16114 DX_FLAG_dot=1
16115
16116
16117test "$DX_FLAG_doc" = "1" \
16118|| as_fn_error $? "doxygen-dot requires doxygen-dot" "$LINENO" 5
16119
16120;; #(
16121n|N|no|No|NO)
16122 DX_FLAG_dot=0
16123
16124;; #(
16125*)
16126 as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
16127;;
16128esac
16129
16130else
16131
16132DX_FLAG_dot=0
16133
16134
16135test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
16136
16137
16138
16139fi
16140
16141if test "$DX_FLAG_dot" = 1; then
16142
16143if test -n "$ac_tool_prefix"; then
16144 # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
16145set dummy ${ac_tool_prefix}dot; ac_word=$2
16146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16147$as_echo_n "checking for $ac_word... " >&6; }
16148if ${ac_cv_path_DX_DOT+:} false; then :
16149 $as_echo_n "(cached) " >&6
16150else
16151 case $DX_DOT in
16152 [\\/]* | ?:[\\/]*)
16153 ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
16154 ;;
16155 *)
16156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16157for as_dir in $PATH
16158do
16159 IFS=$as_save_IFS
16160 test -z "$as_dir" && as_dir=.
16161 for ac_exec_ext in '' $ac_executable_extensions; do
16162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16163 ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
16164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16165 break 2
16166 fi
16167done
16168 done
16169IFS=$as_save_IFS
16170
16171 ;;
16172esac
16173fi
16174DX_DOT=$ac_cv_path_DX_DOT
16175if test -n "$DX_DOT"; then
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
16177$as_echo "$DX_DOT" >&6; }
16178else
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16180$as_echo "no" >&6; }
16181fi
16182
16183
16184fi
16185if test -z "$ac_cv_path_DX_DOT"; then
16186 ac_pt_DX_DOT=$DX_DOT
16187 # Extract the first word of "dot", so it can be a program name with args.
16188set dummy dot; ac_word=$2
16189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16190$as_echo_n "checking for $ac_word... " >&6; }
16191if ${ac_cv_path_ac_pt_DX_DOT+:} false; then :
16192 $as_echo_n "(cached) " >&6
16193else
16194 case $ac_pt_DX_DOT in
16195 [\\/]* | ?:[\\/]*)
16196 ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
16197 ;;
16198 *)
16199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16200for as_dir in $PATH
16201do
16202 IFS=$as_save_IFS
16203 test -z "$as_dir" && as_dir=.
16204 for ac_exec_ext in '' $ac_executable_extensions; do
16205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16206 ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
16207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16208 break 2
16209 fi
16210done
16211 done
16212IFS=$as_save_IFS
16213
16214 ;;
16215esac
16216fi
16217ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
16218if test -n "$ac_pt_DX_DOT"; then
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
16220$as_echo "$ac_pt_DX_DOT" >&6; }
16221else
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16223$as_echo "no" >&6; }
16224fi
16225
16226 if test "x$ac_pt_DX_DOT" = x; then
16227 DX_DOT=""
16228 else
16229 case $cross_compiling:$ac_tool_warned in
16230yes:)
16231{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16232$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16233ac_tool_warned=yes ;;
16234esac
16235 DX_DOT=$ac_pt_DX_DOT
16236 fi
16237else
16238 DX_DOT="$ac_cv_path_DX_DOT"
16239fi
16240
16241if test "$DX_FLAG_dot$DX_DOT" = 1; then
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
16243$as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
16244 DX_FLAG_dot=0
16245
16246fi
16247
16248 :
16249fi
16250 if test "$DX_FLAG_dot" = 1; then
16251 DX_COND_dot_TRUE=
16252 DX_COND_dot_FALSE='#'
16253else
16254 DX_COND_dot_TRUE='#'
16255 DX_COND_dot_FALSE=
16256fi
16257
16258if test "$DX_FLAG_dot" = 1; then
16259 DX_ENV="$DX_ENV HAVE_DOT='YES'"
16260
16261 DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
16262
16263 :
16264else
16265 DX_ENV="$DX_ENV HAVE_DOT='NO'"
16266
16267 :
16268fi
16269
16270
16271# Man pages generation:
16272
16273
16274
16275 # Check whether --enable-doxygen-man was given.
16276if test "${enable_doxygen_man+set}" = set; then :
16277 enableval=$enable_doxygen_man;
16278case "$enableval" in
16279#(
16280y|Y|yes|Yes|YES)
16281 DX_FLAG_man=1
16282
16283
16284test "$DX_FLAG_doc" = "1" \
16285|| as_fn_error $? "doxygen-man requires doxygen-man" "$LINENO" 5
16286
16287;; #(
16288n|N|no|No|NO)
16289 DX_FLAG_man=0
16290
16291;; #(
16292*)
16293 as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
16294;;
16295esac
16296
16297else
16298
16299DX_FLAG_man=0
16300
16301
16302test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
16303
16304
16305
16306fi
16307
16308if test "$DX_FLAG_man" = 1; then
16309
16310 :
16311fi
16312 if test "$DX_FLAG_man" = 1; then
16313 DX_COND_man_TRUE=
16314 DX_COND_man_FALSE='#'
16315else
16316 DX_COND_man_TRUE='#'
16317 DX_COND_man_FALSE=
16318fi
16319
16320if test "$DX_FLAG_man" = 1; then
16321 DX_ENV="$DX_ENV GENERATE_MAN='YES'"
16322
16323 :
16324else
16325 DX_ENV="$DX_ENV GENERATE_MAN='NO'"
16326
16327 :
16328fi
16329
16330
16331# RTF file generation:
16332
16333
16334
16335 # Check whether --enable-doxygen-rtf was given.
16336if test "${enable_doxygen_rtf+set}" = set; then :
16337 enableval=$enable_doxygen_rtf;
16338case "$enableval" in
16339#(
16340y|Y|yes|Yes|YES)
16341 DX_FLAG_rtf=1
16342
16343
16344test "$DX_FLAG_doc" = "1" \
16345|| as_fn_error $? "doxygen-rtf requires doxygen-rtf" "$LINENO" 5
16346
16347;; #(
16348n|N|no|No|NO)
16349 DX_FLAG_rtf=0
16350
16351;; #(
16352*)
16353 as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
16354;;
16355esac
16356
16357else
16358
16359DX_FLAG_rtf=0
16360
16361
16362test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
16363
16364
16365
16366fi
16367
16368if test "$DX_FLAG_rtf" = 1; then
16369
16370 :
16371fi
16372 if test "$DX_FLAG_rtf" = 1; then
16373 DX_COND_rtf_TRUE=
16374 DX_COND_rtf_FALSE='#'
16375else
16376 DX_COND_rtf_TRUE='#'
16377 DX_COND_rtf_FALSE=
16378fi
16379
16380if test "$DX_FLAG_rtf" = 1; then
16381 DX_ENV="$DX_ENV GENERATE_RTF='YES'"
16382
16383 :
16384else
16385 DX_ENV="$DX_ENV GENERATE_RTF='NO'"
16386
16387 :
16388fi
16389
16390
16391# XML file generation:
16392
16393
16394
16395 # Check whether --enable-doxygen-xml was given.
16396if test "${enable_doxygen_xml+set}" = set; then :
16397 enableval=$enable_doxygen_xml;
16398case "$enableval" in
16399#(
16400y|Y|yes|Yes|YES)
16401 DX_FLAG_xml=1
16402
16403
16404test "$DX_FLAG_doc" = "1" \
16405|| as_fn_error $? "doxygen-xml requires doxygen-xml" "$LINENO" 5
16406
16407;; #(
16408n|N|no|No|NO)
16409 DX_FLAG_xml=0
16410
16411;; #(
16412*)
16413 as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
16414;;
16415esac
16416
16417else
16418
16419DX_FLAG_xml=0
16420
16421
16422test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
16423
16424
16425
16426fi
16427
16428if test "$DX_FLAG_xml" = 1; then
16429
16430 :
16431fi
16432 if test "$DX_FLAG_xml" = 1; then
16433 DX_COND_xml_TRUE=
16434 DX_COND_xml_FALSE='#'
16435else
16436 DX_COND_xml_TRUE='#'
16437 DX_COND_xml_FALSE=
16438fi
16439
16440if test "$DX_FLAG_xml" = 1; then
16441 DX_ENV="$DX_ENV GENERATE_XML='YES'"
16442
16443 :
16444else
16445 DX_ENV="$DX_ENV GENERATE_XML='NO'"
16446
16447 :
16448fi
16449
16450
16451# (Compressed) HTML help generation:
16452
16453
16454
16455 # Check whether --enable-doxygen-chm was given.
16456if test "${enable_doxygen_chm+set}" = set; then :
16457 enableval=$enable_doxygen_chm;
16458case "$enableval" in
16459#(
16460y|Y|yes|Yes|YES)
16461 DX_FLAG_chm=1
16462
16463
16464test "$DX_FLAG_doc" = "1" \
16465|| as_fn_error $? "doxygen-chm requires doxygen-chm" "$LINENO" 5
16466
16467;; #(
16468n|N|no|No|NO)
16469 DX_FLAG_chm=0
16470
16471;; #(
16472*)
16473 as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
16474;;
16475esac
16476
16477else
16478
16479DX_FLAG_chm=0
16480
16481
16482test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
16483
16484
16485
16486fi
16487
16488if test "$DX_FLAG_chm" = 1; then
16489
16490if test -n "$ac_tool_prefix"; then
16491 # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
16492set dummy ${ac_tool_prefix}hhc; ac_word=$2
16493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16494$as_echo_n "checking for $ac_word... " >&6; }
16495if ${ac_cv_path_DX_HHC+:} false; then :
16496 $as_echo_n "(cached) " >&6
16497else
16498 case $DX_HHC in
16499 [\\/]* | ?:[\\/]*)
16500 ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
16501 ;;
16502 *)
16503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16504for as_dir in $PATH
16505do
16506 IFS=$as_save_IFS
16507 test -z "$as_dir" && as_dir=.
16508 for ac_exec_ext in '' $ac_executable_extensions; do
16509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16510 ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
16511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16512 break 2
16513 fi
16514done
16515 done
16516IFS=$as_save_IFS
16517
16518 ;;
16519esac
16520fi
16521DX_HHC=$ac_cv_path_DX_HHC
16522if test -n "$DX_HHC"; then
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
16524$as_echo "$DX_HHC" >&6; }
16525else
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16527$as_echo "no" >&6; }
16528fi
16529
16530
16531fi
16532if test -z "$ac_cv_path_DX_HHC"; then
16533 ac_pt_DX_HHC=$DX_HHC
16534 # Extract the first word of "hhc", so it can be a program name with args.
16535set dummy hhc; ac_word=$2
16536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16537$as_echo_n "checking for $ac_word... " >&6; }
16538if ${ac_cv_path_ac_pt_DX_HHC+:} false; then :
16539 $as_echo_n "(cached) " >&6
16540else
16541 case $ac_pt_DX_HHC in
16542 [\\/]* | ?:[\\/]*)
16543 ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
16544 ;;
16545 *)
16546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16547for as_dir in $PATH
16548do
16549 IFS=$as_save_IFS
16550 test -z "$as_dir" && as_dir=.
16551 for ac_exec_ext in '' $ac_executable_extensions; do
16552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16553 ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
16554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16555 break 2
16556 fi
16557done
16558 done
16559IFS=$as_save_IFS
16560
16561 ;;
16562esac
16563fi
16564ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
16565if test -n "$ac_pt_DX_HHC"; then
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
16567$as_echo "$ac_pt_DX_HHC" >&6; }
16568else
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16570$as_echo "no" >&6; }
16571fi
16572
16573 if test "x$ac_pt_DX_HHC" = x; then
16574 DX_HHC=""
16575 else
16576 case $cross_compiling:$ac_tool_warned in
16577yes:)
16578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16580ac_tool_warned=yes ;;
16581esac
16582 DX_HHC=$ac_pt_DX_HHC
16583 fi
16584else
16585 DX_HHC="$ac_cv_path_DX_HHC"
16586fi
16587
16588if test "$DX_FLAG_chm$DX_HHC" = 1; then
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
16590$as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
16591 DX_FLAG_chm=0
16592
16593fi
16594
16595 :
16596fi
16597 if test "$DX_FLAG_chm" = 1; then
16598 DX_COND_chm_TRUE=
16599 DX_COND_chm_FALSE='#'
16600else
16601 DX_COND_chm_TRUE='#'
16602 DX_COND_chm_FALSE=
16603fi
16604
16605if test "$DX_FLAG_chm" = 1; then
16606 DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
16607
16608 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
16609
16610 DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
16611
16612 :
16613else
16614 DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
16615
16616 :
16617fi
16618
16619
16620# Seperate CHI file generation.
16621
16622
16623
16624 # Check whether --enable-doxygen-chi was given.
16625if test "${enable_doxygen_chi+set}" = set; then :
16626 enableval=$enable_doxygen_chi;
16627case "$enableval" in
16628#(
16629y|Y|yes|Yes|YES)
16630 DX_FLAG_chi=1
16631
16632
16633test "$DX_FLAG_chm" = "1" \
16634|| as_fn_error $? "doxygen-chi requires doxygen-chi" "$LINENO" 5
16635
16636;; #(
16637n|N|no|No|NO)
16638 DX_FLAG_chi=0
16639
16640;; #(
16641*)
16642 as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
16643;;
16644esac
16645
16646else
16647
16648DX_FLAG_chi=0
16649
16650
16651test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
16652
16653
16654
16655fi
16656
16657if test "$DX_FLAG_chi" = 1; then
16658
16659 :
16660fi
16661 if test "$DX_FLAG_chi" = 1; then
16662 DX_COND_chi_TRUE=
16663 DX_COND_chi_FALSE='#'
16664else
16665 DX_COND_chi_TRUE='#'
16666 DX_COND_chi_FALSE=
16667fi
16668
16669if test "$DX_FLAG_chi" = 1; then
16670 DX_ENV="$DX_ENV GENERATE_CHI='YES'"
16671
16672 :
16673else
16674 DX_ENV="$DX_ENV GENERATE_CHI='NO'"
16675
16676 :
16677fi
16678
16679
16680# Plain HTML pages generation:
16681
16682
16683
16684 # Check whether --enable-doxygen-html was given.
16685if test "${enable_doxygen_html+set}" = set; then :
16686 enableval=$enable_doxygen_html;
16687case "$enableval" in
16688#(
16689y|Y|yes|Yes|YES)
16690 DX_FLAG_html=1
16691
16692
16693test "$DX_FLAG_doc" = "1" \
16694|| as_fn_error $? "doxygen-html requires doxygen-html" "$LINENO" 5
16695
16696test "$DX_FLAG_chm" = "0" \
16697|| as_fn_error $? "doxygen-html contradicts doxygen-html" "$LINENO" 5
16698
16699;; #(
16700n|N|no|No|NO)
16701 DX_FLAG_html=0
16702
16703;; #(
16704*)
16705 as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
16706;;
16707esac
16708
16709else
16710
16711DX_FLAG_html=1
16712
16713
16714test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
16715
16716
16717test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
16718
16719
16720
16721fi
16722
16723if test "$DX_FLAG_html" = 1; then
16724
16725 :
16726fi
16727 if test "$DX_FLAG_html" = 1; then
16728 DX_COND_html_TRUE=
16729 DX_COND_html_FALSE='#'
16730else
16731 DX_COND_html_TRUE='#'
16732 DX_COND_html_FALSE=
16733fi
16734
16735if test "$DX_FLAG_html" = 1; then
16736 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
16737
16738 :
16739else
16740 test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
16741
16742 :
16743fi
16744
16745
16746# PostScript file generation:
16747
16748
16749
16750 # Check whether --enable-doxygen-ps was given.
16751if test "${enable_doxygen_ps+set}" = set; then :
16752 enableval=$enable_doxygen_ps;
16753case "$enableval" in
16754#(
16755y|Y|yes|Yes|YES)
16756 DX_FLAG_ps=1
16757
16758
16759test "$DX_FLAG_doc" = "1" \
16760|| as_fn_error $? "doxygen-ps requires doxygen-ps" "$LINENO" 5
16761
16762;; #(
16763n|N|no|No|NO)
16764 DX_FLAG_ps=0
16765
16766;; #(
16767*)
16768 as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
16769;;
16770esac
16771
16772else
16773
16774DX_FLAG_ps=0
16775
16776
16777test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
16778
16779
16780
16781fi
16782
16783if test "$DX_FLAG_ps" = 1; then
16784
16785if test -n "$ac_tool_prefix"; then
16786 # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
16787set dummy ${ac_tool_prefix}latex; ac_word=$2
16788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16789$as_echo_n "checking for $ac_word... " >&6; }
16790if ${ac_cv_path_DX_LATEX+:} false; then :
16791 $as_echo_n "(cached) " >&6
16792else
16793 case $DX_LATEX in
16794 [\\/]* | ?:[\\/]*)
16795 ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
16796 ;;
16797 *)
16798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16799for as_dir in $PATH
16800do
16801 IFS=$as_save_IFS
16802 test -z "$as_dir" && as_dir=.
16803 for ac_exec_ext in '' $ac_executable_extensions; do
16804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16805 ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
16806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16807 break 2
16808 fi
16809done
16810 done
16811IFS=$as_save_IFS
16812
16813 ;;
16814esac
16815fi
16816DX_LATEX=$ac_cv_path_DX_LATEX
16817if test -n "$DX_LATEX"; then
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
16819$as_echo "$DX_LATEX" >&6; }
16820else
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16822$as_echo "no" >&6; }
16823fi
16824
16825
16826fi
16827if test -z "$ac_cv_path_DX_LATEX"; then
16828 ac_pt_DX_LATEX=$DX_LATEX
16829 # Extract the first word of "latex", so it can be a program name with args.
16830set dummy latex; ac_word=$2
16831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16832$as_echo_n "checking for $ac_word... " >&6; }
16833if ${ac_cv_path_ac_pt_DX_LATEX+:} false; then :
16834 $as_echo_n "(cached) " >&6
16835else
16836 case $ac_pt_DX_LATEX in
16837 [\\/]* | ?:[\\/]*)
16838 ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
16839 ;;
16840 *)
16841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16842for as_dir in $PATH
16843do
16844 IFS=$as_save_IFS
16845 test -z "$as_dir" && as_dir=.
16846 for ac_exec_ext in '' $ac_executable_extensions; do
16847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16848 ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
16849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16850 break 2
16851 fi
16852done
16853 done
16854IFS=$as_save_IFS
16855
16856 ;;
16857esac
16858fi
16859ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
16860if test -n "$ac_pt_DX_LATEX"; then
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
16862$as_echo "$ac_pt_DX_LATEX" >&6; }
16863else
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16865$as_echo "no" >&6; }
16866fi
16867
16868 if test "x$ac_pt_DX_LATEX" = x; then
16869 DX_LATEX=""
16870 else
16871 case $cross_compiling:$ac_tool_warned in
16872yes:)
16873{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16875ac_tool_warned=yes ;;
16876esac
16877 DX_LATEX=$ac_pt_DX_LATEX
16878 fi
16879else
16880 DX_LATEX="$ac_cv_path_DX_LATEX"
16881fi
16882
16883if test "$DX_FLAG_ps$DX_LATEX" = 1; then
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
16885$as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
16886 DX_FLAG_ps=0
16887
16888fi
16889
16890
16891if test -n "$ac_tool_prefix"; then
16892 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
16893set dummy ${ac_tool_prefix}makeindex; ac_word=$2
16894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16895$as_echo_n "checking for $ac_word... " >&6; }
16896if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
16897 $as_echo_n "(cached) " >&6
16898else
16899 case $DX_MAKEINDEX in
16900 [\\/]* | ?:[\\/]*)
16901 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
16902 ;;
16903 *)
16904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16905for as_dir in $PATH
16906do
16907 IFS=$as_save_IFS
16908 test -z "$as_dir" && as_dir=.
16909 for ac_exec_ext in '' $ac_executable_extensions; do
16910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16911 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
16912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16913 break 2
16914 fi
16915done
16916 done
16917IFS=$as_save_IFS
16918
16919 ;;
16920esac
16921fi
16922DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
16923if test -n "$DX_MAKEINDEX"; then
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
16925$as_echo "$DX_MAKEINDEX" >&6; }
16926else
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16928$as_echo "no" >&6; }
16929fi
16930
16931
16932fi
16933if test -z "$ac_cv_path_DX_MAKEINDEX"; then
16934 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
16935 # Extract the first word of "makeindex", so it can be a program name with args.
16936set dummy makeindex; ac_word=$2
16937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16938$as_echo_n "checking for $ac_word... " >&6; }
16939if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
16940 $as_echo_n "(cached) " >&6
16941else
16942 case $ac_pt_DX_MAKEINDEX in
16943 [\\/]* | ?:[\\/]*)
16944 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
16945 ;;
16946 *)
16947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16948for as_dir in $PATH
16949do
16950 IFS=$as_save_IFS
16951 test -z "$as_dir" && as_dir=.
16952 for ac_exec_ext in '' $ac_executable_extensions; do
16953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16954 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
16955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16956 break 2
16957 fi
16958done
16959 done
16960IFS=$as_save_IFS
16961
16962 ;;
16963esac
16964fi
16965ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
16966if test -n "$ac_pt_DX_MAKEINDEX"; then
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
16968$as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
16969else
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16971$as_echo "no" >&6; }
16972fi
16973
16974 if test "x$ac_pt_DX_MAKEINDEX" = x; then
16975 DX_MAKEINDEX=""
16976 else
16977 case $cross_compiling:$ac_tool_warned in
16978yes:)
16979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16981ac_tool_warned=yes ;;
16982esac
16983 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
16984 fi
16985else
16986 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
16987fi
16988
16989if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
16991$as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
16992 DX_FLAG_ps=0
16993
16994fi
16995
16996
16997if test -n "$ac_tool_prefix"; then
16998 # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
16999set dummy ${ac_tool_prefix}dvips; ac_word=$2
17000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17001$as_echo_n "checking for $ac_word... " >&6; }
17002if ${ac_cv_path_DX_DVIPS+:} false; then :
17003 $as_echo_n "(cached) " >&6
17004else
17005 case $DX_DVIPS in
17006 [\\/]* | ?:[\\/]*)
17007 ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
17008 ;;
17009 *)
17010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17011for as_dir in $PATH
17012do
17013 IFS=$as_save_IFS
17014 test -z "$as_dir" && as_dir=.
17015 for ac_exec_ext in '' $ac_executable_extensions; do
17016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17017 ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
17018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17019 break 2
17020 fi
17021done
17022 done
17023IFS=$as_save_IFS
17024
17025 ;;
17026esac
17027fi
17028DX_DVIPS=$ac_cv_path_DX_DVIPS
17029if test -n "$DX_DVIPS"; then
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
17031$as_echo "$DX_DVIPS" >&6; }
17032else
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17034$as_echo "no" >&6; }
17035fi
17036
17037
17038fi
17039if test -z "$ac_cv_path_DX_DVIPS"; then
17040 ac_pt_DX_DVIPS=$DX_DVIPS
17041 # Extract the first word of "dvips", so it can be a program name with args.
17042set dummy dvips; ac_word=$2
17043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17044$as_echo_n "checking for $ac_word... " >&6; }
17045if ${ac_cv_path_ac_pt_DX_DVIPS+:} false; then :
17046 $as_echo_n "(cached) " >&6
17047else
17048 case $ac_pt_DX_DVIPS in
17049 [\\/]* | ?:[\\/]*)
17050 ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
17051 ;;
17052 *)
17053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17054for as_dir in $PATH
17055do
17056 IFS=$as_save_IFS
17057 test -z "$as_dir" && as_dir=.
17058 for ac_exec_ext in '' $ac_executable_extensions; do
17059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17060 ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
17061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17062 break 2
17063 fi
17064done
17065 done
17066IFS=$as_save_IFS
17067
17068 ;;
17069esac
17070fi
17071ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
17072if test -n "$ac_pt_DX_DVIPS"; then
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
17074$as_echo "$ac_pt_DX_DVIPS" >&6; }
17075else
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17077$as_echo "no" >&6; }
17078fi
17079
17080 if test "x$ac_pt_DX_DVIPS" = x; then
17081 DX_DVIPS=""
17082 else
17083 case $cross_compiling:$ac_tool_warned in
17084yes:)
17085{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17086$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17087ac_tool_warned=yes ;;
17088esac
17089 DX_DVIPS=$ac_pt_DX_DVIPS
17090 fi
17091else
17092 DX_DVIPS="$ac_cv_path_DX_DVIPS"
17093fi
17094
17095if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
17097$as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
17098 DX_FLAG_ps=0
17099
17100fi
17101
17102
17103if test -n "$ac_tool_prefix"; then
17104 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
17105set dummy ${ac_tool_prefix}egrep; ac_word=$2
17106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17107$as_echo_n "checking for $ac_word... " >&6; }
17108if ${ac_cv_path_DX_EGREP+:} false; then :
17109 $as_echo_n "(cached) " >&6
17110else
17111 case $DX_EGREP in
17112 [\\/]* | ?:[\\/]*)
17113 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
17114 ;;
17115 *)
17116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17117for as_dir in $PATH
17118do
17119 IFS=$as_save_IFS
17120 test -z "$as_dir" && as_dir=.
17121 for ac_exec_ext in '' $ac_executable_extensions; do
17122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17123 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
17124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17125 break 2
17126 fi
17127done
17128 done
17129IFS=$as_save_IFS
17130
17131 ;;
17132esac
17133fi
17134DX_EGREP=$ac_cv_path_DX_EGREP
17135if test -n "$DX_EGREP"; then
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
17137$as_echo "$DX_EGREP" >&6; }
17138else
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17140$as_echo "no" >&6; }
17141fi
17142
17143
17144fi
17145if test -z "$ac_cv_path_DX_EGREP"; then
17146 ac_pt_DX_EGREP=$DX_EGREP
17147 # Extract the first word of "egrep", so it can be a program name with args.
17148set dummy egrep; ac_word=$2
17149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17150$as_echo_n "checking for $ac_word... " >&6; }
17151if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
17152 $as_echo_n "(cached) " >&6
17153else
17154 case $ac_pt_DX_EGREP in
17155 [\\/]* | ?:[\\/]*)
17156 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
17157 ;;
17158 *)
17159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17160for as_dir in $PATH
17161do
17162 IFS=$as_save_IFS
17163 test -z "$as_dir" && as_dir=.
17164 for ac_exec_ext in '' $ac_executable_extensions; do
17165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17166 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
17167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17168 break 2
17169 fi
17170done
17171 done
17172IFS=$as_save_IFS
17173
17174 ;;
17175esac
17176fi
17177ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
17178if test -n "$ac_pt_DX_EGREP"; then
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
17180$as_echo "$ac_pt_DX_EGREP" >&6; }
17181else
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17183$as_echo "no" >&6; }
17184fi
17185
17186 if test "x$ac_pt_DX_EGREP" = x; then
17187 DX_EGREP=""
17188 else
17189 case $cross_compiling:$ac_tool_warned in
17190yes:)
17191{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17192$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17193ac_tool_warned=yes ;;
17194esac
17195 DX_EGREP=$ac_pt_DX_EGREP
17196 fi
17197else
17198 DX_EGREP="$ac_cv_path_DX_EGREP"
17199fi
17200
17201if test "$DX_FLAG_ps$DX_EGREP" = 1; then
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
17203$as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
17204 DX_FLAG_ps=0
17205
17206fi
17207
17208 :
17209fi
17210 if test "$DX_FLAG_ps" = 1; then
17211 DX_COND_ps_TRUE=
17212 DX_COND_ps_FALSE='#'
17213else
17214 DX_COND_ps_TRUE='#'
17215 DX_COND_ps_FALSE=
17216fi
17217
17218if test "$DX_FLAG_ps" = 1; then
17219
17220 :
17221else
17222
17223 :
17224fi
17225
17226
17227# PDF file generation:
17228
17229
17230
17231 # Check whether --enable-doxygen-pdf was given.
17232if test "${enable_doxygen_pdf+set}" = set; then :
17233 enableval=$enable_doxygen_pdf;
17234case "$enableval" in
17235#(
17236y|Y|yes|Yes|YES)
17237 DX_FLAG_pdf=1
17238
17239
17240test "$DX_FLAG_doc" = "1" \
17241|| as_fn_error $? "doxygen-pdf requires doxygen-pdf" "$LINENO" 5
17242
17243;; #(
17244n|N|no|No|NO)
17245 DX_FLAG_pdf=0
17246
17247;; #(
17248*)
17249 as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
17250;;
17251esac
17252
17253else
17254
17255DX_FLAG_pdf=0
17256
17257
17258test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
17259
17260
17261
17262fi
17263
17264if test "$DX_FLAG_pdf" = 1; then
17265
17266if test -n "$ac_tool_prefix"; then
17267 # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
17268set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
17269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17270$as_echo_n "checking for $ac_word... " >&6; }
17271if ${ac_cv_path_DX_PDFLATEX+:} false; then :
17272 $as_echo_n "(cached) " >&6
17273else
17274 case $DX_PDFLATEX in
17275 [\\/]* | ?:[\\/]*)
17276 ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
17277 ;;
17278 *)
17279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17280for as_dir in $PATH
17281do
17282 IFS=$as_save_IFS
17283 test -z "$as_dir" && as_dir=.
17284 for ac_exec_ext in '' $ac_executable_extensions; do
17285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17286 ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
17287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17288 break 2
17289 fi
17290done
17291 done
17292IFS=$as_save_IFS
17293
17294 ;;
17295esac
17296fi
17297DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
17298if test -n "$DX_PDFLATEX"; then
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
17300$as_echo "$DX_PDFLATEX" >&6; }
17301else
17302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17303$as_echo "no" >&6; }
17304fi
17305
17306
17307fi
17308if test -z "$ac_cv_path_DX_PDFLATEX"; then
17309 ac_pt_DX_PDFLATEX=$DX_PDFLATEX
17310 # Extract the first word of "pdflatex", so it can be a program name with args.
17311set dummy pdflatex; ac_word=$2
17312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17313$as_echo_n "checking for $ac_word... " >&6; }
17314if ${ac_cv_path_ac_pt_DX_PDFLATEX+:} false; then :
17315 $as_echo_n "(cached) " >&6
17316else
17317 case $ac_pt_DX_PDFLATEX in
17318 [\\/]* | ?:[\\/]*)
17319 ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
17320 ;;
17321 *)
17322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17323for as_dir in $PATH
17324do
17325 IFS=$as_save_IFS
17326 test -z "$as_dir" && as_dir=.
17327 for ac_exec_ext in '' $ac_executable_extensions; do
17328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17329 ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
17330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17331 break 2
17332 fi
17333done
17334 done
17335IFS=$as_save_IFS
17336
17337 ;;
17338esac
17339fi
17340ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
17341if test -n "$ac_pt_DX_PDFLATEX"; then
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
17343$as_echo "$ac_pt_DX_PDFLATEX" >&6; }
17344else
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17346$as_echo "no" >&6; }
17347fi
17348
17349 if test "x$ac_pt_DX_PDFLATEX" = x; then
17350 DX_PDFLATEX=""
17351 else
17352 case $cross_compiling:$ac_tool_warned in
17353yes:)
17354{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17355$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17356ac_tool_warned=yes ;;
17357esac
17358 DX_PDFLATEX=$ac_pt_DX_PDFLATEX
17359 fi
17360else
17361 DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
17362fi
17363
17364if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
17366$as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
17367 DX_FLAG_pdf=0
17368
17369fi
17370
17371
17372if test -n "$ac_tool_prefix"; then
17373 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
17374set dummy ${ac_tool_prefix}makeindex; ac_word=$2
17375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17376$as_echo_n "checking for $ac_word... " >&6; }
17377if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
17378 $as_echo_n "(cached) " >&6
17379else
17380 case $DX_MAKEINDEX in
17381 [\\/]* | ?:[\\/]*)
17382 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
17383 ;;
17384 *)
17385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17386for as_dir in $PATH
17387do
17388 IFS=$as_save_IFS
17389 test -z "$as_dir" && as_dir=.
17390 for ac_exec_ext in '' $ac_executable_extensions; do
17391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17392 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
17393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17394 break 2
17395 fi
17396done
17397 done
17398IFS=$as_save_IFS
17399
17400 ;;
17401esac
17402fi
17403DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
17404if test -n "$DX_MAKEINDEX"; then
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
17406$as_echo "$DX_MAKEINDEX" >&6; }
17407else
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17409$as_echo "no" >&6; }
17410fi
17411
17412
17413fi
17414if test -z "$ac_cv_path_DX_MAKEINDEX"; then
17415 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
17416 # Extract the first word of "makeindex", so it can be a program name with args.
17417set dummy makeindex; ac_word=$2
17418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17419$as_echo_n "checking for $ac_word... " >&6; }
17420if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
17421 $as_echo_n "(cached) " >&6
17422else
17423 case $ac_pt_DX_MAKEINDEX in
17424 [\\/]* | ?:[\\/]*)
17425 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
17426 ;;
17427 *)
17428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17429for as_dir in $PATH
17430do
17431 IFS=$as_save_IFS
17432 test -z "$as_dir" && as_dir=.
17433 for ac_exec_ext in '' $ac_executable_extensions; do
17434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17435 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
17436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17437 break 2
17438 fi
17439done
17440 done
17441IFS=$as_save_IFS
17442
17443 ;;
17444esac
17445fi
17446ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
17447if test -n "$ac_pt_DX_MAKEINDEX"; then
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
17449$as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
17450else
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17452$as_echo "no" >&6; }
17453fi
17454
17455 if test "x$ac_pt_DX_MAKEINDEX" = x; then
17456 DX_MAKEINDEX=""
17457 else
17458 case $cross_compiling:$ac_tool_warned in
17459yes:)
17460{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17462ac_tool_warned=yes ;;
17463esac
17464 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
17465 fi
17466else
17467 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
17468fi
17469
17470if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
17472$as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
17473 DX_FLAG_pdf=0
17474
17475fi
17476
17477
17478if test -n "$ac_tool_prefix"; then
17479 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
17480set dummy ${ac_tool_prefix}egrep; ac_word=$2
17481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17482$as_echo_n "checking for $ac_word... " >&6; }
17483if ${ac_cv_path_DX_EGREP+:} false; then :
17484 $as_echo_n "(cached) " >&6
17485else
17486 case $DX_EGREP in
17487 [\\/]* | ?:[\\/]*)
17488 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
17489 ;;
17490 *)
17491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17492for as_dir in $PATH
17493do
17494 IFS=$as_save_IFS
17495 test -z "$as_dir" && as_dir=.
17496 for ac_exec_ext in '' $ac_executable_extensions; do
17497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17498 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
17499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17500 break 2
17501 fi
17502done
17503 done
17504IFS=$as_save_IFS
17505
17506 ;;
17507esac
17508fi
17509DX_EGREP=$ac_cv_path_DX_EGREP
17510if test -n "$DX_EGREP"; then
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
17512$as_echo "$DX_EGREP" >&6; }
17513else
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17515$as_echo "no" >&6; }
17516fi
17517
17518
17519fi
17520if test -z "$ac_cv_path_DX_EGREP"; then
17521 ac_pt_DX_EGREP=$DX_EGREP
17522 # Extract the first word of "egrep", so it can be a program name with args.
17523set dummy egrep; ac_word=$2
17524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17525$as_echo_n "checking for $ac_word... " >&6; }
17526if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
17527 $as_echo_n "(cached) " >&6
17528else
17529 case $ac_pt_DX_EGREP in
17530 [\\/]* | ?:[\\/]*)
17531 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
17532 ;;
17533 *)
17534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17535for as_dir in $PATH
17536do
17537 IFS=$as_save_IFS
17538 test -z "$as_dir" && as_dir=.
17539 for ac_exec_ext in '' $ac_executable_extensions; do
17540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17541 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
17542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17543 break 2
17544 fi
17545done
17546 done
17547IFS=$as_save_IFS
17548
17549 ;;
17550esac
17551fi
17552ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
17553if test -n "$ac_pt_DX_EGREP"; then
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
17555$as_echo "$ac_pt_DX_EGREP" >&6; }
17556else
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17558$as_echo "no" >&6; }
17559fi
17560
17561 if test "x$ac_pt_DX_EGREP" = x; then
17562 DX_EGREP=""
17563 else
17564 case $cross_compiling:$ac_tool_warned in
17565yes:)
17566{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17567$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17568ac_tool_warned=yes ;;
17569esac
17570 DX_EGREP=$ac_pt_DX_EGREP
17571 fi
17572else
17573 DX_EGREP="$ac_cv_path_DX_EGREP"
17574fi
17575
17576if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
17578$as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
17579 DX_FLAG_pdf=0
17580
17581fi
17582
17583 :
17584fi
17585 if test "$DX_FLAG_pdf" = 1; then
17586 DX_COND_pdf_TRUE=
17587 DX_COND_pdf_FALSE='#'
17588else
17589 DX_COND_pdf_TRUE='#'
17590 DX_COND_pdf_FALSE=
17591fi
17592
17593if test "$DX_FLAG_pdf" = 1; then
17594
17595 :
17596else
17597
17598 :
17599fi
17600
17601
17602# LaTeX generation for PS and/or PDF:
17603 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
17604 DX_COND_latex_TRUE=
17605 DX_COND_latex_FALSE='#'
17606else
17607 DX_COND_latex_TRUE='#'
17608 DX_COND_latex_FALSE=
17609fi
17610
17611if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
17612 DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
17613
17614else
17615 DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
17616
17617fi
17618
17619# Paper size for PS and/or PDF:
17620
17621case "$DOXYGEN_PAPER_SIZE" in
17622#(
17623"")
17624 DOXYGEN_PAPER_SIZE=""
17625
17626;; #(
17627a4wide|a4|letter|legal|executive)
17628 DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
17629
17630;; #(
17631*)
17632 as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
17633;;
17634esac
17635
17636#For debugging:
17637#echo DX_FLAG_doc=$DX_FLAG_doc
17638#echo DX_FLAG_dot=$DX_FLAG_dot
17639#echo DX_FLAG_man=$DX_FLAG_man
17640#echo DX_FLAG_html=$DX_FLAG_html
17641#echo DX_FLAG_chm=$DX_FLAG_chm
17642#echo DX_FLAG_chi=$DX_FLAG_chi
17643#echo DX_FLAG_rtf=$DX_FLAG_rtf
17644#echo DX_FLAG_xml=$DX_FLAG_xml
17645#echo DX_FLAG_pdf=$DX_FLAG_pdf
17646#echo DX_FLAG_ps=$DX_FLAG_ps
17647#echo DX_ENV=$DX_ENV
17648
17649
Jeff Thompson39128c62013-06-19 14:08:51 -070017650ac_config_files="$ac_config_files Makefile"
17651
17652cat >confcache <<\_ACEOF
17653# This file is a shell script that caches the results of configure
17654# tests run on this system so they can be shared between configure
17655# scripts and configure runs, see configure's option --config-cache.
17656# It is not useful on other systems. If it contains results you don't
17657# want to keep, you may remove or edit it.
17658#
17659# config.status only pays attention to the cache file if you give it
17660# the --recheck option to rerun configure.
17661#
17662# `ac_cv_env_foo' variables (set or unset) will be overridden when
17663# loading this file, other *unset* `ac_cv_foo' will be assigned the
17664# following values.
17665
17666_ACEOF
17667
17668# The following way of writing the cache mishandles newlines in values,
17669# but we know of no workaround that is simple, portable, and efficient.
17670# So, we kill variables containing newlines.
17671# Ultrix sh set writes to stderr and can't be redirected directly,
17672# and sets the high bit in the cache file unless we assign to the vars.
17673(
17674 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17675 eval ac_val=\$$ac_var
17676 case $ac_val in #(
17677 *${as_nl}*)
17678 case $ac_var in #(
17679 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17680$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17681 esac
17682 case $ac_var in #(
17683 _ | IFS | as_nl) ;; #(
17684 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17685 *) { eval $ac_var=; unset $ac_var;} ;;
17686 esac ;;
17687 esac
17688 done
17689
17690 (set) 2>&1 |
17691 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17692 *${as_nl}ac_space=\ *)
17693 # `set' does not quote correctly, so add quotes: double-quote
17694 # substitution turns \\\\ into \\, and sed turns \\ into \.
17695 sed -n \
17696 "s/'/'\\\\''/g;
17697 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17698 ;; #(
17699 *)
17700 # `set' quotes correctly as required by POSIX, so do not add quotes.
17701 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17702 ;;
17703 esac |
17704 sort
17705) |
17706 sed '
17707 /^ac_cv_env_/b end
17708 t clear
17709 :clear
17710 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17711 t end
17712 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17713 :end' >>confcache
17714if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17715 if test -w "$cache_file"; then
17716 if test "x$cache_file" != "x/dev/null"; then
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17718$as_echo "$as_me: updating cache $cache_file" >&6;}
17719 if test ! -f "$cache_file" || test -h "$cache_file"; then
17720 cat confcache >"$cache_file"
17721 else
17722 case $cache_file in #(
17723 */* | ?:*)
17724 mv -f confcache "$cache_file"$$ &&
17725 mv -f "$cache_file"$$ "$cache_file" ;; #(
17726 *)
17727 mv -f confcache "$cache_file" ;;
17728 esac
17729 fi
17730 fi
17731 else
17732 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17733$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17734 fi
17735fi
17736rm -f confcache
17737
17738test "x$prefix" = xNONE && prefix=$ac_default_prefix
17739# Let make expand exec_prefix.
17740test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17741
17742DEFS=-DHAVE_CONFIG_H
17743
17744ac_libobjs=
17745ac_ltlibobjs=
17746U=
17747for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17748 # 1. Remove the extension, and $U if already installed.
17749 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17750 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17751 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17752 # will be set to the directory where LIBOBJS objects are built.
17753 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17754 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17755done
17756LIBOBJS=$ac_libobjs
17757
17758LTLIBOBJS=$ac_ltlibobjs
17759
17760
17761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17762$as_echo_n "checking that generated files are newer than configure... " >&6; }
17763 if test -n "$am_sleep_pid"; then
17764 # Hide warnings about reused PIDs.
17765 wait $am_sleep_pid 2>/dev/null
17766 fi
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17768$as_echo "done" >&6; }
17769 if test -n "$EXEEXT"; then
17770 am__EXEEXT_TRUE=
17771 am__EXEEXT_FALSE='#'
17772else
17773 am__EXEEXT_TRUE='#'
17774 am__EXEEXT_FALSE=
17775fi
17776
Jeff Thompson47053ad2013-08-05 10:36:53 -070017777if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17778 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17779Usually this means the macro was only invoked conditionally." "$LINENO" 5
17780fi
Jeff Thompson39128c62013-06-19 14:08:51 -070017781if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17782 as_fn_error $? "conditional \"AMDEP\" was never defined.
17783Usually this means the macro was only invoked conditionally." "$LINENO" 5
17784fi
Jeff Thompson36174062013-06-21 16:03:44 -070017785if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17786 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17787Usually this means the macro was only invoked conditionally." "$LINENO" 5
17788fi
Jeff Thompson4f031642013-08-05 11:03:16 -070017789if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17790 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17791Usually this means the macro was only invoked conditionally." "$LINENO" 5
17792fi
Jeff Thompsonca45e552013-06-26 17:40:06 -070017793if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
17794 as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
17795Usually this means the macro was only invoked conditionally." "$LINENO" 5
17796fi
17797if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
17798 as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
17799Usually this means the macro was only invoked conditionally." "$LINENO" 5
17800fi
17801if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
17802 as_fn_error $? "conditional \"DX_COND_man\" was never defined.
17803Usually this means the macro was only invoked conditionally." "$LINENO" 5
17804fi
17805if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
17806 as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
17807Usually this means the macro was only invoked conditionally." "$LINENO" 5
17808fi
17809if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
17810 as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
17811Usually this means the macro was only invoked conditionally." "$LINENO" 5
17812fi
17813if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
17814 as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
17815Usually this means the macro was only invoked conditionally." "$LINENO" 5
17816fi
17817if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
17818 as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
17819Usually this means the macro was only invoked conditionally." "$LINENO" 5
17820fi
17821if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
17822 as_fn_error $? "conditional \"DX_COND_html\" was never defined.
17823Usually this means the macro was only invoked conditionally." "$LINENO" 5
17824fi
17825if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
17826 as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
17827Usually this means the macro was only invoked conditionally." "$LINENO" 5
17828fi
17829if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
17830 as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
17831Usually this means the macro was only invoked conditionally." "$LINENO" 5
17832fi
17833if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
17834 as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
17835Usually this means the macro was only invoked conditionally." "$LINENO" 5
17836fi
Jeff Thompson39128c62013-06-19 14:08:51 -070017837
17838: "${CONFIG_STATUS=./config.status}"
17839ac_write_fail=0
17840ac_clean_files_save=$ac_clean_files
17841ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17842{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17843$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17844as_write_fail=0
17845cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17846#! $SHELL
17847# Generated by $as_me.
17848# Run this file to recreate the current configuration.
17849# Compiler output produced by configure, useful for debugging
17850# configure, is in config.log if it exists.
17851
17852debug=false
17853ac_cs_recheck=false
17854ac_cs_silent=false
17855
17856SHELL=\${CONFIG_SHELL-$SHELL}
17857export SHELL
17858_ASEOF
17859cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17860## -------------------- ##
17861## M4sh Initialization. ##
17862## -------------------- ##
17863
17864# Be more Bourne compatible
17865DUALCASE=1; export DUALCASE # for MKS sh
17866if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17867 emulate sh
17868 NULLCMD=:
17869 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17870 # is contrary to our usage. Disable this feature.
17871 alias -g '${1+"$@"}'='"$@"'
17872 setopt NO_GLOB_SUBST
17873else
17874 case `(set -o) 2>/dev/null` in #(
17875 *posix*) :
17876 set -o posix ;; #(
17877 *) :
17878 ;;
17879esac
17880fi
17881
17882
17883as_nl='
17884'
17885export as_nl
17886# Printing a long string crashes Solaris 7 /usr/bin/printf.
17887as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17888as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17889as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17890# Prefer a ksh shell builtin over an external printf program on Solaris,
17891# but without wasting forks for bash or zsh.
17892if test -z "$BASH_VERSION$ZSH_VERSION" \
17893 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17894 as_echo='print -r --'
17895 as_echo_n='print -rn --'
17896elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17897 as_echo='printf %s\n'
17898 as_echo_n='printf %s'
17899else
17900 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17901 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17902 as_echo_n='/usr/ucb/echo -n'
17903 else
17904 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17905 as_echo_n_body='eval
17906 arg=$1;
17907 case $arg in #(
17908 *"$as_nl"*)
17909 expr "X$arg" : "X\\(.*\\)$as_nl";
17910 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17911 esac;
17912 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17913 '
17914 export as_echo_n_body
17915 as_echo_n='sh -c $as_echo_n_body as_echo'
17916 fi
17917 export as_echo_body
17918 as_echo='sh -c $as_echo_body as_echo'
17919fi
17920
17921# The user is always right.
17922if test "${PATH_SEPARATOR+set}" != set; then
17923 PATH_SEPARATOR=:
17924 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17925 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17926 PATH_SEPARATOR=';'
17927 }
17928fi
17929
17930
17931# IFS
17932# We need space, tab and new line, in precisely that order. Quoting is
17933# there to prevent editors from complaining about space-tab.
17934# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17935# splitting by setting IFS to empty value.)
17936IFS=" "" $as_nl"
17937
17938# Find who we are. Look in the path if we contain no directory separator.
17939as_myself=
17940case $0 in #((
17941 *[\\/]* ) as_myself=$0 ;;
17942 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17943for as_dir in $PATH
17944do
17945 IFS=$as_save_IFS
17946 test -z "$as_dir" && as_dir=.
17947 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17948 done
17949IFS=$as_save_IFS
17950
17951 ;;
17952esac
17953# We did not find ourselves, most probably we were run as `sh COMMAND'
17954# in which case we are not to be found in the path.
17955if test "x$as_myself" = x; then
17956 as_myself=$0
17957fi
17958if test ! -f "$as_myself"; then
17959 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17960 exit 1
17961fi
17962
17963# Unset variables that we do not need and which cause bugs (e.g. in
17964# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17965# suppresses any "Segmentation fault" message there. '((' could
17966# trigger a bug in pdksh 5.2.14.
17967for as_var in BASH_ENV ENV MAIL MAILPATH
17968do eval test x\${$as_var+set} = xset \
17969 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17970done
17971PS1='$ '
17972PS2='> '
17973PS4='+ '
17974
17975# NLS nuisances.
17976LC_ALL=C
17977export LC_ALL
17978LANGUAGE=C
17979export LANGUAGE
17980
17981# CDPATH.
17982(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17983
17984
17985# as_fn_error STATUS ERROR [LINENO LOG_FD]
17986# ----------------------------------------
17987# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17988# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17989# script with STATUS, using 1 if that was 0.
17990as_fn_error ()
17991{
17992 as_status=$1; test $as_status -eq 0 && as_status=1
17993 if test "$4"; then
17994 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17995 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17996 fi
17997 $as_echo "$as_me: error: $2" >&2
17998 as_fn_exit $as_status
17999} # as_fn_error
18000
18001
18002# as_fn_set_status STATUS
18003# -----------------------
18004# Set $? to STATUS, without forking.
18005as_fn_set_status ()
18006{
18007 return $1
18008} # as_fn_set_status
18009
18010# as_fn_exit STATUS
18011# -----------------
18012# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18013as_fn_exit ()
18014{
18015 set +e
18016 as_fn_set_status $1
18017 exit $1
18018} # as_fn_exit
18019
18020# as_fn_unset VAR
18021# ---------------
18022# Portably unset VAR.
18023as_fn_unset ()
18024{
18025 { eval $1=; unset $1;}
18026}
18027as_unset=as_fn_unset
18028# as_fn_append VAR VALUE
18029# ----------------------
18030# Append the text in VALUE to the end of the definition contained in VAR. Take
18031# advantage of any shell optimizations that allow amortized linear growth over
18032# repeated appends, instead of the typical quadratic growth present in naive
18033# implementations.
18034if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18035 eval 'as_fn_append ()
18036 {
18037 eval $1+=\$2
18038 }'
18039else
18040 as_fn_append ()
18041 {
18042 eval $1=\$$1\$2
18043 }
18044fi # as_fn_append
18045
18046# as_fn_arith ARG...
18047# ------------------
18048# Perform arithmetic evaluation on the ARGs, and store the result in the
18049# global $as_val. Take advantage of shells that can avoid forks. The arguments
18050# must be portable across $(()) and expr.
18051if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18052 eval 'as_fn_arith ()
18053 {
18054 as_val=$(( $* ))
18055 }'
18056else
18057 as_fn_arith ()
18058 {
18059 as_val=`expr "$@" || test $? -eq 1`
18060 }
18061fi # as_fn_arith
18062
18063
18064if expr a : '\(a\)' >/dev/null 2>&1 &&
18065 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18066 as_expr=expr
18067else
18068 as_expr=false
18069fi
18070
18071if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18072 as_basename=basename
18073else
18074 as_basename=false
18075fi
18076
18077if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18078 as_dirname=dirname
18079else
18080 as_dirname=false
18081fi
18082
18083as_me=`$as_basename -- "$0" ||
18084$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18085 X"$0" : 'X\(//\)$' \| \
18086 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18087$as_echo X/"$0" |
18088 sed '/^.*\/\([^/][^/]*\)\/*$/{
18089 s//\1/
18090 q
18091 }
18092 /^X\/\(\/\/\)$/{
18093 s//\1/
18094 q
18095 }
18096 /^X\/\(\/\).*/{
18097 s//\1/
18098 q
18099 }
18100 s/.*/./; q'`
18101
18102# Avoid depending upon Character Ranges.
18103as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18104as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18105as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18106as_cr_digits='0123456789'
18107as_cr_alnum=$as_cr_Letters$as_cr_digits
18108
18109ECHO_C= ECHO_N= ECHO_T=
18110case `echo -n x` in #(((((
18111-n*)
18112 case `echo 'xy\c'` in
18113 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18114 xy) ECHO_C='\c';;
18115 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18116 ECHO_T=' ';;
18117 esac;;
18118*)
18119 ECHO_N='-n';;
18120esac
18121
18122rm -f conf$$ conf$$.exe conf$$.file
18123if test -d conf$$.dir; then
18124 rm -f conf$$.dir/conf$$.file
18125else
18126 rm -f conf$$.dir
18127 mkdir conf$$.dir 2>/dev/null
18128fi
18129if (echo >conf$$.file) 2>/dev/null; then
18130 if ln -s conf$$.file conf$$ 2>/dev/null; then
18131 as_ln_s='ln -s'
18132 # ... but there are two gotchas:
18133 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18134 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18135 # In both cases, we have to default to `cp -pR'.
18136 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18137 as_ln_s='cp -pR'
18138 elif ln conf$$.file conf$$ 2>/dev/null; then
18139 as_ln_s=ln
18140 else
18141 as_ln_s='cp -pR'
18142 fi
18143else
18144 as_ln_s='cp -pR'
18145fi
18146rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18147rmdir conf$$.dir 2>/dev/null
18148
18149
18150# as_fn_mkdir_p
18151# -------------
18152# Create "$as_dir" as a directory, including parents if necessary.
18153as_fn_mkdir_p ()
18154{
18155
18156 case $as_dir in #(
18157 -*) as_dir=./$as_dir;;
18158 esac
18159 test -d "$as_dir" || eval $as_mkdir_p || {
18160 as_dirs=
18161 while :; do
18162 case $as_dir in #(
18163 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18164 *) as_qdir=$as_dir;;
18165 esac
18166 as_dirs="'$as_qdir' $as_dirs"
18167 as_dir=`$as_dirname -- "$as_dir" ||
18168$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18169 X"$as_dir" : 'X\(//\)[^/]' \| \
18170 X"$as_dir" : 'X\(//\)$' \| \
18171 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18172$as_echo X"$as_dir" |
18173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18174 s//\1/
18175 q
18176 }
18177 /^X\(\/\/\)[^/].*/{
18178 s//\1/
18179 q
18180 }
18181 /^X\(\/\/\)$/{
18182 s//\1/
18183 q
18184 }
18185 /^X\(\/\).*/{
18186 s//\1/
18187 q
18188 }
18189 s/.*/./; q'`
18190 test -d "$as_dir" && break
18191 done
18192 test -z "$as_dirs" || eval "mkdir $as_dirs"
18193 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18194
18195
18196} # as_fn_mkdir_p
18197if mkdir -p . 2>/dev/null; then
18198 as_mkdir_p='mkdir -p "$as_dir"'
18199else
18200 test -d ./-p && rmdir ./-p
18201 as_mkdir_p=false
18202fi
18203
18204
18205# as_fn_executable_p FILE
18206# -----------------------
18207# Test if FILE is an executable regular file.
18208as_fn_executable_p ()
18209{
18210 test -f "$1" && test -x "$1"
18211} # as_fn_executable_p
18212as_test_x='test -x'
18213as_executable_p=as_fn_executable_p
18214
18215# Sed expression to map a string onto a valid CPP name.
18216as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18217
18218# Sed expression to map a string onto a valid variable name.
18219as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18220
18221
18222exec 6>&1
18223## ----------------------------------- ##
18224## Main body of $CONFIG_STATUS script. ##
18225## ----------------------------------- ##
18226_ASEOF
18227test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18228
18229cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18230# Save the log message, to keep $0 and so on meaningful, and to
18231# report actual input values of CONFIG_FILES etc. instead of their
18232# values after options handling.
18233ac_log="
18234This file was extended by ndn-cpp $as_me 0.5, which was
18235generated by GNU Autoconf 2.69. Invocation command line was
18236
18237 CONFIG_FILES = $CONFIG_FILES
18238 CONFIG_HEADERS = $CONFIG_HEADERS
18239 CONFIG_LINKS = $CONFIG_LINKS
18240 CONFIG_COMMANDS = $CONFIG_COMMANDS
18241 $ $0 $@
18242
18243on `(hostname || uname -n) 2>/dev/null | sed 1q`
18244"
18245
18246_ACEOF
18247
18248case $ac_config_files in *"
18249"*) set x $ac_config_files; shift; ac_config_files=$*;;
18250esac
18251
18252case $ac_config_headers in *"
18253"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18254esac
18255
18256
18257cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18258# Files that config.status was made for.
18259config_files="$ac_config_files"
18260config_headers="$ac_config_headers"
18261config_commands="$ac_config_commands"
18262
18263_ACEOF
18264
18265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18266ac_cs_usage="\
18267\`$as_me' instantiates files and other configuration actions
18268from templates according to the current configuration. Unless the files
18269and actions are specified as TAGs, all are instantiated by default.
18270
18271Usage: $0 [OPTION]... [TAG]...
18272
18273 -h, --help print this help, then exit
18274 -V, --version print version number and configuration settings, then exit
18275 --config print configuration, then exit
18276 -q, --quiet, --silent
18277 do not print progress messages
18278 -d, --debug don't remove temporary files
18279 --recheck update $as_me by reconfiguring in the same conditions
18280 --file=FILE[:TEMPLATE]
18281 instantiate the configuration file FILE
18282 --header=FILE[:TEMPLATE]
18283 instantiate the configuration header FILE
18284
18285Configuration files:
18286$config_files
18287
18288Configuration headers:
18289$config_headers
18290
18291Configuration commands:
18292$config_commands
18293
18294Report bugs to the package provider.
18295ndn-cpp home page: <https://github.com/named-data/ndn-cpp>."
18296
18297_ACEOF
18298cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18299ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18300ac_cs_version="\\
18301ndn-cpp config.status 0.5
18302configured by $0, generated by GNU Autoconf 2.69,
18303 with options \\"\$ac_cs_config\\"
18304
18305Copyright (C) 2012 Free Software Foundation, Inc.
18306This config.status script is free software; the Free Software Foundation
18307gives unlimited permission to copy, distribute and modify it."
18308
18309ac_pwd='$ac_pwd'
18310srcdir='$srcdir'
18311INSTALL='$INSTALL'
18312MKDIR_P='$MKDIR_P'
18313AWK='$AWK'
18314test -n "\$AWK" || AWK=awk
18315_ACEOF
18316
18317cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18318# The default lists apply if the user does not specify any file.
18319ac_need_defaults=:
18320while test $# != 0
18321do
18322 case $1 in
18323 --*=?*)
18324 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18325 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18326 ac_shift=:
18327 ;;
18328 --*=)
18329 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18330 ac_optarg=
18331 ac_shift=:
18332 ;;
18333 *)
18334 ac_option=$1
18335 ac_optarg=$2
18336 ac_shift=shift
18337 ;;
18338 esac
18339
18340 case $ac_option in
18341 # Handling of the options.
18342 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18343 ac_cs_recheck=: ;;
18344 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18345 $as_echo "$ac_cs_version"; exit ;;
18346 --config | --confi | --conf | --con | --co | --c )
18347 $as_echo "$ac_cs_config"; exit ;;
18348 --debug | --debu | --deb | --de | --d | -d )
18349 debug=: ;;
18350 --file | --fil | --fi | --f )
18351 $ac_shift
18352 case $ac_optarg in
18353 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18354 '') as_fn_error $? "missing file argument" ;;
18355 esac
18356 as_fn_append CONFIG_FILES " '$ac_optarg'"
18357 ac_need_defaults=false;;
18358 --header | --heade | --head | --hea )
18359 $ac_shift
18360 case $ac_optarg in
18361 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18362 esac
18363 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18364 ac_need_defaults=false;;
18365 --he | --h)
18366 # Conflict between --help and --header
18367 as_fn_error $? "ambiguous option: \`$1'
18368Try \`$0 --help' for more information.";;
18369 --help | --hel | -h )
18370 $as_echo "$ac_cs_usage"; exit ;;
18371 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18372 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18373 ac_cs_silent=: ;;
18374
18375 # This is an error.
18376 -*) as_fn_error $? "unrecognized option: \`$1'
18377Try \`$0 --help' for more information." ;;
18378
18379 *) as_fn_append ac_config_targets " $1"
18380 ac_need_defaults=false ;;
18381
18382 esac
18383 shift
18384done
18385
18386ac_configure_extra_args=
18387
18388if $ac_cs_silent; then
18389 exec 6>/dev/null
18390 ac_configure_extra_args="$ac_configure_extra_args --silent"
18391fi
18392
18393_ACEOF
18394cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18395if \$ac_cs_recheck; then
18396 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18397 shift
18398 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18399 CONFIG_SHELL='$SHELL'
18400 export CONFIG_SHELL
18401 exec "\$@"
18402fi
18403
18404_ACEOF
18405cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18406exec 5>>config.log
18407{
18408 echo
18409 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18410## Running $as_me. ##
18411_ASBOX
18412 $as_echo "$ac_log"
18413} >&5
18414
18415_ACEOF
18416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18417#
18418# INIT-COMMANDS
18419#
18420AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18421
Jeff Thompson4f031642013-08-05 11:03:16 -070018422
18423# The HP-UX ksh and POSIX shell print the target directory to stdout
18424# if CDPATH is set.
18425(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18426
18427sed_quote_subst='$sed_quote_subst'
18428double_quote_subst='$double_quote_subst'
18429delay_variable_subst='$delay_variable_subst'
18430macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18431macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18432enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18433enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18434pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18435enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18436SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18437ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18438PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18439host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18440host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18441host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18442build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18443build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18444build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18445SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18446Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18447GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18448EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18449FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18450LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18451NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18452LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18453max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18454ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18455exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18456lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18457lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18458lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18459lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18460lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18461reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18462reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18463OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18464deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18465file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18466file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18467want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18468DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18469sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18470AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18471AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18472archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18473STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18474RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18475old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18476old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18477old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18478lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18479CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18480CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18481compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18482GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18483lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18484lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18485lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18486lt_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"`'
18487nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18488lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18489objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18490MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18491lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18492lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18493lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18494lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18495lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18496need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18497MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18498DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18499NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18500LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18501OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18502OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18503libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18504shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18505extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18506archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18507enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18508export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18509whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18510compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18511old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18512old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18513archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18514archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18515module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18516module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18517with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18518allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18519no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18520hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18521hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18522hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18523hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18524hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18525hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18526hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18527inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18528link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18529always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18530export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18531exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18532include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18533prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18534postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18535file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18536variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18537need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18538need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18539version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18540runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18541shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18542shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18543libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18544library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18545soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18546install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18547postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18548postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18549finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18550finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18551hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18552sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18553sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18554hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18555enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18556enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18557enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18558old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18559striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18560compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18561predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18562postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18563predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18564postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18565compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18566LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18567reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18568reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18569old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18570compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18571GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18572lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18573lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18574lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18575lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18576lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18577archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18578enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18579export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18580whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18581compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18582old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18583old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18584archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18585archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18586module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18587module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18588with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18589allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18590no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18591hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18592hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18593hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18594hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18595hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18596hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18597hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18598inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18599link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18600always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18601export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18602exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18603include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18604prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18605postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18606file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18607hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18608compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18609predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18610postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18611predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18612postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18613compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18614
18615LTCC='$LTCC'
18616LTCFLAGS='$LTCFLAGS'
18617compiler='$compiler_DEFAULT'
18618
18619# A function that is used when there is no print builtin or printf.
18620func_fallback_echo ()
18621{
18622 eval 'cat <<_LTECHO_EOF
18623\$1
18624_LTECHO_EOF'
18625}
18626
18627# Quote evaled strings.
18628for var in SHELL \
18629ECHO \
18630PATH_SEPARATOR \
18631SED \
18632GREP \
18633EGREP \
18634FGREP \
18635LD \
18636NM \
18637LN_S \
18638lt_SP2NL \
18639lt_NL2SP \
18640reload_flag \
18641OBJDUMP \
18642deplibs_check_method \
18643file_magic_cmd \
18644file_magic_glob \
18645want_nocaseglob \
18646DLLTOOL \
18647sharedlib_from_linklib_cmd \
18648AR \
18649AR_FLAGS \
18650archiver_list_spec \
18651STRIP \
18652RANLIB \
18653CC \
18654CFLAGS \
18655compiler \
18656lt_cv_sys_global_symbol_pipe \
18657lt_cv_sys_global_symbol_to_cdecl \
18658lt_cv_sys_global_symbol_to_c_name_address \
18659lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18660nm_file_list_spec \
18661lt_prog_compiler_no_builtin_flag \
18662lt_prog_compiler_pic \
18663lt_prog_compiler_wl \
18664lt_prog_compiler_static \
18665lt_cv_prog_compiler_c_o \
18666need_locks \
18667MANIFEST_TOOL \
18668DSYMUTIL \
18669NMEDIT \
18670LIPO \
18671OTOOL \
18672OTOOL64 \
18673shrext_cmds \
18674export_dynamic_flag_spec \
18675whole_archive_flag_spec \
18676compiler_needs_object \
18677with_gnu_ld \
18678allow_undefined_flag \
18679no_undefined_flag \
18680hardcode_libdir_flag_spec \
18681hardcode_libdir_separator \
18682exclude_expsyms \
18683include_expsyms \
18684file_list_spec \
18685variables_saved_for_relink \
18686libname_spec \
18687library_names_spec \
18688soname_spec \
18689install_override_mode \
18690finish_eval \
18691old_striplib \
18692striplib \
18693compiler_lib_search_dirs \
18694predep_objects \
18695postdep_objects \
18696predeps \
18697postdeps \
18698compiler_lib_search_path \
18699LD_CXX \
18700reload_flag_CXX \
18701compiler_CXX \
18702lt_prog_compiler_no_builtin_flag_CXX \
18703lt_prog_compiler_pic_CXX \
18704lt_prog_compiler_wl_CXX \
18705lt_prog_compiler_static_CXX \
18706lt_cv_prog_compiler_c_o_CXX \
18707export_dynamic_flag_spec_CXX \
18708whole_archive_flag_spec_CXX \
18709compiler_needs_object_CXX \
18710with_gnu_ld_CXX \
18711allow_undefined_flag_CXX \
18712no_undefined_flag_CXX \
18713hardcode_libdir_flag_spec_CXX \
18714hardcode_libdir_separator_CXX \
18715exclude_expsyms_CXX \
18716include_expsyms_CXX \
18717file_list_spec_CXX \
18718compiler_lib_search_dirs_CXX \
18719predep_objects_CXX \
18720postdep_objects_CXX \
18721predeps_CXX \
18722postdeps_CXX \
18723compiler_lib_search_path_CXX; do
18724 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18725 *[\\\\\\\`\\"\\\$]*)
18726 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18727 ;;
18728 *)
18729 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18730 ;;
18731 esac
18732done
18733
18734# Double-quote double-evaled strings.
18735for var in reload_cmds \
18736old_postinstall_cmds \
18737old_postuninstall_cmds \
18738old_archive_cmds \
18739extract_expsyms_cmds \
18740old_archive_from_new_cmds \
18741old_archive_from_expsyms_cmds \
18742archive_cmds \
18743archive_expsym_cmds \
18744module_cmds \
18745module_expsym_cmds \
18746export_symbols_cmds \
18747prelink_cmds \
18748postlink_cmds \
18749postinstall_cmds \
18750postuninstall_cmds \
18751finish_cmds \
18752sys_lib_search_path_spec \
18753sys_lib_dlsearch_path_spec \
18754reload_cmds_CXX \
18755old_archive_cmds_CXX \
18756old_archive_from_new_cmds_CXX \
18757old_archive_from_expsyms_cmds_CXX \
18758archive_cmds_CXX \
18759archive_expsym_cmds_CXX \
18760module_cmds_CXX \
18761module_expsym_cmds_CXX \
18762export_symbols_cmds_CXX \
18763prelink_cmds_CXX \
18764postlink_cmds_CXX; do
18765 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18766 *[\\\\\\\`\\"\\\$]*)
18767 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18768 ;;
18769 *)
18770 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18771 ;;
18772 esac
18773done
18774
18775ac_aux_dir='$ac_aux_dir'
18776xsi_shell='$xsi_shell'
18777lt_shell_append='$lt_shell_append'
18778
18779# See if we are running on zsh, and set the options which allow our
18780# commands through without removal of \ escapes INIT.
18781if test -n "\${ZSH_VERSION+set}" ; then
18782 setopt NO_GLOB_SUBST
18783fi
18784
18785
18786 PACKAGE='$PACKAGE'
18787 VERSION='$VERSION'
18788 TIMESTAMP='$TIMESTAMP'
18789 RM='$RM'
18790 ofile='$ofile'
18791
18792
18793
18794
18795
18796
Jeff Thompson39128c62013-06-19 14:08:51 -070018797_ACEOF
18798
18799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18800
18801# Handling of arguments.
18802for ac_config_target in $ac_config_targets
18803do
18804 case $ac_config_target in
18805 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18806 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Jeff Thompson4f031642013-08-05 11:03:16 -070018807 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Jeff Thompson39128c62013-06-19 14:08:51 -070018808 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18809
18810 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18811 esac
18812done
18813
18814
18815# If the user did not use the arguments to specify the items to instantiate,
18816# then the envvar interface is used. Set only those that are not.
18817# We use the long form for the default assignment because of an extremely
18818# bizarre bug on SunOS 4.1.3.
18819if $ac_need_defaults; then
18820 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18821 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18822 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18823fi
18824
18825# Have a temporary directory for convenience. Make it in the build tree
18826# simply because there is no reason against having it here, and in addition,
18827# creating and moving files from /tmp can sometimes cause problems.
18828# Hook for its removal unless debugging.
18829# Note that there is a small window in which the directory will not be cleaned:
18830# after its creation but before its name has been assigned to `$tmp'.
18831$debug ||
18832{
18833 tmp= ac_tmp=
18834 trap 'exit_status=$?
18835 : "${ac_tmp:=$tmp}"
18836 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18837' 0
18838 trap 'as_fn_exit 1' 1 2 13 15
18839}
18840# Create a (secure) tmp directory for tmp files.
18841
18842{
18843 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18844 test -d "$tmp"
18845} ||
18846{
18847 tmp=./conf$$-$RANDOM
18848 (umask 077 && mkdir "$tmp")
18849} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18850ac_tmp=$tmp
18851
18852# Set up the scripts for CONFIG_FILES section.
18853# No need to generate them if there are no CONFIG_FILES.
18854# This happens for instance with `./config.status config.h'.
18855if test -n "$CONFIG_FILES"; then
18856
18857
18858ac_cr=`echo X | tr X '\015'`
18859# On cygwin, bash can eat \r inside `` if the user requested igncr.
18860# But we know of no other shell where ac_cr would be empty at this
18861# point, so we can use a bashism as a fallback.
18862if test "x$ac_cr" = x; then
18863 eval ac_cr=\$\'\\r\'
18864fi
18865ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18866if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18867 ac_cs_awk_cr='\\r'
18868else
18869 ac_cs_awk_cr=$ac_cr
18870fi
18871
18872echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18873_ACEOF
18874
18875
18876{
18877 echo "cat >conf$$subs.awk <<_ACEOF" &&
18878 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18879 echo "_ACEOF"
18880} >conf$$subs.sh ||
18881 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18882ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18883ac_delim='%!_!# '
18884for ac_last_try in false false false false false :; do
18885 . ./conf$$subs.sh ||
18886 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18887
18888 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18889 if test $ac_delim_n = $ac_delim_num; then
18890 break
18891 elif $ac_last_try; then
18892 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18893 else
18894 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18895 fi
18896done
18897rm -f conf$$subs.sh
18898
18899cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18900cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18901_ACEOF
18902sed -n '
18903h
18904s/^/S["/; s/!.*/"]=/
18905p
18906g
18907s/^[^!]*!//
18908:repl
18909t repl
18910s/'"$ac_delim"'$//
18911t delim
18912:nl
18913h
18914s/\(.\{148\}\)..*/\1/
18915t more1
18916s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18917p
18918n
18919b repl
18920:more1
18921s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18922p
18923g
18924s/.\{148\}//
18925t nl
18926:delim
18927h
18928s/\(.\{148\}\)..*/\1/
18929t more2
18930s/["\\]/\\&/g; s/^/"/; s/$/"/
18931p
18932b
18933:more2
18934s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18935p
18936g
18937s/.\{148\}//
18938t delim
18939' <conf$$subs.awk | sed '
18940/^[^""]/{
18941 N
18942 s/\n//
18943}
18944' >>$CONFIG_STATUS || ac_write_fail=1
18945rm -f conf$$subs.awk
18946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18947_ACAWK
18948cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18949 for (key in S) S_is_set[key] = 1
18950 FS = ""
18951
18952}
18953{
18954 line = $ 0
18955 nfields = split(line, field, "@")
18956 substed = 0
18957 len = length(field[1])
18958 for (i = 2; i < nfields; i++) {
18959 key = field[i]
18960 keylen = length(key)
18961 if (S_is_set[key]) {
18962 value = S[key]
18963 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18964 len += length(value) + length(field[++i])
18965 substed = 1
18966 } else
18967 len += 1 + keylen
18968 }
18969
18970 print line
18971}
18972
18973_ACAWK
18974_ACEOF
18975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18976if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18977 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18978else
18979 cat
18980fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18981 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18982_ACEOF
18983
18984# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18985# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18986# trailing colons and then remove the whole line if VPATH becomes empty
18987# (actually we leave an empty line to preserve line numbers).
18988if test "x$srcdir" = x.; then
18989 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18990h
18991s///
18992s/^/:/
18993s/[ ]*$/:/
18994s/:\$(srcdir):/:/g
18995s/:\${srcdir}:/:/g
18996s/:@srcdir@:/:/g
18997s/^:*//
18998s/:*$//
18999x
19000s/\(=[ ]*\).*/\1/
19001G
19002s/\n//
19003s/^[^=]*=[ ]*$//
19004}'
19005fi
19006
19007cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19008fi # test -n "$CONFIG_FILES"
19009
19010# Set up the scripts for CONFIG_HEADERS section.
19011# No need to generate them if there are no CONFIG_HEADERS.
19012# This happens for instance with `./config.status Makefile'.
19013if test -n "$CONFIG_HEADERS"; then
19014cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19015BEGIN {
19016_ACEOF
19017
19018# Transform confdefs.h into an awk script `defines.awk', embedded as
19019# here-document in config.status, that substitutes the proper values into
19020# config.h.in to produce config.h.
19021
19022# Create a delimiter string that does not exist in confdefs.h, to ease
19023# handling of long lines.
19024ac_delim='%!_!# '
19025for ac_last_try in false false :; do
19026 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19027 if test -z "$ac_tt"; then
19028 break
19029 elif $ac_last_try; then
19030 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19031 else
19032 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19033 fi
19034done
19035
19036# For the awk script, D is an array of macro values keyed by name,
19037# likewise P contains macro parameters if any. Preserve backslash
19038# newline sequences.
19039
19040ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19041sed -n '
19042s/.\{148\}/&'"$ac_delim"'/g
19043t rset
19044:rset
19045s/^[ ]*#[ ]*define[ ][ ]*/ /
19046t def
19047d
19048:def
19049s/\\$//
19050t bsnl
19051s/["\\]/\\&/g
19052s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19053D["\1"]=" \3"/p
19054s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19055d
19056:bsnl
19057s/["\\]/\\&/g
19058s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19059D["\1"]=" \3\\\\\\n"\\/p
19060t cont
19061s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19062t cont
19063d
19064:cont
19065n
19066s/.\{148\}/&'"$ac_delim"'/g
19067t clear
19068:clear
19069s/\\$//
19070t bsnlc
19071s/["\\]/\\&/g; s/^/"/; s/$/"/p
19072d
19073:bsnlc
19074s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19075b cont
19076' <confdefs.h | sed '
19077s/'"$ac_delim"'/"\\\
19078"/g' >>$CONFIG_STATUS || ac_write_fail=1
19079
19080cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19081 for (key in D) D_is_set[key] = 1
19082 FS = ""
19083}
19084/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19085 line = \$ 0
19086 split(line, arg, " ")
19087 if (arg[1] == "#") {
19088 defundef = arg[2]
19089 mac1 = arg[3]
19090 } else {
19091 defundef = substr(arg[1], 2)
19092 mac1 = arg[2]
19093 }
19094 split(mac1, mac2, "(") #)
19095 macro = mac2[1]
19096 prefix = substr(line, 1, index(line, defundef) - 1)
19097 if (D_is_set[macro]) {
19098 # Preserve the white space surrounding the "#".
19099 print prefix "define", macro P[macro] D[macro]
19100 next
19101 } else {
19102 # Replace #undef with comments. This is necessary, for example,
19103 # in the case of _POSIX_SOURCE, which is predefined and required
19104 # on some systems where configure will not decide to define it.
19105 if (defundef == "undef") {
19106 print "/*", prefix defundef, macro, "*/"
19107 next
19108 }
19109 }
19110}
19111{ print }
19112_ACAWK
19113_ACEOF
19114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19115 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19116fi # test -n "$CONFIG_HEADERS"
19117
19118
19119eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19120shift
19121for ac_tag
19122do
19123 case $ac_tag in
19124 :[FHLC]) ac_mode=$ac_tag; continue;;
19125 esac
19126 case $ac_mode$ac_tag in
19127 :[FHL]*:*);;
19128 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19129 :[FH]-) ac_tag=-:-;;
19130 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19131 esac
19132 ac_save_IFS=$IFS
19133 IFS=:
19134 set x $ac_tag
19135 IFS=$ac_save_IFS
19136 shift
19137 ac_file=$1
19138 shift
19139
19140 case $ac_mode in
19141 :L) ac_source=$1;;
19142 :[FH])
19143 ac_file_inputs=
19144 for ac_f
19145 do
19146 case $ac_f in
19147 -) ac_f="$ac_tmp/stdin";;
19148 *) # Look for the file first in the build tree, then in the source tree
19149 # (if the path is not absolute). The absolute path cannot be DOS-style,
19150 # because $ac_f cannot contain `:'.
19151 test -f "$ac_f" ||
19152 case $ac_f in
19153 [\\/$]*) false;;
19154 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19155 esac ||
19156 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19157 esac
19158 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19159 as_fn_append ac_file_inputs " '$ac_f'"
19160 done
19161
19162 # Let's still pretend it is `configure' which instantiates (i.e., don't
19163 # use $as_me), people would be surprised to read:
19164 # /* config.h. Generated by config.status. */
19165 configure_input='Generated from '`
19166 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19167 `' by configure.'
19168 if test x"$ac_file" != x-; then
19169 configure_input="$ac_file. $configure_input"
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19171$as_echo "$as_me: creating $ac_file" >&6;}
19172 fi
19173 # Neutralize special characters interpreted by sed in replacement strings.
19174 case $configure_input in #(
19175 *\&* | *\|* | *\\* )
19176 ac_sed_conf_input=`$as_echo "$configure_input" |
19177 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19178 *) ac_sed_conf_input=$configure_input;;
19179 esac
19180
19181 case $ac_tag in
19182 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19183 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19184 esac
19185 ;;
19186 esac
19187
19188 ac_dir=`$as_dirname -- "$ac_file" ||
19189$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19190 X"$ac_file" : 'X\(//\)[^/]' \| \
19191 X"$ac_file" : 'X\(//\)$' \| \
19192 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19193$as_echo X"$ac_file" |
19194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19195 s//\1/
19196 q
19197 }
19198 /^X\(\/\/\)[^/].*/{
19199 s//\1/
19200 q
19201 }
19202 /^X\(\/\/\)$/{
19203 s//\1/
19204 q
19205 }
19206 /^X\(\/\).*/{
19207 s//\1/
19208 q
19209 }
19210 s/.*/./; q'`
19211 as_dir="$ac_dir"; as_fn_mkdir_p
19212 ac_builddir=.
19213
19214case "$ac_dir" in
19215.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19216*)
19217 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19218 # A ".." for each directory in $ac_dir_suffix.
19219 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19220 case $ac_top_builddir_sub in
19221 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19222 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19223 esac ;;
19224esac
19225ac_abs_top_builddir=$ac_pwd
19226ac_abs_builddir=$ac_pwd$ac_dir_suffix
19227# for backward compatibility:
19228ac_top_builddir=$ac_top_build_prefix
19229
19230case $srcdir in
19231 .) # We are building in place.
19232 ac_srcdir=.
19233 ac_top_srcdir=$ac_top_builddir_sub
19234 ac_abs_top_srcdir=$ac_pwd ;;
19235 [\\/]* | ?:[\\/]* ) # Absolute name.
19236 ac_srcdir=$srcdir$ac_dir_suffix;
19237 ac_top_srcdir=$srcdir
19238 ac_abs_top_srcdir=$srcdir ;;
19239 *) # Relative name.
19240 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19241 ac_top_srcdir=$ac_top_build_prefix$srcdir
19242 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19243esac
19244ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19245
19246
19247 case $ac_mode in
19248 :F)
19249 #
19250 # CONFIG_FILE
19251 #
19252
19253 case $INSTALL in
19254 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19255 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19256 esac
19257 ac_MKDIR_P=$MKDIR_P
19258 case $MKDIR_P in
19259 [\\/$]* | ?:[\\/]* ) ;;
19260 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19261 esac
19262_ACEOF
19263
19264cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19265# If the template does not know about datarootdir, expand it.
19266# FIXME: This hack should be removed a few years after 2.60.
19267ac_datarootdir_hack=; ac_datarootdir_seen=
19268ac_sed_dataroot='
19269/datarootdir/ {
19270 p
19271 q
19272}
19273/@datadir@/p
19274/@docdir@/p
19275/@infodir@/p
19276/@localedir@/p
19277/@mandir@/p'
19278case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19279*datarootdir*) ac_datarootdir_seen=yes;;
19280*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19282$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19283_ACEOF
19284cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19285 ac_datarootdir_hack='
19286 s&@datadir@&$datadir&g
19287 s&@docdir@&$docdir&g
19288 s&@infodir@&$infodir&g
19289 s&@localedir@&$localedir&g
19290 s&@mandir@&$mandir&g
19291 s&\\\${datarootdir}&$datarootdir&g' ;;
19292esac
19293_ACEOF
19294
19295# Neutralize VPATH when `$srcdir' = `.'.
19296# Shell code in configure.ac might set extrasub.
19297# FIXME: do we really want to maintain this feature?
19298cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19299ac_sed_extra="$ac_vpsub
19300$extrasub
19301_ACEOF
19302cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19303:t
19304/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19305s|@configure_input@|$ac_sed_conf_input|;t t
19306s&@top_builddir@&$ac_top_builddir_sub&;t t
19307s&@top_build_prefix@&$ac_top_build_prefix&;t t
19308s&@srcdir@&$ac_srcdir&;t t
19309s&@abs_srcdir@&$ac_abs_srcdir&;t t
19310s&@top_srcdir@&$ac_top_srcdir&;t t
19311s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19312s&@builddir@&$ac_builddir&;t t
19313s&@abs_builddir@&$ac_abs_builddir&;t t
19314s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19315s&@INSTALL@&$ac_INSTALL&;t t
19316s&@MKDIR_P@&$ac_MKDIR_P&;t t
19317$ac_datarootdir_hack
19318"
19319eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19320 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19321
19322test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19323 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19324 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19325 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19327which seems to be undefined. Please make sure it is defined" >&5
19328$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19329which seems to be undefined. Please make sure it is defined" >&2;}
19330
19331 rm -f "$ac_tmp/stdin"
19332 case $ac_file in
19333 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19334 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19335 esac \
19336 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19337 ;;
19338 :H)
19339 #
19340 # CONFIG_HEADER
19341 #
19342 if test x"$ac_file" != x-; then
19343 {
19344 $as_echo "/* $configure_input */" \
19345 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19346 } >"$ac_tmp/config.h" \
19347 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19348 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19349 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19350$as_echo "$as_me: $ac_file is unchanged" >&6;}
19351 else
19352 rm -f "$ac_file"
19353 mv "$ac_tmp/config.h" "$ac_file" \
19354 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19355 fi
19356 else
19357 $as_echo "/* $configure_input */" \
19358 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19359 || as_fn_error $? "could not create -" "$LINENO" 5
19360 fi
19361# Compute "$ac_file"'s index in $config_headers.
19362_am_arg="$ac_file"
19363_am_stamp_count=1
19364for _am_header in $config_headers :; do
19365 case $_am_header in
19366 $_am_arg | $_am_arg:* )
19367 break ;;
19368 * )
19369 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19370 esac
19371done
19372echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19373$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19374 X"$_am_arg" : 'X\(//\)[^/]' \| \
19375 X"$_am_arg" : 'X\(//\)$' \| \
19376 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19377$as_echo X"$_am_arg" |
19378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19379 s//\1/
19380 q
19381 }
19382 /^X\(\/\/\)[^/].*/{
19383 s//\1/
19384 q
19385 }
19386 /^X\(\/\/\)$/{
19387 s//\1/
19388 q
19389 }
19390 /^X\(\/\).*/{
19391 s//\1/
19392 q
19393 }
19394 s/.*/./; q'`/stamp-h$_am_stamp_count
19395 ;;
19396
19397 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19398$as_echo "$as_me: executing $ac_file commands" >&6;}
19399 ;;
19400 esac
19401
19402
19403 case $ac_file$ac_mode in
19404 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19405 # Older Autoconf quotes --file arguments for eval, but not when files
19406 # are listed without --file. Let's play safe and only enable the eval
19407 # if we detect the quoting.
19408 case $CONFIG_FILES in
19409 *\'*) eval set x "$CONFIG_FILES" ;;
19410 *) set x $CONFIG_FILES ;;
19411 esac
19412 shift
19413 for mf
19414 do
19415 # Strip MF so we end up with the name of the file.
19416 mf=`echo "$mf" | sed -e 's/:.*$//'`
19417 # Check whether this is an Automake generated Makefile or not.
19418 # We used to match only the files named 'Makefile.in', but
19419 # some people rename them; so instead we look at the file content.
19420 # Grep'ing the first line is not enough: some people post-process
19421 # each Makefile.in and add a new line on top of each file to say so.
19422 # Grep'ing the whole file is not good either: AIX grep has a line
19423 # limit of 2048, but all sed's we know have understand at least 4000.
19424 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19425 dirpart=`$as_dirname -- "$mf" ||
19426$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19427 X"$mf" : 'X\(//\)[^/]' \| \
19428 X"$mf" : 'X\(//\)$' \| \
19429 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19430$as_echo X"$mf" |
19431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19432 s//\1/
19433 q
19434 }
19435 /^X\(\/\/\)[^/].*/{
19436 s//\1/
19437 q
19438 }
19439 /^X\(\/\/\)$/{
19440 s//\1/
19441 q
19442 }
19443 /^X\(\/\).*/{
19444 s//\1/
19445 q
19446 }
19447 s/.*/./; q'`
19448 else
19449 continue
19450 fi
19451 # Extract the definition of DEPDIR, am__include, and am__quote
19452 # from the Makefile without running 'make'.
19453 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19454 test -z "$DEPDIR" && continue
19455 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19456 test -z "$am__include" && continue
19457 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19458 # Find all dependency output files, they are included files with
19459 # $(DEPDIR) in their names. We invoke sed twice because it is the
19460 # simplest approach to changing $(DEPDIR) to its actual value in the
19461 # expansion.
19462 for file in `sed -n "
19463 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19464 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19465 # Make sure the directory exists.
19466 test -f "$dirpart/$file" && continue
19467 fdir=`$as_dirname -- "$file" ||
19468$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19469 X"$file" : 'X\(//\)[^/]' \| \
19470 X"$file" : 'X\(//\)$' \| \
19471 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19472$as_echo X"$file" |
19473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19474 s//\1/
19475 q
19476 }
19477 /^X\(\/\/\)[^/].*/{
19478 s//\1/
19479 q
19480 }
19481 /^X\(\/\/\)$/{
19482 s//\1/
19483 q
19484 }
19485 /^X\(\/\).*/{
19486 s//\1/
19487 q
19488 }
19489 s/.*/./; q'`
19490 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19491 # echo "creating $dirpart/$file"
19492 echo '# dummy' > "$dirpart/$file"
19493 done
19494 done
19495}
19496 ;;
Jeff Thompson4f031642013-08-05 11:03:16 -070019497 "libtool":C)
19498
19499 # See if we are running on zsh, and set the options which allow our
19500 # commands through without removal of \ escapes.
19501 if test -n "${ZSH_VERSION+set}" ; then
19502 setopt NO_GLOB_SUBST
19503 fi
19504
19505 cfgfile="${ofile}T"
19506 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19507 $RM "$cfgfile"
19508
19509 cat <<_LT_EOF >> "$cfgfile"
19510#! $SHELL
19511
19512# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19513# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19514# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19515# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19516#
19517# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19518# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19519# Foundation, Inc.
19520# Written by Gordon Matzigkeit, 1996
19521#
19522# This file is part of GNU Libtool.
19523#
19524# GNU Libtool is free software; you can redistribute it and/or
19525# modify it under the terms of the GNU General Public License as
19526# published by the Free Software Foundation; either version 2 of
19527# the License, or (at your option) any later version.
19528#
19529# As a special exception to the GNU General Public License,
19530# if you distribute this file as part of a program or library that
19531# is built using GNU Libtool, you may include this file under the
19532# same distribution terms that you use for the rest of that program.
19533#
19534# GNU Libtool is distributed in the hope that it will be useful,
19535# but WITHOUT ANY WARRANTY; without even the implied warranty of
19536# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19537# GNU General Public License for more details.
19538#
19539# You should have received a copy of the GNU General Public License
19540# along with GNU Libtool; see the file COPYING. If not, a copy
19541# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19542# obtained by writing to the Free Software Foundation, Inc.,
19543# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19544
19545
19546# The names of the tagged configurations supported by this script.
19547available_tags="CXX "
19548
19549# ### BEGIN LIBTOOL CONFIG
19550
19551# Which release of libtool.m4 was used?
19552macro_version=$macro_version
19553macro_revision=$macro_revision
19554
19555# Whether or not to build shared libraries.
19556build_libtool_libs=$enable_shared
19557
19558# Whether or not to build static libraries.
19559build_old_libs=$enable_static
19560
19561# What type of objects to build.
19562pic_mode=$pic_mode
19563
19564# Whether or not to optimize for fast installation.
19565fast_install=$enable_fast_install
19566
19567# Shell to use when invoking shell scripts.
19568SHELL=$lt_SHELL
19569
19570# An echo program that protects backslashes.
19571ECHO=$lt_ECHO
19572
19573# The PATH separator for the build system.
19574PATH_SEPARATOR=$lt_PATH_SEPARATOR
19575
19576# The host system.
19577host_alias=$host_alias
19578host=$host
19579host_os=$host_os
19580
19581# The build system.
19582build_alias=$build_alias
19583build=$build
19584build_os=$build_os
19585
19586# A sed program that does not truncate output.
19587SED=$lt_SED
19588
19589# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19590Xsed="\$SED -e 1s/^X//"
19591
19592# A grep program that handles long lines.
19593GREP=$lt_GREP
19594
19595# An ERE matcher.
19596EGREP=$lt_EGREP
19597
19598# A literal string matcher.
19599FGREP=$lt_FGREP
19600
19601# A BSD- or MS-compatible name lister.
19602NM=$lt_NM
19603
19604# Whether we need soft or hard links.
19605LN_S=$lt_LN_S
19606
19607# What is the maximum length of a command?
19608max_cmd_len=$max_cmd_len
19609
19610# Object file suffix (normally "o").
19611objext=$ac_objext
19612
19613# Executable file suffix (normally "").
19614exeext=$exeext
19615
19616# whether the shell understands "unset".
19617lt_unset=$lt_unset
19618
19619# turn spaces into newlines.
19620SP2NL=$lt_lt_SP2NL
19621
19622# turn newlines into spaces.
19623NL2SP=$lt_lt_NL2SP
19624
19625# convert \$build file names to \$host format.
19626to_host_file_cmd=$lt_cv_to_host_file_cmd
19627
19628# convert \$build files to toolchain format.
19629to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19630
19631# An object symbol dumper.
19632OBJDUMP=$lt_OBJDUMP
19633
19634# Method to check whether dependent libraries are shared objects.
19635deplibs_check_method=$lt_deplibs_check_method
19636
19637# Command to use when deplibs_check_method = "file_magic".
19638file_magic_cmd=$lt_file_magic_cmd
19639
19640# How to find potential files when deplibs_check_method = "file_magic".
19641file_magic_glob=$lt_file_magic_glob
19642
19643# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19644want_nocaseglob=$lt_want_nocaseglob
19645
19646# DLL creation program.
19647DLLTOOL=$lt_DLLTOOL
19648
19649# Command to associate shared and link libraries.
19650sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19651
19652# The archiver.
19653AR=$lt_AR
19654
19655# Flags to create an archive.
19656AR_FLAGS=$lt_AR_FLAGS
19657
19658# How to feed a file listing to the archiver.
19659archiver_list_spec=$lt_archiver_list_spec
19660
19661# A symbol stripping program.
19662STRIP=$lt_STRIP
19663
19664# Commands used to install an old-style archive.
19665RANLIB=$lt_RANLIB
19666old_postinstall_cmds=$lt_old_postinstall_cmds
19667old_postuninstall_cmds=$lt_old_postuninstall_cmds
19668
19669# Whether to use a lock for old archive extraction.
19670lock_old_archive_extraction=$lock_old_archive_extraction
19671
19672# A C compiler.
19673LTCC=$lt_CC
19674
19675# LTCC compiler flags.
19676LTCFLAGS=$lt_CFLAGS
19677
19678# Take the output of nm and produce a listing of raw symbols and C names.
19679global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19680
19681# Transform the output of nm in a proper C declaration.
19682global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19683
19684# Transform the output of nm in a C name address pair.
19685global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19686
19687# Transform the output of nm in a C name address pair when lib prefix is needed.
19688global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19689
19690# Specify filename containing input files for \$NM.
19691nm_file_list_spec=$lt_nm_file_list_spec
19692
19693# The root where to search for dependent libraries,and in which our libraries should be installed.
19694lt_sysroot=$lt_sysroot
19695
19696# The name of the directory that contains temporary libtool files.
19697objdir=$objdir
19698
19699# Used to examine libraries when file_magic_cmd begins with "file".
19700MAGIC_CMD=$MAGIC_CMD
19701
19702# Must we lock files when doing compilation?
19703need_locks=$lt_need_locks
19704
19705# Manifest tool.
19706MANIFEST_TOOL=$lt_MANIFEST_TOOL
19707
19708# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19709DSYMUTIL=$lt_DSYMUTIL
19710
19711# Tool to change global to local symbols on Mac OS X.
19712NMEDIT=$lt_NMEDIT
19713
19714# Tool to manipulate fat objects and archives on Mac OS X.
19715LIPO=$lt_LIPO
19716
19717# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19718OTOOL=$lt_OTOOL
19719
19720# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19721OTOOL64=$lt_OTOOL64
19722
19723# Old archive suffix (normally "a").
19724libext=$libext
19725
19726# Shared library suffix (normally ".so").
19727shrext_cmds=$lt_shrext_cmds
19728
19729# The commands to extract the exported symbol list from a shared archive.
19730extract_expsyms_cmds=$lt_extract_expsyms_cmds
19731
19732# Variables whose values should be saved in libtool wrapper scripts and
19733# restored at link time.
19734variables_saved_for_relink=$lt_variables_saved_for_relink
19735
19736# Do we need the "lib" prefix for modules?
19737need_lib_prefix=$need_lib_prefix
19738
19739# Do we need a version for libraries?
19740need_version=$need_version
19741
19742# Library versioning type.
19743version_type=$version_type
19744
19745# Shared library runtime path variable.
19746runpath_var=$runpath_var
19747
19748# Shared library path variable.
19749shlibpath_var=$shlibpath_var
19750
19751# Is shlibpath searched before the hard-coded library search path?
19752shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19753
19754# Format of library name prefix.
19755libname_spec=$lt_libname_spec
19756
19757# List of archive names. First name is the real one, the rest are links.
19758# The last name is the one that the linker finds with -lNAME
19759library_names_spec=$lt_library_names_spec
19760
19761# The coded name of the library, if different from the real name.
19762soname_spec=$lt_soname_spec
19763
19764# Permission mode override for installation of shared libraries.
19765install_override_mode=$lt_install_override_mode
19766
19767# Command to use after installation of a shared archive.
19768postinstall_cmds=$lt_postinstall_cmds
19769
19770# Command to use after uninstallation of a shared archive.
19771postuninstall_cmds=$lt_postuninstall_cmds
19772
19773# Commands used to finish a libtool library installation in a directory.
19774finish_cmds=$lt_finish_cmds
19775
19776# As "finish_cmds", except a single script fragment to be evaled but
19777# not shown.
19778finish_eval=$lt_finish_eval
19779
19780# Whether we should hardcode library paths into libraries.
19781hardcode_into_libs=$hardcode_into_libs
19782
19783# Compile-time system search path for libraries.
19784sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19785
19786# Run-time system search path for libraries.
19787sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19788
19789# Whether dlopen is supported.
19790dlopen_support=$enable_dlopen
19791
19792# Whether dlopen of programs is supported.
19793dlopen_self=$enable_dlopen_self
19794
19795# Whether dlopen of statically linked programs is supported.
19796dlopen_self_static=$enable_dlopen_self_static
19797
19798# Commands to strip libraries.
19799old_striplib=$lt_old_striplib
19800striplib=$lt_striplib
19801
19802
19803# The linker used to build libraries.
19804LD=$lt_LD
19805
19806# How to create reloadable object files.
19807reload_flag=$lt_reload_flag
19808reload_cmds=$lt_reload_cmds
19809
19810# Commands used to build an old-style archive.
19811old_archive_cmds=$lt_old_archive_cmds
19812
19813# A language specific compiler.
19814CC=$lt_compiler
19815
19816# Is the compiler the GNU compiler?
19817with_gcc=$GCC
19818
19819# Compiler flag to turn off builtin functions.
19820no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19821
19822# Additional compiler flags for building library objects.
19823pic_flag=$lt_lt_prog_compiler_pic
19824
19825# How to pass a linker flag through the compiler.
19826wl=$lt_lt_prog_compiler_wl
19827
19828# Compiler flag to prevent dynamic linking.
19829link_static_flag=$lt_lt_prog_compiler_static
19830
19831# Does compiler simultaneously support -c and -o options?
19832compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19833
19834# Whether or not to add -lc for building shared libraries.
19835build_libtool_need_lc=$archive_cmds_need_lc
19836
19837# Whether or not to disallow shared libs when runtime libs are static.
19838allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19839
19840# Compiler flag to allow reflexive dlopens.
19841export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19842
19843# Compiler flag to generate shared objects directly from archives.
19844whole_archive_flag_spec=$lt_whole_archive_flag_spec
19845
19846# Whether the compiler copes with passing no objects directly.
19847compiler_needs_object=$lt_compiler_needs_object
19848
19849# Create an old-style archive from a shared archive.
19850old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19851
19852# Create a temporary old-style archive to link instead of a shared archive.
19853old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19854
19855# Commands used to build a shared archive.
19856archive_cmds=$lt_archive_cmds
19857archive_expsym_cmds=$lt_archive_expsym_cmds
19858
19859# Commands used to build a loadable module if different from building
19860# a shared archive.
19861module_cmds=$lt_module_cmds
19862module_expsym_cmds=$lt_module_expsym_cmds
19863
19864# Whether we are building with GNU ld or not.
19865with_gnu_ld=$lt_with_gnu_ld
19866
19867# Flag that allows shared libraries with undefined symbols to be built.
19868allow_undefined_flag=$lt_allow_undefined_flag
19869
19870# Flag that enforces no undefined symbols.
19871no_undefined_flag=$lt_no_undefined_flag
19872
19873# Flag to hardcode \$libdir into a binary during linking.
19874# This must work even if \$libdir does not exist
19875hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19876
19877# Whether we need a single "-rpath" flag with a separated argument.
19878hardcode_libdir_separator=$lt_hardcode_libdir_separator
19879
19880# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19881# DIR into the resulting binary.
19882hardcode_direct=$hardcode_direct
19883
19884# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19885# DIR into the resulting binary and the resulting library dependency is
19886# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19887# library is relocated.
19888hardcode_direct_absolute=$hardcode_direct_absolute
19889
19890# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19891# into the resulting binary.
19892hardcode_minus_L=$hardcode_minus_L
19893
19894# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19895# into the resulting binary.
19896hardcode_shlibpath_var=$hardcode_shlibpath_var
19897
19898# Set to "yes" if building a shared library automatically hardcodes DIR
19899# into the library and all subsequent libraries and executables linked
19900# against it.
19901hardcode_automatic=$hardcode_automatic
19902
19903# Set to yes if linker adds runtime paths of dependent libraries
19904# to runtime path list.
19905inherit_rpath=$inherit_rpath
19906
19907# Whether libtool must link a program against all its dependency libraries.
19908link_all_deplibs=$link_all_deplibs
19909
19910# Set to "yes" if exported symbols are required.
19911always_export_symbols=$always_export_symbols
19912
19913# The commands to list exported symbols.
19914export_symbols_cmds=$lt_export_symbols_cmds
19915
19916# Symbols that should not be listed in the preloaded symbols.
19917exclude_expsyms=$lt_exclude_expsyms
19918
19919# Symbols that must always be exported.
19920include_expsyms=$lt_include_expsyms
19921
19922# Commands necessary for linking programs (against libraries) with templates.
19923prelink_cmds=$lt_prelink_cmds
19924
19925# Commands necessary for finishing linking programs.
19926postlink_cmds=$lt_postlink_cmds
19927
19928# Specify filename containing input files.
19929file_list_spec=$lt_file_list_spec
19930
19931# How to hardcode a shared library path into an executable.
19932hardcode_action=$hardcode_action
19933
19934# The directories searched by this compiler when creating a shared library.
19935compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19936
19937# Dependencies to place before and after the objects being linked to
19938# create a shared library.
19939predep_objects=$lt_predep_objects
19940postdep_objects=$lt_postdep_objects
19941predeps=$lt_predeps
19942postdeps=$lt_postdeps
19943
19944# The library search path used internally by the compiler when linking
19945# a shared library.
19946compiler_lib_search_path=$lt_compiler_lib_search_path
19947
19948# ### END LIBTOOL CONFIG
19949
19950_LT_EOF
19951
19952 case $host_os in
19953 aix3*)
19954 cat <<\_LT_EOF >> "$cfgfile"
19955# AIX sometimes has problems with the GCC collect2 program. For some
19956# reason, if we set the COLLECT_NAMES environment variable, the problems
19957# vanish in a puff of smoke.
19958if test "X${COLLECT_NAMES+set}" != Xset; then
19959 COLLECT_NAMES=
19960 export COLLECT_NAMES
19961fi
19962_LT_EOF
19963 ;;
19964 esac
19965
19966
19967ltmain="$ac_aux_dir/ltmain.sh"
19968
19969
19970 # We use sed instead of cat because bash on DJGPP gets confused if
19971 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19972 # text mode, it properly converts lines to CR/LF. This bash problem
19973 # is reportedly fixed, but why not run on old versions too?
19974 sed '$q' "$ltmain" >> "$cfgfile" \
19975 || (rm -f "$cfgfile"; exit 1)
19976
19977 if test x"$xsi_shell" = xyes; then
19978 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19979func_dirname ()\
19980{\
19981\ case ${1} in\
19982\ */*) func_dirname_result="${1%/*}${2}" ;;\
19983\ * ) func_dirname_result="${3}" ;;\
19984\ esac\
19985} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19986 && mv -f "$cfgfile.tmp" "$cfgfile" \
19987 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19988test 0 -eq $? || _lt_function_replace_fail=:
19989
19990
19991 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19992func_basename ()\
19993{\
19994\ func_basename_result="${1##*/}"\
19995} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19996 && mv -f "$cfgfile.tmp" "$cfgfile" \
19997 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19998test 0 -eq $? || _lt_function_replace_fail=:
19999
20000
20001 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20002func_dirname_and_basename ()\
20003{\
20004\ case ${1} in\
20005\ */*) func_dirname_result="${1%/*}${2}" ;;\
20006\ * ) func_dirname_result="${3}" ;;\
20007\ esac\
20008\ func_basename_result="${1##*/}"\
20009} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20010 && mv -f "$cfgfile.tmp" "$cfgfile" \
20011 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20012test 0 -eq $? || _lt_function_replace_fail=:
20013
20014
20015 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20016func_stripname ()\
20017{\
20018\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20019\ # positional parameters, so assign one to ordinary parameter first.\
20020\ func_stripname_result=${3}\
20021\ func_stripname_result=${func_stripname_result#"${1}"}\
20022\ func_stripname_result=${func_stripname_result%"${2}"}\
20023} # Extended-shell func_stripname 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_long_opt ()$/,/^} # func_split_long_opt /c\
20030func_split_long_opt ()\
20031{\
20032\ func_split_long_opt_name=${1%%=*}\
20033\ func_split_long_opt_arg=${1#*=}\
20034} # Extended-shell func_split_long_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_split_short_opt ()$/,/^} # func_split_short_opt /c\
20041func_split_short_opt ()\
20042{\
20043\ func_split_short_opt_arg=${1#??}\
20044\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20045} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20046 && mv -f "$cfgfile.tmp" "$cfgfile" \
20047 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20048test 0 -eq $? || _lt_function_replace_fail=:
20049
20050
20051 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20052func_lo2o ()\
20053{\
20054\ case ${1} in\
20055\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20056\ *) func_lo2o_result=${1} ;;\
20057\ esac\
20058} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20059 && mv -f "$cfgfile.tmp" "$cfgfile" \
20060 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20061test 0 -eq $? || _lt_function_replace_fail=:
20062
20063
20064 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20065func_xform ()\
20066{\
20067 func_xform_result=${1%.*}.lo\
20068} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20069 && mv -f "$cfgfile.tmp" "$cfgfile" \
20070 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20071test 0 -eq $? || _lt_function_replace_fail=:
20072
20073
20074 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20075func_arith ()\
20076{\
20077 func_arith_result=$(( $* ))\
20078} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20079 && mv -f "$cfgfile.tmp" "$cfgfile" \
20080 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20081test 0 -eq $? || _lt_function_replace_fail=:
20082
20083
20084 sed -e '/^func_len ()$/,/^} # func_len /c\
20085func_len ()\
20086{\
20087 func_len_result=${#1}\
20088} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20089 && mv -f "$cfgfile.tmp" "$cfgfile" \
20090 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20091test 0 -eq $? || _lt_function_replace_fail=:
20092
20093fi
20094
20095if test x"$lt_shell_append" = xyes; then
20096 sed -e '/^func_append ()$/,/^} # func_append /c\
20097func_append ()\
20098{\
20099 eval "${1}+=\\${2}"\
20100} # Extended-shell func_append 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 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20107func_append_quoted ()\
20108{\
20109\ func_quote_for_eval "${2}"\
20110\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20111} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20112 && mv -f "$cfgfile.tmp" "$cfgfile" \
20113 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20114test 0 -eq $? || _lt_function_replace_fail=:
20115
20116
20117 # Save a `func_append' function call where possible by direct use of '+='
20118 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20119 && mv -f "$cfgfile.tmp" "$cfgfile" \
20120 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20121 test 0 -eq $? || _lt_function_replace_fail=:
20122else
20123 # Save a `func_append' function call even when '+=' is not available
20124 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20125 && mv -f "$cfgfile.tmp" "$cfgfile" \
20126 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20127 test 0 -eq $? || _lt_function_replace_fail=:
20128fi
20129
20130if test x"$_lt_function_replace_fail" = x":"; then
20131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20132$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20133fi
20134
20135
20136 mv -f "$cfgfile" "$ofile" ||
20137 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20138 chmod +x "$ofile"
20139
20140
20141 cat <<_LT_EOF >> "$ofile"
20142
20143# ### BEGIN LIBTOOL TAG CONFIG: CXX
20144
20145# The linker used to build libraries.
20146LD=$lt_LD_CXX
20147
20148# How to create reloadable object files.
20149reload_flag=$lt_reload_flag_CXX
20150reload_cmds=$lt_reload_cmds_CXX
20151
20152# Commands used to build an old-style archive.
20153old_archive_cmds=$lt_old_archive_cmds_CXX
20154
20155# A language specific compiler.
20156CC=$lt_compiler_CXX
20157
20158# Is the compiler the GNU compiler?
20159with_gcc=$GCC_CXX
20160
20161# Compiler flag to turn off builtin functions.
20162no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20163
20164# Additional compiler flags for building library objects.
20165pic_flag=$lt_lt_prog_compiler_pic_CXX
20166
20167# How to pass a linker flag through the compiler.
20168wl=$lt_lt_prog_compiler_wl_CXX
20169
20170# Compiler flag to prevent dynamic linking.
20171link_static_flag=$lt_lt_prog_compiler_static_CXX
20172
20173# Does compiler simultaneously support -c and -o options?
20174compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20175
20176# Whether or not to add -lc for building shared libraries.
20177build_libtool_need_lc=$archive_cmds_need_lc_CXX
20178
20179# Whether or not to disallow shared libs when runtime libs are static.
20180allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20181
20182# Compiler flag to allow reflexive dlopens.
20183export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20184
20185# Compiler flag to generate shared objects directly from archives.
20186whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20187
20188# Whether the compiler copes with passing no objects directly.
20189compiler_needs_object=$lt_compiler_needs_object_CXX
20190
20191# Create an old-style archive from a shared archive.
20192old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20193
20194# Create a temporary old-style archive to link instead of a shared archive.
20195old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20196
20197# Commands used to build a shared archive.
20198archive_cmds=$lt_archive_cmds_CXX
20199archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20200
20201# Commands used to build a loadable module if different from building
20202# a shared archive.
20203module_cmds=$lt_module_cmds_CXX
20204module_expsym_cmds=$lt_module_expsym_cmds_CXX
20205
20206# Whether we are building with GNU ld or not.
20207with_gnu_ld=$lt_with_gnu_ld_CXX
20208
20209# Flag that allows shared libraries with undefined symbols to be built.
20210allow_undefined_flag=$lt_allow_undefined_flag_CXX
20211
20212# Flag that enforces no undefined symbols.
20213no_undefined_flag=$lt_no_undefined_flag_CXX
20214
20215# Flag to hardcode \$libdir into a binary during linking.
20216# This must work even if \$libdir does not exist
20217hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20218
20219# Whether we need a single "-rpath" flag with a separated argument.
20220hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20221
20222# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20223# DIR into the resulting binary.
20224hardcode_direct=$hardcode_direct_CXX
20225
20226# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20227# DIR into the resulting binary and the resulting library dependency is
20228# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20229# library is relocated.
20230hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20231
20232# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20233# into the resulting binary.
20234hardcode_minus_L=$hardcode_minus_L_CXX
20235
20236# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20237# into the resulting binary.
20238hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20239
20240# Set to "yes" if building a shared library automatically hardcodes DIR
20241# into the library and all subsequent libraries and executables linked
20242# against it.
20243hardcode_automatic=$hardcode_automatic_CXX
20244
20245# Set to yes if linker adds runtime paths of dependent libraries
20246# to runtime path list.
20247inherit_rpath=$inherit_rpath_CXX
20248
20249# Whether libtool must link a program against all its dependency libraries.
20250link_all_deplibs=$link_all_deplibs_CXX
20251
20252# Set to "yes" if exported symbols are required.
20253always_export_symbols=$always_export_symbols_CXX
20254
20255# The commands to list exported symbols.
20256export_symbols_cmds=$lt_export_symbols_cmds_CXX
20257
20258# Symbols that should not be listed in the preloaded symbols.
20259exclude_expsyms=$lt_exclude_expsyms_CXX
20260
20261# Symbols that must always be exported.
20262include_expsyms=$lt_include_expsyms_CXX
20263
20264# Commands necessary for linking programs (against libraries) with templates.
20265prelink_cmds=$lt_prelink_cmds_CXX
20266
20267# Commands necessary for finishing linking programs.
20268postlink_cmds=$lt_postlink_cmds_CXX
20269
20270# Specify filename containing input files.
20271file_list_spec=$lt_file_list_spec_CXX
20272
20273# How to hardcode a shared library path into an executable.
20274hardcode_action=$hardcode_action_CXX
20275
20276# The directories searched by this compiler when creating a shared library.
20277compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20278
20279# Dependencies to place before and after the objects being linked to
20280# create a shared library.
20281predep_objects=$lt_predep_objects_CXX
20282postdep_objects=$lt_postdep_objects_CXX
20283predeps=$lt_predeps_CXX
20284postdeps=$lt_postdeps_CXX
20285
20286# The library search path used internally by the compiler when linking
20287# a shared library.
20288compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20289
20290# ### END LIBTOOL TAG CONFIG: CXX
20291_LT_EOF
20292
20293 ;;
Jeff Thompson39128c62013-06-19 14:08:51 -070020294
20295 esac
20296done # for ac_tag
20297
20298
20299as_fn_exit 0
20300_ACEOF
20301ac_clean_files=$ac_clean_files_save
20302
20303test $ac_write_fail = 0 ||
20304 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20305
20306
20307# configure is writing to config.log, and then calls config.status.
20308# config.status does its own redirection, appending to config.log.
20309# Unfortunately, on DOS this fails, as config.log is still kept open
20310# by configure, so config.status won't be able to write to it; its
20311# output is simply discarded. So we exec the FD to /dev/null,
20312# effectively closing config.log, so it can be properly (re)opened and
20313# appended to by config.status. When coming back to configure, we
20314# need to make the FD available again.
20315if test "$no_create" != yes; then
20316 ac_cs_success=:
20317 ac_config_status_args=
20318 test "$silent" = yes &&
20319 ac_config_status_args="$ac_config_status_args --quiet"
20320 exec 5>/dev/null
20321 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20322 exec 5>>config.log
20323 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20324 # would make configure fail if this is the last instruction.
20325 $ac_cs_success || as_fn_exit 1
20326fi
20327if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20329$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20330fi
20331