blob: d78605806771ad997df59b97eb1a299bf9f4908b [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 Thompsonb3768ae2013-08-08 21:22:45 -0700681OPENSSL_LDFLAGS
682OPENSSL_LIBS
683OPENSSL_INCLUDES
684PKG_CONFIG
Jeff Thompson1b8f4c92013-06-19 16:18:46 -0700685HAVE_CXX11
Jeff Thompson4f031642013-08-05 11:03:16 -0700686CXXCPP
Jeff Thompson39128c62013-06-19 14:08:51 -0700687am__fastdepCXX_FALSE
688am__fastdepCXX_TRUE
689CXXDEPMODE
Jeff Thompson4f031642013-08-05 11:03:16 -0700690ac_ct_CXX
691CXXFLAGS
692CXX
693CPP
694OTOOL64
695OTOOL
696LIPO
697NMEDIT
698DSYMUTIL
699MANIFEST_TOOL
700RANLIB
701DLLTOOL
702OBJDUMP
703LN_S
704NM
705ac_ct_DUMPBIN
706DUMPBIN
707LD
708FGREP
709EGREP
710GREP
711SED
712host_os
713host_vendor
714host_cpu
715host
716build_os
717build_vendor
718build_cpu
719build
720LIBTOOL
721am__fastdepCC_FALSE
722am__fastdepCC_TRUE
723CCDEPMODE
Jeff Thompson39128c62013-06-19 14:08:51 -0700724am__nodep
725AMDEPBACKSLASH
726AMDEP_FALSE
727AMDEP_TRUE
728am__quote
729am__include
730DEPDIR
731OBJEXT
732EXEEXT
Jeff Thompson4f031642013-08-05 11:03:16 -0700733ac_ct_CC
Jeff Thompson39128c62013-06-19 14:08:51 -0700734CPPFLAGS
735LDFLAGS
Jeff Thompson4f031642013-08-05 11:03:16 -0700736CFLAGS
737CC
738ac_ct_AR
739AR
Jeff Thompson47053ad2013-08-05 10:36:53 -0700740MAINT
741MAINTAINER_MODE_FALSE
742MAINTAINER_MODE_TRUE
Jeff Thompson39128c62013-06-19 14:08:51 -0700743AM_BACKSLASH
744AM_DEFAULT_VERBOSITY
745AM_DEFAULT_V
746AM_V
747am__untar
748am__tar
749AMTAR
750am__leading_dot
751SET_MAKE
752AWK
753mkdir_p
754MKDIR_P
755INSTALL_STRIP_PROGRAM
756STRIP
757install_sh
758MAKEINFO
759AUTOHEADER
760AUTOMAKE
761AUTOCONF
762ACLOCAL
763VERSION
764PACKAGE
765CYGPATH_W
766am__isrc
767INSTALL_DATA
768INSTALL_SCRIPT
769INSTALL_PROGRAM
770target_alias
771host_alias
772build_alias
773LIBS
774ECHO_T
775ECHO_N
776ECHO_C
777DEFS
778mandir
779localedir
780libdir
781psdir
782pdfdir
783dvidir
784htmldir
785infodir
786docdir
787oldincludedir
788includedir
789localstatedir
790sharedstatedir
791sysconfdir
792datadir
793datarootdir
794libexecdir
795sbindir
796bindir
797program_transform_name
798prefix
799exec_prefix
800PACKAGE_URL
801PACKAGE_BUGREPORT
802PACKAGE_STRING
803PACKAGE_VERSION
804PACKAGE_TARNAME
805PACKAGE_NAME
806PATH_SEPARATOR
807SHELL'
808ac_subst_files=''
809ac_user_opts='
810enable_option_checking
811enable_silent_rules
Jeff Thompson47053ad2013-08-05 10:36:53 -0700812enable_maintainer_mode
Jeff Thompson39128c62013-06-19 14:08:51 -0700813enable_dependency_tracking
Jeff Thompson4f031642013-08-05 11:03:16 -0700814enable_shared
815enable_static
816with_pic
817enable_fast_install
818with_gnu_ld
819with_sysroot
820enable_libtool_lock
Jeff Thompsonb3768ae2013-08-08 21:22:45 -0700821with_openssl
Jeff Thompsonca45e552013-06-26 17:40:06 -0700822enable_doxygen_doc
823enable_doxygen_dot
824enable_doxygen_man
825enable_doxygen_rtf
826enable_doxygen_xml
827enable_doxygen_chm
828enable_doxygen_chi
829enable_doxygen_html
830enable_doxygen_ps
831enable_doxygen_pdf
Jeff Thompson39128c62013-06-19 14:08:51 -0700832'
833 ac_precious_vars='build_alias
834host_alias
835target_alias
Jeff Thompson4f031642013-08-05 11:03:16 -0700836CC
837CFLAGS
Jeff Thompson39128c62013-06-19 14:08:51 -0700838LDFLAGS
839LIBS
840CPPFLAGS
Jeff Thompson4f031642013-08-05 11:03:16 -0700841CPP
842CXX
843CXXFLAGS
Jeff Thompson36174062013-06-21 16:03:44 -0700844CCC
Jeff Thompson4f031642013-08-05 11:03:16 -0700845CXXCPP
Jeff Thompsonca45e552013-06-26 17:40:06 -0700846DOXYGEN_PAPER_SIZE'
Jeff Thompson39128c62013-06-19 14:08:51 -0700847
848
849# Initialize some variables set by options.
850ac_init_help=
851ac_init_version=false
852ac_unrecognized_opts=
853ac_unrecognized_sep=
854# The variables have the same names as the options, with
855# dashes changed to underlines.
856cache_file=/dev/null
857exec_prefix=NONE
858no_create=
859no_recursion=
860prefix=NONE
861program_prefix=NONE
862program_suffix=NONE
863program_transform_name=s,x,x,
864silent=
865site=
866srcdir=
867verbose=
868x_includes=NONE
869x_libraries=NONE
870
871# Installation directory options.
872# These are left unexpanded so users can "make install exec_prefix=/foo"
873# and all the variables that are supposed to be based on exec_prefix
874# by default will actually change.
875# Use braces instead of parens because sh, perl, etc. also accept them.
876# (The list follows the same order as the GNU Coding Standards.)
877bindir='${exec_prefix}/bin'
878sbindir='${exec_prefix}/sbin'
879libexecdir='${exec_prefix}/libexec'
880datarootdir='${prefix}/share'
881datadir='${datarootdir}'
882sysconfdir='${prefix}/etc'
883sharedstatedir='${prefix}/com'
884localstatedir='${prefix}/var'
885includedir='${prefix}/include'
886oldincludedir='/usr/include'
887docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
888infodir='${datarootdir}/info'
889htmldir='${docdir}'
890dvidir='${docdir}'
891pdfdir='${docdir}'
892psdir='${docdir}'
893libdir='${exec_prefix}/lib'
894localedir='${datarootdir}/locale'
895mandir='${datarootdir}/man'
896
897ac_prev=
898ac_dashdash=
899for ac_option
900do
901 # If the previous option needs an argument, assign it.
902 if test -n "$ac_prev"; then
903 eval $ac_prev=\$ac_option
904 ac_prev=
905 continue
906 fi
907
908 case $ac_option in
909 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
910 *=) ac_optarg= ;;
911 *) ac_optarg=yes ;;
912 esac
913
914 # Accept the important Cygnus configure options, so we can diagnose typos.
915
916 case $ac_dashdash$ac_option in
917 --)
918 ac_dashdash=yes ;;
919
920 -bindir | --bindir | --bindi | --bind | --bin | --bi)
921 ac_prev=bindir ;;
922 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
923 bindir=$ac_optarg ;;
924
925 -build | --build | --buil | --bui | --bu)
926 ac_prev=build_alias ;;
927 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
928 build_alias=$ac_optarg ;;
929
930 -cache-file | --cache-file | --cache-fil | --cache-fi \
931 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
932 ac_prev=cache_file ;;
933 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
934 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
935 cache_file=$ac_optarg ;;
936
937 --config-cache | -C)
938 cache_file=config.cache ;;
939
940 -datadir | --datadir | --datadi | --datad)
941 ac_prev=datadir ;;
942 -datadir=* | --datadir=* | --datadi=* | --datad=*)
943 datadir=$ac_optarg ;;
944
945 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
946 | --dataroo | --dataro | --datar)
947 ac_prev=datarootdir ;;
948 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
949 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
950 datarootdir=$ac_optarg ;;
951
952 -disable-* | --disable-*)
953 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956 as_fn_error $? "invalid feature name: $ac_useropt"
957 ac_useropt_orig=$ac_useropt
958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
960 *"
961"enable_$ac_useropt"
962"*) ;;
963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
964 ac_unrecognized_sep=', ';;
965 esac
966 eval enable_$ac_useropt=no ;;
967
968 -docdir | --docdir | --docdi | --doc | --do)
969 ac_prev=docdir ;;
970 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
971 docdir=$ac_optarg ;;
972
973 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
974 ac_prev=dvidir ;;
975 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
976 dvidir=$ac_optarg ;;
977
978 -enable-* | --enable-*)
979 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
980 # Reject names that are not valid shell variable names.
981 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
982 as_fn_error $? "invalid feature name: $ac_useropt"
983 ac_useropt_orig=$ac_useropt
984 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
985 case $ac_user_opts in
986 *"
987"enable_$ac_useropt"
988"*) ;;
989 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
990 ac_unrecognized_sep=', ';;
991 esac
992 eval enable_$ac_useropt=\$ac_optarg ;;
993
994 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
995 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
996 | --exec | --exe | --ex)
997 ac_prev=exec_prefix ;;
998 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
999 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1000 | --exec=* | --exe=* | --ex=*)
1001 exec_prefix=$ac_optarg ;;
1002
1003 -gas | --gas | --ga | --g)
1004 # Obsolete; use --with-gas.
1005 with_gas=yes ;;
1006
1007 -help | --help | --hel | --he | -h)
1008 ac_init_help=long ;;
1009 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1010 ac_init_help=recursive ;;
1011 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1012 ac_init_help=short ;;
1013
1014 -host | --host | --hos | --ho)
1015 ac_prev=host_alias ;;
1016 -host=* | --host=* | --hos=* | --ho=*)
1017 host_alias=$ac_optarg ;;
1018
1019 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1020 ac_prev=htmldir ;;
1021 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1022 | --ht=*)
1023 htmldir=$ac_optarg ;;
1024
1025 -includedir | --includedir | --includedi | --included | --include \
1026 | --includ | --inclu | --incl | --inc)
1027 ac_prev=includedir ;;
1028 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1029 | --includ=* | --inclu=* | --incl=* | --inc=*)
1030 includedir=$ac_optarg ;;
1031
1032 -infodir | --infodir | --infodi | --infod | --info | --inf)
1033 ac_prev=infodir ;;
1034 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1035 infodir=$ac_optarg ;;
1036
1037 -libdir | --libdir | --libdi | --libd)
1038 ac_prev=libdir ;;
1039 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1040 libdir=$ac_optarg ;;
1041
1042 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1043 | --libexe | --libex | --libe)
1044 ac_prev=libexecdir ;;
1045 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1046 | --libexe=* | --libex=* | --libe=*)
1047 libexecdir=$ac_optarg ;;
1048
1049 -localedir | --localedir | --localedi | --localed | --locale)
1050 ac_prev=localedir ;;
1051 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1052 localedir=$ac_optarg ;;
1053
1054 -localstatedir | --localstatedir | --localstatedi | --localstated \
1055 | --localstate | --localstat | --localsta | --localst | --locals)
1056 ac_prev=localstatedir ;;
1057 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1058 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1059 localstatedir=$ac_optarg ;;
1060
1061 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1062 ac_prev=mandir ;;
1063 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1064 mandir=$ac_optarg ;;
1065
1066 -nfp | --nfp | --nf)
1067 # Obsolete; use --without-fp.
1068 with_fp=no ;;
1069
1070 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1071 | --no-cr | --no-c | -n)
1072 no_create=yes ;;
1073
1074 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1075 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1076 no_recursion=yes ;;
1077
1078 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1079 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1080 | --oldin | --oldi | --old | --ol | --o)
1081 ac_prev=oldincludedir ;;
1082 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1083 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1084 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1085 oldincludedir=$ac_optarg ;;
1086
1087 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1088 ac_prev=prefix ;;
1089 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1090 prefix=$ac_optarg ;;
1091
1092 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1093 | --program-pre | --program-pr | --program-p)
1094 ac_prev=program_prefix ;;
1095 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1096 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1097 program_prefix=$ac_optarg ;;
1098
1099 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1100 | --program-suf | --program-su | --program-s)
1101 ac_prev=program_suffix ;;
1102 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1103 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1104 program_suffix=$ac_optarg ;;
1105
1106 -program-transform-name | --program-transform-name \
1107 | --program-transform-nam | --program-transform-na \
1108 | --program-transform-n | --program-transform- \
1109 | --program-transform | --program-transfor \
1110 | --program-transfo | --program-transf \
1111 | --program-trans | --program-tran \
1112 | --progr-tra | --program-tr | --program-t)
1113 ac_prev=program_transform_name ;;
1114 -program-transform-name=* | --program-transform-name=* \
1115 | --program-transform-nam=* | --program-transform-na=* \
1116 | --program-transform-n=* | --program-transform-=* \
1117 | --program-transform=* | --program-transfor=* \
1118 | --program-transfo=* | --program-transf=* \
1119 | --program-trans=* | --program-tran=* \
1120 | --progr-tra=* | --program-tr=* | --program-t=*)
1121 program_transform_name=$ac_optarg ;;
1122
1123 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1124 ac_prev=pdfdir ;;
1125 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1126 pdfdir=$ac_optarg ;;
1127
1128 -psdir | --psdir | --psdi | --psd | --ps)
1129 ac_prev=psdir ;;
1130 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1131 psdir=$ac_optarg ;;
1132
1133 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1134 | -silent | --silent | --silen | --sile | --sil)
1135 silent=yes ;;
1136
1137 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1138 ac_prev=sbindir ;;
1139 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1140 | --sbi=* | --sb=*)
1141 sbindir=$ac_optarg ;;
1142
1143 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1144 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1145 | --sharedst | --shareds | --shared | --share | --shar \
1146 | --sha | --sh)
1147 ac_prev=sharedstatedir ;;
1148 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1149 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1150 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1151 | --sha=* | --sh=*)
1152 sharedstatedir=$ac_optarg ;;
1153
1154 -site | --site | --sit)
1155 ac_prev=site ;;
1156 -site=* | --site=* | --sit=*)
1157 site=$ac_optarg ;;
1158
1159 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1160 ac_prev=srcdir ;;
1161 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1162 srcdir=$ac_optarg ;;
1163
1164 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1165 | --syscon | --sysco | --sysc | --sys | --sy)
1166 ac_prev=sysconfdir ;;
1167 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1168 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1169 sysconfdir=$ac_optarg ;;
1170
1171 -target | --target | --targe | --targ | --tar | --ta | --t)
1172 ac_prev=target_alias ;;
1173 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1174 target_alias=$ac_optarg ;;
1175
1176 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1177 verbose=yes ;;
1178
1179 -version | --version | --versio | --versi | --vers | -V)
1180 ac_init_version=: ;;
1181
1182 -with-* | --with-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error $? "invalid package name: $ac_useropt"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1190 *"
1191"with_$ac_useropt"
1192"*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=\$ac_optarg ;;
1197
1198 -without-* | --without-*)
1199 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 as_fn_error $? "invalid package name: $ac_useropt"
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1206 *"
1207"with_$ac_useropt"
1208"*) ;;
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1211 esac
1212 eval with_$ac_useropt=no ;;
1213
1214 --x)
1215 # Obsolete; use --with-x.
1216 with_x=yes ;;
1217
1218 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1219 | --x-incl | --x-inc | --x-in | --x-i)
1220 ac_prev=x_includes ;;
1221 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1222 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1223 x_includes=$ac_optarg ;;
1224
1225 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1226 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1227 ac_prev=x_libraries ;;
1228 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1229 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1230 x_libraries=$ac_optarg ;;
1231
1232 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1233Try \`$0 --help' for more information"
1234 ;;
1235
1236 *=*)
1237 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238 # Reject names that are not valid shell variable names.
1239 case $ac_envvar in #(
1240 '' | [0-9]* | *[!_$as_cr_alnum]* )
1241 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1242 esac
1243 eval $ac_envvar=\$ac_optarg
1244 export $ac_envvar ;;
1245
1246 *)
1247 # FIXME: should be removed in autoconf 3.0.
1248 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1249 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1251 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1252 ;;
1253
1254 esac
1255done
1256
1257if test -n "$ac_prev"; then
1258 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1259 as_fn_error $? "missing argument to $ac_option"
1260fi
1261
1262if test -n "$ac_unrecognized_opts"; then
1263 case $enable_option_checking in
1264 no) ;;
1265 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1266 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1267 esac
1268fi
1269
1270# Check all directory arguments for consistency.
1271for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272 datadir sysconfdir sharedstatedir localstatedir includedir \
1273 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274 libdir localedir mandir
1275do
1276 eval ac_val=\$$ac_var
1277 # Remove trailing slashes.
1278 case $ac_val in
1279 */ )
1280 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1281 eval $ac_var=\$ac_val;;
1282 esac
1283 # Be sure to have absolute directory names.
1284 case $ac_val in
1285 [\\/$]* | ?:[\\/]* ) continue;;
1286 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287 esac
1288 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1289done
1290
1291# There might be people who depend on the old broken behavior: `$host'
1292# used to hold the argument of --host etc.
1293# FIXME: To remove some day.
1294build=$build_alias
1295host=$host_alias
1296target=$target_alias
1297
1298# FIXME: To remove some day.
1299if test "x$host_alias" != x; then
1300 if test "x$build_alias" = x; then
1301 cross_compiling=maybe
1302 elif test "x$build_alias" != "x$host_alias"; then
1303 cross_compiling=yes
1304 fi
1305fi
1306
1307ac_tool_prefix=
1308test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309
1310test "$silent" = yes && exec 6>/dev/null
1311
1312
1313ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314ac_ls_di=`ls -di .` &&
1315ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316 as_fn_error $? "working directory cannot be determined"
1317test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318 as_fn_error $? "pwd does not report name of working directory"
1319
1320
1321# Find the source files, if location was not specified.
1322if test -z "$srcdir"; then
1323 ac_srcdir_defaulted=yes
1324 # Try the directory containing this script, then the parent directory.
1325 ac_confdir=`$as_dirname -- "$as_myself" ||
1326$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327 X"$as_myself" : 'X\(//\)[^/]' \| \
1328 X"$as_myself" : 'X\(//\)$' \| \
1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330$as_echo X"$as_myself" |
1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\/\)[^/].*/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\/\)$/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\).*/{
1344 s//\1/
1345 q
1346 }
1347 s/.*/./; q'`
1348 srcdir=$ac_confdir
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 srcdir=..
1351 fi
1352else
1353 ac_srcdir_defaulted=no
1354fi
1355if test ! -r "$srcdir/$ac_unique_file"; then
1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1358fi
1359ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360ac_abs_confdir=`(
1361 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1362 pwd)`
1363# When building in place, set srcdir=.
1364if test "$ac_abs_confdir" = "$ac_pwd"; then
1365 srcdir=.
1366fi
1367# Remove unnecessary trailing slashes from srcdir.
1368# Double slashes in file names in object file debugging info
1369# mess up M-x gdb in Emacs.
1370case $srcdir in
1371*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372esac
1373for ac_var in $ac_precious_vars; do
1374 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_env_${ac_var}_value=\$${ac_var}
1376 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378done
1379
1380#
1381# Report the --help message.
1382#
1383if test "$ac_init_help" = "long"; then
1384 # Omit some internal or obsolete options to make the list less imposing.
1385 # This message is too long to be a string in the A/UX 3.1 sh.
1386 cat <<_ACEOF
1387\`configure' configures ndn-cpp 0.5 to adapt to many kinds of systems.
1388
1389Usage: $0 [OPTION]... [VAR=VALUE]...
1390
1391To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392VAR=VALUE. See below for descriptions of some of the useful variables.
1393
1394Defaults for the options are specified in brackets.
1395
1396Configuration:
1397 -h, --help display this help and exit
1398 --help=short display options specific to this package
1399 --help=recursive display the short help of all the included packages
1400 -V, --version display version information and exit
1401 -q, --quiet, --silent do not print \`checking ...' messages
1402 --cache-file=FILE cache test results in FILE [disabled]
1403 -C, --config-cache alias for \`--cache-file=config.cache'
1404 -n, --no-create do not create output files
1405 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1406
1407Installation directories:
1408 --prefix=PREFIX install architecture-independent files in PREFIX
1409 [$ac_default_prefix]
1410 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1411 [PREFIX]
1412
1413By default, \`make install' will install all the files in
1414\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1415an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416for instance \`--prefix=\$HOME'.
1417
1418For better control, use the options below.
1419
1420Fine tuning of the installation directories:
1421 --bindir=DIR user executables [EPREFIX/bin]
1422 --sbindir=DIR system admin executables [EPREFIX/sbin]
1423 --libexecdir=DIR program executables [EPREFIX/libexec]
1424 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1425 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1426 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1427 --libdir=DIR object code libraries [EPREFIX/lib]
1428 --includedir=DIR C header files [PREFIX/include]
1429 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1430 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1431 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1432 --infodir=DIR info documentation [DATAROOTDIR/info]
1433 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1434 --mandir=DIR man documentation [DATAROOTDIR/man]
1435 --docdir=DIR documentation root [DATAROOTDIR/doc/ndn-cpp]
1436 --htmldir=DIR html documentation [DOCDIR]
1437 --dvidir=DIR dvi documentation [DOCDIR]
1438 --pdfdir=DIR pdf documentation [DOCDIR]
1439 --psdir=DIR ps documentation [DOCDIR]
1440_ACEOF
1441
1442 cat <<\_ACEOF
1443
1444Program names:
1445 --program-prefix=PREFIX prepend PREFIX to installed program names
1446 --program-suffix=SUFFIX append SUFFIX to installed program names
1447 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
Jeff Thompson4f031642013-08-05 11:03:16 -07001448
1449System types:
1450 --build=BUILD configure for building on BUILD [guessed]
1451 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Jeff Thompson39128c62013-06-19 14:08:51 -07001452_ACEOF
1453fi
1454
1455if test -n "$ac_init_help"; then
1456 case $ac_init_help in
1457 short | recursive ) echo "Configuration of ndn-cpp 0.5:";;
1458 esac
1459 cat <<\_ACEOF
1460
1461Optional Features:
1462 --disable-option-checking ignore unrecognized --enable/--with options
1463 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1464 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1465 --enable-silent-rules less verbose build output (undo: "make V=1")
1466 --disable-silent-rules verbose build output (undo: "make V=0")
Jeff Thompson47053ad2013-08-05 10:36:53 -07001467 --enable-maintainer-mode
1468 enable make rules and dependencies not useful (and
1469 sometimes confusing) to the casual installer
Jeff Thompson39128c62013-06-19 14:08:51 -07001470 --enable-dependency-tracking
1471 do not reject slow dependency extractors
1472 --disable-dependency-tracking
1473 speeds up one-time build
Jeff Thompson4f031642013-08-05 11:03:16 -07001474 --enable-shared[=PKGS] build shared libraries [default=yes]
1475 --enable-static[=PKGS] build static libraries [default=yes]
1476 --enable-fast-install[=PKGS]
1477 optimize for fast installation [default=yes]
1478 --disable-libtool-lock avoid locking (might break parallel builds)
Jeff Thompsonca45e552013-06-26 17:40:06 -07001479 --disable-doxygen-doc don't generate any doxygen documentation
1480 --enable-doxygen-dot generate graphics for doxygen documentation
1481 --enable-doxygen-man generate doxygen manual pages
1482 --enable-doxygen-rtf generate doxygen RTF documentation
1483 --enable-doxygen-xml generate doxygen XML documentation
1484 --enable-doxygen-chm generate doxygen compressed HTML help documentation
1485 --enable-doxygen-chi generate doxygen seperate compressed HTML help index
1486 file
1487 --disable-doxygen-html don't generate doxygen plain HTML documentation
1488 --enable-doxygen-ps generate doxygen PostScript documentation
1489 --enable-doxygen-pdf generate doxygen PDF documentation
Jeff Thompson39128c62013-06-19 14:08:51 -07001490
Jeff Thompson4f031642013-08-05 11:03:16 -07001491Optional Packages:
1492 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1493 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1494 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1495 both]
1496 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1497 --with-sysroot=DIR Search for dependent libraries within DIR
1498 (or the compiler's sysroot if not specified).
Jeff Thompsonb3768ae2013-08-08 21:22:45 -07001499 --with-openssl=DIR root of the OpenSSL directory
Jeff Thompson4f031642013-08-05 11:03:16 -07001500
Jeff Thompson39128c62013-06-19 14:08:51 -07001501Some influential environment variables:
Jeff Thompson4f031642013-08-05 11:03:16 -07001502 CC C compiler command
1503 CFLAGS C compiler flags
Jeff Thompson39128c62013-06-19 14:08:51 -07001504 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1505 nonstandard directory <lib dir>
1506 LIBS libraries to pass to the linker, e.g. -l<library>
1507 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1508 you have headers in a nonstandard directory <include dir>
Jeff Thompson4f031642013-08-05 11:03:16 -07001509 CPP C preprocessor
1510 CXX C++ compiler command
1511 CXXFLAGS C++ compiler flags
1512 CXXCPP C++ preprocessor
Jeff Thompsonca45e552013-06-26 17:40:06 -07001513 DOXYGEN_PAPER_SIZE
1514 a4wide (default), a4, letter, legal or executive
Jeff Thompson39128c62013-06-19 14:08:51 -07001515
1516Use these variables to override the choices made by `configure' or to help
1517it to find libraries and programs with nonstandard names/locations.
1518
1519Report bugs to the package provider.
1520ndn-cpp home page: <https://github.com/named-data/ndn-cpp>.
1521_ACEOF
1522ac_status=$?
1523fi
1524
1525if test "$ac_init_help" = "recursive"; then
1526 # If there are subdirs, report their specific --help.
1527 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1528 test -d "$ac_dir" ||
1529 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1530 continue
1531 ac_builddir=.
1532
1533case "$ac_dir" in
1534.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535*)
1536 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1537 # A ".." for each directory in $ac_dir_suffix.
1538 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1539 case $ac_top_builddir_sub in
1540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542 esac ;;
1543esac
1544ac_abs_top_builddir=$ac_pwd
1545ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546# for backward compatibility:
1547ac_top_builddir=$ac_top_build_prefix
1548
1549case $srcdir in
1550 .) # We are building in place.
1551 ac_srcdir=.
1552 ac_top_srcdir=$ac_top_builddir_sub
1553 ac_abs_top_srcdir=$ac_pwd ;;
1554 [\\/]* | ?:[\\/]* ) # Absolute name.
1555 ac_srcdir=$srcdir$ac_dir_suffix;
1556 ac_top_srcdir=$srcdir
1557 ac_abs_top_srcdir=$srcdir ;;
1558 *) # Relative name.
1559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560 ac_top_srcdir=$ac_top_build_prefix$srcdir
1561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562esac
1563ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564
1565 cd "$ac_dir" || { ac_status=$?; continue; }
1566 # Check for guested configure.
1567 if test -f "$ac_srcdir/configure.gnu"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570 elif test -f "$ac_srcdir/configure"; then
1571 echo &&
1572 $SHELL "$ac_srcdir/configure" --help=recursive
1573 else
1574 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575 fi || ac_status=$?
1576 cd "$ac_pwd" || { ac_status=$?; break; }
1577 done
1578fi
1579
1580test -n "$ac_init_help" && exit $ac_status
1581if $ac_init_version; then
1582 cat <<\_ACEOF
1583ndn-cpp configure 0.5
1584generated by GNU Autoconf 2.69
1585
1586Copyright (C) 2012 Free Software Foundation, Inc.
1587This configure script is free software; the Free Software Foundation
1588gives unlimited permission to copy, distribute and modify it.
1589_ACEOF
1590 exit
1591fi
1592
1593## ------------------------ ##
1594## Autoconf initialization. ##
1595## ------------------------ ##
1596
Jeff Thompson4f031642013-08-05 11:03:16 -07001597# ac_fn_c_try_compile LINENO
1598# --------------------------
1599# Try to compile conftest.$ac_ext, and return whether this succeeded.
1600ac_fn_c_try_compile ()
1601{
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 rm -f conftest.$ac_objext
1604 if { { ac_try="$ac_compile"
1605case "(($ac_try" in
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607 *) ac_try_echo=$ac_try;;
1608esac
1609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610$as_echo "$ac_try_echo"; } >&5
1611 (eval "$ac_compile") 2>conftest.err
1612 ac_status=$?
1613 if test -s conftest.err; then
1614 grep -v '^ *+' conftest.err >conftest.er1
1615 cat conftest.er1 >&5
1616 mv -f conftest.er1 conftest.err
1617 fi
1618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619 test $ac_status = 0; } && {
1620 test -z "$ac_c_werror_flag" ||
1621 test ! -s conftest.err
1622 } && test -s conftest.$ac_objext; then :
1623 ac_retval=0
1624else
1625 $as_echo "$as_me: failed program was:" >&5
1626sed 's/^/| /' conftest.$ac_ext >&5
1627
1628 ac_retval=1
1629fi
1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631 as_fn_set_status $ac_retval
1632
1633} # ac_fn_c_try_compile
1634
1635# ac_fn_c_try_link LINENO
1636# -----------------------
1637# Try to link conftest.$ac_ext, and return whether this succeeded.
1638ac_fn_c_try_link ()
1639{
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 rm -f conftest.$ac_objext conftest$ac_exeext
1642 if { { ac_try="$ac_link"
1643case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646esac
1647eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648$as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_link") 2>conftest.err
1650 ac_status=$?
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1655 fi
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } && {
1658 test -z "$ac_c_werror_flag" ||
1659 test ! -s conftest.err
1660 } && test -s conftest$ac_exeext && {
1661 test "$cross_compiling" = yes ||
1662 test -x conftest$ac_exeext
1663 }; then :
1664 ac_retval=0
1665else
1666 $as_echo "$as_me: failed program was:" >&5
1667sed 's/^/| /' conftest.$ac_ext >&5
1668
1669 ac_retval=1
1670fi
1671 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1672 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1673 # interfere with the next link command; also delete a directory that is
1674 # left behind by Apple's compiler. We do this before executing the actions.
1675 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677 as_fn_set_status $ac_retval
1678
1679} # ac_fn_c_try_link
1680
1681# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1682# -------------------------------------------------------
1683# Tests whether HEADER exists and can be compiled using the include files in
1684# INCLUDES, setting the cache variable VAR accordingly.
1685ac_fn_c_check_header_compile ()
1686{
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1689$as_echo_n "checking for $2... " >&6; }
1690if eval \${$3+:} false; then :
1691 $as_echo_n "(cached) " >&6
1692else
1693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1694/* end confdefs.h. */
1695$4
1696#include <$2>
1697_ACEOF
1698if ac_fn_c_try_compile "$LINENO"; then :
1699 eval "$3=yes"
1700else
1701 eval "$3=no"
1702fi
1703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1704fi
1705eval ac_res=\$$3
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1707$as_echo "$ac_res" >&6; }
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709
1710} # ac_fn_c_check_header_compile
1711
1712# ac_fn_c_try_cpp LINENO
1713# ----------------------
1714# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1715ac_fn_c_try_cpp ()
1716{
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 if { { ac_try="$ac_cpp conftest.$ac_ext"
1719case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722esac
1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724$as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1726 ac_status=$?
1727 if test -s conftest.err; then
1728 grep -v '^ *+' conftest.err >conftest.er1
1729 cat conftest.er1 >&5
1730 mv -f conftest.er1 conftest.err
1731 fi
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } > conftest.i && {
1734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1735 test ! -s conftest.err
1736 }; then :
1737 ac_retval=0
1738else
1739 $as_echo "$as_me: failed program was:" >&5
1740sed 's/^/| /' conftest.$ac_ext >&5
1741
1742 ac_retval=1
1743fi
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 as_fn_set_status $ac_retval
1746
1747} # ac_fn_c_try_cpp
1748
1749# ac_fn_c_try_run LINENO
1750# ----------------------
1751# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1752# that executables *can* be run.
1753ac_fn_c_try_run ()
1754{
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 if { { ac_try="$ac_link"
1757case "(($ac_try" in
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1760esac
1761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762$as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_link") 2>&5
1764 ac_status=$?
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1767 { { case "(($ac_try" in
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1770esac
1771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772$as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_try") 2>&5
1774 ac_status=$?
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; }; }; then :
1777 ac_retval=0
1778else
1779 $as_echo "$as_me: program exited with status $ac_status" >&5
1780 $as_echo "$as_me: failed program was:" >&5
1781sed 's/^/| /' conftest.$ac_ext >&5
1782
1783 ac_retval=$ac_status
1784fi
1785 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 as_fn_set_status $ac_retval
1788
1789} # ac_fn_c_try_run
1790
1791# ac_fn_c_check_func LINENO FUNC VAR
1792# ----------------------------------
1793# Tests whether FUNC exists, setting the cache variable VAR accordingly
1794ac_fn_c_check_func ()
1795{
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798$as_echo_n "checking for $2... " >&6; }
1799if eval \${$3+:} false; then :
1800 $as_echo_n "(cached) " >&6
1801else
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803/* end confdefs.h. */
1804/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1806#define $2 innocuous_$2
1807
1808/* System header to define __stub macros and hopefully few prototypes,
1809 which can conflict with char $2 (); below.
1810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1811 <limits.h> exists even on freestanding compilers. */
1812
1813#ifdef __STDC__
1814# include <limits.h>
1815#else
1816# include <assert.h>
1817#endif
1818
1819#undef $2
1820
1821/* Override any GCC internal prototype to avoid an error.
1822 Use char because int might match the return type of a GCC
1823 builtin and then its argument prototype would still apply. */
1824#ifdef __cplusplus
1825extern "C"
1826#endif
1827char $2 ();
1828/* The GNU C library defines this for functions which it implements
1829 to always fail with ENOSYS. Some functions are actually named
1830 something starting with __ and the normal name is an alias. */
1831#if defined __stub_$2 || defined __stub___$2
1832choke me
1833#endif
1834
1835int
1836main ()
1837{
1838return $2 ();
1839 ;
1840 return 0;
1841}
1842_ACEOF
1843if ac_fn_c_try_link "$LINENO"; then :
1844 eval "$3=yes"
1845else
1846 eval "$3=no"
1847fi
1848rm -f core conftest.err conftest.$ac_objext \
1849 conftest$ac_exeext conftest.$ac_ext
1850fi
1851eval ac_res=\$$3
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853$as_echo "$ac_res" >&6; }
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855
1856} # ac_fn_c_check_func
1857
Jeff Thompson39128c62013-06-19 14:08:51 -07001858# ac_fn_cxx_try_compile LINENO
1859# ----------------------------
1860# Try to compile conftest.$ac_ext, and return whether this succeeded.
1861ac_fn_cxx_try_compile ()
1862{
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 rm -f conftest.$ac_objext
1865 if { { ac_try="$ac_compile"
1866case "(($ac_try" in
1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868 *) ac_try_echo=$ac_try;;
1869esac
1870eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871$as_echo "$ac_try_echo"; } >&5
1872 (eval "$ac_compile") 2>conftest.err
1873 ac_status=$?
1874 if test -s conftest.err; then
1875 grep -v '^ *+' conftest.err >conftest.er1
1876 cat conftest.er1 >&5
1877 mv -f conftest.er1 conftest.err
1878 fi
1879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880 test $ac_status = 0; } && {
1881 test -z "$ac_cxx_werror_flag" ||
1882 test ! -s conftest.err
1883 } && test -s conftest.$ac_objext; then :
1884 ac_retval=0
1885else
1886 $as_echo "$as_me: failed program was:" >&5
1887sed 's/^/| /' conftest.$ac_ext >&5
1888
1889 ac_retval=1
1890fi
1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892 as_fn_set_status $ac_retval
1893
1894} # ac_fn_cxx_try_compile
Jeff Thompson36174062013-06-21 16:03:44 -07001895
Jeff Thompson4f031642013-08-05 11:03:16 -07001896# ac_fn_cxx_try_cpp LINENO
1897# ------------------------
1898# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1899ac_fn_cxx_try_cpp ()
Jeff Thompson36174062013-06-21 16:03:44 -07001900{
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Jeff Thompson4f031642013-08-05 11:03:16 -07001902 if { { ac_try="$ac_cpp conftest.$ac_ext"
Jeff Thompson36174062013-06-21 16:03:44 -07001903case "(($ac_try" in
1904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905 *) ac_try_echo=$ac_try;;
1906esac
1907eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908$as_echo "$ac_try_echo"; } >&5
Jeff Thompson4f031642013-08-05 11:03:16 -07001909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1910 ac_status=$?
1911 if test -s conftest.err; then
1912 grep -v '^ *+' conftest.err >conftest.er1
1913 cat conftest.er1 >&5
1914 mv -f conftest.er1 conftest.err
1915 fi
1916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1917 test $ac_status = 0; } > conftest.i && {
1918 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1919 test ! -s conftest.err
1920 }; then :
1921 ac_retval=0
1922else
1923 $as_echo "$as_me: failed program was:" >&5
1924sed 's/^/| /' conftest.$ac_ext >&5
1925
1926 ac_retval=1
1927fi
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 as_fn_set_status $ac_retval
1930
1931} # ac_fn_cxx_try_cpp
1932
1933# ac_fn_cxx_try_link LINENO
1934# -------------------------
1935# Try to link conftest.$ac_ext, and return whether this succeeded.
1936ac_fn_cxx_try_link ()
1937{
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 rm -f conftest.$ac_objext conftest$ac_exeext
1940 if { { ac_try="$ac_link"
1941case "(($ac_try" in
1942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943 *) ac_try_echo=$ac_try;;
1944esac
1945eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946$as_echo "$ac_try_echo"; } >&5
1947 (eval "$ac_link") 2>conftest.err
Jeff Thompson36174062013-06-21 16:03:44 -07001948 ac_status=$?
1949 if test -s conftest.err; then
1950 grep -v '^ *+' conftest.err >conftest.er1
1951 cat conftest.er1 >&5
1952 mv -f conftest.er1 conftest.err
1953 fi
1954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955 test $ac_status = 0; } && {
Jeff Thompson4f031642013-08-05 11:03:16 -07001956 test -z "$ac_cxx_werror_flag" ||
Jeff Thompson36174062013-06-21 16:03:44 -07001957 test ! -s conftest.err
Jeff Thompson4f031642013-08-05 11:03:16 -07001958 } && test -s conftest$ac_exeext && {
1959 test "$cross_compiling" = yes ||
1960 test -x conftest$ac_exeext
1961 }; then :
Jeff Thompson36174062013-06-21 16:03:44 -07001962 ac_retval=0
1963else
1964 $as_echo "$as_me: failed program was:" >&5
1965sed 's/^/| /' conftest.$ac_ext >&5
1966
1967 ac_retval=1
1968fi
Jeff Thompson4f031642013-08-05 11:03:16 -07001969 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1970 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1971 # interfere with the next link command; also delete a directory that is
1972 # left behind by Apple's compiler. We do this before executing the actions.
1973 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Jeff Thompson36174062013-06-21 16:03:44 -07001974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975 as_fn_set_status $ac_retval
1976
Jeff Thompson4f031642013-08-05 11:03:16 -07001977} # ac_fn_cxx_try_link
Jeff Thompson39128c62013-06-19 14:08:51 -07001978cat >config.log <<_ACEOF
1979This file contains any messages produced by compilers while
1980running configure, to aid debugging if configure makes a mistake.
1981
1982It was created by ndn-cpp $as_me 0.5, which was
1983generated by GNU Autoconf 2.69. Invocation command line was
1984
1985 $ $0 $@
1986
1987_ACEOF
1988exec 5>>config.log
1989{
1990cat <<_ASUNAME
1991## --------- ##
1992## Platform. ##
1993## --------- ##
1994
1995hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1996uname -m = `(uname -m) 2>/dev/null || echo unknown`
1997uname -r = `(uname -r) 2>/dev/null || echo unknown`
1998uname -s = `(uname -s) 2>/dev/null || echo unknown`
1999uname -v = `(uname -v) 2>/dev/null || echo unknown`
2000
2001/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2002/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2003
2004/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2005/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2006/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2007/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2008/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2009/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2010/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2011
2012_ASUNAME
2013
2014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015for as_dir in $PATH
2016do
2017 IFS=$as_save_IFS
2018 test -z "$as_dir" && as_dir=.
2019 $as_echo "PATH: $as_dir"
2020 done
2021IFS=$as_save_IFS
2022
2023} >&5
2024
2025cat >&5 <<_ACEOF
2026
2027
2028## ----------- ##
2029## Core tests. ##
2030## ----------- ##
2031
2032_ACEOF
2033
2034
2035# Keep a trace of the command line.
2036# Strip out --no-create and --no-recursion so they do not pile up.
2037# Strip out --silent because we don't want to record it for future runs.
2038# Also quote any args containing shell meta-characters.
2039# Make two passes to allow for proper duplicate-argument suppression.
2040ac_configure_args=
2041ac_configure_args0=
2042ac_configure_args1=
2043ac_must_keep_next=false
2044for ac_pass in 1 2
2045do
2046 for ac_arg
2047 do
2048 case $ac_arg in
2049 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2051 | -silent | --silent | --silen | --sile | --sil)
2052 continue ;;
2053 *\'*)
2054 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2055 esac
2056 case $ac_pass in
2057 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2058 2)
2059 as_fn_append ac_configure_args1 " '$ac_arg'"
2060 if test $ac_must_keep_next = true; then
2061 ac_must_keep_next=false # Got value, back to normal.
2062 else
2063 case $ac_arg in
2064 *=* | --config-cache | -C | -disable-* | --disable-* \
2065 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2066 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2067 | -with-* | --with-* | -without-* | --without-* | --x)
2068 case "$ac_configure_args0 " in
2069 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2070 esac
2071 ;;
2072 -* ) ac_must_keep_next=true ;;
2073 esac
2074 fi
2075 as_fn_append ac_configure_args " '$ac_arg'"
2076 ;;
2077 esac
2078 done
2079done
2080{ ac_configure_args0=; unset ac_configure_args0;}
2081{ ac_configure_args1=; unset ac_configure_args1;}
2082
2083# When interrupted or exit'd, cleanup temporary files, and complete
2084# config.log. We remove comments because anyway the quotes in there
2085# would cause problems or look ugly.
2086# WARNING: Use '\'' to represent an apostrophe within the trap.
2087# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2088trap 'exit_status=$?
2089 # Save into config.log some information that might help in debugging.
2090 {
2091 echo
2092
2093 $as_echo "## ---------------- ##
2094## Cache variables. ##
2095## ---------------- ##"
2096 echo
2097 # The following way of writing the cache mishandles newlines in values,
2098(
2099 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2100 eval ac_val=\$$ac_var
2101 case $ac_val in #(
2102 *${as_nl}*)
2103 case $ac_var in #(
2104 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2105$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2106 esac
2107 case $ac_var in #(
2108 _ | IFS | as_nl) ;; #(
2109 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2110 *) { eval $ac_var=; unset $ac_var;} ;;
2111 esac ;;
2112 esac
2113 done
2114 (set) 2>&1 |
2115 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2116 *${as_nl}ac_space=\ *)
2117 sed -n \
2118 "s/'\''/'\''\\\\'\'''\''/g;
2119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2120 ;; #(
2121 *)
2122 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2123 ;;
2124 esac |
2125 sort
2126)
2127 echo
2128
2129 $as_echo "## ----------------- ##
2130## Output variables. ##
2131## ----------------- ##"
2132 echo
2133 for ac_var in $ac_subst_vars
2134 do
2135 eval ac_val=\$$ac_var
2136 case $ac_val in
2137 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2138 esac
2139 $as_echo "$ac_var='\''$ac_val'\''"
2140 done | sort
2141 echo
2142
2143 if test -n "$ac_subst_files"; then
2144 $as_echo "## ------------------- ##
2145## File substitutions. ##
2146## ------------------- ##"
2147 echo
2148 for ac_var in $ac_subst_files
2149 do
2150 eval ac_val=\$$ac_var
2151 case $ac_val in
2152 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2153 esac
2154 $as_echo "$ac_var='\''$ac_val'\''"
2155 done | sort
2156 echo
2157 fi
2158
2159 if test -s confdefs.h; then
2160 $as_echo "## ----------- ##
2161## confdefs.h. ##
2162## ----------- ##"
2163 echo
2164 cat confdefs.h
2165 echo
2166 fi
2167 test "$ac_signal" != 0 &&
2168 $as_echo "$as_me: caught signal $ac_signal"
2169 $as_echo "$as_me: exit $exit_status"
2170 } >&5
2171 rm -f core *.core core.conftest.* &&
2172 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2173 exit $exit_status
2174' 0
2175for ac_signal in 1 2 13 15; do
2176 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2177done
2178ac_signal=0
2179
2180# confdefs.h avoids OS command line length limits that DEFS can exceed.
2181rm -f -r conftest* confdefs.h
2182
2183$as_echo "/* confdefs.h */" > confdefs.h
2184
2185# Predefined preprocessor variables.
2186
2187cat >>confdefs.h <<_ACEOF
2188#define PACKAGE_NAME "$PACKAGE_NAME"
2189_ACEOF
2190
2191cat >>confdefs.h <<_ACEOF
2192#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2193_ACEOF
2194
2195cat >>confdefs.h <<_ACEOF
2196#define PACKAGE_VERSION "$PACKAGE_VERSION"
2197_ACEOF
2198
2199cat >>confdefs.h <<_ACEOF
2200#define PACKAGE_STRING "$PACKAGE_STRING"
2201_ACEOF
2202
2203cat >>confdefs.h <<_ACEOF
2204#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2205_ACEOF
2206
2207cat >>confdefs.h <<_ACEOF
2208#define PACKAGE_URL "$PACKAGE_URL"
2209_ACEOF
2210
2211
2212# Let the site file select an alternate cache file if it wants to.
2213# Prefer an explicitly selected file to automatically selected ones.
2214ac_site_file1=NONE
2215ac_site_file2=NONE
2216if test -n "$CONFIG_SITE"; then
2217 # We do not want a PATH search for config.site.
2218 case $CONFIG_SITE in #((
2219 -*) ac_site_file1=./$CONFIG_SITE;;
2220 */*) ac_site_file1=$CONFIG_SITE;;
2221 *) ac_site_file1=./$CONFIG_SITE;;
2222 esac
2223elif test "x$prefix" != xNONE; then
2224 ac_site_file1=$prefix/share/config.site
2225 ac_site_file2=$prefix/etc/config.site
2226else
2227 ac_site_file1=$ac_default_prefix/share/config.site
2228 ac_site_file2=$ac_default_prefix/etc/config.site
2229fi
2230for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2231do
2232 test "x$ac_site_file" = xNONE && continue
2233 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2235$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2236 sed 's/^/| /' "$ac_site_file" >&5
2237 . "$ac_site_file" \
2238 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2239$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2240as_fn_error $? "failed to load site script $ac_site_file
2241See \`config.log' for more details" "$LINENO" 5; }
2242 fi
2243done
2244
2245if test -r "$cache_file"; then
2246 # Some versions of bash will fail to source /dev/null (special files
2247 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2248 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2250$as_echo "$as_me: loading cache $cache_file" >&6;}
2251 case $cache_file in
2252 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2253 *) . "./$cache_file";;
2254 esac
2255 fi
2256else
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2258$as_echo "$as_me: creating cache $cache_file" >&6;}
2259 >$cache_file
2260fi
2261
2262# Check that the precious variables saved in the cache have kept the same
2263# value.
2264ac_cache_corrupted=false
2265for ac_var in $ac_precious_vars; do
2266 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2267 eval ac_new_set=\$ac_env_${ac_var}_set
2268 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2269 eval ac_new_val=\$ac_env_${ac_var}_value
2270 case $ac_old_set,$ac_new_set in
2271 set,)
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2273$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2274 ac_cache_corrupted=: ;;
2275 ,set)
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2277$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2278 ac_cache_corrupted=: ;;
2279 ,);;
2280 *)
2281 if test "x$ac_old_val" != "x$ac_new_val"; then
2282 # differences in whitespace do not lead to failure.
2283 ac_old_val_w=`echo x $ac_old_val`
2284 ac_new_val_w=`echo x $ac_new_val`
2285 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2287$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2288 ac_cache_corrupted=:
2289 else
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2291$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2292 eval $ac_var=\$ac_old_val
2293 fi
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2295$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2297$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2298 fi;;
2299 esac
2300 # Pass precious variables to config.status.
2301 if test "$ac_new_set" = set; then
2302 case $ac_new_val in
2303 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2304 *) ac_arg=$ac_var=$ac_new_val ;;
2305 esac
2306 case " $ac_configure_args " in
2307 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2308 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2309 esac
2310 fi
2311done
2312if $ac_cache_corrupted; then
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2314$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2316$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2317 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2318fi
2319## -------------------- ##
2320## Main body of script. ##
2321## -------------------- ##
2322
2323ac_ext=c
2324ac_cpp='$CPP $CPPFLAGS'
2325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2327ac_compiler_gnu=$ac_cv_c_compiler_gnu
2328
2329
2330
2331am__api_version='1.13'
2332
2333ac_aux_dir=
2334for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2335 if test -f "$ac_dir/install-sh"; then
2336 ac_aux_dir=$ac_dir
2337 ac_install_sh="$ac_aux_dir/install-sh -c"
2338 break
2339 elif test -f "$ac_dir/install.sh"; then
2340 ac_aux_dir=$ac_dir
2341 ac_install_sh="$ac_aux_dir/install.sh -c"
2342 break
2343 elif test -f "$ac_dir/shtool"; then
2344 ac_aux_dir=$ac_dir
2345 ac_install_sh="$ac_aux_dir/shtool install -c"
2346 break
2347 fi
2348done
2349if test -z "$ac_aux_dir"; then
2350 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2351fi
2352
2353# These three variables are undocumented and unsupported,
2354# and are intended to be withdrawn in a future Autoconf release.
2355# They can cause serious problems if a builder's source tree is in a directory
2356# whose full name contains unusual characters.
2357ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2358ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2359ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2360
2361
2362# Find a good install program. We prefer a C program (faster),
2363# so one script is as good as another. But avoid the broken or
2364# incompatible versions:
2365# SysV /etc/install, /usr/sbin/install
2366# SunOS /usr/etc/install
2367# IRIX /sbin/install
2368# AIX /bin/install
2369# AmigaOS /C/install, which installs bootblocks on floppy discs
2370# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2371# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2372# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2373# OS/2's system install, which has a completely different semantic
2374# ./install, which can be erroneously created by make from ./install.sh.
2375# Reject install programs that cannot install multiple files.
2376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2377$as_echo_n "checking for a BSD-compatible install... " >&6; }
2378if test -z "$INSTALL"; then
2379if ${ac_cv_path_install+:} false; then :
2380 $as_echo_n "(cached) " >&6
2381else
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383for as_dir in $PATH
2384do
2385 IFS=$as_save_IFS
2386 test -z "$as_dir" && as_dir=.
2387 # Account for people who put trailing slashes in PATH elements.
2388case $as_dir/ in #((
2389 ./ | .// | /[cC]/* | \
2390 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2391 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2392 /usr/ucb/* ) ;;
2393 *)
2394 # OSF1 and SCO ODT 3.0 have their own names for install.
2395 # Don't use installbsd from OSF since it installs stuff as root
2396 # by default.
2397 for ac_prog in ginstall scoinst install; do
2398 for ac_exec_ext in '' $ac_executable_extensions; do
2399 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2400 if test $ac_prog = install &&
2401 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2402 # AIX install. It has an incompatible calling convention.
2403 :
2404 elif test $ac_prog = install &&
2405 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2406 # program-specific install script used by HP pwplus--don't use.
2407 :
2408 else
2409 rm -rf conftest.one conftest.two conftest.dir
2410 echo one > conftest.one
2411 echo two > conftest.two
2412 mkdir conftest.dir
2413 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2414 test -s conftest.one && test -s conftest.two &&
2415 test -s conftest.dir/conftest.one &&
2416 test -s conftest.dir/conftest.two
2417 then
2418 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2419 break 3
2420 fi
2421 fi
2422 fi
2423 done
2424 done
2425 ;;
2426esac
2427
2428 done
2429IFS=$as_save_IFS
2430
2431rm -rf conftest.one conftest.two conftest.dir
2432
2433fi
2434 if test "${ac_cv_path_install+set}" = set; then
2435 INSTALL=$ac_cv_path_install
2436 else
2437 # As a last resort, use the slow shell script. Don't cache a
2438 # value for INSTALL within a source directory, because that will
2439 # break other packages using the cache if that directory is
2440 # removed, or if the value is a relative name.
2441 INSTALL=$ac_install_sh
2442 fi
2443fi
2444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2445$as_echo "$INSTALL" >&6; }
2446
2447# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2448# It thinks the first close brace ends the variable substitution.
2449test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2450
2451test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2452
2453test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2454
2455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2456$as_echo_n "checking whether build environment is sane... " >&6; }
2457# Reject unsafe characters in $srcdir or the absolute working directory
2458# name. Accept space and tab only in the latter.
2459am_lf='
2460'
2461case `pwd` in
2462 *[\\\"\#\$\&\'\`$am_lf]*)
2463 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2464esac
2465case $srcdir in
2466 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2467 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2468esac
2469
2470# Do 'set' in a subshell so we don't clobber the current shell's
2471# arguments. Must try -L first in case configure is actually a
2472# symlink; some systems play weird games with the mod time of symlinks
2473# (eg FreeBSD returns the mod time of the symlink's containing
2474# directory).
2475if (
2476 am_has_slept=no
2477 for am_try in 1 2; do
2478 echo "timestamp, slept: $am_has_slept" > conftest.file
2479 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2480 if test "$*" = "X"; then
2481 # -L didn't work.
2482 set X `ls -t "$srcdir/configure" conftest.file`
2483 fi
2484 if test "$*" != "X $srcdir/configure conftest.file" \
2485 && test "$*" != "X conftest.file $srcdir/configure"; then
2486
2487 # If neither matched, then we have a broken ls. This can happen
2488 # if, for instance, CONFIG_SHELL is bash and it inherits a
2489 # broken ls alias from the environment. This has actually
2490 # happened. Such a system could not be considered "sane".
2491 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2492 alias in your environment" "$LINENO" 5
2493 fi
2494 if test "$2" = conftest.file || test $am_try -eq 2; then
2495 break
2496 fi
2497 # Just in case.
2498 sleep 1
2499 am_has_slept=yes
2500 done
2501 test "$2" = conftest.file
2502 )
2503then
2504 # Ok.
2505 :
2506else
2507 as_fn_error $? "newly created file is older than distributed files!
2508Check your system clock" "$LINENO" 5
2509fi
2510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2511$as_echo "yes" >&6; }
2512# If we didn't sleep, we still need to ensure time stamps of config.status and
2513# generated files are strictly newer.
2514am_sleep_pid=
2515if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2516 ( sleep 1 ) &
2517 am_sleep_pid=$!
2518fi
2519
2520rm -f conftest.file
2521
2522test "$program_prefix" != NONE &&
2523 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2524# Use a double $ so make ignores it.
2525test "$program_suffix" != NONE &&
2526 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2527# Double any \ or $.
2528# By default was `s,x,x', remove it if useless.
2529ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2530program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2531
2532# expand $ac_aux_dir to an absolute path
2533am_aux_dir=`cd $ac_aux_dir && pwd`
2534
2535if test x"${MISSING+set}" != xset; then
2536 case $am_aux_dir in
2537 *\ * | *\ *)
2538 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2539 *)
2540 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2541 esac
2542fi
2543# Use eval to expand $SHELL
2544if eval "$MISSING --is-lightweight"; then
2545 am_missing_run="$MISSING "
2546else
2547 am_missing_run=
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2549$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2550fi
2551
2552if test x"${install_sh}" != xset; then
2553 case $am_aux_dir in
2554 *\ * | *\ *)
2555 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2556 *)
2557 install_sh="\${SHELL} $am_aux_dir/install-sh"
2558 esac
2559fi
2560
2561# Installed binaries are usually stripped using 'strip' when the user
2562# run "make install-strip". However 'strip' might not be the right
2563# tool to use in cross-compilation environments, therefore Automake
2564# will honor the 'STRIP' environment variable to overrule this program.
2565if test "$cross_compiling" != no; then
2566 if test -n "$ac_tool_prefix"; then
2567 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2568set dummy ${ac_tool_prefix}strip; ac_word=$2
2569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2570$as_echo_n "checking for $ac_word... " >&6; }
2571if ${ac_cv_prog_STRIP+:} false; then :
2572 $as_echo_n "(cached) " >&6
2573else
2574 if test -n "$STRIP"; then
2575 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2576else
2577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578for as_dir in $PATH
2579do
2580 IFS=$as_save_IFS
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2584 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 break 2
2587 fi
2588done
2589 done
2590IFS=$as_save_IFS
2591
2592fi
2593fi
2594STRIP=$ac_cv_prog_STRIP
2595if test -n "$STRIP"; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2597$as_echo "$STRIP" >&6; }
2598else
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2600$as_echo "no" >&6; }
2601fi
2602
2603
2604fi
2605if test -z "$ac_cv_prog_STRIP"; then
2606 ac_ct_STRIP=$STRIP
2607 # Extract the first word of "strip", so it can be a program name with args.
2608set dummy strip; ac_word=$2
2609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2610$as_echo_n "checking for $ac_word... " >&6; }
2611if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2612 $as_echo_n "(cached) " >&6
2613else
2614 if test -n "$ac_ct_STRIP"; then
2615 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2616else
2617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618for as_dir in $PATH
2619do
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2624 ac_cv_prog_ac_ct_STRIP="strip"
2625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 break 2
2627 fi
2628done
2629 done
2630IFS=$as_save_IFS
2631
2632fi
2633fi
2634ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2635if test -n "$ac_ct_STRIP"; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2637$as_echo "$ac_ct_STRIP" >&6; }
2638else
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2640$as_echo "no" >&6; }
2641fi
2642
2643 if test "x$ac_ct_STRIP" = x; then
2644 STRIP=":"
2645 else
2646 case $cross_compiling:$ac_tool_warned in
2647yes:)
2648{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2649$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2650ac_tool_warned=yes ;;
2651esac
2652 STRIP=$ac_ct_STRIP
2653 fi
2654else
2655 STRIP="$ac_cv_prog_STRIP"
2656fi
2657
2658fi
2659INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2660
2661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2662$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2663if test -z "$MKDIR_P"; then
2664 if ${ac_cv_path_mkdir+:} false; then :
2665 $as_echo_n "(cached) " >&6
2666else
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2669do
2670 IFS=$as_save_IFS
2671 test -z "$as_dir" && as_dir=.
2672 for ac_prog in mkdir gmkdir; do
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2675 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2676 'mkdir (GNU coreutils) '* | \
2677 'mkdir (coreutils) '* | \
2678 'mkdir (fileutils) '4.1*)
2679 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2680 break 3;;
2681 esac
2682 done
2683 done
2684 done
2685IFS=$as_save_IFS
2686
2687fi
2688
2689 test -d ./--version && rmdir ./--version
2690 if test "${ac_cv_path_mkdir+set}" = set; then
2691 MKDIR_P="$ac_cv_path_mkdir -p"
2692 else
2693 # As a last resort, use the slow shell script. Don't cache a
2694 # value for MKDIR_P within a source directory, because that will
2695 # break other packages using the cache if that directory is
2696 # removed, or if the value is a relative name.
2697 MKDIR_P="$ac_install_sh -d"
2698 fi
2699fi
2700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2701$as_echo "$MKDIR_P" >&6; }
2702
2703for ac_prog in gawk mawk nawk awk
2704do
2705 # Extract the first word of "$ac_prog", so it can be a program name with args.
2706set dummy $ac_prog; ac_word=$2
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708$as_echo_n "checking for $ac_word... " >&6; }
2709if ${ac_cv_prog_AWK+:} false; then :
2710 $as_echo_n "(cached) " >&6
2711else
2712 if test -n "$AWK"; then
2713 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2714else
2715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716for as_dir in $PATH
2717do
2718 IFS=$as_save_IFS
2719 test -z "$as_dir" && as_dir=.
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2722 ac_cv_prog_AWK="$ac_prog"
2723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 break 2
2725 fi
2726done
2727 done
2728IFS=$as_save_IFS
2729
2730fi
2731fi
2732AWK=$ac_cv_prog_AWK
2733if test -n "$AWK"; then
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2735$as_echo "$AWK" >&6; }
2736else
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738$as_echo "no" >&6; }
2739fi
2740
2741
2742 test -n "$AWK" && break
2743done
2744
2745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2746$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2747set x ${MAKE-make}
2748ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2749if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2750 $as_echo_n "(cached) " >&6
2751else
2752 cat >conftest.make <<\_ACEOF
2753SHELL = /bin/sh
2754all:
2755 @echo '@@@%%%=$(MAKE)=@@@%%%'
2756_ACEOF
2757# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2758case `${MAKE-make} -f conftest.make 2>/dev/null` in
2759 *@@@%%%=?*=@@@%%%*)
2760 eval ac_cv_prog_make_${ac_make}_set=yes;;
2761 *)
2762 eval ac_cv_prog_make_${ac_make}_set=no;;
2763esac
2764rm -f conftest.make
2765fi
2766if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2768$as_echo "yes" >&6; }
2769 SET_MAKE=
2770else
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772$as_echo "no" >&6; }
2773 SET_MAKE="MAKE=${MAKE-make}"
2774fi
2775
2776rm -rf .tst 2>/dev/null
2777mkdir .tst 2>/dev/null
2778if test -d .tst; then
2779 am__leading_dot=.
2780else
2781 am__leading_dot=_
2782fi
2783rmdir .tst 2>/dev/null
2784
2785# Check whether --enable-silent-rules was given.
2786if test "${enable_silent_rules+set}" = set; then :
2787 enableval=$enable_silent_rules;
2788fi
2789
2790case $enable_silent_rules in # (((
2791 yes) AM_DEFAULT_VERBOSITY=0;;
2792 no) AM_DEFAULT_VERBOSITY=1;;
2793 *) AM_DEFAULT_VERBOSITY=1;;
2794esac
2795am_make=${MAKE-make}
2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2797$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2798if ${am_cv_make_support_nested_variables+:} false; then :
2799 $as_echo_n "(cached) " >&6
2800else
2801 if $as_echo 'TRUE=$(BAR$(V))
2802BAR0=false
2803BAR1=true
2804V=1
2805am__doit:
2806 @$(TRUE)
2807.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2808 am_cv_make_support_nested_variables=yes
2809else
2810 am_cv_make_support_nested_variables=no
2811fi
2812fi
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2814$as_echo "$am_cv_make_support_nested_variables" >&6; }
2815if test $am_cv_make_support_nested_variables = yes; then
2816 AM_V='$(V)'
2817 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2818else
2819 AM_V=$AM_DEFAULT_VERBOSITY
2820 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2821fi
2822AM_BACKSLASH='\'
2823
2824if test "`cd $srcdir && pwd`" != "`pwd`"; then
2825 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2826 # is not polluted with repeated "-I."
2827 am__isrc=' -I$(srcdir)'
2828 # test to see if srcdir already configured
2829 if test -f $srcdir/config.status; then
2830 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2831 fi
2832fi
2833
2834# test whether we have cygpath
2835if test -z "$CYGPATH_W"; then
2836 if (cygpath --version) >/dev/null 2>/dev/null; then
2837 CYGPATH_W='cygpath -w'
2838 else
2839 CYGPATH_W=echo
2840 fi
2841fi
2842
2843
2844# Define the identity of the package.
2845 PACKAGE='ndn-cpp'
2846 VERSION='0.5'
2847
2848
2849# Some tools Automake needs.
2850
2851ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2852
2853
2854AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2855
2856
2857AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2858
2859
2860AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2861
2862
2863MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2864
2865# For better backward compatibility. To be removed once Automake 1.9.x
2866# dies out for good. For more background, see:
2867# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2868# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2869mkdir_p='$(MKDIR_P)'
2870
2871# We need awk for the "check" target. The system "awk" is bad on
2872# some platforms.
2873# Always define AMTAR for backward compatibility. Yes, it's still used
2874# in the wild :-( We should find a proper way to deprecate it ...
2875AMTAR='$${TAR-tar}'
2876
2877
2878# We'll loop over all known methods to create a tar archive until one works.
2879_am_tools='gnutar pax cpio none'
2880
2881am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2882
2883
2884
2885
2886
2887
2888
2889ac_config_headers="$ac_config_headers config.h"
2890
Jeff Thompson47053ad2013-08-05 10:36:53 -07002891
2892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2893$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2894 # Check whether --enable-maintainer-mode was given.
2895if test "${enable_maintainer_mode+set}" = set; then :
2896 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2897else
2898 USE_MAINTAINER_MODE=no
2899fi
2900
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2902$as_echo "$USE_MAINTAINER_MODE" >&6; }
2903 if test $USE_MAINTAINER_MODE = yes; then
2904 MAINTAINER_MODE_TRUE=
2905 MAINTAINER_MODE_FALSE='#'
2906else
2907 MAINTAINER_MODE_TRUE='#'
2908 MAINTAINER_MODE_FALSE=
2909fi
2910
2911 MAINT=$MAINTAINER_MODE_TRUE
2912
2913
Jeff Thompson39128c62013-06-19 14:08:51 -07002914DEPDIR="${am__leading_dot}deps"
2915
2916ac_config_commands="$ac_config_commands depfiles"
2917
2918
2919am_make=${MAKE-make}
2920cat > confinc << 'END'
2921am__doit:
2922 @echo this is the am__doit target
2923.PHONY: am__doit
2924END
2925# If we don't find an include directive, just comment out the code.
2926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2927$as_echo_n "checking for style of include used by $am_make... " >&6; }
2928am__include="#"
2929am__quote=
2930_am_result=none
2931# First try GNU make style include.
2932echo "include confinc" > confmf
2933# Ignore all kinds of additional output from 'make'.
2934case `$am_make -s -f confmf 2> /dev/null` in #(
2935*the\ am__doit\ target*)
2936 am__include=include
2937 am__quote=
2938 _am_result=GNU
2939 ;;
2940esac
2941# Now try BSD make style include.
2942if test "$am__include" = "#"; then
2943 echo '.include "confinc"' > confmf
2944 case `$am_make -s -f confmf 2> /dev/null` in #(
2945 *the\ am__doit\ target*)
2946 am__include=.include
2947 am__quote="\""
2948 _am_result=BSD
2949 ;;
2950 esac
2951fi
2952
2953
2954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2955$as_echo "$_am_result" >&6; }
2956rm -f confinc confmf
2957
2958# Check whether --enable-dependency-tracking was given.
2959if test "${enable_dependency_tracking+set}" = set; then :
2960 enableval=$enable_dependency_tracking;
2961fi
2962
2963if test "x$enable_dependency_tracking" != xno; then
2964 am_depcomp="$ac_aux_dir/depcomp"
2965 AMDEPBACKSLASH='\'
2966 am__nodep='_no'
2967fi
2968 if test "x$enable_dependency_tracking" != xno; then
2969 AMDEP_TRUE=
2970 AMDEP_FALSE='#'
2971else
2972 AMDEP_TRUE='#'
2973 AMDEP_FALSE=
2974fi
2975
2976
Jeff Thompson36174062013-06-21 16:03:44 -07002977ac_ext=c
2978ac_cpp='$CPP $CPPFLAGS'
2979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2981ac_compiler_gnu=$ac_cv_c_compiler_gnu
2982if test -n "$ac_tool_prefix"; then
2983 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2984set dummy ${ac_tool_prefix}gcc; ac_word=$2
2985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2986$as_echo_n "checking for $ac_word... " >&6; }
2987if ${ac_cv_prog_CC+:} false; then :
2988 $as_echo_n "(cached) " >&6
2989else
2990 if test -n "$CC"; then
2991 ac_cv_prog_CC="$CC" # Let the user override the test.
2992else
2993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994for as_dir in $PATH
2995do
2996 IFS=$as_save_IFS
2997 test -z "$as_dir" && as_dir=.
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 break 2
3003 fi
3004done
3005 done
3006IFS=$as_save_IFS
3007
3008fi
3009fi
3010CC=$ac_cv_prog_CC
3011if test -n "$CC"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3013$as_echo "$CC" >&6; }
3014else
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016$as_echo "no" >&6; }
3017fi
3018
3019
3020fi
3021if test -z "$ac_cv_prog_CC"; then
3022 ac_ct_CC=$CC
3023 # Extract the first word of "gcc", so it can be a program name with args.
3024set dummy gcc; ac_word=$2
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026$as_echo_n "checking for $ac_word... " >&6; }
3027if ${ac_cv_prog_ac_ct_CC+:} false; then :
3028 $as_echo_n "(cached) " >&6
3029else
3030 if test -n "$ac_ct_CC"; then
3031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3032else
3033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034for as_dir in $PATH
3035do
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3040 ac_cv_prog_ac_ct_CC="gcc"
3041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 break 2
3043 fi
3044done
3045 done
3046IFS=$as_save_IFS
3047
3048fi
3049fi
3050ac_ct_CC=$ac_cv_prog_ac_ct_CC
3051if test -n "$ac_ct_CC"; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3053$as_echo "$ac_ct_CC" >&6; }
3054else
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056$as_echo "no" >&6; }
3057fi
3058
3059 if test "x$ac_ct_CC" = x; then
3060 CC=""
3061 else
3062 case $cross_compiling:$ac_tool_warned in
3063yes:)
3064{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3065$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3066ac_tool_warned=yes ;;
3067esac
3068 CC=$ac_ct_CC
3069 fi
3070else
3071 CC="$ac_cv_prog_CC"
3072fi
3073
3074if test -z "$CC"; then
3075 if test -n "$ac_tool_prefix"; then
3076 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3077set dummy ${ac_tool_prefix}cc; ac_word=$2
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079$as_echo_n "checking for $ac_word... " >&6; }
3080if ${ac_cv_prog_CC+:} false; then :
3081 $as_echo_n "(cached) " >&6
3082else
3083 if test -n "$CC"; then
3084 ac_cv_prog_CC="$CC" # Let the user override the test.
3085else
3086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087for as_dir in $PATH
3088do
3089 IFS=$as_save_IFS
3090 test -z "$as_dir" && as_dir=.
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093 ac_cv_prog_CC="${ac_tool_prefix}cc"
3094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3095 break 2
3096 fi
3097done
3098 done
3099IFS=$as_save_IFS
3100
3101fi
3102fi
3103CC=$ac_cv_prog_CC
3104if test -n "$CC"; then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3106$as_echo "$CC" >&6; }
3107else
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109$as_echo "no" >&6; }
3110fi
3111
3112
3113 fi
3114fi
3115if test -z "$CC"; then
3116 # Extract the first word of "cc", so it can be a program name with args.
3117set dummy cc; ac_word=$2
3118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3119$as_echo_n "checking for $ac_word... " >&6; }
3120if ${ac_cv_prog_CC+:} false; then :
3121 $as_echo_n "(cached) " >&6
3122else
3123 if test -n "$CC"; then
3124 ac_cv_prog_CC="$CC" # Let the user override the test.
3125else
3126 ac_prog_rejected=no
3127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128for as_dir in $PATH
3129do
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3135 ac_prog_rejected=yes
3136 continue
3137 fi
3138 ac_cv_prog_CC="cc"
3139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140 break 2
3141 fi
3142done
3143 done
3144IFS=$as_save_IFS
3145
3146if test $ac_prog_rejected = yes; then
3147 # We found a bogon in the path, so make sure we never use it.
3148 set dummy $ac_cv_prog_CC
3149 shift
3150 if test $# != 0; then
3151 # We chose a different compiler from the bogus one.
3152 # However, it has the same basename, so the bogon will be chosen
3153 # first if we set CC to just the basename; use the full file name.
3154 shift
3155 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3156 fi
3157fi
3158fi
3159fi
3160CC=$ac_cv_prog_CC
3161if test -n "$CC"; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3163$as_echo "$CC" >&6; }
3164else
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166$as_echo "no" >&6; }
3167fi
3168
3169
3170fi
3171if test -z "$CC"; then
3172 if test -n "$ac_tool_prefix"; then
3173 for ac_prog in cl.exe
3174 do
3175 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3176set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178$as_echo_n "checking for $ac_word... " >&6; }
3179if ${ac_cv_prog_CC+:} false; then :
3180 $as_echo_n "(cached) " >&6
3181else
3182 if test -n "$CC"; then
3183 ac_cv_prog_CC="$CC" # Let the user override the test.
3184else
3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186for as_dir in $PATH
3187do
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3192 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 break 2
3195 fi
3196done
3197 done
3198IFS=$as_save_IFS
3199
3200fi
3201fi
3202CC=$ac_cv_prog_CC
3203if test -n "$CC"; then
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3205$as_echo "$CC" >&6; }
3206else
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208$as_echo "no" >&6; }
3209fi
3210
3211
3212 test -n "$CC" && break
3213 done
3214fi
3215if test -z "$CC"; then
3216 ac_ct_CC=$CC
3217 for ac_prog in cl.exe
3218do
3219 # Extract the first word of "$ac_prog", so it can be a program name with args.
3220set dummy $ac_prog; ac_word=$2
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222$as_echo_n "checking for $ac_word... " >&6; }
3223if ${ac_cv_prog_ac_ct_CC+:} false; then :
3224 $as_echo_n "(cached) " >&6
3225else
3226 if test -n "$ac_ct_CC"; then
3227 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3228else
3229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230for as_dir in $PATH
3231do
3232 IFS=$as_save_IFS
3233 test -z "$as_dir" && as_dir=.
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3236 ac_cv_prog_ac_ct_CC="$ac_prog"
3237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238 break 2
3239 fi
3240done
3241 done
3242IFS=$as_save_IFS
3243
3244fi
3245fi
3246ac_ct_CC=$ac_cv_prog_ac_ct_CC
3247if test -n "$ac_ct_CC"; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3249$as_echo "$ac_ct_CC" >&6; }
3250else
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252$as_echo "no" >&6; }
3253fi
3254
3255
3256 test -n "$ac_ct_CC" && break
3257done
3258
3259 if test "x$ac_ct_CC" = x; then
3260 CC=""
3261 else
3262 case $cross_compiling:$ac_tool_warned in
3263yes:)
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3266ac_tool_warned=yes ;;
3267esac
3268 CC=$ac_ct_CC
3269 fi
3270fi
3271
3272fi
3273
3274
3275test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3277as_fn_error $? "no acceptable C compiler found in \$PATH
3278See \`config.log' for more details" "$LINENO" 5; }
3279
3280# Provide some information about the compiler.
3281$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3282set X $ac_compile
3283ac_compiler=$2
3284for ac_option in --version -v -V -qversion; do
3285 { { ac_try="$ac_compiler $ac_option >&5"
3286case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3289esac
3290eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3291$as_echo "$ac_try_echo"; } >&5
3292 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3293 ac_status=$?
3294 if test -s conftest.err; then
3295 sed '10a\
3296... rest of stderr output deleted ...
3297 10q' conftest.err >conftest.er1
3298 cat conftest.er1 >&5
3299 fi
3300 rm -f conftest.er1 conftest.err
3301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3302 test $ac_status = 0; }
3303done
3304
Jeff Thompson4f031642013-08-05 11:03:16 -07003305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306/* end confdefs.h. */
3307
3308int
3309main ()
3310{
3311
3312 ;
3313 return 0;
3314}
3315_ACEOF
3316ac_clean_files_save=$ac_clean_files
3317ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3318# Try to create an executable without -o first, disregard a.out.
3319# It will help us diagnose broken compilers, and finding out an intuition
3320# of exeext.
3321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3322$as_echo_n "checking whether the C compiler works... " >&6; }
3323ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3324
3325# The possible output files:
3326ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3327
3328ac_rmfiles=
3329for ac_file in $ac_files
3330do
3331 case $ac_file in
3332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3333 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3334 esac
3335done
3336rm -f $ac_rmfiles
3337
3338if { { ac_try="$ac_link_default"
3339case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3342esac
3343eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3344$as_echo "$ac_try_echo"; } >&5
3345 (eval "$ac_link_default") 2>&5
3346 ac_status=$?
3347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3348 test $ac_status = 0; }; then :
3349 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3350# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3351# in a Makefile. We should not override ac_cv_exeext if it was cached,
3352# so that the user can short-circuit this test for compilers unknown to
3353# Autoconf.
3354for ac_file in $ac_files ''
3355do
3356 test -f "$ac_file" || continue
3357 case $ac_file in
3358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3359 ;;
3360 [ab].out )
3361 # We found the default executable, but exeext='' is most
3362 # certainly right.
3363 break;;
3364 *.* )
3365 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3366 then :; else
3367 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3368 fi
3369 # We set ac_cv_exeext here because the later test for it is not
3370 # safe: cross compilers may not add the suffix if given an `-o'
3371 # argument, so we may need to know it at that point already.
3372 # Even if this section looks crufty: it has the advantage of
3373 # actually working.
3374 break;;
3375 * )
3376 break;;
3377 esac
3378done
3379test "$ac_cv_exeext" = no && ac_cv_exeext=
3380
3381else
3382 ac_file=''
3383fi
3384if test -z "$ac_file"; then :
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386$as_echo "no" >&6; }
3387$as_echo "$as_me: failed program was:" >&5
3388sed 's/^/| /' conftest.$ac_ext >&5
3389
3390{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392as_fn_error 77 "C compiler cannot create executables
3393See \`config.log' for more details" "$LINENO" 5; }
3394else
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3396$as_echo "yes" >&6; }
3397fi
3398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3399$as_echo_n "checking for C compiler default output file name... " >&6; }
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3401$as_echo "$ac_file" >&6; }
3402ac_exeext=$ac_cv_exeext
3403
3404rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3405ac_clean_files=$ac_clean_files_save
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3407$as_echo_n "checking for suffix of executables... " >&6; }
3408if { { ac_try="$ac_link"
3409case "(($ac_try" in
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3412esac
3413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414$as_echo "$ac_try_echo"; } >&5
3415 (eval "$ac_link") 2>&5
3416 ac_status=$?
3417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418 test $ac_status = 0; }; then :
3419 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3420# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3421# work properly (i.e., refer to `conftest.exe'), while it won't with
3422# `rm'.
3423for ac_file in conftest.exe conftest conftest.*; do
3424 test -f "$ac_file" || continue
3425 case $ac_file in
3426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3427 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3428 break;;
3429 * ) break;;
3430 esac
3431done
3432else
3433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3435as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3436See \`config.log' for more details" "$LINENO" 5; }
3437fi
3438rm -f conftest conftest$ac_cv_exeext
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3440$as_echo "$ac_cv_exeext" >&6; }
3441
3442rm -f conftest.$ac_ext
3443EXEEXT=$ac_cv_exeext
3444ac_exeext=$EXEEXT
3445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446/* end confdefs.h. */
3447#include <stdio.h>
3448int
3449main ()
3450{
3451FILE *f = fopen ("conftest.out", "w");
3452 return ferror (f) || fclose (f) != 0;
3453
3454 ;
3455 return 0;
3456}
3457_ACEOF
3458ac_clean_files="$ac_clean_files conftest.out"
3459# Check that the compiler produces executables we can run. If not, either
3460# the compiler is broken, or we cross compile.
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3462$as_echo_n "checking whether we are cross compiling... " >&6; }
3463if test "$cross_compiling" != yes; then
3464 { { ac_try="$ac_link"
3465case "(($ac_try" in
3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3468esac
3469eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3470$as_echo "$ac_try_echo"; } >&5
3471 (eval "$ac_link") 2>&5
3472 ac_status=$?
3473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3474 test $ac_status = 0; }
3475 if { ac_try='./conftest$ac_cv_exeext'
3476 { { case "(($ac_try" in
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3479esac
3480eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3481$as_echo "$ac_try_echo"; } >&5
3482 (eval "$ac_try") 2>&5
3483 ac_status=$?
3484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3485 test $ac_status = 0; }; }; then
3486 cross_compiling=no
3487 else
3488 if test "$cross_compiling" = maybe; then
3489 cross_compiling=yes
3490 else
3491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3493as_fn_error $? "cannot run C compiled programs.
3494If you meant to cross compile, use \`--host'.
3495See \`config.log' for more details" "$LINENO" 5; }
3496 fi
3497 fi
3498fi
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3500$as_echo "$cross_compiling" >&6; }
3501
3502rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3503ac_clean_files=$ac_clean_files_save
3504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3505$as_echo_n "checking for suffix of object files... " >&6; }
3506if ${ac_cv_objext+:} false; then :
3507 $as_echo_n "(cached) " >&6
3508else
3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510/* end confdefs.h. */
3511
3512int
3513main ()
3514{
3515
3516 ;
3517 return 0;
3518}
3519_ACEOF
3520rm -f conftest.o conftest.obj
3521if { { ac_try="$ac_compile"
3522case "(($ac_try" in
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3525esac
3526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3527$as_echo "$ac_try_echo"; } >&5
3528 (eval "$ac_compile") 2>&5
3529 ac_status=$?
3530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3531 test $ac_status = 0; }; then :
3532 for ac_file in conftest.o conftest.obj conftest.*; do
3533 test -f "$ac_file" || continue;
3534 case $ac_file in
3535 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3536 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3537 break;;
3538 esac
3539done
3540else
3541 $as_echo "$as_me: failed program was:" >&5
3542sed 's/^/| /' conftest.$ac_ext >&5
3543
3544{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3546as_fn_error $? "cannot compute suffix of object files: cannot compile
3547See \`config.log' for more details" "$LINENO" 5; }
3548fi
3549rm -f conftest.$ac_cv_objext conftest.$ac_ext
3550fi
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3552$as_echo "$ac_cv_objext" >&6; }
3553OBJEXT=$ac_cv_objext
3554ac_objext=$OBJEXT
Jeff Thompson36174062013-06-21 16:03:44 -07003555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3556$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3557if ${ac_cv_c_compiler_gnu+:} false; then :
3558 $as_echo_n "(cached) " >&6
3559else
3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561/* end confdefs.h. */
3562
3563int
3564main ()
3565{
3566#ifndef __GNUC__
3567 choke me
3568#endif
3569
3570 ;
3571 return 0;
3572}
3573_ACEOF
3574if ac_fn_c_try_compile "$LINENO"; then :
3575 ac_compiler_gnu=yes
3576else
3577 ac_compiler_gnu=no
3578fi
3579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3580ac_cv_c_compiler_gnu=$ac_compiler_gnu
3581
3582fi
3583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3584$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3585if test $ac_compiler_gnu = yes; then
3586 GCC=yes
3587else
3588 GCC=
3589fi
3590ac_test_CFLAGS=${CFLAGS+set}
3591ac_save_CFLAGS=$CFLAGS
3592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3593$as_echo_n "checking whether $CC accepts -g... " >&6; }
3594if ${ac_cv_prog_cc_g+:} false; then :
3595 $as_echo_n "(cached) " >&6
3596else
3597 ac_save_c_werror_flag=$ac_c_werror_flag
3598 ac_c_werror_flag=yes
3599 ac_cv_prog_cc_g=no
3600 CFLAGS="-g"
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602/* end confdefs.h. */
3603
3604int
3605main ()
3606{
3607
3608 ;
3609 return 0;
3610}
3611_ACEOF
3612if ac_fn_c_try_compile "$LINENO"; then :
3613 ac_cv_prog_cc_g=yes
3614else
3615 CFLAGS=""
3616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617/* end confdefs.h. */
3618
3619int
3620main ()
3621{
3622
3623 ;
3624 return 0;
3625}
3626_ACEOF
3627if ac_fn_c_try_compile "$LINENO"; then :
3628
3629else
3630 ac_c_werror_flag=$ac_save_c_werror_flag
3631 CFLAGS="-g"
3632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633/* end confdefs.h. */
3634
3635int
3636main ()
3637{
3638
3639 ;
3640 return 0;
3641}
3642_ACEOF
3643if ac_fn_c_try_compile "$LINENO"; then :
3644 ac_cv_prog_cc_g=yes
3645fi
3646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3647fi
3648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649fi
3650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651 ac_c_werror_flag=$ac_save_c_werror_flag
3652fi
3653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3654$as_echo "$ac_cv_prog_cc_g" >&6; }
3655if test "$ac_test_CFLAGS" = set; then
3656 CFLAGS=$ac_save_CFLAGS
3657elif test $ac_cv_prog_cc_g = yes; then
3658 if test "$GCC" = yes; then
3659 CFLAGS="-g -O2"
3660 else
3661 CFLAGS="-g"
3662 fi
3663else
3664 if test "$GCC" = yes; then
3665 CFLAGS="-O2"
3666 else
3667 CFLAGS=
3668 fi
3669fi
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3671$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3672if ${ac_cv_prog_cc_c89+:} false; then :
3673 $as_echo_n "(cached) " >&6
3674else
3675 ac_cv_prog_cc_c89=no
3676ac_save_CC=$CC
3677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678/* end confdefs.h. */
3679#include <stdarg.h>
3680#include <stdio.h>
3681struct stat;
3682/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3683struct buf { int x; };
3684FILE * (*rcsopen) (struct buf *, struct stat *, int);
3685static char *e (p, i)
3686 char **p;
3687 int i;
3688{
3689 return p[i];
3690}
3691static char *f (char * (*g) (char **, int), char **p, ...)
3692{
3693 char *s;
3694 va_list v;
3695 va_start (v,p);
3696 s = g (p, va_arg (v,int));
3697 va_end (v);
3698 return s;
3699}
3700
3701/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3702 function prototypes and stuff, but not '\xHH' hex character constants.
3703 These don't provoke an error unfortunately, instead are silently treated
3704 as 'x'. The following induces an error, until -std is added to get
3705 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3706 array size at least. It's necessary to write '\x00'==0 to get something
3707 that's true only with -std. */
3708int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3709
3710/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3711 inside strings and character constants. */
3712#define FOO(x) 'x'
3713int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3714
3715int test (int i, double x);
3716struct s1 {int (*f) (int a);};
3717struct s2 {int (*f) (double a);};
3718int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3719int argc;
3720char **argv;
3721int
3722main ()
3723{
3724return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3725 ;
3726 return 0;
3727}
3728_ACEOF
3729for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3730 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3731do
3732 CC="$ac_save_CC $ac_arg"
3733 if ac_fn_c_try_compile "$LINENO"; then :
3734 ac_cv_prog_cc_c89=$ac_arg
3735fi
3736rm -f core conftest.err conftest.$ac_objext
3737 test "x$ac_cv_prog_cc_c89" != "xno" && break
3738done
3739rm -f conftest.$ac_ext
3740CC=$ac_save_CC
3741
3742fi
3743# AC_CACHE_VAL
3744case "x$ac_cv_prog_cc_c89" in
3745 x)
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3747$as_echo "none needed" >&6; } ;;
3748 xno)
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3750$as_echo "unsupported" >&6; } ;;
3751 *)
3752 CC="$CC $ac_cv_prog_cc_c89"
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3754$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3755esac
3756if test "x$ac_cv_prog_cc_c89" != xno; then :
3757
3758fi
3759
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07003760ac_ext=c
3761ac_cpp='$CPP $CPPFLAGS'
3762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3764ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeff Thompson36174062013-06-21 16:03:44 -07003765
3766depcc="$CC" am_compiler_list=
3767
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3769$as_echo_n "checking dependency style of $depcc... " >&6; }
3770if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3771 $as_echo_n "(cached) " >&6
3772else
3773 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3774 # We make a subdir and do the tests there. Otherwise we can end up
3775 # making bogus files that we don't know about and never remove. For
3776 # instance it was reported that on HP-UX the gcc test will end up
3777 # making a dummy file named 'D' -- because '-MD' means "put the output
3778 # in D".
3779 rm -rf conftest.dir
3780 mkdir conftest.dir
3781 # Copy depcomp to subdir because otherwise we won't find it if we're
3782 # using a relative directory.
3783 cp "$am_depcomp" conftest.dir
3784 cd conftest.dir
3785 # We will build objects and dependencies in a subdirectory because
3786 # it helps to detect inapplicable dependency modes. For instance
3787 # both Tru64's cc and ICC support -MD to output dependencies as a
3788 # side effect of compilation, but ICC will put the dependencies in
3789 # the current directory while Tru64 will put them in the object
3790 # directory.
3791 mkdir sub
3792
3793 am_cv_CC_dependencies_compiler_type=none
3794 if test "$am_compiler_list" = ""; then
3795 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3796 fi
3797 am__universal=false
3798 case " $depcc " in #(
3799 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3800 esac
3801
3802 for depmode in $am_compiler_list; do
3803 # Setup a source with many dependencies, because some compilers
3804 # like to wrap large dependency lists on column 80 (with \), and
3805 # we should not choose a depcomp mode which is confused by this.
3806 #
3807 # We need to recreate these files for each test, as the compiler may
3808 # overwrite some of them when testing with obscure command lines.
3809 # This happens at least with the AIX C compiler.
3810 : > sub/conftest.c
3811 for i in 1 2 3 4 5 6; do
3812 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3813 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3814 # Solaris 10 /bin/sh.
3815 echo '/* dummy */' > sub/conftst$i.h
3816 done
3817 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3818
3819 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3820 # mode. It turns out that the SunPro C++ compiler does not properly
3821 # handle '-M -o', and we need to detect this. Also, some Intel
3822 # versions had trouble with output in subdirs.
3823 am__obj=sub/conftest.${OBJEXT-o}
3824 am__minus_obj="-o $am__obj"
3825 case $depmode in
3826 gcc)
3827 # This depmode causes a compiler race in universal mode.
3828 test "$am__universal" = false || continue
3829 ;;
3830 nosideeffect)
3831 # After this tag, mechanisms are not by side-effect, so they'll
3832 # only be used when explicitly requested.
3833 if test "x$enable_dependency_tracking" = xyes; then
3834 continue
3835 else
3836 break
3837 fi
3838 ;;
3839 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3840 # This compiler won't grok '-c -o', but also, the minuso test has
3841 # not run yet. These depmodes are late enough in the game, and
3842 # so weak that their functioning should not be impacted.
3843 am__obj=conftest.${OBJEXT-o}
3844 am__minus_obj=
3845 ;;
3846 none) break ;;
3847 esac
3848 if depmode=$depmode \
3849 source=sub/conftest.c object=$am__obj \
3850 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3851 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3852 >/dev/null 2>conftest.err &&
3853 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3854 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3855 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3856 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3857 # icc doesn't choke on unknown options, it will just issue warnings
3858 # or remarks (even with -Werror). So we grep stderr for any message
3859 # that says an option was ignored or not supported.
3860 # When given -MP, icc 7.0 and 7.1 complain thusly:
3861 # icc: Command line warning: ignoring option '-M'; no argument required
3862 # The diagnosis changed in icc 8.0:
3863 # icc: Command line remark: option '-MP' not supported
3864 if (grep 'ignoring option' conftest.err ||
3865 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3866 am_cv_CC_dependencies_compiler_type=$depmode
3867 break
3868 fi
3869 fi
3870 done
3871
3872 cd ..
3873 rm -rf conftest.dir
3874else
3875 am_cv_CC_dependencies_compiler_type=none
3876fi
3877
3878fi
3879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3880$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3881CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3882
3883 if
3884 test "x$enable_dependency_tracking" != xno \
3885 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3886 am__fastdepCC_TRUE=
3887 am__fastdepCC_FALSE='#'
3888else
3889 am__fastdepCC_TRUE='#'
3890 am__fastdepCC_FALSE=
3891fi
3892
3893
Jeff Thompson36174062013-06-21 16:03:44 -07003894
3895if test -n "$ac_tool_prefix"; then
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07003896 for ac_prog in ar lib "link -lib"
Jeff Thompson36174062013-06-21 16:03:44 -07003897 do
3898 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3899set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3901$as_echo_n "checking for $ac_word... " >&6; }
3902if ${ac_cv_prog_AR+:} false; then :
3903 $as_echo_n "(cached) " >&6
3904else
3905 if test -n "$AR"; then
3906 ac_cv_prog_AR="$AR" # Let the user override the test.
3907else
3908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909for as_dir in $PATH
3910do
3911 IFS=$as_save_IFS
3912 test -z "$as_dir" && as_dir=.
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3915 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3917 break 2
3918 fi
3919done
3920 done
3921IFS=$as_save_IFS
3922
3923fi
3924fi
3925AR=$ac_cv_prog_AR
3926if test -n "$AR"; then
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3928$as_echo "$AR" >&6; }
3929else
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931$as_echo "no" >&6; }
3932fi
3933
3934
3935 test -n "$AR" && break
3936 done
3937fi
3938if test -z "$AR"; then
3939 ac_ct_AR=$AR
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07003940 for ac_prog in ar lib "link -lib"
Jeff Thompson36174062013-06-21 16:03:44 -07003941do
3942 # Extract the first word of "$ac_prog", so it can be a program name with args.
3943set dummy $ac_prog; ac_word=$2
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3945$as_echo_n "checking for $ac_word... " >&6; }
3946if ${ac_cv_prog_ac_ct_AR+:} false; then :
3947 $as_echo_n "(cached) " >&6
3948else
3949 if test -n "$ac_ct_AR"; then
3950 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3951else
3952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953for as_dir in $PATH
3954do
3955 IFS=$as_save_IFS
3956 test -z "$as_dir" && as_dir=.
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3959 ac_cv_prog_ac_ct_AR="$ac_prog"
3960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3961 break 2
3962 fi
3963done
3964 done
3965IFS=$as_save_IFS
3966
3967fi
3968fi
3969ac_ct_AR=$ac_cv_prog_ac_ct_AR
3970if test -n "$ac_ct_AR"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3972$as_echo "$ac_ct_AR" >&6; }
3973else
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975$as_echo "no" >&6; }
3976fi
3977
3978
3979 test -n "$ac_ct_AR" && break
3980done
3981
3982 if test "x$ac_ct_AR" = x; then
3983 AR="false"
3984 else
3985 case $cross_compiling:$ac_tool_warned in
3986yes:)
3987{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3989ac_tool_warned=yes ;;
3990esac
3991 AR=$ac_ct_AR
3992 fi
3993fi
3994
3995: ${AR=ar}
Jeff Thompson36174062013-06-21 16:03:44 -07003996
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07003997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3998$as_echo_n "checking the archiver ($AR) interface... " >&6; }
3999if ${am_cv_ar_interface+:} false; then :
Jeff Thompson36174062013-06-21 16:03:44 -07004000 $as_echo_n "(cached) " >&6
4001else
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004002 am_cv_ar_interface=ar
Jeff Thompson36174062013-06-21 16:03:44 -07004003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004/* end confdefs.h. */
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004005int some_variable = 0;
Jeff Thompson36174062013-06-21 16:03:44 -07004006_ACEOF
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004007if ac_fn_c_try_compile "$LINENO"; then :
4008 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4010 (eval $am_ar_try) 2>&5
Jeff Thompson36174062013-06-21 16:03:44 -07004011 ac_status=$?
4012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4013 test $ac_status = 0; }
4014 if test "$ac_status" -eq 0; then
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004015 am_cv_ar_interface=ar
4016 else
4017 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4019 (eval $am_ar_try) 2>&5
Jeff Thompson36174062013-06-21 16:03:44 -07004020 ac_status=$?
4021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4022 test $ac_status = 0; }
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004023 if test "$ac_status" -eq 0; then
4024 am_cv_ar_interface=lib
4025 else
4026 am_cv_ar_interface=unknown
Jeff Thompson36174062013-06-21 16:03:44 -07004027 fi
4028 fi
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004029 rm -f conftest.lib libconftest.a
Jeff Thompson36174062013-06-21 16:03:44 -07004030
4031fi
4032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4033
4034fi
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4036$as_echo "$am_cv_ar_interface" >&6; }
Jeff Thompson36174062013-06-21 16:03:44 -07004037
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004038case $am_cv_ar_interface in
4039ar)
Jeff Thompson36174062013-06-21 16:03:44 -07004040 ;;
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004041lib)
4042 # Microsoft lib, so override with the ar-lib wrapper script.
4043 # FIXME: It is wrong to rewrite AR.
4044 # But if we don't then we get into trouble of one sort or another.
4045 # A longer-term fix would be to have automake use am__AR in this case,
4046 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4047 # similar.
4048 AR="$am_aux_dir/ar-lib $AR"
Jeff Thompson36174062013-06-21 16:03:44 -07004049 ;;
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004050unknown)
4051 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
Jeff Thompson36174062013-06-21 16:03:44 -07004052 ;;
4053esac
4054
Jeff Thompson4f031642013-08-05 11:03:16 -07004055case `pwd` in
4056 *\ * | *\ *)
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4058$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4059esac
4060
4061
4062
4063macro_version='2.4.2'
4064macro_revision='1.3337'
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078ltmain="$ac_aux_dir/ltmain.sh"
4079
4080# Make sure we can run config.sub.
4081$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4082 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4083
4084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4085$as_echo_n "checking build system type... " >&6; }
4086if ${ac_cv_build+:} false; then :
4087 $as_echo_n "(cached) " >&6
4088else
4089 ac_build_alias=$build_alias
4090test "x$ac_build_alias" = x &&
4091 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4092test "x$ac_build_alias" = x &&
4093 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4094ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4095 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4096
4097fi
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4099$as_echo "$ac_cv_build" >&6; }
4100case $ac_cv_build in
4101*-*-*) ;;
4102*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4103esac
4104build=$ac_cv_build
4105ac_save_IFS=$IFS; IFS='-'
4106set x $ac_cv_build
4107shift
4108build_cpu=$1
4109build_vendor=$2
4110shift; shift
4111# Remember, the first character of IFS is used to create $*,
4112# except with old shells:
4113build_os=$*
4114IFS=$ac_save_IFS
4115case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4116
4117
4118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4119$as_echo_n "checking host system type... " >&6; }
4120if ${ac_cv_host+:} false; then :
4121 $as_echo_n "(cached) " >&6
4122else
4123 if test "x$host_alias" = x; then
4124 ac_cv_host=$ac_cv_build
4125else
4126 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4127 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4128fi
4129
4130fi
4131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4132$as_echo "$ac_cv_host" >&6; }
4133case $ac_cv_host in
4134*-*-*) ;;
4135*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4136esac
4137host=$ac_cv_host
4138ac_save_IFS=$IFS; IFS='-'
4139set x $ac_cv_host
4140shift
4141host_cpu=$1
4142host_vendor=$2
4143shift; shift
4144# Remember, the first character of IFS is used to create $*,
4145# except with old shells:
4146host_os=$*
4147IFS=$ac_save_IFS
4148case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4149
4150
4151# Backslashify metacharacters that are still active within
4152# double-quoted strings.
4153sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4154
4155# Same as above, but do not quote variable references.
4156double_quote_subst='s/\(["`\\]\)/\\\1/g'
4157
4158# Sed substitution to delay expansion of an escaped shell variable in a
4159# double_quote_subst'ed string.
4160delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4161
4162# Sed substitution to delay expansion of an escaped single quote.
4163delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4164
4165# Sed substitution to avoid accidental globbing in evaled expressions
4166no_glob_subst='s/\*/\\\*/g'
4167
4168ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4169ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4170ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4171
4172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4173$as_echo_n "checking how to print strings... " >&6; }
4174# Test print first, because it will be a builtin if present.
4175if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4176 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4177 ECHO='print -r --'
4178elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4179 ECHO='printf %s\n'
4180else
4181 # Use this function as a fallback that always works.
4182 func_fallback_echo ()
4183 {
4184 eval 'cat <<_LTECHO_EOF
4185$1
4186_LTECHO_EOF'
4187 }
4188 ECHO='func_fallback_echo'
4189fi
4190
4191# func_echo_all arg...
4192# Invoke $ECHO with all args, space-separated.
4193func_echo_all ()
4194{
4195 $ECHO ""
4196}
4197
4198case "$ECHO" in
4199 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4200$as_echo "printf" >&6; } ;;
4201 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4202$as_echo "print -r" >&6; } ;;
4203 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4204$as_echo "cat" >&6; } ;;
4205esac
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4221$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4222if ${ac_cv_path_SED+:} false; then :
4223 $as_echo_n "(cached) " >&6
4224else
4225 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4226 for ac_i in 1 2 3 4 5 6 7; do
4227 ac_script="$ac_script$as_nl$ac_script"
4228 done
4229 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4230 { ac_script=; unset ac_script;}
4231 if test -z "$SED"; then
4232 ac_path_SED_found=false
4233 # Loop through the user's path and test for each of PROGNAME-LIST
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235for as_dir in $PATH
4236do
4237 IFS=$as_save_IFS
4238 test -z "$as_dir" && as_dir=.
4239 for ac_prog in sed gsed; do
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4242 as_fn_executable_p "$ac_path_SED" || continue
4243# Check for GNU ac_path_SED and select it if it is found.
4244 # Check for GNU $ac_path_SED
4245case `"$ac_path_SED" --version 2>&1` in
4246*GNU*)
4247 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4248*)
4249 ac_count=0
4250 $as_echo_n 0123456789 >"conftest.in"
4251 while :
4252 do
4253 cat "conftest.in" "conftest.in" >"conftest.tmp"
4254 mv "conftest.tmp" "conftest.in"
4255 cp "conftest.in" "conftest.nl"
4256 $as_echo '' >> "conftest.nl"
4257 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4258 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4259 as_fn_arith $ac_count + 1 && ac_count=$as_val
4260 if test $ac_count -gt ${ac_path_SED_max-0}; then
4261 # Best one so far, save it but keep looking for a better one
4262 ac_cv_path_SED="$ac_path_SED"
4263 ac_path_SED_max=$ac_count
4264 fi
4265 # 10*(2^10) chars as input seems more than enough
4266 test $ac_count -gt 10 && break
4267 done
4268 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4269esac
4270
4271 $ac_path_SED_found && break 3
4272 done
4273 done
4274 done
4275IFS=$as_save_IFS
4276 if test -z "$ac_cv_path_SED"; then
4277 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4278 fi
4279else
4280 ac_cv_path_SED=$SED
4281fi
4282
4283fi
4284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4285$as_echo "$ac_cv_path_SED" >&6; }
4286 SED="$ac_cv_path_SED"
4287 rm -f conftest.sed
4288
4289test -z "$SED" && SED=sed
4290Xsed="$SED -e 1s/^X//"
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4303$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4304if ${ac_cv_path_GREP+:} false; then :
4305 $as_echo_n "(cached) " >&6
4306else
4307 if test -z "$GREP"; then
4308 ac_path_GREP_found=false
4309 # Loop through the user's path and test for each of PROGNAME-LIST
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4312do
4313 IFS=$as_save_IFS
4314 test -z "$as_dir" && as_dir=.
4315 for ac_prog in grep ggrep; do
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4318 as_fn_executable_p "$ac_path_GREP" || continue
4319# Check for GNU ac_path_GREP and select it if it is found.
4320 # Check for GNU $ac_path_GREP
4321case `"$ac_path_GREP" --version 2>&1` in
4322*GNU*)
4323 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4324*)
4325 ac_count=0
4326 $as_echo_n 0123456789 >"conftest.in"
4327 while :
4328 do
4329 cat "conftest.in" "conftest.in" >"conftest.tmp"
4330 mv "conftest.tmp" "conftest.in"
4331 cp "conftest.in" "conftest.nl"
4332 $as_echo 'GREP' >> "conftest.nl"
4333 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4334 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4335 as_fn_arith $ac_count + 1 && ac_count=$as_val
4336 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4337 # Best one so far, save it but keep looking for a better one
4338 ac_cv_path_GREP="$ac_path_GREP"
4339 ac_path_GREP_max=$ac_count
4340 fi
4341 # 10*(2^10) chars as input seems more than enough
4342 test $ac_count -gt 10 && break
4343 done
4344 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4345esac
4346
4347 $ac_path_GREP_found && break 3
4348 done
4349 done
4350 done
4351IFS=$as_save_IFS
4352 if test -z "$ac_cv_path_GREP"; then
4353 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4354 fi
4355else
4356 ac_cv_path_GREP=$GREP
4357fi
4358
4359fi
4360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4361$as_echo "$ac_cv_path_GREP" >&6; }
4362 GREP="$ac_cv_path_GREP"
4363
4364
4365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4366$as_echo_n "checking for egrep... " >&6; }
4367if ${ac_cv_path_EGREP+:} false; then :
4368 $as_echo_n "(cached) " >&6
4369else
4370 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4371 then ac_cv_path_EGREP="$GREP -E"
4372 else
4373 if test -z "$EGREP"; then
4374 ac_path_EGREP_found=false
4375 # Loop through the user's path and test for each of PROGNAME-LIST
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4378do
4379 IFS=$as_save_IFS
4380 test -z "$as_dir" && as_dir=.
4381 for ac_prog in egrep; do
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4384 as_fn_executable_p "$ac_path_EGREP" || continue
4385# Check for GNU ac_path_EGREP and select it if it is found.
4386 # Check for GNU $ac_path_EGREP
4387case `"$ac_path_EGREP" --version 2>&1` in
4388*GNU*)
4389 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4390*)
4391 ac_count=0
4392 $as_echo_n 0123456789 >"conftest.in"
4393 while :
4394 do
4395 cat "conftest.in" "conftest.in" >"conftest.tmp"
4396 mv "conftest.tmp" "conftest.in"
4397 cp "conftest.in" "conftest.nl"
4398 $as_echo 'EGREP' >> "conftest.nl"
4399 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4400 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4401 as_fn_arith $ac_count + 1 && ac_count=$as_val
4402 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4403 # Best one so far, save it but keep looking for a better one
4404 ac_cv_path_EGREP="$ac_path_EGREP"
4405 ac_path_EGREP_max=$ac_count
4406 fi
4407 # 10*(2^10) chars as input seems more than enough
4408 test $ac_count -gt 10 && break
4409 done
4410 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4411esac
4412
4413 $ac_path_EGREP_found && break 3
4414 done
4415 done
4416 done
4417IFS=$as_save_IFS
4418 if test -z "$ac_cv_path_EGREP"; then
4419 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4420 fi
4421else
4422 ac_cv_path_EGREP=$EGREP
4423fi
4424
4425 fi
4426fi
4427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4428$as_echo "$ac_cv_path_EGREP" >&6; }
4429 EGREP="$ac_cv_path_EGREP"
4430
4431
4432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4433$as_echo_n "checking for fgrep... " >&6; }
4434if ${ac_cv_path_FGREP+:} false; then :
4435 $as_echo_n "(cached) " >&6
4436else
4437 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4438 then ac_cv_path_FGREP="$GREP -F"
4439 else
4440 if test -z "$FGREP"; then
4441 ac_path_FGREP_found=false
4442 # Loop through the user's path and test for each of PROGNAME-LIST
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4445do
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
4448 for ac_prog in fgrep; do
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4451 as_fn_executable_p "$ac_path_FGREP" || continue
4452# Check for GNU ac_path_FGREP and select it if it is found.
4453 # Check for GNU $ac_path_FGREP
4454case `"$ac_path_FGREP" --version 2>&1` in
4455*GNU*)
4456 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4457*)
4458 ac_count=0
4459 $as_echo_n 0123456789 >"conftest.in"
4460 while :
4461 do
4462 cat "conftest.in" "conftest.in" >"conftest.tmp"
4463 mv "conftest.tmp" "conftest.in"
4464 cp "conftest.in" "conftest.nl"
4465 $as_echo 'FGREP' >> "conftest.nl"
4466 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4467 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4468 as_fn_arith $ac_count + 1 && ac_count=$as_val
4469 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4470 # Best one so far, save it but keep looking for a better one
4471 ac_cv_path_FGREP="$ac_path_FGREP"
4472 ac_path_FGREP_max=$ac_count
4473 fi
4474 # 10*(2^10) chars as input seems more than enough
4475 test $ac_count -gt 10 && break
4476 done
4477 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4478esac
4479
4480 $ac_path_FGREP_found && break 3
4481 done
4482 done
4483 done
4484IFS=$as_save_IFS
4485 if test -z "$ac_cv_path_FGREP"; then
4486 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4487 fi
4488else
4489 ac_cv_path_FGREP=$FGREP
4490fi
4491
4492 fi
4493fi
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4495$as_echo "$ac_cv_path_FGREP" >&6; }
4496 FGREP="$ac_cv_path_FGREP"
4497
4498
4499test -z "$GREP" && GREP=grep
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519# Check whether --with-gnu-ld was given.
4520if test "${with_gnu_ld+set}" = set; then :
4521 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4522else
4523 with_gnu_ld=no
4524fi
4525
4526ac_prog=ld
4527if test "$GCC" = yes; then
4528 # Check if gcc -print-prog-name=ld gives a path.
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4530$as_echo_n "checking for ld used by $CC... " >&6; }
4531 case $host in
4532 *-*-mingw*)
4533 # gcc leaves a trailing carriage return which upsets mingw
4534 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4535 *)
4536 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4537 esac
4538 case $ac_prog in
4539 # Accept absolute paths.
4540 [\\/]* | ?:[\\/]*)
4541 re_direlt='/[^/][^/]*/\.\./'
4542 # Canonicalize the pathname of ld
4543 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4544 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4545 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4546 done
4547 test -z "$LD" && LD="$ac_prog"
4548 ;;
4549 "")
4550 # If it fails, then pretend we aren't using GCC.
4551 ac_prog=ld
4552 ;;
4553 *)
4554 # If it is relative, then search for the first ld in PATH.
4555 with_gnu_ld=unknown
4556 ;;
4557 esac
4558elif test "$with_gnu_ld" = yes; then
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4560$as_echo_n "checking for GNU ld... " >&6; }
4561else
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4563$as_echo_n "checking for non-GNU ld... " >&6; }
4564fi
4565if ${lt_cv_path_LD+:} false; then :
4566 $as_echo_n "(cached) " >&6
4567else
4568 if test -z "$LD"; then
4569 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4570 for ac_dir in $PATH; do
4571 IFS="$lt_save_ifs"
4572 test -z "$ac_dir" && ac_dir=.
4573 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4574 lt_cv_path_LD="$ac_dir/$ac_prog"
4575 # Check to see if the program is GNU ld. I'd rather use --version,
4576 # but apparently some variants of GNU ld only accept -v.
4577 # Break only if it was the GNU/non-GNU ld that we prefer.
4578 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4579 *GNU* | *'with BFD'*)
4580 test "$with_gnu_ld" != no && break
4581 ;;
4582 *)
4583 test "$with_gnu_ld" != yes && break
4584 ;;
4585 esac
4586 fi
4587 done
4588 IFS="$lt_save_ifs"
4589else
4590 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4591fi
4592fi
4593
4594LD="$lt_cv_path_LD"
4595if test -n "$LD"; then
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4597$as_echo "$LD" >&6; }
4598else
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600$as_echo "no" >&6; }
4601fi
4602test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4604$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4605if ${lt_cv_prog_gnu_ld+:} false; then :
4606 $as_echo_n "(cached) " >&6
4607else
4608 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4609case `$LD -v 2>&1 </dev/null` in
4610*GNU* | *'with BFD'*)
4611 lt_cv_prog_gnu_ld=yes
4612 ;;
4613*)
4614 lt_cv_prog_gnu_ld=no
4615 ;;
4616esac
4617fi
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4619$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4620with_gnu_ld=$lt_cv_prog_gnu_ld
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4631$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4632if ${lt_cv_path_NM+:} false; then :
4633 $as_echo_n "(cached) " >&6
4634else
4635 if test -n "$NM"; then
4636 # Let the user override the test.
4637 lt_cv_path_NM="$NM"
4638else
4639 lt_nm_to_check="${ac_tool_prefix}nm"
4640 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4641 lt_nm_to_check="$lt_nm_to_check nm"
4642 fi
4643 for lt_tmp_nm in $lt_nm_to_check; do
4644 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4645 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4646 IFS="$lt_save_ifs"
4647 test -z "$ac_dir" && ac_dir=.
4648 tmp_nm="$ac_dir/$lt_tmp_nm"
4649 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4650 # Check to see if the nm accepts a BSD-compat flag.
4651 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4652 # nm: unknown option "B" ignored
4653 # Tru64's nm complains that /dev/null is an invalid object file
4654 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4655 */dev/null* | *'Invalid file or object type'*)
4656 lt_cv_path_NM="$tmp_nm -B"
4657 break
4658 ;;
4659 *)
4660 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4661 */dev/null*)
4662 lt_cv_path_NM="$tmp_nm -p"
4663 break
4664 ;;
4665 *)
4666 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4667 continue # so that we can try to find one that supports BSD flags
4668 ;;
4669 esac
4670 ;;
4671 esac
4672 fi
4673 done
4674 IFS="$lt_save_ifs"
4675 done
4676 : ${lt_cv_path_NM=no}
4677fi
4678fi
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4680$as_echo "$lt_cv_path_NM" >&6; }
4681if test "$lt_cv_path_NM" != "no"; then
4682 NM="$lt_cv_path_NM"
4683else
4684 # Didn't find any BSD compatible name lister, look for dumpbin.
4685 if test -n "$DUMPBIN"; then :
4686 # Let the user override the test.
4687 else
4688 if test -n "$ac_tool_prefix"; then
4689 for ac_prog in dumpbin "link -dump"
4690 do
4691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4692set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694$as_echo_n "checking for $ac_word... " >&6; }
4695if ${ac_cv_prog_DUMPBIN+:} false; then :
4696 $as_echo_n "(cached) " >&6
4697else
4698 if test -n "$DUMPBIN"; then
4699 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4700else
4701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702for as_dir in $PATH
4703do
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 break 2
4711 fi
4712done
4713 done
4714IFS=$as_save_IFS
4715
4716fi
4717fi
4718DUMPBIN=$ac_cv_prog_DUMPBIN
4719if test -n "$DUMPBIN"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4721$as_echo "$DUMPBIN" >&6; }
4722else
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724$as_echo "no" >&6; }
4725fi
4726
4727
4728 test -n "$DUMPBIN" && break
4729 done
4730fi
4731if test -z "$DUMPBIN"; then
4732 ac_ct_DUMPBIN=$DUMPBIN
4733 for ac_prog in dumpbin "link -dump"
4734do
4735 # Extract the first word of "$ac_prog", so it can be a program name with args.
4736set dummy $ac_prog; ac_word=$2
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738$as_echo_n "checking for $ac_word... " >&6; }
4739if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4740 $as_echo_n "(cached) " >&6
4741else
4742 if test -n "$ac_ct_DUMPBIN"; then
4743 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4744else
4745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746for as_dir in $PATH
4747do
4748 IFS=$as_save_IFS
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4752 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 break 2
4755 fi
4756done
4757 done
4758IFS=$as_save_IFS
4759
4760fi
4761fi
4762ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4763if test -n "$ac_ct_DUMPBIN"; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4765$as_echo "$ac_ct_DUMPBIN" >&6; }
4766else
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768$as_echo "no" >&6; }
4769fi
4770
4771
4772 test -n "$ac_ct_DUMPBIN" && break
4773done
4774
4775 if test "x$ac_ct_DUMPBIN" = x; then
4776 DUMPBIN=":"
4777 else
4778 case $cross_compiling:$ac_tool_warned in
4779yes:)
4780{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4781$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4782ac_tool_warned=yes ;;
4783esac
4784 DUMPBIN=$ac_ct_DUMPBIN
4785 fi
4786fi
4787
4788 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4789 *COFF*)
4790 DUMPBIN="$DUMPBIN -symbols"
4791 ;;
4792 *)
4793 DUMPBIN=:
4794 ;;
4795 esac
4796 fi
4797
4798 if test "$DUMPBIN" != ":"; then
4799 NM="$DUMPBIN"
4800 fi
4801fi
4802test -z "$NM" && NM=nm
4803
4804
4805
4806
4807
4808
4809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4810$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4811if ${lt_cv_nm_interface+:} false; then :
4812 $as_echo_n "(cached) " >&6
4813else
4814 lt_cv_nm_interface="BSD nm"
4815 echo "int some_variable = 0;" > conftest.$ac_ext
4816 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4817 (eval "$ac_compile" 2>conftest.err)
4818 cat conftest.err >&5
4819 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4820 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4821 cat conftest.err >&5
4822 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4823 cat conftest.out >&5
4824 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4825 lt_cv_nm_interface="MS dumpbin"
4826 fi
4827 rm -f conftest*
4828fi
4829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4830$as_echo "$lt_cv_nm_interface" >&6; }
4831
4832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4833$as_echo_n "checking whether ln -s works... " >&6; }
4834LN_S=$as_ln_s
4835if test "$LN_S" = "ln -s"; then
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4837$as_echo "yes" >&6; }
4838else
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4840$as_echo "no, using $LN_S" >&6; }
4841fi
4842
4843# find the maximum length of command line arguments
4844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4845$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4846if ${lt_cv_sys_max_cmd_len+:} false; then :
4847 $as_echo_n "(cached) " >&6
4848else
4849 i=0
4850 teststring="ABCD"
4851
4852 case $build_os in
4853 msdosdjgpp*)
4854 # On DJGPP, this test can blow up pretty badly due to problems in libc
4855 # (any single argument exceeding 2000 bytes causes a buffer overrun
4856 # during glob expansion). Even if it were fixed, the result of this
4857 # check would be larger than it should be.
4858 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4859 ;;
4860
4861 gnu*)
4862 # Under GNU Hurd, this test is not required because there is
4863 # no limit to the length of command line arguments.
4864 # Libtool will interpret -1 as no limit whatsoever
4865 lt_cv_sys_max_cmd_len=-1;
4866 ;;
4867
4868 cygwin* | mingw* | cegcc*)
4869 # On Win9x/ME, this test blows up -- it succeeds, but takes
4870 # about 5 minutes as the teststring grows exponentially.
4871 # Worse, since 9x/ME are not pre-emptively multitasking,
4872 # you end up with a "frozen" computer, even though with patience
4873 # the test eventually succeeds (with a max line length of 256k).
4874 # Instead, let's just punt: use the minimum linelength reported by
4875 # all of the supported platforms: 8192 (on NT/2K/XP).
4876 lt_cv_sys_max_cmd_len=8192;
4877 ;;
4878
4879 mint*)
4880 # On MiNT this can take a long time and run out of memory.
4881 lt_cv_sys_max_cmd_len=8192;
4882 ;;
4883
4884 amigaos*)
4885 # On AmigaOS with pdksh, this test takes hours, literally.
4886 # So we just punt and use a minimum line length of 8192.
4887 lt_cv_sys_max_cmd_len=8192;
4888 ;;
4889
4890 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4891 # This has been around since 386BSD, at least. Likely further.
4892 if test -x /sbin/sysctl; then
4893 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4894 elif test -x /usr/sbin/sysctl; then
4895 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4896 else
4897 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4898 fi
4899 # And add a safety zone
4900 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4901 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4902 ;;
4903
4904 interix*)
4905 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4906 lt_cv_sys_max_cmd_len=196608
4907 ;;
4908
4909 os2*)
4910 # The test takes a long time on OS/2.
4911 lt_cv_sys_max_cmd_len=8192
4912 ;;
4913
4914 osf*)
4915 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4916 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4917 # nice to cause kernel panics so lets avoid the loop below.
4918 # First set a reasonable default.
4919 lt_cv_sys_max_cmd_len=16384
4920 #
4921 if test -x /sbin/sysconfig; then
4922 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4923 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4924 esac
4925 fi
4926 ;;
4927 sco3.2v5*)
4928 lt_cv_sys_max_cmd_len=102400
4929 ;;
4930 sysv5* | sco5v6* | sysv4.2uw2*)
4931 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4932 if test -n "$kargmax"; then
4933 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4934 else
4935 lt_cv_sys_max_cmd_len=32768
4936 fi
4937 ;;
4938 *)
4939 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4940 if test -n "$lt_cv_sys_max_cmd_len"; then
4941 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4942 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4943 else
4944 # Make teststring a little bigger before we do anything with it.
4945 # a 1K string should be a reasonable start.
4946 for i in 1 2 3 4 5 6 7 8 ; do
4947 teststring=$teststring$teststring
4948 done
4949 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4950 # If test is not a shell built-in, we'll probably end up computing a
4951 # maximum length that is only half of the actual maximum length, but
4952 # we can't tell.
4953 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4954 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4955 test $i != 17 # 1/2 MB should be enough
4956 do
4957 i=`expr $i + 1`
4958 teststring=$teststring$teststring
4959 done
4960 # Only check the string length outside the loop.
4961 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4962 teststring=
4963 # Add a significant safety factor because C++ compilers can tack on
4964 # massive amounts of additional arguments before passing them to the
4965 # linker. It appears as though 1/2 is a usable value.
4966 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4967 fi
4968 ;;
4969 esac
4970
4971fi
4972
4973if test -n $lt_cv_sys_max_cmd_len ; then
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4975$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4976else
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4978$as_echo "none" >&6; }
4979fi
4980max_cmd_len=$lt_cv_sys_max_cmd_len
4981
4982
4983
4984
4985
4986
4987: ${CP="cp -f"}
4988: ${MV="mv -f"}
4989: ${RM="rm -f"}
4990
4991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4992$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4993# Try some XSI features
4994xsi_shell=no
4995( _lt_dummy="a/b/c"
4996 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4997 = c,a/b,b/c, \
4998 && eval 'test $(( 1 + 1 )) -eq 2 \
4999 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5000 && xsi_shell=yes
5001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5002$as_echo "$xsi_shell" >&6; }
5003
5004
5005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5006$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5007lt_shell_append=no
5008( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5009 >/dev/null 2>&1 \
5010 && lt_shell_append=yes
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5012$as_echo "$lt_shell_append" >&6; }
5013
5014
5015if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5016 lt_unset=unset
5017else
5018 lt_unset=false
5019fi
5020
5021
5022
5023
5024
5025# test EBCDIC or ASCII
5026case `echo X|tr X '\101'` in
5027 A) # ASCII based system
5028 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5029 lt_SP2NL='tr \040 \012'
5030 lt_NL2SP='tr \015\012 \040\040'
5031 ;;
5032 *) # EBCDIC based system
5033 lt_SP2NL='tr \100 \n'
5034 lt_NL2SP='tr \r\n \100\100'
5035 ;;
5036esac
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5047$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5048if ${lt_cv_to_host_file_cmd+:} false; then :
5049 $as_echo_n "(cached) " >&6
5050else
5051 case $host in
5052 *-*-mingw* )
5053 case $build in
5054 *-*-mingw* ) # actually msys
5055 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5056 ;;
5057 *-*-cygwin* )
5058 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5059 ;;
5060 * ) # otherwise, assume *nix
5061 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5062 ;;
5063 esac
5064 ;;
5065 *-*-cygwin* )
5066 case $build in
5067 *-*-mingw* ) # actually msys
5068 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5069 ;;
5070 *-*-cygwin* )
5071 lt_cv_to_host_file_cmd=func_convert_file_noop
5072 ;;
5073 * ) # otherwise, assume *nix
5074 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5075 ;;
5076 esac
5077 ;;
5078 * ) # unhandled hosts (and "normal" native builds)
5079 lt_cv_to_host_file_cmd=func_convert_file_noop
5080 ;;
5081esac
5082
5083fi
5084
5085to_host_file_cmd=$lt_cv_to_host_file_cmd
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5087$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5088
5089
5090
5091
5092
5093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5094$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5095if ${lt_cv_to_tool_file_cmd+:} false; then :
5096 $as_echo_n "(cached) " >&6
5097else
5098 #assume ordinary cross tools, or native build.
5099lt_cv_to_tool_file_cmd=func_convert_file_noop
5100case $host in
5101 *-*-mingw* )
5102 case $build in
5103 *-*-mingw* ) # actually msys
5104 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5105 ;;
5106 esac
5107 ;;
5108esac
5109
5110fi
5111
5112to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5114$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5115
5116
5117
5118
5119
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5121$as_echo_n "checking for $LD option to reload object files... " >&6; }
5122if ${lt_cv_ld_reload_flag+:} false; then :
5123 $as_echo_n "(cached) " >&6
5124else
5125 lt_cv_ld_reload_flag='-r'
5126fi
5127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5128$as_echo "$lt_cv_ld_reload_flag" >&6; }
5129reload_flag=$lt_cv_ld_reload_flag
5130case $reload_flag in
5131"" | " "*) ;;
5132*) reload_flag=" $reload_flag" ;;
5133esac
5134reload_cmds='$LD$reload_flag -o $output$reload_objs'
5135case $host_os in
5136 cygwin* | mingw* | pw32* | cegcc*)
5137 if test "$GCC" != yes; then
5138 reload_cmds=false
5139 fi
5140 ;;
5141 darwin*)
5142 if test "$GCC" = yes; then
5143 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5144 else
5145 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5146 fi
5147 ;;
5148esac
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158if test -n "$ac_tool_prefix"; then
5159 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5160set dummy ${ac_tool_prefix}objdump; ac_word=$2
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5162$as_echo_n "checking for $ac_word... " >&6; }
5163if ${ac_cv_prog_OBJDUMP+:} false; then :
5164 $as_echo_n "(cached) " >&6
5165else
5166 if test -n "$OBJDUMP"; then
5167 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5168else
5169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170for as_dir in $PATH
5171do
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5176 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 break 2
5179 fi
5180done
5181 done
5182IFS=$as_save_IFS
5183
5184fi
5185fi
5186OBJDUMP=$ac_cv_prog_OBJDUMP
5187if test -n "$OBJDUMP"; then
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5189$as_echo "$OBJDUMP" >&6; }
5190else
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192$as_echo "no" >&6; }
5193fi
5194
5195
5196fi
5197if test -z "$ac_cv_prog_OBJDUMP"; then
5198 ac_ct_OBJDUMP=$OBJDUMP
5199 # Extract the first word of "objdump", so it can be a program name with args.
5200set dummy objdump; ac_word=$2
5201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5202$as_echo_n "checking for $ac_word... " >&6; }
5203if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5204 $as_echo_n "(cached) " >&6
5205else
5206 if test -n "$ac_ct_OBJDUMP"; then
5207 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5208else
5209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210for as_dir in $PATH
5211do
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5216 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5218 break 2
5219 fi
5220done
5221 done
5222IFS=$as_save_IFS
5223
5224fi
5225fi
5226ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5227if test -n "$ac_ct_OBJDUMP"; then
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5229$as_echo "$ac_ct_OBJDUMP" >&6; }
5230else
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232$as_echo "no" >&6; }
5233fi
5234
5235 if test "x$ac_ct_OBJDUMP" = x; then
5236 OBJDUMP="false"
5237 else
5238 case $cross_compiling:$ac_tool_warned in
5239yes:)
5240{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5241$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5242ac_tool_warned=yes ;;
5243esac
5244 OBJDUMP=$ac_ct_OBJDUMP
5245 fi
5246else
5247 OBJDUMP="$ac_cv_prog_OBJDUMP"
5248fi
5249
5250test -z "$OBJDUMP" && OBJDUMP=objdump
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5261$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5262if ${lt_cv_deplibs_check_method+:} false; then :
5263 $as_echo_n "(cached) " >&6
5264else
5265 lt_cv_file_magic_cmd='$MAGIC_CMD'
5266lt_cv_file_magic_test_file=
5267lt_cv_deplibs_check_method='unknown'
5268# Need to set the preceding variable on all platforms that support
5269# interlibrary dependencies.
5270# 'none' -- dependencies not supported.
5271# `unknown' -- same as none, but documents that we really don't know.
5272# 'pass_all' -- all dependencies passed with no checks.
5273# 'test_compile' -- check by making test program.
5274# 'file_magic [[regex]]' -- check by looking for files in library path
5275# which responds to the $file_magic_cmd with a given extended regex.
5276# If you have `file' or equivalent on your system and you're not sure
5277# whether `pass_all' will *always* work, you probably want this one.
5278
5279case $host_os in
5280aix[4-9]*)
5281 lt_cv_deplibs_check_method=pass_all
5282 ;;
5283
5284beos*)
5285 lt_cv_deplibs_check_method=pass_all
5286 ;;
5287
5288bsdi[45]*)
5289 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5290 lt_cv_file_magic_cmd='/usr/bin/file -L'
5291 lt_cv_file_magic_test_file=/shlib/libc.so
5292 ;;
5293
5294cygwin*)
5295 # func_win32_libid is a shell function defined in ltmain.sh
5296 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5297 lt_cv_file_magic_cmd='func_win32_libid'
5298 ;;
5299
5300mingw* | pw32*)
5301 # Base MSYS/MinGW do not provide the 'file' command needed by
5302 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5303 # unless we find 'file', for example because we are cross-compiling.
5304 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5305 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5306 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5307 lt_cv_file_magic_cmd='func_win32_libid'
5308 else
5309 # Keep this pattern in sync with the one in func_win32_libid.
5310 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5311 lt_cv_file_magic_cmd='$OBJDUMP -f'
5312 fi
5313 ;;
5314
5315cegcc*)
5316 # use the weaker test based on 'objdump'. See mingw*.
5317 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5318 lt_cv_file_magic_cmd='$OBJDUMP -f'
5319 ;;
5320
5321darwin* | rhapsody*)
5322 lt_cv_deplibs_check_method=pass_all
5323 ;;
5324
5325freebsd* | dragonfly*)
5326 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5327 case $host_cpu in
5328 i*86 )
5329 # Not sure whether the presence of OpenBSD here was a mistake.
5330 # Let's accept both of them until this is cleared up.
5331 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5332 lt_cv_file_magic_cmd=/usr/bin/file
5333 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5334 ;;
5335 esac
5336 else
5337 lt_cv_deplibs_check_method=pass_all
5338 fi
5339 ;;
5340
5341gnu*)
5342 lt_cv_deplibs_check_method=pass_all
5343 ;;
5344
5345haiku*)
5346 lt_cv_deplibs_check_method=pass_all
5347 ;;
5348
5349hpux10.20* | hpux11*)
5350 lt_cv_file_magic_cmd=/usr/bin/file
5351 case $host_cpu in
5352 ia64*)
5353 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5354 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5355 ;;
5356 hppa*64*)
5357 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]'
5358 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5359 ;;
5360 *)
5361 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5362 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5363 ;;
5364 esac
5365 ;;
5366
5367interix[3-9]*)
5368 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5369 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5370 ;;
5371
5372irix5* | irix6* | nonstopux*)
5373 case $LD in
5374 *-32|*"-32 ") libmagic=32-bit;;
5375 *-n32|*"-n32 ") libmagic=N32;;
5376 *-64|*"-64 ") libmagic=64-bit;;
5377 *) libmagic=never-match;;
5378 esac
5379 lt_cv_deplibs_check_method=pass_all
5380 ;;
5381
5382# This must be glibc/ELF.
5383linux* | k*bsd*-gnu | kopensolaris*-gnu)
5384 lt_cv_deplibs_check_method=pass_all
5385 ;;
5386
5387netbsd*)
5388 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5389 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5390 else
5391 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5392 fi
5393 ;;
5394
5395newos6*)
5396 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5397 lt_cv_file_magic_cmd=/usr/bin/file
5398 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5399 ;;
5400
5401*nto* | *qnx*)
5402 lt_cv_deplibs_check_method=pass_all
5403 ;;
5404
5405openbsd*)
5406 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5407 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5408 else
5409 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5410 fi
5411 ;;
5412
5413osf3* | osf4* | osf5*)
5414 lt_cv_deplibs_check_method=pass_all
5415 ;;
5416
5417rdos*)
5418 lt_cv_deplibs_check_method=pass_all
5419 ;;
5420
5421solaris*)
5422 lt_cv_deplibs_check_method=pass_all
5423 ;;
5424
5425sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5426 lt_cv_deplibs_check_method=pass_all
5427 ;;
5428
5429sysv4 | sysv4.3*)
5430 case $host_vendor in
5431 motorola)
5432 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]'
5433 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5434 ;;
5435 ncr)
5436 lt_cv_deplibs_check_method=pass_all
5437 ;;
5438 sequent)
5439 lt_cv_file_magic_cmd='/bin/file'
5440 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5441 ;;
5442 sni)
5443 lt_cv_file_magic_cmd='/bin/file'
5444 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5445 lt_cv_file_magic_test_file=/lib/libc.so
5446 ;;
5447 siemens)
5448 lt_cv_deplibs_check_method=pass_all
5449 ;;
5450 pc)
5451 lt_cv_deplibs_check_method=pass_all
5452 ;;
5453 esac
5454 ;;
5455
5456tpf*)
5457 lt_cv_deplibs_check_method=pass_all
5458 ;;
5459esac
5460
5461fi
5462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5463$as_echo "$lt_cv_deplibs_check_method" >&6; }
5464
5465file_magic_glob=
5466want_nocaseglob=no
5467if test "$build" = "$host"; then
5468 case $host_os in
5469 mingw* | pw32*)
5470 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5471 want_nocaseglob=yes
5472 else
5473 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5474 fi
5475 ;;
5476 esac
5477fi
5478
5479file_magic_cmd=$lt_cv_file_magic_cmd
5480deplibs_check_method=$lt_cv_deplibs_check_method
5481test -z "$deplibs_check_method" && deplibs_check_method=unknown
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504if test -n "$ac_tool_prefix"; then
5505 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5506set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5508$as_echo_n "checking for $ac_word... " >&6; }
5509if ${ac_cv_prog_DLLTOOL+:} false; then :
5510 $as_echo_n "(cached) " >&6
5511else
5512 if test -n "$DLLTOOL"; then
5513 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5514else
5515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516for as_dir in $PATH
5517do
5518 IFS=$as_save_IFS
5519 test -z "$as_dir" && as_dir=.
5520 for ac_exec_ext in '' $ac_executable_extensions; do
5521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5522 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 break 2
5525 fi
5526done
5527 done
5528IFS=$as_save_IFS
5529
5530fi
5531fi
5532DLLTOOL=$ac_cv_prog_DLLTOOL
5533if test -n "$DLLTOOL"; then
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5535$as_echo "$DLLTOOL" >&6; }
5536else
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538$as_echo "no" >&6; }
5539fi
5540
5541
5542fi
5543if test -z "$ac_cv_prog_DLLTOOL"; then
5544 ac_ct_DLLTOOL=$DLLTOOL
5545 # Extract the first word of "dlltool", so it can be a program name with args.
5546set dummy dlltool; ac_word=$2
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5548$as_echo_n "checking for $ac_word... " >&6; }
5549if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5550 $as_echo_n "(cached) " >&6
5551else
5552 if test -n "$ac_ct_DLLTOOL"; then
5553 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5554else
5555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556for as_dir in $PATH
5557do
5558 IFS=$as_save_IFS
5559 test -z "$as_dir" && as_dir=.
5560 for ac_exec_ext in '' $ac_executable_extensions; do
5561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5562 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5564 break 2
5565 fi
5566done
5567 done
5568IFS=$as_save_IFS
5569
5570fi
5571fi
5572ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5573if test -n "$ac_ct_DLLTOOL"; then
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5575$as_echo "$ac_ct_DLLTOOL" >&6; }
5576else
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578$as_echo "no" >&6; }
5579fi
5580
5581 if test "x$ac_ct_DLLTOOL" = x; then
5582 DLLTOOL="false"
5583 else
5584 case $cross_compiling:$ac_tool_warned in
5585yes:)
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5587$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5588ac_tool_warned=yes ;;
5589esac
5590 DLLTOOL=$ac_ct_DLLTOOL
5591 fi
5592else
5593 DLLTOOL="$ac_cv_prog_DLLTOOL"
5594fi
5595
5596test -z "$DLLTOOL" && DLLTOOL=dlltool
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5608$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5609if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5610 $as_echo_n "(cached) " >&6
5611else
5612 lt_cv_sharedlib_from_linklib_cmd='unknown'
5613
5614case $host_os in
5615cygwin* | mingw* | pw32* | cegcc*)
5616 # two different shell functions defined in ltmain.sh
5617 # decide which to use based on capabilities of $DLLTOOL
5618 case `$DLLTOOL --help 2>&1` in
5619 *--identify-strict*)
5620 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5621 ;;
5622 *)
5623 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5624 ;;
5625 esac
5626 ;;
5627*)
5628 # fallback: assume linklib IS sharedlib
5629 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5630 ;;
5631esac
5632
5633fi
5634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5635$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5636sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5637test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5638
5639
5640
5641
5642
5643
5644
5645if test -n "$ac_tool_prefix"; then
5646 for ac_prog in ar
5647 do
5648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5649set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5651$as_echo_n "checking for $ac_word... " >&6; }
5652if ${ac_cv_prog_AR+:} false; then :
5653 $as_echo_n "(cached) " >&6
5654else
5655 if test -n "$AR"; then
5656 ac_cv_prog_AR="$AR" # Let the user override the test.
5657else
5658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659for as_dir in $PATH
5660do
5661 IFS=$as_save_IFS
5662 test -z "$as_dir" && as_dir=.
5663 for ac_exec_ext in '' $ac_executable_extensions; do
5664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5665 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5667 break 2
5668 fi
5669done
5670 done
5671IFS=$as_save_IFS
5672
5673fi
5674fi
5675AR=$ac_cv_prog_AR
5676if test -n "$AR"; then
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5678$as_echo "$AR" >&6; }
5679else
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681$as_echo "no" >&6; }
5682fi
5683
5684
5685 test -n "$AR" && break
5686 done
5687fi
5688if test -z "$AR"; then
5689 ac_ct_AR=$AR
5690 for ac_prog in ar
5691do
5692 # Extract the first word of "$ac_prog", so it can be a program name with args.
5693set dummy $ac_prog; ac_word=$2
5694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5695$as_echo_n "checking for $ac_word... " >&6; }
5696if ${ac_cv_prog_ac_ct_AR+:} false; then :
5697 $as_echo_n "(cached) " >&6
5698else
5699 if test -n "$ac_ct_AR"; then
5700 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5701else
5702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703for as_dir in $PATH
5704do
5705 IFS=$as_save_IFS
5706 test -z "$as_dir" && as_dir=.
5707 for ac_exec_ext in '' $ac_executable_extensions; do
5708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5709 ac_cv_prog_ac_ct_AR="$ac_prog"
5710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5711 break 2
5712 fi
5713done
5714 done
5715IFS=$as_save_IFS
5716
5717fi
5718fi
5719ac_ct_AR=$ac_cv_prog_ac_ct_AR
5720if test -n "$ac_ct_AR"; then
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5722$as_echo "$ac_ct_AR" >&6; }
5723else
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5725$as_echo "no" >&6; }
5726fi
5727
5728
5729 test -n "$ac_ct_AR" && break
5730done
5731
5732 if test "x$ac_ct_AR" = x; then
5733 AR="false"
5734 else
5735 case $cross_compiling:$ac_tool_warned in
5736yes:)
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5739ac_tool_warned=yes ;;
5740esac
5741 AR=$ac_ct_AR
5742 fi
5743fi
5744
5745: ${AR=ar}
5746: ${AR_FLAGS=cru}
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5759$as_echo_n "checking for archiver @FILE support... " >&6; }
5760if ${lt_cv_ar_at_file+:} false; then :
5761 $as_echo_n "(cached) " >&6
5762else
5763 lt_cv_ar_at_file=no
5764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5765/* end confdefs.h. */
5766
5767int
5768main ()
5769{
5770
5771 ;
5772 return 0;
5773}
5774_ACEOF
5775if ac_fn_c_try_compile "$LINENO"; then :
5776 echo conftest.$ac_objext > conftest.lst
5777 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5779 (eval $lt_ar_try) 2>&5
5780 ac_status=$?
5781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5782 test $ac_status = 0; }
5783 if test "$ac_status" -eq 0; then
5784 # Ensure the archiver fails upon bogus file names.
5785 rm -f conftest.$ac_objext libconftest.a
5786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5787 (eval $lt_ar_try) 2>&5
5788 ac_status=$?
5789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5790 test $ac_status = 0; }
5791 if test "$ac_status" -ne 0; then
5792 lt_cv_ar_at_file=@
5793 fi
5794 fi
5795 rm -f conftest.* libconftest.a
5796
5797fi
5798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5799
5800fi
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5802$as_echo "$lt_cv_ar_at_file" >&6; }
5803
5804if test "x$lt_cv_ar_at_file" = xno; then
5805 archiver_list_spec=
5806else
5807 archiver_list_spec=$lt_cv_ar_at_file
5808fi
5809
5810
5811
5812
5813
5814
5815
5816if test -n "$ac_tool_prefix"; then
5817 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5818set dummy ${ac_tool_prefix}strip; ac_word=$2
5819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5820$as_echo_n "checking for $ac_word... " >&6; }
5821if ${ac_cv_prog_STRIP+:} false; then :
5822 $as_echo_n "(cached) " >&6
5823else
5824 if test -n "$STRIP"; then
5825 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5826else
5827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828for as_dir in $PATH
5829do
5830 IFS=$as_save_IFS
5831 test -z "$as_dir" && as_dir=.
5832 for ac_exec_ext in '' $ac_executable_extensions; do
5833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5834 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5836 break 2
5837 fi
5838done
5839 done
5840IFS=$as_save_IFS
5841
5842fi
5843fi
5844STRIP=$ac_cv_prog_STRIP
5845if test -n "$STRIP"; then
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5847$as_echo "$STRIP" >&6; }
5848else
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850$as_echo "no" >&6; }
5851fi
5852
5853
5854fi
5855if test -z "$ac_cv_prog_STRIP"; then
5856 ac_ct_STRIP=$STRIP
5857 # Extract the first word of "strip", so it can be a program name with args.
5858set dummy strip; ac_word=$2
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860$as_echo_n "checking for $ac_word... " >&6; }
5861if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5862 $as_echo_n "(cached) " >&6
5863else
5864 if test -n "$ac_ct_STRIP"; then
5865 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5866else
5867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868for as_dir in $PATH
5869do
5870 IFS=$as_save_IFS
5871 test -z "$as_dir" && as_dir=.
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5874 ac_cv_prog_ac_ct_STRIP="strip"
5875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5876 break 2
5877 fi
5878done
5879 done
5880IFS=$as_save_IFS
5881
5882fi
5883fi
5884ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5885if test -n "$ac_ct_STRIP"; then
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5887$as_echo "$ac_ct_STRIP" >&6; }
5888else
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890$as_echo "no" >&6; }
5891fi
5892
5893 if test "x$ac_ct_STRIP" = x; then
5894 STRIP=":"
5895 else
5896 case $cross_compiling:$ac_tool_warned in
5897yes:)
5898{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5900ac_tool_warned=yes ;;
5901esac
5902 STRIP=$ac_ct_STRIP
5903 fi
5904else
5905 STRIP="$ac_cv_prog_STRIP"
5906fi
5907
5908test -z "$STRIP" && STRIP=:
5909
5910
5911
5912
5913
5914
5915if test -n "$ac_tool_prefix"; then
5916 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5917set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5919$as_echo_n "checking for $ac_word... " >&6; }
5920if ${ac_cv_prog_RANLIB+:} false; then :
5921 $as_echo_n "(cached) " >&6
5922else
5923 if test -n "$RANLIB"; then
5924 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5925else
5926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927for as_dir in $PATH
5928do
5929 IFS=$as_save_IFS
5930 test -z "$as_dir" && as_dir=.
5931 for ac_exec_ext in '' $ac_executable_extensions; do
5932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5933 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935 break 2
5936 fi
5937done
5938 done
5939IFS=$as_save_IFS
5940
5941fi
5942fi
5943RANLIB=$ac_cv_prog_RANLIB
5944if test -n "$RANLIB"; then
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5946$as_echo "$RANLIB" >&6; }
5947else
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5949$as_echo "no" >&6; }
5950fi
5951
5952
5953fi
5954if test -z "$ac_cv_prog_RANLIB"; then
5955 ac_ct_RANLIB=$RANLIB
5956 # Extract the first word of "ranlib", so it can be a program name with args.
5957set dummy ranlib; ac_word=$2
5958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959$as_echo_n "checking for $ac_word... " >&6; }
5960if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5961 $as_echo_n "(cached) " >&6
5962else
5963 if test -n "$ac_ct_RANLIB"; then
5964 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5965else
5966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967for as_dir in $PATH
5968do
5969 IFS=$as_save_IFS
5970 test -z "$as_dir" && as_dir=.
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5973 ac_cv_prog_ac_ct_RANLIB="ranlib"
5974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975 break 2
5976 fi
5977done
5978 done
5979IFS=$as_save_IFS
5980
5981fi
5982fi
5983ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5984if test -n "$ac_ct_RANLIB"; then
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5986$as_echo "$ac_ct_RANLIB" >&6; }
5987else
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989$as_echo "no" >&6; }
5990fi
5991
5992 if test "x$ac_ct_RANLIB" = x; then
5993 RANLIB=":"
5994 else
5995 case $cross_compiling:$ac_tool_warned in
5996yes:)
5997{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5999ac_tool_warned=yes ;;
6000esac
6001 RANLIB=$ac_ct_RANLIB
6002 fi
6003else
6004 RANLIB="$ac_cv_prog_RANLIB"
6005fi
6006
6007test -z "$RANLIB" && RANLIB=:
6008
6009
6010
6011
6012
6013
6014# Determine commands to create old-style static archives.
6015old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6016old_postinstall_cmds='chmod 644 $oldlib'
6017old_postuninstall_cmds=
6018
6019if test -n "$RANLIB"; then
6020 case $host_os in
6021 openbsd*)
6022 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6023 ;;
6024 *)
6025 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6026 ;;
6027 esac
6028 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6029fi
6030
6031case $host_os in
6032 darwin*)
6033 lock_old_archive_extraction=yes ;;
6034 *)
6035 lock_old_archive_extraction=no ;;
6036esac
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076# If no C compiler was specified, use CC.
6077LTCC=${LTCC-"$CC"}
6078
6079# If no C compiler flags were specified, use CFLAGS.
6080LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6081
6082# Allow CC to be a program name with arguments.
6083compiler=$CC
6084
6085
6086# Check for command to grab the raw symbol name followed by C symbol from nm.
6087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6088$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6089if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6090 $as_echo_n "(cached) " >&6
6091else
6092
6093# These are sane defaults that work on at least a few old systems.
6094# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6095
6096# Character class describing NM global symbol codes.
6097symcode='[BCDEGRST]'
6098
6099# Regexp to match symbols that can be accessed directly from C.
6100sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6101
6102# Define system-specific variables.
6103case $host_os in
6104aix*)
6105 symcode='[BCDT]'
6106 ;;
6107cygwin* | mingw* | pw32* | cegcc*)
6108 symcode='[ABCDGISTW]'
6109 ;;
6110hpux*)
6111 if test "$host_cpu" = ia64; then
6112 symcode='[ABCDEGRST]'
6113 fi
6114 ;;
6115irix* | nonstopux*)
6116 symcode='[BCDEGRST]'
6117 ;;
6118osf*)
6119 symcode='[BCDEGQRST]'
6120 ;;
6121solaris*)
6122 symcode='[BDRT]'
6123 ;;
6124sco3.2v5*)
6125 symcode='[DT]'
6126 ;;
6127sysv4.2uw2*)
6128 symcode='[DT]'
6129 ;;
6130sysv5* | sco5v6* | unixware* | OpenUNIX*)
6131 symcode='[ABDT]'
6132 ;;
6133sysv4)
6134 symcode='[DFNSTU]'
6135 ;;
6136esac
6137
6138# If we're using GNU nm, then use its standard symbol codes.
6139case `$NM -V 2>&1` in
6140*GNU* | *'with BFD'*)
6141 symcode='[ABCDGIRSTW]' ;;
6142esac
6143
6144# Transform an extracted symbol line into a proper C declaration.
6145# Some systems (esp. on ia64) link data and code symbols differently,
6146# so use this general approach.
6147lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6148
6149# Transform an extracted symbol line into symbol name and symbol address
6150lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6151lt_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'"
6152
6153# Handle CRLF in mingw tool chain
6154opt_cr=
6155case $build_os in
6156mingw*)
6157 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6158 ;;
6159esac
6160
6161# Try without a prefix underscore, then with it.
6162for ac_symprfx in "" "_"; do
6163
6164 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6165 symxfrm="\\1 $ac_symprfx\\2 \\2"
6166
6167 # Write the raw and C identifiers.
6168 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6169 # Fake it for dumpbin and say T for any non-static function
6170 # and D for any global variable.
6171 # Also find C++ and __fastcall symbols from MSVC++,
6172 # which start with @ or ?.
6173 lt_cv_sys_global_symbol_pipe="$AWK '"\
6174" {last_section=section; section=\$ 3};"\
6175" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6176" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6177" \$ 0!~/External *\|/{next};"\
6178" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6179" {if(hide[section]) next};"\
6180" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6181" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6182" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6183" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6184" ' prfx=^$ac_symprfx"
6185 else
6186 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6187 fi
6188 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6189
6190 # Check to see that the pipe works correctly.
6191 pipe_works=no
6192
6193 rm -f conftest*
6194 cat > conftest.$ac_ext <<_LT_EOF
6195#ifdef __cplusplus
6196extern "C" {
6197#endif
6198char nm_test_var;
6199void nm_test_func(void);
6200void nm_test_func(void){}
6201#ifdef __cplusplus
6202}
6203#endif
6204int main(){nm_test_var='a';nm_test_func();return(0);}
6205_LT_EOF
6206
6207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6208 (eval $ac_compile) 2>&5
6209 ac_status=$?
6210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6211 test $ac_status = 0; }; then
6212 # Now try to grab the symbols.
6213 nlist=conftest.nm
6214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6215 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6216 ac_status=$?
6217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6218 test $ac_status = 0; } && test -s "$nlist"; then
6219 # Try sorting and uniquifying the output.
6220 if sort "$nlist" | uniq > "$nlist"T; then
6221 mv -f "$nlist"T "$nlist"
6222 else
6223 rm -f "$nlist"T
6224 fi
6225
6226 # Make sure that we snagged all the symbols we need.
6227 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6228 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6229 cat <<_LT_EOF > conftest.$ac_ext
6230/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6231#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6232/* DATA imports from DLLs on WIN32 con't be const, because runtime
6233 relocations are performed -- see ld's documentation on pseudo-relocs. */
6234# define LT_DLSYM_CONST
6235#elif defined(__osf__)
6236/* This system does not cope well with relocations in const data. */
6237# define LT_DLSYM_CONST
6238#else
6239# define LT_DLSYM_CONST const
6240#endif
6241
6242#ifdef __cplusplus
6243extern "C" {
6244#endif
6245
6246_LT_EOF
6247 # Now generate the symbol file.
6248 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6249
6250 cat <<_LT_EOF >> conftest.$ac_ext
6251
6252/* The mapping between symbol names and symbols. */
6253LT_DLSYM_CONST struct {
6254 const char *name;
6255 void *address;
6256}
6257lt__PROGRAM__LTX_preloaded_symbols[] =
6258{
6259 { "@PROGRAM@", (void *) 0 },
6260_LT_EOF
6261 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6262 cat <<\_LT_EOF >> conftest.$ac_ext
6263 {0, (void *) 0}
6264};
6265
6266/* This works around a problem in FreeBSD linker */
6267#ifdef FREEBSD_WORKAROUND
6268static const void *lt_preloaded_setup() {
6269 return lt__PROGRAM__LTX_preloaded_symbols;
6270}
6271#endif
6272
6273#ifdef __cplusplus
6274}
6275#endif
6276_LT_EOF
6277 # Now try linking the two files.
6278 mv conftest.$ac_objext conftstm.$ac_objext
6279 lt_globsym_save_LIBS=$LIBS
6280 lt_globsym_save_CFLAGS=$CFLAGS
6281 LIBS="conftstm.$ac_objext"
6282 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6284 (eval $ac_link) 2>&5
6285 ac_status=$?
6286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6287 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6288 pipe_works=yes
6289 fi
6290 LIBS=$lt_globsym_save_LIBS
6291 CFLAGS=$lt_globsym_save_CFLAGS
6292 else
6293 echo "cannot find nm_test_func in $nlist" >&5
6294 fi
6295 else
6296 echo "cannot find nm_test_var in $nlist" >&5
6297 fi
6298 else
6299 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6300 fi
6301 else
6302 echo "$progname: failed program was:" >&5
6303 cat conftest.$ac_ext >&5
6304 fi
6305 rm -rf conftest* conftst*
6306
6307 # Do not use the global_symbol_pipe unless it works.
6308 if test "$pipe_works" = yes; then
6309 break
6310 else
6311 lt_cv_sys_global_symbol_pipe=
6312 fi
6313done
6314
6315fi
6316
6317if test -z "$lt_cv_sys_global_symbol_pipe"; then
6318 lt_cv_sys_global_symbol_to_cdecl=
6319fi
6320if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6322$as_echo "failed" >&6; }
6323else
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6325$as_echo "ok" >&6; }
6326fi
6327
6328# Response file support.
6329if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6330 nm_file_list_spec='@'
6331elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6332 nm_file_list_spec='@'
6333fi
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6362$as_echo_n "checking for sysroot... " >&6; }
6363
6364# Check whether --with-sysroot was given.
6365if test "${with_sysroot+set}" = set; then :
6366 withval=$with_sysroot;
6367else
6368 with_sysroot=no
6369fi
6370
6371
6372lt_sysroot=
6373case ${with_sysroot} in #(
6374 yes)
6375 if test "$GCC" = yes; then
6376 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6377 fi
6378 ;; #(
6379 /*)
6380 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6381 ;; #(
6382 no|'')
6383 ;; #(
6384 *)
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6386$as_echo "${with_sysroot}" >&6; }
6387 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6388 ;;
6389esac
6390
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6392$as_echo "${lt_sysroot:-no}" >&6; }
6393
6394
6395
6396
6397
6398# Check whether --enable-libtool-lock was given.
6399if test "${enable_libtool_lock+set}" = set; then :
6400 enableval=$enable_libtool_lock;
6401fi
6402
6403test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6404
6405# Some flags need to be propagated to the compiler or linker for good
6406# libtool support.
6407case $host in
6408ia64-*-hpux*)
6409 # Find out which ABI we are using.
6410 echo 'int i;' > conftest.$ac_ext
6411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6412 (eval $ac_compile) 2>&5
6413 ac_status=$?
6414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6415 test $ac_status = 0; }; then
6416 case `/usr/bin/file conftest.$ac_objext` in
6417 *ELF-32*)
6418 HPUX_IA64_MODE="32"
6419 ;;
6420 *ELF-64*)
6421 HPUX_IA64_MODE="64"
6422 ;;
6423 esac
6424 fi
6425 rm -rf conftest*
6426 ;;
6427*-*-irix6*)
6428 # Find out which ABI we are using.
6429 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6431 (eval $ac_compile) 2>&5
6432 ac_status=$?
6433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6434 test $ac_status = 0; }; then
6435 if test "$lt_cv_prog_gnu_ld" = yes; then
6436 case `/usr/bin/file conftest.$ac_objext` in
6437 *32-bit*)
6438 LD="${LD-ld} -melf32bsmip"
6439 ;;
6440 *N32*)
6441 LD="${LD-ld} -melf32bmipn32"
6442 ;;
6443 *64-bit*)
6444 LD="${LD-ld} -melf64bmip"
6445 ;;
6446 esac
6447 else
6448 case `/usr/bin/file conftest.$ac_objext` in
6449 *32-bit*)
6450 LD="${LD-ld} -32"
6451 ;;
6452 *N32*)
6453 LD="${LD-ld} -n32"
6454 ;;
6455 *64-bit*)
6456 LD="${LD-ld} -64"
6457 ;;
6458 esac
6459 fi
6460 fi
6461 rm -rf conftest*
6462 ;;
6463
6464x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6465s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6466 # Find out which ABI we are using.
6467 echo 'int i;' > conftest.$ac_ext
6468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6469 (eval $ac_compile) 2>&5
6470 ac_status=$?
6471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6472 test $ac_status = 0; }; then
6473 case `/usr/bin/file conftest.o` in
6474 *32-bit*)
6475 case $host in
6476 x86_64-*kfreebsd*-gnu)
6477 LD="${LD-ld} -m elf_i386_fbsd"
6478 ;;
6479 x86_64-*linux*)
6480 LD="${LD-ld} -m elf_i386"
6481 ;;
6482 ppc64-*linux*|powerpc64-*linux*)
6483 LD="${LD-ld} -m elf32ppclinux"
6484 ;;
6485 s390x-*linux*)
6486 LD="${LD-ld} -m elf_s390"
6487 ;;
6488 sparc64-*linux*)
6489 LD="${LD-ld} -m elf32_sparc"
6490 ;;
6491 esac
6492 ;;
6493 *64-bit*)
6494 case $host in
6495 x86_64-*kfreebsd*-gnu)
6496 LD="${LD-ld} -m elf_x86_64_fbsd"
6497 ;;
6498 x86_64-*linux*)
6499 LD="${LD-ld} -m elf_x86_64"
6500 ;;
6501 ppc*-*linux*|powerpc*-*linux*)
6502 LD="${LD-ld} -m elf64ppc"
6503 ;;
6504 s390*-*linux*|s390*-*tpf*)
6505 LD="${LD-ld} -m elf64_s390"
6506 ;;
6507 sparc*-*linux*)
6508 LD="${LD-ld} -m elf64_sparc"
6509 ;;
6510 esac
6511 ;;
6512 esac
6513 fi
6514 rm -rf conftest*
6515 ;;
6516
6517*-*-sco3.2v5*)
6518 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6519 SAVE_CFLAGS="$CFLAGS"
6520 CFLAGS="$CFLAGS -belf"
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6522$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6523if ${lt_cv_cc_needs_belf+:} false; then :
6524 $as_echo_n "(cached) " >&6
6525else
6526 ac_ext=c
6527ac_cpp='$CPP $CPPFLAGS'
6528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6530ac_compiler_gnu=$ac_cv_c_compiler_gnu
6531
6532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6533/* end confdefs.h. */
6534
6535int
6536main ()
6537{
6538
6539 ;
6540 return 0;
6541}
6542_ACEOF
6543if ac_fn_c_try_link "$LINENO"; then :
6544 lt_cv_cc_needs_belf=yes
6545else
6546 lt_cv_cc_needs_belf=no
6547fi
6548rm -f core conftest.err conftest.$ac_objext \
6549 conftest$ac_exeext conftest.$ac_ext
6550 ac_ext=c
6551ac_cpp='$CPP $CPPFLAGS'
6552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6554ac_compiler_gnu=$ac_cv_c_compiler_gnu
6555
6556fi
6557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6558$as_echo "$lt_cv_cc_needs_belf" >&6; }
6559 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6560 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6561 CFLAGS="$SAVE_CFLAGS"
6562 fi
6563 ;;
6564*-*solaris*)
6565 # Find out which ABI we are using.
6566 echo 'int i;' > conftest.$ac_ext
6567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6568 (eval $ac_compile) 2>&5
6569 ac_status=$?
6570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6571 test $ac_status = 0; }; then
6572 case `/usr/bin/file conftest.o` in
6573 *64-bit*)
6574 case $lt_cv_prog_gnu_ld in
6575 yes*)
6576 case $host in
6577 i?86-*-solaris*)
6578 LD="${LD-ld} -m elf_x86_64"
6579 ;;
6580 sparc*-*-solaris*)
6581 LD="${LD-ld} -m elf64_sparc"
6582 ;;
6583 esac
6584 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6585 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6586 LD="${LD-ld}_sol2"
6587 fi
6588 ;;
6589 *)
6590 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6591 LD="${LD-ld} -64"
6592 fi
6593 ;;
6594 esac
6595 ;;
6596 esac
6597 fi
6598 rm -rf conftest*
6599 ;;
6600esac
6601
6602need_locks="$enable_libtool_lock"
6603
6604if test -n "$ac_tool_prefix"; then
6605 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6606set dummy ${ac_tool_prefix}mt; ac_word=$2
6607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6608$as_echo_n "checking for $ac_word... " >&6; }
6609if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6610 $as_echo_n "(cached) " >&6
6611else
6612 if test -n "$MANIFEST_TOOL"; then
6613 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6614else
6615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616for as_dir in $PATH
6617do
6618 IFS=$as_save_IFS
6619 test -z "$as_dir" && as_dir=.
6620 for ac_exec_ext in '' $ac_executable_extensions; do
6621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6622 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6624 break 2
6625 fi
6626done
6627 done
6628IFS=$as_save_IFS
6629
6630fi
6631fi
6632MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6633if test -n "$MANIFEST_TOOL"; then
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6635$as_echo "$MANIFEST_TOOL" >&6; }
6636else
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6638$as_echo "no" >&6; }
6639fi
6640
6641
6642fi
6643if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6644 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6645 # Extract the first word of "mt", so it can be a program name with args.
6646set dummy mt; ac_word=$2
6647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6648$as_echo_n "checking for $ac_word... " >&6; }
6649if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6650 $as_echo_n "(cached) " >&6
6651else
6652 if test -n "$ac_ct_MANIFEST_TOOL"; then
6653 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6654else
6655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656for as_dir in $PATH
6657do
6658 IFS=$as_save_IFS
6659 test -z "$as_dir" && as_dir=.
6660 for ac_exec_ext in '' $ac_executable_extensions; do
6661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6662 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6664 break 2
6665 fi
6666done
6667 done
6668IFS=$as_save_IFS
6669
6670fi
6671fi
6672ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6673if test -n "$ac_ct_MANIFEST_TOOL"; then
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6675$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6676else
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6678$as_echo "no" >&6; }
6679fi
6680
6681 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6682 MANIFEST_TOOL=":"
6683 else
6684 case $cross_compiling:$ac_tool_warned in
6685yes:)
6686{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6688ac_tool_warned=yes ;;
6689esac
6690 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6691 fi
6692else
6693 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6694fi
6695
6696test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6698$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6699if ${lt_cv_path_mainfest_tool+:} false; then :
6700 $as_echo_n "(cached) " >&6
6701else
6702 lt_cv_path_mainfest_tool=no
6703 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6704 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6705 cat conftest.err >&5
6706 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6707 lt_cv_path_mainfest_tool=yes
6708 fi
6709 rm -f conftest*
6710fi
6711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6712$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6713if test "x$lt_cv_path_mainfest_tool" != xyes; then
6714 MANIFEST_TOOL=:
6715fi
6716
6717
6718
6719
6720
6721
6722 case $host_os in
6723 rhapsody* | darwin*)
6724 if test -n "$ac_tool_prefix"; then
6725 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6726set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728$as_echo_n "checking for $ac_word... " >&6; }
6729if ${ac_cv_prog_DSYMUTIL+:} false; then :
6730 $as_echo_n "(cached) " >&6
6731else
6732 if test -n "$DSYMUTIL"; then
6733 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6734else
6735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736for as_dir in $PATH
6737do
6738 IFS=$as_save_IFS
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6742 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 break 2
6745 fi
6746done
6747 done
6748IFS=$as_save_IFS
6749
6750fi
6751fi
6752DSYMUTIL=$ac_cv_prog_DSYMUTIL
6753if test -n "$DSYMUTIL"; then
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6755$as_echo "$DSYMUTIL" >&6; }
6756else
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758$as_echo "no" >&6; }
6759fi
6760
6761
6762fi
6763if test -z "$ac_cv_prog_DSYMUTIL"; then
6764 ac_ct_DSYMUTIL=$DSYMUTIL
6765 # Extract the first word of "dsymutil", so it can be a program name with args.
6766set dummy dsymutil; ac_word=$2
6767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768$as_echo_n "checking for $ac_word... " >&6; }
6769if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6770 $as_echo_n "(cached) " >&6
6771else
6772 if test -n "$ac_ct_DSYMUTIL"; then
6773 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6774else
6775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776for as_dir in $PATH
6777do
6778 IFS=$as_save_IFS
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
6781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6782 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 break 2
6785 fi
6786done
6787 done
6788IFS=$as_save_IFS
6789
6790fi
6791fi
6792ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6793if test -n "$ac_ct_DSYMUTIL"; then
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6795$as_echo "$ac_ct_DSYMUTIL" >&6; }
6796else
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798$as_echo "no" >&6; }
6799fi
6800
6801 if test "x$ac_ct_DSYMUTIL" = x; then
6802 DSYMUTIL=":"
6803 else
6804 case $cross_compiling:$ac_tool_warned in
6805yes:)
6806{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6807$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6808ac_tool_warned=yes ;;
6809esac
6810 DSYMUTIL=$ac_ct_DSYMUTIL
6811 fi
6812else
6813 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6814fi
6815
6816 if test -n "$ac_tool_prefix"; then
6817 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6818set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820$as_echo_n "checking for $ac_word... " >&6; }
6821if ${ac_cv_prog_NMEDIT+:} false; then :
6822 $as_echo_n "(cached) " >&6
6823else
6824 if test -n "$NMEDIT"; then
6825 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6826else
6827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828for as_dir in $PATH
6829do
6830 IFS=$as_save_IFS
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6834 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 break 2
6837 fi
6838done
6839 done
6840IFS=$as_save_IFS
6841
6842fi
6843fi
6844NMEDIT=$ac_cv_prog_NMEDIT
6845if test -n "$NMEDIT"; then
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6847$as_echo "$NMEDIT" >&6; }
6848else
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850$as_echo "no" >&6; }
6851fi
6852
6853
6854fi
6855if test -z "$ac_cv_prog_NMEDIT"; then
6856 ac_ct_NMEDIT=$NMEDIT
6857 # Extract the first word of "nmedit", so it can be a program name with args.
6858set dummy nmedit; ac_word=$2
6859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6860$as_echo_n "checking for $ac_word... " >&6; }
6861if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6862 $as_echo_n "(cached) " >&6
6863else
6864 if test -n "$ac_ct_NMEDIT"; then
6865 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6866else
6867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868for as_dir in $PATH
6869do
6870 IFS=$as_save_IFS
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6874 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 break 2
6877 fi
6878done
6879 done
6880IFS=$as_save_IFS
6881
6882fi
6883fi
6884ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6885if test -n "$ac_ct_NMEDIT"; then
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6887$as_echo "$ac_ct_NMEDIT" >&6; }
6888else
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890$as_echo "no" >&6; }
6891fi
6892
6893 if test "x$ac_ct_NMEDIT" = x; then
6894 NMEDIT=":"
6895 else
6896 case $cross_compiling:$ac_tool_warned in
6897yes:)
6898{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6900ac_tool_warned=yes ;;
6901esac
6902 NMEDIT=$ac_ct_NMEDIT
6903 fi
6904else
6905 NMEDIT="$ac_cv_prog_NMEDIT"
6906fi
6907
6908 if test -n "$ac_tool_prefix"; then
6909 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6910set dummy ${ac_tool_prefix}lipo; ac_word=$2
6911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6912$as_echo_n "checking for $ac_word... " >&6; }
6913if ${ac_cv_prog_LIPO+:} false; then :
6914 $as_echo_n "(cached) " >&6
6915else
6916 if test -n "$LIPO"; then
6917 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6918else
6919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920for as_dir in $PATH
6921do
6922 IFS=$as_save_IFS
6923 test -z "$as_dir" && as_dir=.
6924 for ac_exec_ext in '' $ac_executable_extensions; do
6925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6926 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6928 break 2
6929 fi
6930done
6931 done
6932IFS=$as_save_IFS
6933
6934fi
6935fi
6936LIPO=$ac_cv_prog_LIPO
6937if test -n "$LIPO"; then
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6939$as_echo "$LIPO" >&6; }
6940else
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942$as_echo "no" >&6; }
6943fi
6944
6945
6946fi
6947if test -z "$ac_cv_prog_LIPO"; then
6948 ac_ct_LIPO=$LIPO
6949 # Extract the first word of "lipo", so it can be a program name with args.
6950set dummy lipo; ac_word=$2
6951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952$as_echo_n "checking for $ac_word... " >&6; }
6953if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6954 $as_echo_n "(cached) " >&6
6955else
6956 if test -n "$ac_ct_LIPO"; then
6957 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6958else
6959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960for as_dir in $PATH
6961do
6962 IFS=$as_save_IFS
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6966 ac_cv_prog_ac_ct_LIPO="lipo"
6967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6968 break 2
6969 fi
6970done
6971 done
6972IFS=$as_save_IFS
6973
6974fi
6975fi
6976ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6977if test -n "$ac_ct_LIPO"; then
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6979$as_echo "$ac_ct_LIPO" >&6; }
6980else
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982$as_echo "no" >&6; }
6983fi
6984
6985 if test "x$ac_ct_LIPO" = x; then
6986 LIPO=":"
6987 else
6988 case $cross_compiling:$ac_tool_warned in
6989yes:)
6990{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6992ac_tool_warned=yes ;;
6993esac
6994 LIPO=$ac_ct_LIPO
6995 fi
6996else
6997 LIPO="$ac_cv_prog_LIPO"
6998fi
6999
7000 if test -n "$ac_tool_prefix"; then
7001 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7002set dummy ${ac_tool_prefix}otool; ac_word=$2
7003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7004$as_echo_n "checking for $ac_word... " >&6; }
7005if ${ac_cv_prog_OTOOL+:} false; then :
7006 $as_echo_n "(cached) " >&6
7007else
7008 if test -n "$OTOOL"; then
7009 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7010else
7011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012for as_dir in $PATH
7013do
7014 IFS=$as_save_IFS
7015 test -z "$as_dir" && as_dir=.
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7018 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7020 break 2
7021 fi
7022done
7023 done
7024IFS=$as_save_IFS
7025
7026fi
7027fi
7028OTOOL=$ac_cv_prog_OTOOL
7029if test -n "$OTOOL"; then
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7031$as_echo "$OTOOL" >&6; }
7032else
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034$as_echo "no" >&6; }
7035fi
7036
7037
7038fi
7039if test -z "$ac_cv_prog_OTOOL"; then
7040 ac_ct_OTOOL=$OTOOL
7041 # Extract the first word of "otool", so it can be a program name with args.
7042set dummy otool; ac_word=$2
7043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7044$as_echo_n "checking for $ac_word... " >&6; }
7045if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7046 $as_echo_n "(cached) " >&6
7047else
7048 if test -n "$ac_ct_OTOOL"; then
7049 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7050else
7051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052for as_dir in $PATH
7053do
7054 IFS=$as_save_IFS
7055 test -z "$as_dir" && as_dir=.
7056 for ac_exec_ext in '' $ac_executable_extensions; do
7057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7058 ac_cv_prog_ac_ct_OTOOL="otool"
7059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7060 break 2
7061 fi
7062done
7063 done
7064IFS=$as_save_IFS
7065
7066fi
7067fi
7068ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7069if test -n "$ac_ct_OTOOL"; then
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7071$as_echo "$ac_ct_OTOOL" >&6; }
7072else
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7074$as_echo "no" >&6; }
7075fi
7076
7077 if test "x$ac_ct_OTOOL" = x; then
7078 OTOOL=":"
7079 else
7080 case $cross_compiling:$ac_tool_warned in
7081yes:)
7082{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7084ac_tool_warned=yes ;;
7085esac
7086 OTOOL=$ac_ct_OTOOL
7087 fi
7088else
7089 OTOOL="$ac_cv_prog_OTOOL"
7090fi
7091
7092 if test -n "$ac_tool_prefix"; then
7093 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7094set dummy ${ac_tool_prefix}otool64; ac_word=$2
7095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7096$as_echo_n "checking for $ac_word... " >&6; }
7097if ${ac_cv_prog_OTOOL64+:} false; then :
7098 $as_echo_n "(cached) " >&6
7099else
7100 if test -n "$OTOOL64"; then
7101 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7102else
7103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104for as_dir in $PATH
7105do
7106 IFS=$as_save_IFS
7107 test -z "$as_dir" && as_dir=.
7108 for ac_exec_ext in '' $ac_executable_extensions; do
7109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7110 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7112 break 2
7113 fi
7114done
7115 done
7116IFS=$as_save_IFS
7117
7118fi
7119fi
7120OTOOL64=$ac_cv_prog_OTOOL64
7121if test -n "$OTOOL64"; then
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7123$as_echo "$OTOOL64" >&6; }
7124else
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7126$as_echo "no" >&6; }
7127fi
7128
7129
7130fi
7131if test -z "$ac_cv_prog_OTOOL64"; then
7132 ac_ct_OTOOL64=$OTOOL64
7133 # Extract the first word of "otool64", so it can be a program name with args.
7134set dummy otool64; ac_word=$2
7135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7136$as_echo_n "checking for $ac_word... " >&6; }
7137if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7138 $as_echo_n "(cached) " >&6
7139else
7140 if test -n "$ac_ct_OTOOL64"; then
7141 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7142else
7143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144for as_dir in $PATH
7145do
7146 IFS=$as_save_IFS
7147 test -z "$as_dir" && as_dir=.
7148 for ac_exec_ext in '' $ac_executable_extensions; do
7149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7150 ac_cv_prog_ac_ct_OTOOL64="otool64"
7151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 break 2
7153 fi
7154done
7155 done
7156IFS=$as_save_IFS
7157
7158fi
7159fi
7160ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7161if test -n "$ac_ct_OTOOL64"; then
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7163$as_echo "$ac_ct_OTOOL64" >&6; }
7164else
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166$as_echo "no" >&6; }
7167fi
7168
7169 if test "x$ac_ct_OTOOL64" = x; then
7170 OTOOL64=":"
7171 else
7172 case $cross_compiling:$ac_tool_warned in
7173yes:)
7174{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7175$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7176ac_tool_warned=yes ;;
7177esac
7178 OTOOL64=$ac_ct_OTOOL64
7179 fi
7180else
7181 OTOOL64="$ac_cv_prog_OTOOL64"
7182fi
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7211$as_echo_n "checking for -single_module linker flag... " >&6; }
7212if ${lt_cv_apple_cc_single_mod+:} false; then :
7213 $as_echo_n "(cached) " >&6
7214else
7215 lt_cv_apple_cc_single_mod=no
7216 if test -z "${LT_MULTI_MODULE}"; then
7217 # By default we will add the -single_module flag. You can override
7218 # by either setting the environment variable LT_MULTI_MODULE
7219 # non-empty at configure time, or by adding -multi_module to the
7220 # link flags.
7221 rm -rf libconftest.dylib*
7222 echo "int foo(void){return 1;}" > conftest.c
7223 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7224-dynamiclib -Wl,-single_module conftest.c" >&5
7225 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7226 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7227 _lt_result=$?
7228 # If there is a non-empty error log, and "single_module"
7229 # appears in it, assume the flag caused a linker warning
7230 if test -s conftest.err && $GREP single_module conftest.err; then
7231 cat conftest.err >&5
7232 # Otherwise, if the output was created with a 0 exit code from
7233 # the compiler, it worked.
7234 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7235 lt_cv_apple_cc_single_mod=yes
7236 else
7237 cat conftest.err >&5
7238 fi
7239 rm -rf libconftest.dylib*
7240 rm -f conftest.*
7241 fi
7242fi
7243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7244$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7245
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7247$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7248if ${lt_cv_ld_exported_symbols_list+:} false; then :
7249 $as_echo_n "(cached) " >&6
7250else
7251 lt_cv_ld_exported_symbols_list=no
7252 save_LDFLAGS=$LDFLAGS
7253 echo "_main" > conftest.sym
7254 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7256/* end confdefs.h. */
7257
7258int
7259main ()
7260{
7261
7262 ;
7263 return 0;
7264}
7265_ACEOF
7266if ac_fn_c_try_link "$LINENO"; then :
7267 lt_cv_ld_exported_symbols_list=yes
7268else
7269 lt_cv_ld_exported_symbols_list=no
7270fi
7271rm -f core conftest.err conftest.$ac_objext \
7272 conftest$ac_exeext conftest.$ac_ext
7273 LDFLAGS="$save_LDFLAGS"
7274
7275fi
7276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7277$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7278
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7280$as_echo_n "checking for -force_load linker flag... " >&6; }
7281if ${lt_cv_ld_force_load+:} false; then :
7282 $as_echo_n "(cached) " >&6
7283else
7284 lt_cv_ld_force_load=no
7285 cat > conftest.c << _LT_EOF
7286int forced_loaded() { return 2;}
7287_LT_EOF
7288 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7289 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7290 echo "$AR cru libconftest.a conftest.o" >&5
7291 $AR cru libconftest.a conftest.o 2>&5
7292 echo "$RANLIB libconftest.a" >&5
7293 $RANLIB libconftest.a 2>&5
7294 cat > conftest.c << _LT_EOF
7295int main() { return 0;}
7296_LT_EOF
7297 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7298 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7299 _lt_result=$?
7300 if test -s conftest.err && $GREP force_load conftest.err; then
7301 cat conftest.err >&5
7302 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7303 lt_cv_ld_force_load=yes
7304 else
7305 cat conftest.err >&5
7306 fi
7307 rm -f conftest.err libconftest.a conftest conftest.c
7308 rm -rf conftest.dSYM
7309
7310fi
7311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7312$as_echo "$lt_cv_ld_force_load" >&6; }
7313 case $host_os in
7314 rhapsody* | darwin1.[012])
7315 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7316 darwin1.*)
7317 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7318 darwin*) # darwin 5.x on
7319 # if running on 10.5 or later, the deployment target defaults
7320 # to the OS version, if on x86, and 10.4, the deployment
7321 # target defaults to 10.4. Don't you love it?
7322 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7323 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7324 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7325 10.[012]*)
7326 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7327 10.*)
7328 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7329 esac
7330 ;;
7331 esac
7332 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7333 _lt_dar_single_mod='$single_module'
7334 fi
7335 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7336 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7337 else
7338 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7339 fi
7340 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7341 _lt_dsymutil='~$DSYMUTIL $lib || :'
7342 else
7343 _lt_dsymutil=
7344 fi
7345 ;;
7346 esac
7347
7348ac_ext=c
7349ac_cpp='$CPP $CPPFLAGS'
7350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7352ac_compiler_gnu=$ac_cv_c_compiler_gnu
7353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7354$as_echo_n "checking how to run the C preprocessor... " >&6; }
7355# On Suns, sometimes $CPP names a directory.
7356if test -n "$CPP" && test -d "$CPP"; then
7357 CPP=
7358fi
7359if test -z "$CPP"; then
7360 if ${ac_cv_prog_CPP+:} false; then :
7361 $as_echo_n "(cached) " >&6
7362else
7363 # Double quotes because CPP needs to be expanded
7364 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7365 do
7366 ac_preproc_ok=false
7367for ac_c_preproc_warn_flag in '' yes
7368do
7369 # Use a header file that comes with gcc, so configuring glibc
7370 # with a fresh cross-compiler works.
7371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7372 # <limits.h> exists even on freestanding compilers.
7373 # On the NeXT, cc -E runs the code through the compiler's parser,
7374 # not just through cpp. "Syntax error" is here to catch this case.
7375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7376/* end confdefs.h. */
7377#ifdef __STDC__
7378# include <limits.h>
7379#else
7380# include <assert.h>
7381#endif
7382 Syntax error
7383_ACEOF
7384if ac_fn_c_try_cpp "$LINENO"; then :
7385
7386else
7387 # Broken: fails on valid input.
7388continue
7389fi
7390rm -f conftest.err conftest.i conftest.$ac_ext
7391
7392 # OK, works on sane cases. Now check whether nonexistent headers
7393 # can be detected and how.
7394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7395/* end confdefs.h. */
7396#include <ac_nonexistent.h>
7397_ACEOF
7398if ac_fn_c_try_cpp "$LINENO"; then :
7399 # Broken: success on invalid input.
7400continue
7401else
7402 # Passes both tests.
7403ac_preproc_ok=:
7404break
7405fi
7406rm -f conftest.err conftest.i conftest.$ac_ext
7407
7408done
7409# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7410rm -f conftest.i conftest.err conftest.$ac_ext
7411if $ac_preproc_ok; then :
7412 break
7413fi
7414
7415 done
7416 ac_cv_prog_CPP=$CPP
7417
7418fi
7419 CPP=$ac_cv_prog_CPP
7420else
7421 ac_cv_prog_CPP=$CPP
7422fi
7423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7424$as_echo "$CPP" >&6; }
7425ac_preproc_ok=false
7426for ac_c_preproc_warn_flag in '' yes
7427do
7428 # Use a header file that comes with gcc, so configuring glibc
7429 # with a fresh cross-compiler works.
7430 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7431 # <limits.h> exists even on freestanding compilers.
7432 # On the NeXT, cc -E runs the code through the compiler's parser,
7433 # not just through cpp. "Syntax error" is here to catch this case.
7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435/* end confdefs.h. */
7436#ifdef __STDC__
7437# include <limits.h>
7438#else
7439# include <assert.h>
7440#endif
7441 Syntax error
7442_ACEOF
7443if ac_fn_c_try_cpp "$LINENO"; then :
7444
7445else
7446 # Broken: fails on valid input.
7447continue
7448fi
7449rm -f conftest.err conftest.i conftest.$ac_ext
7450
7451 # OK, works on sane cases. Now check whether nonexistent headers
7452 # can be detected and how.
7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454/* end confdefs.h. */
7455#include <ac_nonexistent.h>
7456_ACEOF
7457if ac_fn_c_try_cpp "$LINENO"; then :
7458 # Broken: success on invalid input.
7459continue
7460else
7461 # Passes both tests.
7462ac_preproc_ok=:
7463break
7464fi
7465rm -f conftest.err conftest.i conftest.$ac_ext
7466
7467done
7468# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7469rm -f conftest.i conftest.err conftest.$ac_ext
7470if $ac_preproc_ok; then :
7471
7472else
7473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7475as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7476See \`config.log' for more details" "$LINENO" 5; }
7477fi
7478
7479ac_ext=c
7480ac_cpp='$CPP $CPPFLAGS'
7481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7483ac_compiler_gnu=$ac_cv_c_compiler_gnu
7484
7485
7486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7487$as_echo_n "checking for ANSI C header files... " >&6; }
7488if ${ac_cv_header_stdc+:} false; then :
7489 $as_echo_n "(cached) " >&6
7490else
7491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492/* end confdefs.h. */
7493#include <stdlib.h>
7494#include <stdarg.h>
7495#include <string.h>
7496#include <float.h>
7497
7498int
7499main ()
7500{
7501
7502 ;
7503 return 0;
7504}
7505_ACEOF
7506if ac_fn_c_try_compile "$LINENO"; then :
7507 ac_cv_header_stdc=yes
7508else
7509 ac_cv_header_stdc=no
7510fi
7511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7512
7513if test $ac_cv_header_stdc = yes; then
7514 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7516/* end confdefs.h. */
7517#include <string.h>
7518
7519_ACEOF
7520if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7521 $EGREP "memchr" >/dev/null 2>&1; then :
7522
7523else
7524 ac_cv_header_stdc=no
7525fi
7526rm -f conftest*
7527
7528fi
7529
7530if test $ac_cv_header_stdc = yes; then
7531 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533/* end confdefs.h. */
7534#include <stdlib.h>
7535
7536_ACEOF
7537if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7538 $EGREP "free" >/dev/null 2>&1; then :
7539
7540else
7541 ac_cv_header_stdc=no
7542fi
7543rm -f conftest*
7544
7545fi
7546
7547if test $ac_cv_header_stdc = yes; then
7548 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7549 if test "$cross_compiling" = yes; then :
7550 :
7551else
7552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553/* end confdefs.h. */
7554#include <ctype.h>
7555#include <stdlib.h>
7556#if ((' ' & 0x0FF) == 0x020)
7557# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7558# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7559#else
7560# define ISLOWER(c) \
7561 (('a' <= (c) && (c) <= 'i') \
7562 || ('j' <= (c) && (c) <= 'r') \
7563 || ('s' <= (c) && (c) <= 'z'))
7564# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7565#endif
7566
7567#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7568int
7569main ()
7570{
7571 int i;
7572 for (i = 0; i < 256; i++)
7573 if (XOR (islower (i), ISLOWER (i))
7574 || toupper (i) != TOUPPER (i))
7575 return 2;
7576 return 0;
7577}
7578_ACEOF
7579if ac_fn_c_try_run "$LINENO"; then :
7580
7581else
7582 ac_cv_header_stdc=no
7583fi
7584rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7585 conftest.$ac_objext conftest.beam conftest.$ac_ext
7586fi
7587
7588fi
7589fi
7590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7591$as_echo "$ac_cv_header_stdc" >&6; }
7592if test $ac_cv_header_stdc = yes; then
7593
7594$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7595
7596fi
7597
7598# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7599for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7600 inttypes.h stdint.h unistd.h
7601do :
7602 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7603ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7604"
7605if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7606 cat >>confdefs.h <<_ACEOF
7607#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7608_ACEOF
7609
7610fi
7611
7612done
7613
7614
7615for ac_header in dlfcn.h
7616do :
7617 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7618"
7619if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7620 cat >>confdefs.h <<_ACEOF
7621#define HAVE_DLFCN_H 1
7622_ACEOF
7623
7624fi
7625
7626done
7627
7628
7629
7630
7631
7632# Set options
7633
7634
7635
7636 enable_dlopen=no
7637
7638
7639 enable_win32_dll=no
7640
7641
7642 # Check whether --enable-shared was given.
7643if test "${enable_shared+set}" = set; then :
7644 enableval=$enable_shared; p=${PACKAGE-default}
7645 case $enableval in
7646 yes) enable_shared=yes ;;
7647 no) enable_shared=no ;;
7648 *)
7649 enable_shared=no
7650 # Look at the argument we got. We use all the common list separators.
7651 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7652 for pkg in $enableval; do
7653 IFS="$lt_save_ifs"
7654 if test "X$pkg" = "X$p"; then
7655 enable_shared=yes
7656 fi
7657 done
7658 IFS="$lt_save_ifs"
7659 ;;
7660 esac
7661else
7662 enable_shared=yes
7663fi
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673 # Check whether --enable-static was given.
7674if test "${enable_static+set}" = set; then :
7675 enableval=$enable_static; p=${PACKAGE-default}
7676 case $enableval in
7677 yes) enable_static=yes ;;
7678 no) enable_static=no ;;
7679 *)
7680 enable_static=no
7681 # Look at the argument we got. We use all the common list separators.
7682 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7683 for pkg in $enableval; do
7684 IFS="$lt_save_ifs"
7685 if test "X$pkg" = "X$p"; then
7686 enable_static=yes
7687 fi
7688 done
7689 IFS="$lt_save_ifs"
7690 ;;
7691 esac
7692else
7693 enable_static=yes
7694fi
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705# Check whether --with-pic was given.
7706if test "${with_pic+set}" = set; then :
7707 withval=$with_pic; lt_p=${PACKAGE-default}
7708 case $withval in
7709 yes|no) pic_mode=$withval ;;
7710 *)
7711 pic_mode=default
7712 # Look at the argument we got. We use all the common list separators.
7713 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7714 for lt_pkg in $withval; do
7715 IFS="$lt_save_ifs"
7716 if test "X$lt_pkg" = "X$lt_p"; then
7717 pic_mode=yes
7718 fi
7719 done
7720 IFS="$lt_save_ifs"
7721 ;;
7722 esac
7723else
7724 pic_mode=default
7725fi
7726
7727
7728test -z "$pic_mode" && pic_mode=default
7729
7730
7731
7732
7733
7734
7735
7736 # Check whether --enable-fast-install was given.
7737if test "${enable_fast_install+set}" = set; then :
7738 enableval=$enable_fast_install; p=${PACKAGE-default}
7739 case $enableval in
7740 yes) enable_fast_install=yes ;;
7741 no) enable_fast_install=no ;;
7742 *)
7743 enable_fast_install=no
7744 # Look at the argument we got. We use all the common list separators.
7745 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7746 for pkg in $enableval; do
7747 IFS="$lt_save_ifs"
7748 if test "X$pkg" = "X$p"; then
7749 enable_fast_install=yes
7750 fi
7751 done
7752 IFS="$lt_save_ifs"
7753 ;;
7754 esac
7755else
7756 enable_fast_install=yes
7757fi
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769# This can be used to rebuild libtool when needed
7770LIBTOOL_DEPS="$ltmain"
7771
7772# Always use our own libtool.
7773LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804test -z "$LN_S" && LN_S="ln -s"
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819if test -n "${ZSH_VERSION+set}" ; then
7820 setopt NO_GLOB_SUBST
7821fi
7822
7823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7824$as_echo_n "checking for objdir... " >&6; }
7825if ${lt_cv_objdir+:} false; then :
7826 $as_echo_n "(cached) " >&6
7827else
7828 rm -f .libs 2>/dev/null
7829mkdir .libs 2>/dev/null
7830if test -d .libs; then
7831 lt_cv_objdir=.libs
7832else
7833 # MS-DOS does not allow filenames that begin with a dot.
7834 lt_cv_objdir=_libs
7835fi
7836rmdir .libs 2>/dev/null
7837fi
7838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7839$as_echo "$lt_cv_objdir" >&6; }
7840objdir=$lt_cv_objdir
7841
7842
7843
7844
7845
7846cat >>confdefs.h <<_ACEOF
7847#define LT_OBJDIR "$lt_cv_objdir/"
7848_ACEOF
7849
7850
7851
7852
7853case $host_os in
7854aix3*)
7855 # AIX sometimes has problems with the GCC collect2 program. For some
7856 # reason, if we set the COLLECT_NAMES environment variable, the problems
7857 # vanish in a puff of smoke.
7858 if test "X${COLLECT_NAMES+set}" != Xset; then
7859 COLLECT_NAMES=
7860 export COLLECT_NAMES
7861 fi
7862 ;;
7863esac
7864
7865# Global variables:
7866ofile=libtool
7867can_build_shared=yes
7868
7869# All known linkers require a `.a' archive for static linking (except MSVC,
7870# which needs '.lib').
7871libext=a
7872
7873with_gnu_ld="$lt_cv_prog_gnu_ld"
7874
7875old_CC="$CC"
7876old_CFLAGS="$CFLAGS"
7877
7878# Set sane defaults for various variables
7879test -z "$CC" && CC=cc
7880test -z "$LTCC" && LTCC=$CC
7881test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7882test -z "$LD" && LD=ld
7883test -z "$ac_objext" && ac_objext=o
7884
7885for cc_temp in $compiler""; do
7886 case $cc_temp in
7887 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7888 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7889 \-*) ;;
7890 *) break;;
7891 esac
7892done
7893cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7894
7895
7896# Only perform the check for file, if the check method requires it
7897test -z "$MAGIC_CMD" && MAGIC_CMD=file
7898case $deplibs_check_method in
7899file_magic*)
7900 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7902$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7903if ${lt_cv_path_MAGIC_CMD+:} false; then :
7904 $as_echo_n "(cached) " >&6
7905else
7906 case $MAGIC_CMD in
7907[\\/*] | ?:[\\/]*)
7908 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7909 ;;
7910*)
7911 lt_save_MAGIC_CMD="$MAGIC_CMD"
7912 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7913 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7914 for ac_dir in $ac_dummy; do
7915 IFS="$lt_save_ifs"
7916 test -z "$ac_dir" && ac_dir=.
7917 if test -f $ac_dir/${ac_tool_prefix}file; then
7918 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7919 if test -n "$file_magic_test_file"; then
7920 case $deplibs_check_method in
7921 "file_magic "*)
7922 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7923 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7924 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7925 $EGREP "$file_magic_regex" > /dev/null; then
7926 :
7927 else
7928 cat <<_LT_EOF 1>&2
7929
7930*** Warning: the command libtool uses to detect shared libraries,
7931*** $file_magic_cmd, produces output that libtool cannot recognize.
7932*** The result is that libtool may fail to recognize shared libraries
7933*** as such. This will affect the creation of libtool libraries that
7934*** depend on shared libraries, but programs linked with such libtool
7935*** libraries will work regardless of this problem. Nevertheless, you
7936*** may want to report the problem to your system manager and/or to
7937*** bug-libtool@gnu.org
7938
7939_LT_EOF
7940 fi ;;
7941 esac
7942 fi
7943 break
7944 fi
7945 done
7946 IFS="$lt_save_ifs"
7947 MAGIC_CMD="$lt_save_MAGIC_CMD"
7948 ;;
7949esac
7950fi
7951
7952MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7953if test -n "$MAGIC_CMD"; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7955$as_echo "$MAGIC_CMD" >&6; }
7956else
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958$as_echo "no" >&6; }
7959fi
7960
7961
7962
7963
7964
7965if test -z "$lt_cv_path_MAGIC_CMD"; then
7966 if test -n "$ac_tool_prefix"; then
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7968$as_echo_n "checking for file... " >&6; }
7969if ${lt_cv_path_MAGIC_CMD+:} false; then :
7970 $as_echo_n "(cached) " >&6
7971else
7972 case $MAGIC_CMD in
7973[\\/*] | ?:[\\/]*)
7974 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7975 ;;
7976*)
7977 lt_save_MAGIC_CMD="$MAGIC_CMD"
7978 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7979 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7980 for ac_dir in $ac_dummy; do
7981 IFS="$lt_save_ifs"
7982 test -z "$ac_dir" && ac_dir=.
7983 if test -f $ac_dir/file; then
7984 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7985 if test -n "$file_magic_test_file"; then
7986 case $deplibs_check_method in
7987 "file_magic "*)
7988 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7989 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7990 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7991 $EGREP "$file_magic_regex" > /dev/null; then
7992 :
7993 else
7994 cat <<_LT_EOF 1>&2
7995
7996*** Warning: the command libtool uses to detect shared libraries,
7997*** $file_magic_cmd, produces output that libtool cannot recognize.
7998*** The result is that libtool may fail to recognize shared libraries
7999*** as such. This will affect the creation of libtool libraries that
8000*** depend on shared libraries, but programs linked with such libtool
8001*** libraries will work regardless of this problem. Nevertheless, you
8002*** may want to report the problem to your system manager and/or to
8003*** bug-libtool@gnu.org
8004
8005_LT_EOF
8006 fi ;;
8007 esac
8008 fi
8009 break
8010 fi
8011 done
8012 IFS="$lt_save_ifs"
8013 MAGIC_CMD="$lt_save_MAGIC_CMD"
8014 ;;
8015esac
8016fi
8017
8018MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8019if test -n "$MAGIC_CMD"; then
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8021$as_echo "$MAGIC_CMD" >&6; }
8022else
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8024$as_echo "no" >&6; }
8025fi
8026
8027
8028 else
8029 MAGIC_CMD=:
8030 fi
8031fi
8032
8033 fi
8034 ;;
8035esac
8036
8037# Use C for the default configuration in the libtool script
8038
8039lt_save_CC="$CC"
8040ac_ext=c
8041ac_cpp='$CPP $CPPFLAGS'
8042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8044ac_compiler_gnu=$ac_cv_c_compiler_gnu
8045
8046
8047# Source file extension for C test sources.
8048ac_ext=c
8049
8050# Object file extension for compiled C test sources.
8051objext=o
8052objext=$objext
8053
8054# Code to be used in simple compile tests
8055lt_simple_compile_test_code="int some_variable = 0;"
8056
8057# Code to be used in simple link tests
8058lt_simple_link_test_code='int main(){return(0);}'
8059
8060
8061
8062
8063
8064
8065
8066# If no C compiler was specified, use CC.
8067LTCC=${LTCC-"$CC"}
8068
8069# If no C compiler flags were specified, use CFLAGS.
8070LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8071
8072# Allow CC to be a program name with arguments.
8073compiler=$CC
8074
8075# Save the default compiler, since it gets overwritten when the other
8076# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8077compiler_DEFAULT=$CC
8078
8079# save warnings/boilerplate of simple test code
8080ac_outfile=conftest.$ac_objext
8081echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8082eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8083_lt_compiler_boilerplate=`cat conftest.err`
8084$RM conftest*
8085
8086ac_outfile=conftest.$ac_objext
8087echo "$lt_simple_link_test_code" >conftest.$ac_ext
8088eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8089_lt_linker_boilerplate=`cat conftest.err`
8090$RM -r conftest*
8091
8092
8093if test -n "$compiler"; then
8094
8095lt_prog_compiler_no_builtin_flag=
8096
8097if test "$GCC" = yes; then
8098 case $cc_basename in
8099 nvcc*)
8100 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8101 *)
8102 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8103 esac
8104
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8106$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8107if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8108 $as_echo_n "(cached) " >&6
8109else
8110 lt_cv_prog_compiler_rtti_exceptions=no
8111 ac_outfile=conftest.$ac_objext
8112 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8113 lt_compiler_flag="-fno-rtti -fno-exceptions"
8114 # Insert the option either (1) after the last *FLAGS variable, or
8115 # (2) before a word containing "conftest.", or (3) at the end.
8116 # Note that $ac_compile itself does not contain backslashes and begins
8117 # with a dollar sign (not a hyphen), so the echo should work correctly.
8118 # The option is referenced via a variable to avoid confusing sed.
8119 lt_compile=`echo "$ac_compile" | $SED \
8120 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8122 -e 's:$: $lt_compiler_flag:'`
8123 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8124 (eval "$lt_compile" 2>conftest.err)
8125 ac_status=$?
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 if (exit $ac_status) && test -s "$ac_outfile"; then
8129 # The compiler can only warn and ignore the option if not recognized
8130 # So say no if there are warnings other than the usual output.
8131 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8132 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8133 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8134 lt_cv_prog_compiler_rtti_exceptions=yes
8135 fi
8136 fi
8137 $RM conftest*
8138
8139fi
8140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8141$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8142
8143if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8144 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8145else
8146 :
8147fi
8148
8149fi
8150
8151
8152
8153
8154
8155
8156 lt_prog_compiler_wl=
8157lt_prog_compiler_pic=
8158lt_prog_compiler_static=
8159
8160
8161 if test "$GCC" = yes; then
8162 lt_prog_compiler_wl='-Wl,'
8163 lt_prog_compiler_static='-static'
8164
8165 case $host_os in
8166 aix*)
8167 # All AIX code is PIC.
8168 if test "$host_cpu" = ia64; then
8169 # AIX 5 now supports IA64 processor
8170 lt_prog_compiler_static='-Bstatic'
8171 fi
8172 ;;
8173
8174 amigaos*)
8175 case $host_cpu in
8176 powerpc)
8177 # see comment about AmigaOS4 .so support
8178 lt_prog_compiler_pic='-fPIC'
8179 ;;
8180 m68k)
8181 # FIXME: we need at least 68020 code to build shared libraries, but
8182 # adding the `-m68020' flag to GCC prevents building anything better,
8183 # like `-m68040'.
8184 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8185 ;;
8186 esac
8187 ;;
8188
8189 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8190 # PIC is the default for these OSes.
8191 ;;
8192
8193 mingw* | cygwin* | pw32* | os2* | cegcc*)
8194 # This hack is so that the source file can tell whether it is being
8195 # built for inclusion in a dll (and should export symbols for example).
8196 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8197 # (--disable-auto-import) libraries
8198 lt_prog_compiler_pic='-DDLL_EXPORT'
8199 ;;
8200
8201 darwin* | rhapsody*)
8202 # PIC is the default on this platform
8203 # Common symbols not allowed in MH_DYLIB files
8204 lt_prog_compiler_pic='-fno-common'
8205 ;;
8206
8207 haiku*)
8208 # PIC is the default for Haiku.
8209 # The "-static" flag exists, but is broken.
8210 lt_prog_compiler_static=
8211 ;;
8212
8213 hpux*)
8214 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8215 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8216 # sets the default TLS model and affects inlining.
8217 case $host_cpu in
8218 hppa*64*)
8219 # +Z the default
8220 ;;
8221 *)
8222 lt_prog_compiler_pic='-fPIC'
8223 ;;
8224 esac
8225 ;;
8226
8227 interix[3-9]*)
8228 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8229 # Instead, we relocate shared libraries at runtime.
8230 ;;
8231
8232 msdosdjgpp*)
8233 # Just because we use GCC doesn't mean we suddenly get shared libraries
8234 # on systems that don't support them.
8235 lt_prog_compiler_can_build_shared=no
8236 enable_shared=no
8237 ;;
8238
8239 *nto* | *qnx*)
8240 # QNX uses GNU C++, but need to define -shared option too, otherwise
8241 # it will coredump.
8242 lt_prog_compiler_pic='-fPIC -shared'
8243 ;;
8244
8245 sysv4*MP*)
8246 if test -d /usr/nec; then
8247 lt_prog_compiler_pic=-Kconform_pic
8248 fi
8249 ;;
8250
8251 *)
8252 lt_prog_compiler_pic='-fPIC'
8253 ;;
8254 esac
8255
8256 case $cc_basename in
8257 nvcc*) # Cuda Compiler Driver 2.2
8258 lt_prog_compiler_wl='-Xlinker '
8259 if test -n "$lt_prog_compiler_pic"; then
8260 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8261 fi
8262 ;;
8263 esac
8264 else
8265 # PORTME Check for flag to pass linker flags through the system compiler.
8266 case $host_os in
8267 aix*)
8268 lt_prog_compiler_wl='-Wl,'
8269 if test "$host_cpu" = ia64; then
8270 # AIX 5 now supports IA64 processor
8271 lt_prog_compiler_static='-Bstatic'
8272 else
8273 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8274 fi
8275 ;;
8276
8277 mingw* | cygwin* | pw32* | os2* | cegcc*)
8278 # This hack is so that the source file can tell whether it is being
8279 # built for inclusion in a dll (and should export symbols for example).
8280 lt_prog_compiler_pic='-DDLL_EXPORT'
8281 ;;
8282
8283 hpux9* | hpux10* | hpux11*)
8284 lt_prog_compiler_wl='-Wl,'
8285 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8286 # not for PA HP-UX.
8287 case $host_cpu in
8288 hppa*64*|ia64*)
8289 # +Z the default
8290 ;;
8291 *)
8292 lt_prog_compiler_pic='+Z'
8293 ;;
8294 esac
8295 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8296 lt_prog_compiler_static='${wl}-a ${wl}archive'
8297 ;;
8298
8299 irix5* | irix6* | nonstopux*)
8300 lt_prog_compiler_wl='-Wl,'
8301 # PIC (with -KPIC) is the default.
8302 lt_prog_compiler_static='-non_shared'
8303 ;;
8304
8305 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8306 case $cc_basename in
8307 # old Intel for x86_64 which still supported -KPIC.
8308 ecc*)
8309 lt_prog_compiler_wl='-Wl,'
8310 lt_prog_compiler_pic='-KPIC'
8311 lt_prog_compiler_static='-static'
8312 ;;
8313 # icc used to be incompatible with GCC.
8314 # ICC 10 doesn't accept -KPIC any more.
8315 icc* | ifort*)
8316 lt_prog_compiler_wl='-Wl,'
8317 lt_prog_compiler_pic='-fPIC'
8318 lt_prog_compiler_static='-static'
8319 ;;
8320 # Lahey Fortran 8.1.
8321 lf95*)
8322 lt_prog_compiler_wl='-Wl,'
8323 lt_prog_compiler_pic='--shared'
8324 lt_prog_compiler_static='--static'
8325 ;;
8326 nagfor*)
8327 # NAG Fortran compiler
8328 lt_prog_compiler_wl='-Wl,-Wl,,'
8329 lt_prog_compiler_pic='-PIC'
8330 lt_prog_compiler_static='-Bstatic'
8331 ;;
8332 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8333 # Portland Group compilers (*not* the Pentium gcc compiler,
8334 # which looks to be a dead project)
8335 lt_prog_compiler_wl='-Wl,'
8336 lt_prog_compiler_pic='-fpic'
8337 lt_prog_compiler_static='-Bstatic'
8338 ;;
8339 ccc*)
8340 lt_prog_compiler_wl='-Wl,'
8341 # All Alpha code is PIC.
8342 lt_prog_compiler_static='-non_shared'
8343 ;;
8344 xl* | bgxl* | bgf* | mpixl*)
8345 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8346 lt_prog_compiler_wl='-Wl,'
8347 lt_prog_compiler_pic='-qpic'
8348 lt_prog_compiler_static='-qstaticlink'
8349 ;;
8350 *)
8351 case `$CC -V 2>&1 | sed 5q` in
8352 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8353 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8354 lt_prog_compiler_pic='-KPIC'
8355 lt_prog_compiler_static='-Bstatic'
8356 lt_prog_compiler_wl=''
8357 ;;
8358 *Sun\ F* | *Sun*Fortran*)
8359 lt_prog_compiler_pic='-KPIC'
8360 lt_prog_compiler_static='-Bstatic'
8361 lt_prog_compiler_wl='-Qoption ld '
8362 ;;
8363 *Sun\ C*)
8364 # Sun C 5.9
8365 lt_prog_compiler_pic='-KPIC'
8366 lt_prog_compiler_static='-Bstatic'
8367 lt_prog_compiler_wl='-Wl,'
8368 ;;
8369 *Intel*\ [CF]*Compiler*)
8370 lt_prog_compiler_wl='-Wl,'
8371 lt_prog_compiler_pic='-fPIC'
8372 lt_prog_compiler_static='-static'
8373 ;;
8374 *Portland\ Group*)
8375 lt_prog_compiler_wl='-Wl,'
8376 lt_prog_compiler_pic='-fpic'
8377 lt_prog_compiler_static='-Bstatic'
8378 ;;
8379 esac
8380 ;;
8381 esac
8382 ;;
8383
8384 newsos6)
8385 lt_prog_compiler_pic='-KPIC'
8386 lt_prog_compiler_static='-Bstatic'
8387 ;;
8388
8389 *nto* | *qnx*)
8390 # QNX uses GNU C++, but need to define -shared option too, otherwise
8391 # it will coredump.
8392 lt_prog_compiler_pic='-fPIC -shared'
8393 ;;
8394
8395 osf3* | osf4* | osf5*)
8396 lt_prog_compiler_wl='-Wl,'
8397 # All OSF/1 code is PIC.
8398 lt_prog_compiler_static='-non_shared'
8399 ;;
8400
8401 rdos*)
8402 lt_prog_compiler_static='-non_shared'
8403 ;;
8404
8405 solaris*)
8406 lt_prog_compiler_pic='-KPIC'
8407 lt_prog_compiler_static='-Bstatic'
8408 case $cc_basename in
8409 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8410 lt_prog_compiler_wl='-Qoption ld ';;
8411 *)
8412 lt_prog_compiler_wl='-Wl,';;
8413 esac
8414 ;;
8415
8416 sunos4*)
8417 lt_prog_compiler_wl='-Qoption ld '
8418 lt_prog_compiler_pic='-PIC'
8419 lt_prog_compiler_static='-Bstatic'
8420 ;;
8421
8422 sysv4 | sysv4.2uw2* | sysv4.3*)
8423 lt_prog_compiler_wl='-Wl,'
8424 lt_prog_compiler_pic='-KPIC'
8425 lt_prog_compiler_static='-Bstatic'
8426 ;;
8427
8428 sysv4*MP*)
8429 if test -d /usr/nec ;then
8430 lt_prog_compiler_pic='-Kconform_pic'
8431 lt_prog_compiler_static='-Bstatic'
8432 fi
8433 ;;
8434
8435 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8436 lt_prog_compiler_wl='-Wl,'
8437 lt_prog_compiler_pic='-KPIC'
8438 lt_prog_compiler_static='-Bstatic'
8439 ;;
8440
8441 unicos*)
8442 lt_prog_compiler_wl='-Wl,'
8443 lt_prog_compiler_can_build_shared=no
8444 ;;
8445
8446 uts4*)
8447 lt_prog_compiler_pic='-pic'
8448 lt_prog_compiler_static='-Bstatic'
8449 ;;
8450
8451 *)
8452 lt_prog_compiler_can_build_shared=no
8453 ;;
8454 esac
8455 fi
8456
8457case $host_os in
8458 # For platforms which do not support PIC, -DPIC is meaningless:
8459 *djgpp*)
8460 lt_prog_compiler_pic=
8461 ;;
8462 *)
8463 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8464 ;;
8465esac
8466
8467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8468$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8469if ${lt_cv_prog_compiler_pic+:} false; then :
8470 $as_echo_n "(cached) " >&6
8471else
8472 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8473fi
8474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8475$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8476lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8477
8478#
8479# Check to make sure the PIC flag actually works.
8480#
8481if test -n "$lt_prog_compiler_pic"; then
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8483$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8484if ${lt_cv_prog_compiler_pic_works+:} false; then :
8485 $as_echo_n "(cached) " >&6
8486else
8487 lt_cv_prog_compiler_pic_works=no
8488 ac_outfile=conftest.$ac_objext
8489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8490 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8491 # Insert the option either (1) after the last *FLAGS variable, or
8492 # (2) before a word containing "conftest.", or (3) at the end.
8493 # Note that $ac_compile itself does not contain backslashes and begins
8494 # with a dollar sign (not a hyphen), so the echo should work correctly.
8495 # The option is referenced via a variable to avoid confusing sed.
8496 lt_compile=`echo "$ac_compile" | $SED \
8497 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8498 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8499 -e 's:$: $lt_compiler_flag:'`
8500 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8501 (eval "$lt_compile" 2>conftest.err)
8502 ac_status=$?
8503 cat conftest.err >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 if (exit $ac_status) && test -s "$ac_outfile"; then
8506 # The compiler can only warn and ignore the option if not recognized
8507 # So say no if there are warnings other than the usual output.
8508 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8509 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8510 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8511 lt_cv_prog_compiler_pic_works=yes
8512 fi
8513 fi
8514 $RM conftest*
8515
8516fi
8517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8518$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8519
8520if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8521 case $lt_prog_compiler_pic in
8522 "" | " "*) ;;
8523 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8524 esac
8525else
8526 lt_prog_compiler_pic=
8527 lt_prog_compiler_can_build_shared=no
8528fi
8529
8530fi
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542#
8543# Check to make sure the static flag actually works.
8544#
8545wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8547$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8548if ${lt_cv_prog_compiler_static_works+:} false; then :
8549 $as_echo_n "(cached) " >&6
8550else
8551 lt_cv_prog_compiler_static_works=no
8552 save_LDFLAGS="$LDFLAGS"
8553 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8554 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8555 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8556 # The linker can only warn and ignore the option if not recognized
8557 # So say no if there are warnings
8558 if test -s conftest.err; then
8559 # Append any errors to the config.log.
8560 cat conftest.err 1>&5
8561 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8562 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8563 if diff conftest.exp conftest.er2 >/dev/null; then
8564 lt_cv_prog_compiler_static_works=yes
8565 fi
8566 else
8567 lt_cv_prog_compiler_static_works=yes
8568 fi
8569 fi
8570 $RM -r conftest*
8571 LDFLAGS="$save_LDFLAGS"
8572
8573fi
8574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8575$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8576
8577if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8578 :
8579else
8580 lt_prog_compiler_static=
8581fi
8582
8583
8584
8585
8586
8587
8588
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8590$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8591if ${lt_cv_prog_compiler_c_o+:} false; then :
8592 $as_echo_n "(cached) " >&6
8593else
8594 lt_cv_prog_compiler_c_o=no
8595 $RM -r conftest 2>/dev/null
8596 mkdir conftest
8597 cd conftest
8598 mkdir out
8599 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8600
8601 lt_compiler_flag="-o out/conftest2.$ac_objext"
8602 # Insert the option either (1) after the last *FLAGS variable, or
8603 # (2) before a word containing "conftest.", or (3) at the end.
8604 # Note that $ac_compile itself does not contain backslashes and begins
8605 # with a dollar sign (not a hyphen), so the echo should work correctly.
8606 lt_compile=`echo "$ac_compile" | $SED \
8607 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8608 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8609 -e 's:$: $lt_compiler_flag:'`
8610 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8611 (eval "$lt_compile" 2>out/conftest.err)
8612 ac_status=$?
8613 cat out/conftest.err >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8616 then
8617 # The compiler can only warn and ignore the option if not recognized
8618 # So say no if there are warnings
8619 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8620 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8621 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8622 lt_cv_prog_compiler_c_o=yes
8623 fi
8624 fi
8625 chmod u+w . 2>&5
8626 $RM conftest*
8627 # SGI C++ compiler will create directory out/ii_files/ for
8628 # template instantiation
8629 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8630 $RM out/* && rmdir out
8631 cd ..
8632 $RM -r conftest
8633 $RM conftest*
8634
8635fi
8636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8637$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8638
8639
8640
8641
8642
8643
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8645$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8646if ${lt_cv_prog_compiler_c_o+:} false; then :
8647 $as_echo_n "(cached) " >&6
8648else
8649 lt_cv_prog_compiler_c_o=no
8650 $RM -r conftest 2>/dev/null
8651 mkdir conftest
8652 cd conftest
8653 mkdir out
8654 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8655
8656 lt_compiler_flag="-o out/conftest2.$ac_objext"
8657 # Insert the option either (1) after the last *FLAGS variable, or
8658 # (2) before a word containing "conftest.", or (3) at the end.
8659 # Note that $ac_compile itself does not contain backslashes and begins
8660 # with a dollar sign (not a hyphen), so the echo should work correctly.
8661 lt_compile=`echo "$ac_compile" | $SED \
8662 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8663 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8664 -e 's:$: $lt_compiler_flag:'`
8665 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8666 (eval "$lt_compile" 2>out/conftest.err)
8667 ac_status=$?
8668 cat out/conftest.err >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8671 then
8672 # The compiler can only warn and ignore the option if not recognized
8673 # So say no if there are warnings
8674 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8675 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8676 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8677 lt_cv_prog_compiler_c_o=yes
8678 fi
8679 fi
8680 chmod u+w . 2>&5
8681 $RM conftest*
8682 # SGI C++ compiler will create directory out/ii_files/ for
8683 # template instantiation
8684 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8685 $RM out/* && rmdir out
8686 cd ..
8687 $RM -r conftest
8688 $RM conftest*
8689
8690fi
8691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8692$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8693
8694
8695
8696
8697hard_links="nottested"
8698if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8699 # do not overwrite the value of need_locks provided by the user
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8701$as_echo_n "checking if we can lock with hard links... " >&6; }
8702 hard_links=yes
8703 $RM conftest*
8704 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8705 touch conftest.a
8706 ln conftest.a conftest.b 2>&5 || hard_links=no
8707 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8709$as_echo "$hard_links" >&6; }
8710 if test "$hard_links" = no; then
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8712$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8713 need_locks=warn
8714 fi
8715else
8716 need_locks=no
8717fi
8718
8719
8720
8721
8722
8723
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8725$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8726
8727 runpath_var=
8728 allow_undefined_flag=
8729 always_export_symbols=no
8730 archive_cmds=
8731 archive_expsym_cmds=
8732 compiler_needs_object=no
8733 enable_shared_with_static_runtimes=no
8734 export_dynamic_flag_spec=
8735 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8736 hardcode_automatic=no
8737 hardcode_direct=no
8738 hardcode_direct_absolute=no
8739 hardcode_libdir_flag_spec=
8740 hardcode_libdir_separator=
8741 hardcode_minus_L=no
8742 hardcode_shlibpath_var=unsupported
8743 inherit_rpath=no
8744 link_all_deplibs=unknown
8745 module_cmds=
8746 module_expsym_cmds=
8747 old_archive_from_new_cmds=
8748 old_archive_from_expsyms_cmds=
8749 thread_safe_flag_spec=
8750 whole_archive_flag_spec=
8751 # include_expsyms should be a list of space-separated symbols to be *always*
8752 # included in the symbol list
8753 include_expsyms=
8754 # exclude_expsyms can be an extended regexp of symbols to exclude
8755 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8756 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8757 # as well as any symbol that contains `d'.
8758 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8759 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8760 # platforms (ab)use it in PIC code, but their linkers get confused if
8761 # the symbol is explicitly referenced. Since portable code cannot
8762 # rely on this symbol name, it's probably fine to never include it in
8763 # preloaded symbol tables.
8764 # Exclude shared library initialization/finalization symbols.
8765 extract_expsyms_cmds=
8766
8767 case $host_os in
8768 cygwin* | mingw* | pw32* | cegcc*)
8769 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8770 # When not using gcc, we currently assume that we are using
8771 # Microsoft Visual C++.
8772 if test "$GCC" != yes; then
8773 with_gnu_ld=no
8774 fi
8775 ;;
8776 interix*)
8777 # we just hope/assume this is gcc and not c89 (= MSVC++)
8778 with_gnu_ld=yes
8779 ;;
8780 openbsd*)
8781 with_gnu_ld=no
8782 ;;
8783 esac
8784
8785 ld_shlibs=yes
8786
8787 # On some targets, GNU ld is compatible enough with the native linker
8788 # that we're better off using the native interface for both.
8789 lt_use_gnu_ld_interface=no
8790 if test "$with_gnu_ld" = yes; then
8791 case $host_os in
8792 aix*)
8793 # The AIX port of GNU ld has always aspired to compatibility
8794 # with the native linker. However, as the warning in the GNU ld
8795 # block says, versions before 2.19.5* couldn't really create working
8796 # shared libraries, regardless of the interface used.
8797 case `$LD -v 2>&1` in
8798 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8799 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8800 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8801 *)
8802 lt_use_gnu_ld_interface=yes
8803 ;;
8804 esac
8805 ;;
8806 *)
8807 lt_use_gnu_ld_interface=yes
8808 ;;
8809 esac
8810 fi
8811
8812 if test "$lt_use_gnu_ld_interface" = yes; then
8813 # If archive_cmds runs LD, not CC, wlarc should be empty
8814 wlarc='${wl}'
8815
8816 # Set some defaults for GNU ld with shared library support. These
8817 # are reset later if shared libraries are not supported. Putting them
8818 # here allows them to be overridden if necessary.
8819 runpath_var=LD_RUN_PATH
8820 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8821 export_dynamic_flag_spec='${wl}--export-dynamic'
8822 # ancient GNU ld didn't support --whole-archive et. al.
8823 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8824 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8825 else
8826 whole_archive_flag_spec=
8827 fi
8828 supports_anon_versioning=no
8829 case `$LD -v 2>&1` in
8830 *GNU\ gold*) supports_anon_versioning=yes ;;
8831 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8832 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8833 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8834 *\ 2.11.*) ;; # other 2.11 versions
8835 *) supports_anon_versioning=yes ;;
8836 esac
8837
8838 # See if GNU ld supports shared libraries.
8839 case $host_os in
8840 aix[3-9]*)
8841 # On AIX/PPC, the GNU linker is very broken
8842 if test "$host_cpu" != ia64; then
8843 ld_shlibs=no
8844 cat <<_LT_EOF 1>&2
8845
8846*** Warning: the GNU linker, at least up to release 2.19, is reported
8847*** to be unable to reliably create shared libraries on AIX.
8848*** Therefore, libtool is disabling shared libraries support. If you
8849*** really care for shared libraries, you may want to install binutils
8850*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8851*** You will then need to restart the configuration process.
8852
8853_LT_EOF
8854 fi
8855 ;;
8856
8857 amigaos*)
8858 case $host_cpu in
8859 powerpc)
8860 # see comment about AmigaOS4 .so support
8861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8862 archive_expsym_cmds=''
8863 ;;
8864 m68k)
8865 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)'
8866 hardcode_libdir_flag_spec='-L$libdir'
8867 hardcode_minus_L=yes
8868 ;;
8869 esac
8870 ;;
8871
8872 beos*)
8873 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8874 allow_undefined_flag=unsupported
8875 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8876 # support --undefined. This deserves some investigation. FIXME
8877 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8878 else
8879 ld_shlibs=no
8880 fi
8881 ;;
8882
8883 cygwin* | mingw* | pw32* | cegcc*)
8884 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8885 # as there is no search path for DLLs.
8886 hardcode_libdir_flag_spec='-L$libdir'
8887 export_dynamic_flag_spec='${wl}--export-all-symbols'
8888 allow_undefined_flag=unsupported
8889 always_export_symbols=no
8890 enable_shared_with_static_runtimes=yes
8891 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'
8892 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8893
8894 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8895 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8896 # If the export-symbols file already is a .def file (1st line
8897 # is EXPORTS), use it as is; otherwise, prepend...
8898 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8899 cp $export_symbols $output_objdir/$soname.def;
8900 else
8901 echo EXPORTS > $output_objdir/$soname.def;
8902 cat $export_symbols >> $output_objdir/$soname.def;
8903 fi~
8904 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8905 else
8906 ld_shlibs=no
8907 fi
8908 ;;
8909
8910 haiku*)
8911 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8912 link_all_deplibs=yes
8913 ;;
8914
8915 interix[3-9]*)
8916 hardcode_direct=no
8917 hardcode_shlibpath_var=no
8918 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8919 export_dynamic_flag_spec='${wl}-E'
8920 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8921 # Instead, shared libraries are loaded at an image base (0x10000000 by
8922 # default) and relocated if they conflict, which is a slow very memory
8923 # consuming and fragmenting process. To avoid this, we pick a random,
8924 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8925 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8926 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8927 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'
8928 ;;
8929
8930 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8931 tmp_diet=no
8932 if test "$host_os" = linux-dietlibc; then
8933 case $cc_basename in
8934 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8935 esac
8936 fi
8937 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8938 && test "$tmp_diet" = no
8939 then
8940 tmp_addflag=' $pic_flag'
8941 tmp_sharedflag='-shared'
8942 case $cc_basename,$host_cpu in
8943 pgcc*) # Portland Group C compiler
8944 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'
8945 tmp_addflag=' $pic_flag'
8946 ;;
8947 pgf77* | pgf90* | pgf95* | pgfortran*)
8948 # Portland Group f77 and f90 compilers
8949 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'
8950 tmp_addflag=' $pic_flag -Mnomain' ;;
8951 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8952 tmp_addflag=' -i_dynamic' ;;
8953 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8954 tmp_addflag=' -i_dynamic -nofor_main' ;;
8955 ifc* | ifort*) # Intel Fortran compiler
8956 tmp_addflag=' -nofor_main' ;;
8957 lf95*) # Lahey Fortran 8.1
8958 whole_archive_flag_spec=
8959 tmp_sharedflag='--shared' ;;
8960 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8961 tmp_sharedflag='-qmkshrobj'
8962 tmp_addflag= ;;
8963 nvcc*) # Cuda Compiler Driver 2.2
8964 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'
8965 compiler_needs_object=yes
8966 ;;
8967 esac
8968 case `$CC -V 2>&1 | sed 5q` in
8969 *Sun\ C*) # Sun C 5.9
8970 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'
8971 compiler_needs_object=yes
8972 tmp_sharedflag='-G' ;;
8973 *Sun\ F*) # Sun Fortran 8.3
8974 tmp_sharedflag='-G' ;;
8975 esac
8976 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8977
8978 if test "x$supports_anon_versioning" = xyes; then
8979 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8980 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8981 echo "local: *; };" >> $output_objdir/$libname.ver~
8982 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8983 fi
8984
8985 case $cc_basename in
8986 xlf* | bgf* | bgxlf* | mpixlf*)
8987 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8988 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8989 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8990 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8991 if test "x$supports_anon_versioning" = xyes; then
8992 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8993 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8994 echo "local: *; };" >> $output_objdir/$libname.ver~
8995 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8996 fi
8997 ;;
8998 esac
8999 else
9000 ld_shlibs=no
9001 fi
9002 ;;
9003
9004 netbsd*)
9005 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9006 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9007 wlarc=
9008 else
9009 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9010 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9011 fi
9012 ;;
9013
9014 solaris*)
9015 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9016 ld_shlibs=no
9017 cat <<_LT_EOF 1>&2
9018
9019*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9020*** create shared libraries on Solaris systems. Therefore, libtool
9021*** is disabling shared libraries support. We urge you to upgrade GNU
9022*** binutils to release 2.9.1 or newer. Another option is to modify
9023*** your PATH or compiler configuration so that the native linker is
9024*** used, and then restart.
9025
9026_LT_EOF
9027 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9028 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9029 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9030 else
9031 ld_shlibs=no
9032 fi
9033 ;;
9034
9035 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9036 case `$LD -v 2>&1` in
9037 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9038 ld_shlibs=no
9039 cat <<_LT_EOF 1>&2
9040
9041*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9042*** reliably create shared libraries on SCO systems. Therefore, libtool
9043*** is disabling shared libraries support. We urge you to upgrade GNU
9044*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9045*** your PATH or compiler configuration so that the native linker is
9046*** used, and then restart.
9047
9048_LT_EOF
9049 ;;
9050 *)
9051 # For security reasons, it is highly recommended that you always
9052 # use absolute paths for naming shared libraries, and exclude the
9053 # DT_RUNPATH tag from executables and libraries. But doing so
9054 # requires that you compile everything twice, which is a pain.
9055 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9056 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9058 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9059 else
9060 ld_shlibs=no
9061 fi
9062 ;;
9063 esac
9064 ;;
9065
9066 sunos4*)
9067 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9068 wlarc=
9069 hardcode_direct=yes
9070 hardcode_shlibpath_var=no
9071 ;;
9072
9073 *)
9074 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9075 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9076 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9077 else
9078 ld_shlibs=no
9079 fi
9080 ;;
9081 esac
9082
9083 if test "$ld_shlibs" = no; then
9084 runpath_var=
9085 hardcode_libdir_flag_spec=
9086 export_dynamic_flag_spec=
9087 whole_archive_flag_spec=
9088 fi
9089 else
9090 # PORTME fill in a description of your system's linker (not GNU ld)
9091 case $host_os in
9092 aix3*)
9093 allow_undefined_flag=unsupported
9094 always_export_symbols=yes
9095 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'
9096 # Note: this linker hardcodes the directories in LIBPATH if there
9097 # are no directories specified by -L.
9098 hardcode_minus_L=yes
9099 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9100 # Neither direct hardcoding nor static linking is supported with a
9101 # broken collect2.
9102 hardcode_direct=unsupported
9103 fi
9104 ;;
9105
9106 aix[4-9]*)
9107 if test "$host_cpu" = ia64; then
9108 # On IA64, the linker does run time linking by default, so we don't
9109 # have to do anything special.
9110 aix_use_runtimelinking=no
9111 exp_sym_flag='-Bexport'
9112 no_entry_flag=""
9113 else
9114 # If we're using GNU nm, then we don't want the "-C" option.
9115 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9116 # Also, AIX nm treats weak defined symbols like other global
9117 # defined symbols, whereas GNU nm marks them as "W".
9118 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9119 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'
9120 else
9121 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'
9122 fi
9123 aix_use_runtimelinking=no
9124
9125 # Test if we are trying to use run time linking or normal
9126 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9127 # need to do runtime linking.
9128 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9129 for ld_flag in $LDFLAGS; do
9130 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9131 aix_use_runtimelinking=yes
9132 break
9133 fi
9134 done
9135 ;;
9136 esac
9137
9138 exp_sym_flag='-bexport'
9139 no_entry_flag='-bnoentry'
9140 fi
9141
9142 # When large executables or shared objects are built, AIX ld can
9143 # have problems creating the table of contents. If linking a library
9144 # or program results in "error TOC overflow" add -mminimal-toc to
9145 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9146 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9147
9148 archive_cmds=''
9149 hardcode_direct=yes
9150 hardcode_direct_absolute=yes
9151 hardcode_libdir_separator=':'
9152 link_all_deplibs=yes
9153 file_list_spec='${wl}-f,'
9154
9155 if test "$GCC" = yes; then
9156 case $host_os in aix4.[012]|aix4.[012].*)
9157 # We only want to do this on AIX 4.2 and lower, the check
9158 # below for broken collect2 doesn't work under 4.3+
9159 collect2name=`${CC} -print-prog-name=collect2`
9160 if test -f "$collect2name" &&
9161 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9162 then
9163 # We have reworked collect2
9164 :
9165 else
9166 # We have old collect2
9167 hardcode_direct=unsupported
9168 # It fails to find uninstalled libraries when the uninstalled
9169 # path is not listed in the libpath. Setting hardcode_minus_L
9170 # to unsupported forces relinking
9171 hardcode_minus_L=yes
9172 hardcode_libdir_flag_spec='-L$libdir'
9173 hardcode_libdir_separator=
9174 fi
9175 ;;
9176 esac
9177 shared_flag='-shared'
9178 if test "$aix_use_runtimelinking" = yes; then
9179 shared_flag="$shared_flag "'${wl}-G'
9180 fi
9181 else
9182 # not using gcc
9183 if test "$host_cpu" = ia64; then
9184 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9185 # chokes on -Wl,-G. The following line is correct:
9186 shared_flag='-G'
9187 else
9188 if test "$aix_use_runtimelinking" = yes; then
9189 shared_flag='${wl}-G'
9190 else
9191 shared_flag='${wl}-bM:SRE'
9192 fi
9193 fi
9194 fi
9195
9196 export_dynamic_flag_spec='${wl}-bexpall'
9197 # It seems that -bexpall does not export symbols beginning with
9198 # underscore (_), so it is better to generate a list of symbols to export.
9199 always_export_symbols=yes
9200 if test "$aix_use_runtimelinking" = yes; then
9201 # Warning - without using the other runtime loading flags (-brtl),
9202 # -berok will link without error, but may produce a broken library.
9203 allow_undefined_flag='-berok'
9204 # Determine the default libpath from the value encoded in an
9205 # empty executable.
9206 if test "${lt_cv_aix_libpath+set}" = set; then
9207 aix_libpath=$lt_cv_aix_libpath
9208else
9209 if ${lt_cv_aix_libpath_+:} false; then :
9210 $as_echo_n "(cached) " >&6
9211else
9212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213/* end confdefs.h. */
9214
9215int
9216main ()
9217{
9218
9219 ;
9220 return 0;
9221}
9222_ACEOF
9223if ac_fn_c_try_link "$LINENO"; then :
9224
9225 lt_aix_libpath_sed='
9226 /Import File Strings/,/^$/ {
9227 /^0/ {
9228 s/^0 *\([^ ]*\) *$/\1/
9229 p
9230 }
9231 }'
9232 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9233 # Check for a 64-bit object if we didn't find anything.
9234 if test -z "$lt_cv_aix_libpath_"; then
9235 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9236 fi
9237fi
9238rm -f core conftest.err conftest.$ac_objext \
9239 conftest$ac_exeext conftest.$ac_ext
9240 if test -z "$lt_cv_aix_libpath_"; then
9241 lt_cv_aix_libpath_="/usr/lib:/lib"
9242 fi
9243
9244fi
9245
9246 aix_libpath=$lt_cv_aix_libpath_
9247fi
9248
9249 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9250 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"
9251 else
9252 if test "$host_cpu" = ia64; then
9253 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9254 allow_undefined_flag="-z nodefs"
9255 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"
9256 else
9257 # Determine the default libpath from the value encoded in an
9258 # empty executable.
9259 if test "${lt_cv_aix_libpath+set}" = set; then
9260 aix_libpath=$lt_cv_aix_libpath
9261else
9262 if ${lt_cv_aix_libpath_+:} false; then :
9263 $as_echo_n "(cached) " >&6
9264else
9265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9266/* end confdefs.h. */
9267
9268int
9269main ()
9270{
9271
9272 ;
9273 return 0;
9274}
9275_ACEOF
9276if ac_fn_c_try_link "$LINENO"; then :
9277
9278 lt_aix_libpath_sed='
9279 /Import File Strings/,/^$/ {
9280 /^0/ {
9281 s/^0 *\([^ ]*\) *$/\1/
9282 p
9283 }
9284 }'
9285 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9286 # Check for a 64-bit object if we didn't find anything.
9287 if test -z "$lt_cv_aix_libpath_"; then
9288 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9289 fi
9290fi
9291rm -f core conftest.err conftest.$ac_objext \
9292 conftest$ac_exeext conftest.$ac_ext
9293 if test -z "$lt_cv_aix_libpath_"; then
9294 lt_cv_aix_libpath_="/usr/lib:/lib"
9295 fi
9296
9297fi
9298
9299 aix_libpath=$lt_cv_aix_libpath_
9300fi
9301
9302 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9303 # Warning - without using the other run time loading flags,
9304 # -berok will link without error, but may produce a broken library.
9305 no_undefined_flag=' ${wl}-bernotok'
9306 allow_undefined_flag=' ${wl}-berok'
9307 if test "$with_gnu_ld" = yes; then
9308 # We only use this code for GNU lds that support --whole-archive.
9309 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9310 else
9311 # Exported symbols can be pulled into shared objects from archives
9312 whole_archive_flag_spec='$convenience'
9313 fi
9314 archive_cmds_need_lc=yes
9315 # This is similar to how AIX traditionally builds its shared libraries.
9316 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'
9317 fi
9318 fi
9319 ;;
9320
9321 amigaos*)
9322 case $host_cpu in
9323 powerpc)
9324 # see comment about AmigaOS4 .so support
9325 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9326 archive_expsym_cmds=''
9327 ;;
9328 m68k)
9329 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)'
9330 hardcode_libdir_flag_spec='-L$libdir'
9331 hardcode_minus_L=yes
9332 ;;
9333 esac
9334 ;;
9335
9336 bsdi[45]*)
9337 export_dynamic_flag_spec=-rdynamic
9338 ;;
9339
9340 cygwin* | mingw* | pw32* | cegcc*)
9341 # When not using gcc, we currently assume that we are using
9342 # Microsoft Visual C++.
9343 # hardcode_libdir_flag_spec is actually meaningless, as there is
9344 # no search path for DLLs.
9345 case $cc_basename in
9346 cl*)
9347 # Native MSVC
9348 hardcode_libdir_flag_spec=' '
9349 allow_undefined_flag=unsupported
9350 always_export_symbols=yes
9351 file_list_spec='@'
9352 # Tell ltmain to make .lib files, not .a files.
9353 libext=lib
9354 # Tell ltmain to make .dll files, not .so files.
9355 shrext_cmds=".dll"
9356 # FIXME: Setting linknames here is a bad hack.
9357 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9358 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9359 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9360 else
9361 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9362 fi~
9363 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9364 linknames='
9365 # The linker will not automatically build a static lib if we build a DLL.
9366 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9367 enable_shared_with_static_runtimes=yes
9368 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9369 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9370 # Don't use ranlib
9371 old_postinstall_cmds='chmod 644 $oldlib'
9372 postlink_cmds='lt_outputfile="@OUTPUT@"~
9373 lt_tool_outputfile="@TOOL_OUTPUT@"~
9374 case $lt_outputfile in
9375 *.exe|*.EXE) ;;
9376 *)
9377 lt_outputfile="$lt_outputfile.exe"
9378 lt_tool_outputfile="$lt_tool_outputfile.exe"
9379 ;;
9380 esac~
9381 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9382 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9383 $RM "$lt_outputfile.manifest";
9384 fi'
9385 ;;
9386 *)
9387 # Assume MSVC wrapper
9388 hardcode_libdir_flag_spec=' '
9389 allow_undefined_flag=unsupported
9390 # Tell ltmain to make .lib files, not .a files.
9391 libext=lib
9392 # Tell ltmain to make .dll files, not .so files.
9393 shrext_cmds=".dll"
9394 # FIXME: Setting linknames here is a bad hack.
9395 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9396 # The linker will automatically build a .lib file if we build a DLL.
9397 old_archive_from_new_cmds='true'
9398 # FIXME: Should let the user specify the lib program.
9399 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9400 enable_shared_with_static_runtimes=yes
9401 ;;
9402 esac
9403 ;;
9404
9405 darwin* | rhapsody*)
9406
9407
9408 archive_cmds_need_lc=no
9409 hardcode_direct=no
9410 hardcode_automatic=yes
9411 hardcode_shlibpath_var=unsupported
9412 if test "$lt_cv_ld_force_load" = "yes"; then
9413 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\"`'
9414
9415 else
9416 whole_archive_flag_spec=''
9417 fi
9418 link_all_deplibs=yes
9419 allow_undefined_flag="$_lt_dar_allow_undefined"
9420 case $cc_basename in
9421 ifort*) _lt_dar_can_shared=yes ;;
9422 *) _lt_dar_can_shared=$GCC ;;
9423 esac
9424 if test "$_lt_dar_can_shared" = "yes"; then
9425 output_verbose_link_cmd=func_echo_all
9426 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9427 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9428 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}"
9429 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}"
9430
9431 else
9432 ld_shlibs=no
9433 fi
9434
9435 ;;
9436
9437 dgux*)
9438 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9439 hardcode_libdir_flag_spec='-L$libdir'
9440 hardcode_shlibpath_var=no
9441 ;;
9442
9443 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9444 # support. Future versions do this automatically, but an explicit c++rt0.o
9445 # does not break anything, and helps significantly (at the cost of a little
9446 # extra space).
9447 freebsd2.2*)
9448 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9449 hardcode_libdir_flag_spec='-R$libdir'
9450 hardcode_direct=yes
9451 hardcode_shlibpath_var=no
9452 ;;
9453
9454 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9455 freebsd2.*)
9456 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9457 hardcode_direct=yes
9458 hardcode_minus_L=yes
9459 hardcode_shlibpath_var=no
9460 ;;
9461
9462 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9463 freebsd* | dragonfly*)
9464 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9465 hardcode_libdir_flag_spec='-R$libdir'
9466 hardcode_direct=yes
9467 hardcode_shlibpath_var=no
9468 ;;
9469
9470 hpux9*)
9471 if test "$GCC" = yes; then
9472 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'
9473 else
9474 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'
9475 fi
9476 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9477 hardcode_libdir_separator=:
9478 hardcode_direct=yes
9479
9480 # hardcode_minus_L: Not really in the search PATH,
9481 # but as the default location of the library.
9482 hardcode_minus_L=yes
9483 export_dynamic_flag_spec='${wl}-E'
9484 ;;
9485
9486 hpux10*)
9487 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9488 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9489 else
9490 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9491 fi
9492 if test "$with_gnu_ld" = no; then
9493 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9494 hardcode_libdir_separator=:
9495 hardcode_direct=yes
9496 hardcode_direct_absolute=yes
9497 export_dynamic_flag_spec='${wl}-E'
9498 # hardcode_minus_L: Not really in the search PATH,
9499 # but as the default location of the library.
9500 hardcode_minus_L=yes
9501 fi
9502 ;;
9503
9504 hpux11*)
9505 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9506 case $host_cpu in
9507 hppa*64*)
9508 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9509 ;;
9510 ia64*)
9511 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9512 ;;
9513 *)
9514 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9515 ;;
9516 esac
9517 else
9518 case $host_cpu in
9519 hppa*64*)
9520 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9521 ;;
9522 ia64*)
9523 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9524 ;;
9525 *)
9526
9527 # Older versions of the 11.00 compiler do not understand -b yet
9528 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9530$as_echo_n "checking if $CC understands -b... " >&6; }
9531if ${lt_cv_prog_compiler__b+:} false; then :
9532 $as_echo_n "(cached) " >&6
9533else
9534 lt_cv_prog_compiler__b=no
9535 save_LDFLAGS="$LDFLAGS"
9536 LDFLAGS="$LDFLAGS -b"
9537 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9538 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9539 # The linker can only warn and ignore the option if not recognized
9540 # So say no if there are warnings
9541 if test -s conftest.err; then
9542 # Append any errors to the config.log.
9543 cat conftest.err 1>&5
9544 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9545 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9546 if diff conftest.exp conftest.er2 >/dev/null; then
9547 lt_cv_prog_compiler__b=yes
9548 fi
9549 else
9550 lt_cv_prog_compiler__b=yes
9551 fi
9552 fi
9553 $RM -r conftest*
9554 LDFLAGS="$save_LDFLAGS"
9555
9556fi
9557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9558$as_echo "$lt_cv_prog_compiler__b" >&6; }
9559
9560if test x"$lt_cv_prog_compiler__b" = xyes; then
9561 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9562else
9563 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9564fi
9565
9566 ;;
9567 esac
9568 fi
9569 if test "$with_gnu_ld" = no; then
9570 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9571 hardcode_libdir_separator=:
9572
9573 case $host_cpu in
9574 hppa*64*|ia64*)
9575 hardcode_direct=no
9576 hardcode_shlibpath_var=no
9577 ;;
9578 *)
9579 hardcode_direct=yes
9580 hardcode_direct_absolute=yes
9581 export_dynamic_flag_spec='${wl}-E'
9582
9583 # hardcode_minus_L: Not really in the search PATH,
9584 # but as the default location of the library.
9585 hardcode_minus_L=yes
9586 ;;
9587 esac
9588 fi
9589 ;;
9590
9591 irix5* | irix6* | nonstopux*)
9592 if test "$GCC" = yes; then
9593 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'
9594 # Try to use the -exported_symbol ld option, if it does not
9595 # work, assume that -exports_file does not work either and
9596 # implicitly export all symbols.
9597 # This should be the same for all languages, so no per-tag cache variable.
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9599$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9600if ${lt_cv_irix_exported_symbol+:} false; then :
9601 $as_echo_n "(cached) " >&6
9602else
9603 save_LDFLAGS="$LDFLAGS"
9604 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9606/* end confdefs.h. */
9607int foo (void) { return 0; }
9608_ACEOF
9609if ac_fn_c_try_link "$LINENO"; then :
9610 lt_cv_irix_exported_symbol=yes
9611else
9612 lt_cv_irix_exported_symbol=no
9613fi
9614rm -f core conftest.err conftest.$ac_objext \
9615 conftest$ac_exeext conftest.$ac_ext
9616 LDFLAGS="$save_LDFLAGS"
9617fi
9618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9619$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9620 if test "$lt_cv_irix_exported_symbol" = yes; then
9621 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'
9622 fi
9623 else
9624 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'
9625 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'
9626 fi
9627 archive_cmds_need_lc='no'
9628 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9629 hardcode_libdir_separator=:
9630 inherit_rpath=yes
9631 link_all_deplibs=yes
9632 ;;
9633
9634 netbsd*)
9635 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9636 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9637 else
9638 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9639 fi
9640 hardcode_libdir_flag_spec='-R$libdir'
9641 hardcode_direct=yes
9642 hardcode_shlibpath_var=no
9643 ;;
9644
9645 newsos6)
9646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9647 hardcode_direct=yes
9648 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9649 hardcode_libdir_separator=:
9650 hardcode_shlibpath_var=no
9651 ;;
9652
9653 *nto* | *qnx*)
9654 ;;
9655
9656 openbsd*)
9657 if test -f /usr/libexec/ld.so; then
9658 hardcode_direct=yes
9659 hardcode_shlibpath_var=no
9660 hardcode_direct_absolute=yes
9661 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9662 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9663 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9664 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9665 export_dynamic_flag_spec='${wl}-E'
9666 else
9667 case $host_os in
9668 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9669 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9670 hardcode_libdir_flag_spec='-R$libdir'
9671 ;;
9672 *)
9673 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9674 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9675 ;;
9676 esac
9677 fi
9678 else
9679 ld_shlibs=no
9680 fi
9681 ;;
9682
9683 os2*)
9684 hardcode_libdir_flag_spec='-L$libdir'
9685 hardcode_minus_L=yes
9686 allow_undefined_flag=unsupported
9687 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'
9688 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9689 ;;
9690
9691 osf3*)
9692 if test "$GCC" = yes; then
9693 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9694 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'
9695 else
9696 allow_undefined_flag=' -expect_unresolved \*'
9697 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'
9698 fi
9699 archive_cmds_need_lc='no'
9700 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9701 hardcode_libdir_separator=:
9702 ;;
9703
9704 osf4* | osf5*) # as osf3* with the addition of -msym flag
9705 if test "$GCC" = yes; then
9706 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9707 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'
9708 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9709 else
9710 allow_undefined_flag=' -expect_unresolved \*'
9711 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'
9712 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~
9713 $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'
9714
9715 # Both c and cxx compiler support -rpath directly
9716 hardcode_libdir_flag_spec='-rpath $libdir'
9717 fi
9718 archive_cmds_need_lc='no'
9719 hardcode_libdir_separator=:
9720 ;;
9721
9722 solaris*)
9723 no_undefined_flag=' -z defs'
9724 if test "$GCC" = yes; then
9725 wlarc='${wl}'
9726 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9727 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9728 $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'
9729 else
9730 case `$CC -V 2>&1` in
9731 *"Compilers 5.0"*)
9732 wlarc=''
9733 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9734 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9735 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9736 ;;
9737 *)
9738 wlarc='${wl}'
9739 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9740 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9741 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9742 ;;
9743 esac
9744 fi
9745 hardcode_libdir_flag_spec='-R$libdir'
9746 hardcode_shlibpath_var=no
9747 case $host_os in
9748 solaris2.[0-5] | solaris2.[0-5].*) ;;
9749 *)
9750 # The compiler driver will combine and reorder linker options,
9751 # but understands `-z linker_flag'. GCC discards it without `$wl',
9752 # but is careful enough not to reorder.
9753 # Supported since Solaris 2.6 (maybe 2.5.1?)
9754 if test "$GCC" = yes; then
9755 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9756 else
9757 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9758 fi
9759 ;;
9760 esac
9761 link_all_deplibs=yes
9762 ;;
9763
9764 sunos4*)
9765 if test "x$host_vendor" = xsequent; then
9766 # Use $CC to link under sequent, because it throws in some extra .o
9767 # files that make .init and .fini sections work.
9768 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9769 else
9770 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9771 fi
9772 hardcode_libdir_flag_spec='-L$libdir'
9773 hardcode_direct=yes
9774 hardcode_minus_L=yes
9775 hardcode_shlibpath_var=no
9776 ;;
9777
9778 sysv4)
9779 case $host_vendor in
9780 sni)
9781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9782 hardcode_direct=yes # is this really true???
9783 ;;
9784 siemens)
9785 ## LD is ld it makes a PLAMLIB
9786 ## CC just makes a GrossModule.
9787 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9788 reload_cmds='$CC -r -o $output$reload_objs'
9789 hardcode_direct=no
9790 ;;
9791 motorola)
9792 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9793 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9794 ;;
9795 esac
9796 runpath_var='LD_RUN_PATH'
9797 hardcode_shlibpath_var=no
9798 ;;
9799
9800 sysv4.3*)
9801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9802 hardcode_shlibpath_var=no
9803 export_dynamic_flag_spec='-Bexport'
9804 ;;
9805
9806 sysv4*MP*)
9807 if test -d /usr/nec; then
9808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9809 hardcode_shlibpath_var=no
9810 runpath_var=LD_RUN_PATH
9811 hardcode_runpath_var=yes
9812 ld_shlibs=yes
9813 fi
9814 ;;
9815
9816 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9817 no_undefined_flag='${wl}-z,text'
9818 archive_cmds_need_lc=no
9819 hardcode_shlibpath_var=no
9820 runpath_var='LD_RUN_PATH'
9821
9822 if test "$GCC" = yes; then
9823 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9824 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9825 else
9826 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9827 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9828 fi
9829 ;;
9830
9831 sysv5* | sco3.2v5* | sco5v6*)
9832 # Note: We can NOT use -z defs as we might desire, because we do not
9833 # link with -lc, and that would cause any symbols used from libc to
9834 # always be unresolved, which means just about no library would
9835 # ever link correctly. If we're not using GNU ld we use -z text
9836 # though, which does catch some bad symbols but isn't as heavy-handed
9837 # as -z defs.
9838 no_undefined_flag='${wl}-z,text'
9839 allow_undefined_flag='${wl}-z,nodefs'
9840 archive_cmds_need_lc=no
9841 hardcode_shlibpath_var=no
9842 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9843 hardcode_libdir_separator=':'
9844 link_all_deplibs=yes
9845 export_dynamic_flag_spec='${wl}-Bexport'
9846 runpath_var='LD_RUN_PATH'
9847
9848 if test "$GCC" = yes; then
9849 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9850 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9851 else
9852 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9853 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9854 fi
9855 ;;
9856
9857 uts4*)
9858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9859 hardcode_libdir_flag_spec='-L$libdir'
9860 hardcode_shlibpath_var=no
9861 ;;
9862
9863 *)
9864 ld_shlibs=no
9865 ;;
9866 esac
9867
9868 if test x$host_vendor = xsni; then
9869 case $host in
9870 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9871 export_dynamic_flag_spec='${wl}-Blargedynsym'
9872 ;;
9873 esac
9874 fi
9875 fi
9876
9877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9878$as_echo "$ld_shlibs" >&6; }
9879test "$ld_shlibs" = no && can_build_shared=no
9880
9881with_gnu_ld=$with_gnu_ld
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897#
9898# Do we need to explicitly link libc?
9899#
9900case "x$archive_cmds_need_lc" in
9901x|xyes)
9902 # Assume -lc should be added
9903 archive_cmds_need_lc=yes
9904
9905 if test "$enable_shared" = yes && test "$GCC" = yes; then
9906 case $archive_cmds in
9907 *'~'*)
9908 # FIXME: we may have to deal with multi-command sequences.
9909 ;;
9910 '$CC '*)
9911 # Test whether the compiler implicitly links with -lc since on some
9912 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9913 # to ld, don't add -lc before -lgcc.
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9915$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9916if ${lt_cv_archive_cmds_need_lc+:} false; then :
9917 $as_echo_n "(cached) " >&6
9918else
9919 $RM conftest*
9920 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9921
9922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9923 (eval $ac_compile) 2>&5
9924 ac_status=$?
9925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9926 test $ac_status = 0; } 2>conftest.err; then
9927 soname=conftest
9928 lib=conftest
9929 libobjs=conftest.$ac_objext
9930 deplibs=
9931 wl=$lt_prog_compiler_wl
9932 pic_flag=$lt_prog_compiler_pic
9933 compiler_flags=-v
9934 linker_flags=-v
9935 verstring=
9936 output_objdir=.
9937 libname=conftest
9938 lt_save_allow_undefined_flag=$allow_undefined_flag
9939 allow_undefined_flag=
9940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9941 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9942 ac_status=$?
9943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9944 test $ac_status = 0; }
9945 then
9946 lt_cv_archive_cmds_need_lc=no
9947 else
9948 lt_cv_archive_cmds_need_lc=yes
9949 fi
9950 allow_undefined_flag=$lt_save_allow_undefined_flag
9951 else
9952 cat conftest.err 1>&5
9953 fi
9954 $RM conftest*
9955
9956fi
9957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9958$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9959 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9960 ;;
9961 esac
9962 fi
9963 ;;
9964esac
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10118$as_echo_n "checking dynamic linker characteristics... " >&6; }
10119
10120if test "$GCC" = yes; then
10121 case $host_os in
10122 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10123 *) lt_awk_arg="/^libraries:/" ;;
10124 esac
10125 case $host_os in
10126 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10127 *) lt_sed_strip_eq="s,=/,/,g" ;;
10128 esac
10129 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10130 case $lt_search_path_spec in
10131 *\;*)
10132 # if the path contains ";" then we assume it to be the separator
10133 # otherwise default to the standard path separator (i.e. ":") - it is
10134 # assumed that no part of a normal pathname contains ";" but that should
10135 # okay in the real world where ";" in dirpaths is itself problematic.
10136 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10137 ;;
10138 *)
10139 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10140 ;;
10141 esac
10142 # Ok, now we have the path, separated by spaces, we can step through it
10143 # and add multilib dir if necessary.
10144 lt_tmp_lt_search_path_spec=
10145 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10146 for lt_sys_path in $lt_search_path_spec; do
10147 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10148 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10149 else
10150 test -d "$lt_sys_path" && \
10151 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10152 fi
10153 done
10154 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10155BEGIN {RS=" "; FS="/|\n";} {
10156 lt_foo="";
10157 lt_count=0;
10158 for (lt_i = NF; lt_i > 0; lt_i--) {
10159 if ($lt_i != "" && $lt_i != ".") {
10160 if ($lt_i == "..") {
10161 lt_count++;
10162 } else {
10163 if (lt_count == 0) {
10164 lt_foo="/" $lt_i lt_foo;
10165 } else {
10166 lt_count--;
10167 }
10168 }
10169 }
10170 }
10171 if (lt_foo != "") { lt_freq[lt_foo]++; }
10172 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10173}'`
10174 # AWK program above erroneously prepends '/' to C:/dos/paths
10175 # for these hosts.
10176 case $host_os in
10177 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10178 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10179 esac
10180 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10181else
10182 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10183fi
10184library_names_spec=
10185libname_spec='lib$name'
10186soname_spec=
10187shrext_cmds=".so"
10188postinstall_cmds=
10189postuninstall_cmds=
10190finish_cmds=
10191finish_eval=
10192shlibpath_var=
10193shlibpath_overrides_runpath=unknown
10194version_type=none
10195dynamic_linker="$host_os ld.so"
10196sys_lib_dlsearch_path_spec="/lib /usr/lib"
10197need_lib_prefix=unknown
10198hardcode_into_libs=no
10199
10200# when you set need_version to no, make sure it does not cause -set_version
10201# flags to be left without arguments
10202need_version=unknown
10203
10204case $host_os in
10205aix3*)
10206 version_type=linux # correct to gnu/linux during the next big refactor
10207 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10208 shlibpath_var=LIBPATH
10209
10210 # AIX 3 has no versioning support, so we append a major version to the name.
10211 soname_spec='${libname}${release}${shared_ext}$major'
10212 ;;
10213
10214aix[4-9]*)
10215 version_type=linux # correct to gnu/linux during the next big refactor
10216 need_lib_prefix=no
10217 need_version=no
10218 hardcode_into_libs=yes
10219 if test "$host_cpu" = ia64; then
10220 # AIX 5 supports IA64
10221 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10222 shlibpath_var=LD_LIBRARY_PATH
10223 else
10224 # With GCC up to 2.95.x, collect2 would create an import file
10225 # for dependence libraries. The import file would start with
10226 # the line `#! .'. This would cause the generated library to
10227 # depend on `.', always an invalid library. This was fixed in
10228 # development snapshots of GCC prior to 3.0.
10229 case $host_os in
10230 aix4 | aix4.[01] | aix4.[01].*)
10231 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10232 echo ' yes '
10233 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10234 :
10235 else
10236 can_build_shared=no
10237 fi
10238 ;;
10239 esac
10240 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10241 # soname into executable. Probably we can add versioning support to
10242 # collect2, so additional links can be useful in future.
10243 if test "$aix_use_runtimelinking" = yes; then
10244 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10245 # instead of lib<name>.a to let people know that these are not
10246 # typical AIX shared libraries.
10247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10248 else
10249 # We preserve .a as extension for shared libraries through AIX4.2
10250 # and later when we are not doing run time linking.
10251 library_names_spec='${libname}${release}.a $libname.a'
10252 soname_spec='${libname}${release}${shared_ext}$major'
10253 fi
10254 shlibpath_var=LIBPATH
10255 fi
10256 ;;
10257
10258amigaos*)
10259 case $host_cpu in
10260 powerpc)
10261 # Since July 2007 AmigaOS4 officially supports .so libraries.
10262 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10264 ;;
10265 m68k)
10266 library_names_spec='$libname.ixlibrary $libname.a'
10267 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10268 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'
10269 ;;
10270 esac
10271 ;;
10272
10273beos*)
10274 library_names_spec='${libname}${shared_ext}'
10275 dynamic_linker="$host_os ld.so"
10276 shlibpath_var=LIBRARY_PATH
10277 ;;
10278
10279bsdi[45]*)
10280 version_type=linux # correct to gnu/linux during the next big refactor
10281 need_version=no
10282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10283 soname_spec='${libname}${release}${shared_ext}$major'
10284 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10285 shlibpath_var=LD_LIBRARY_PATH
10286 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10287 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10288 # the default ld.so.conf also contains /usr/contrib/lib and
10289 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10290 # libtool to hard-code these into programs
10291 ;;
10292
10293cygwin* | mingw* | pw32* | cegcc*)
10294 version_type=windows
10295 shrext_cmds=".dll"
10296 need_version=no
10297 need_lib_prefix=no
10298
10299 case $GCC,$cc_basename in
10300 yes,*)
10301 # gcc
10302 library_names_spec='$libname.dll.a'
10303 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10304 postinstall_cmds='base_file=`basename \${file}`~
10305 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10306 dldir=$destdir/`dirname \$dlpath`~
10307 test -d \$dldir || mkdir -p \$dldir~
10308 $install_prog $dir/$dlname \$dldir/$dlname~
10309 chmod a+x \$dldir/$dlname~
10310 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10311 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10312 fi'
10313 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10314 dlpath=$dir/\$dldll~
10315 $RM \$dlpath'
10316 shlibpath_overrides_runpath=yes
10317
10318 case $host_os in
10319 cygwin*)
10320 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10321 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10322
10323 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10324 ;;
10325 mingw* | cegcc*)
10326 # MinGW DLLs use traditional 'lib' prefix
10327 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10328 ;;
10329 pw32*)
10330 # pw32 DLLs use 'pw' prefix rather than 'lib'
10331 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10332 ;;
10333 esac
10334 dynamic_linker='Win32 ld.exe'
10335 ;;
10336
10337 *,cl*)
10338 # Native MSVC
10339 libname_spec='$name'
10340 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10341 library_names_spec='${libname}.dll.lib'
10342
10343 case $build_os in
10344 mingw*)
10345 sys_lib_search_path_spec=
10346 lt_save_ifs=$IFS
10347 IFS=';'
10348 for lt_path in $LIB
10349 do
10350 IFS=$lt_save_ifs
10351 # Let DOS variable expansion print the short 8.3 style file name.
10352 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10353 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10354 done
10355 IFS=$lt_save_ifs
10356 # Convert to MSYS style.
10357 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10358 ;;
10359 cygwin*)
10360 # Convert to unix form, then to dos form, then back to unix form
10361 # but this time dos style (no spaces!) so that the unix form looks
10362 # like /cygdrive/c/PROGRA~1:/cygdr...
10363 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10364 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10365 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10366 ;;
10367 *)
10368 sys_lib_search_path_spec="$LIB"
10369 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10370 # It is most probably a Windows format PATH.
10371 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10372 else
10373 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10374 fi
10375 # FIXME: find the short name or the path components, as spaces are
10376 # common. (e.g. "Program Files" -> "PROGRA~1")
10377 ;;
10378 esac
10379
10380 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10381 postinstall_cmds='base_file=`basename \${file}`~
10382 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10383 dldir=$destdir/`dirname \$dlpath`~
10384 test -d \$dldir || mkdir -p \$dldir~
10385 $install_prog $dir/$dlname \$dldir/$dlname'
10386 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10387 dlpath=$dir/\$dldll~
10388 $RM \$dlpath'
10389 shlibpath_overrides_runpath=yes
10390 dynamic_linker='Win32 link.exe'
10391 ;;
10392
10393 *)
10394 # Assume MSVC wrapper
10395 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10396 dynamic_linker='Win32 ld.exe'
10397 ;;
10398 esac
10399 # FIXME: first we should search . and the directory the executable is in
10400 shlibpath_var=PATH
10401 ;;
10402
10403darwin* | rhapsody*)
10404 dynamic_linker="$host_os dyld"
10405 version_type=darwin
10406 need_lib_prefix=no
10407 need_version=no
10408 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10409 soname_spec='${libname}${release}${major}$shared_ext'
10410 shlibpath_overrides_runpath=yes
10411 shlibpath_var=DYLD_LIBRARY_PATH
10412 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10413
10414 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10415 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10416 ;;
10417
10418dgux*)
10419 version_type=linux # correct to gnu/linux during the next big refactor
10420 need_lib_prefix=no
10421 need_version=no
10422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10423 soname_spec='${libname}${release}${shared_ext}$major'
10424 shlibpath_var=LD_LIBRARY_PATH
10425 ;;
10426
10427freebsd* | dragonfly*)
10428 # DragonFly does not have aout. When/if they implement a new
10429 # versioning mechanism, adjust this.
10430 if test -x /usr/bin/objformat; then
10431 objformat=`/usr/bin/objformat`
10432 else
10433 case $host_os in
10434 freebsd[23].*) objformat=aout ;;
10435 *) objformat=elf ;;
10436 esac
10437 fi
10438 version_type=freebsd-$objformat
10439 case $version_type in
10440 freebsd-elf*)
10441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10442 need_version=no
10443 need_lib_prefix=no
10444 ;;
10445 freebsd-*)
10446 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10447 need_version=yes
10448 ;;
10449 esac
10450 shlibpath_var=LD_LIBRARY_PATH
10451 case $host_os in
10452 freebsd2.*)
10453 shlibpath_overrides_runpath=yes
10454 ;;
10455 freebsd3.[01]* | freebsdelf3.[01]*)
10456 shlibpath_overrides_runpath=yes
10457 hardcode_into_libs=yes
10458 ;;
10459 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10460 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10461 shlibpath_overrides_runpath=no
10462 hardcode_into_libs=yes
10463 ;;
10464 *) # from 4.6 on, and DragonFly
10465 shlibpath_overrides_runpath=yes
10466 hardcode_into_libs=yes
10467 ;;
10468 esac
10469 ;;
10470
10471gnu*)
10472 version_type=linux # correct to gnu/linux during the next big refactor
10473 need_lib_prefix=no
10474 need_version=no
10475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10476 soname_spec='${libname}${release}${shared_ext}$major'
10477 shlibpath_var=LD_LIBRARY_PATH
10478 shlibpath_overrides_runpath=no
10479 hardcode_into_libs=yes
10480 ;;
10481
10482haiku*)
10483 version_type=linux # correct to gnu/linux during the next big refactor
10484 need_lib_prefix=no
10485 need_version=no
10486 dynamic_linker="$host_os runtime_loader"
10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10488 soname_spec='${libname}${release}${shared_ext}$major'
10489 shlibpath_var=LIBRARY_PATH
10490 shlibpath_overrides_runpath=yes
10491 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10492 hardcode_into_libs=yes
10493 ;;
10494
10495hpux9* | hpux10* | hpux11*)
10496 # Give a soname corresponding to the major version so that dld.sl refuses to
10497 # link against other versions.
10498 version_type=sunos
10499 need_lib_prefix=no
10500 need_version=no
10501 case $host_cpu in
10502 ia64*)
10503 shrext_cmds='.so'
10504 hardcode_into_libs=yes
10505 dynamic_linker="$host_os dld.so"
10506 shlibpath_var=LD_LIBRARY_PATH
10507 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10509 soname_spec='${libname}${release}${shared_ext}$major'
10510 if test "X$HPUX_IA64_MODE" = X32; then
10511 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10512 else
10513 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10514 fi
10515 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10516 ;;
10517 hppa*64*)
10518 shrext_cmds='.sl'
10519 hardcode_into_libs=yes
10520 dynamic_linker="$host_os dld.sl"
10521 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10522 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10524 soname_spec='${libname}${release}${shared_ext}$major'
10525 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10526 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10527 ;;
10528 *)
10529 shrext_cmds='.sl'
10530 dynamic_linker="$host_os dld.sl"
10531 shlibpath_var=SHLIB_PATH
10532 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10534 soname_spec='${libname}${release}${shared_ext}$major'
10535 ;;
10536 esac
10537 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10538 postinstall_cmds='chmod 555 $lib'
10539 # or fails outright, so override atomically:
10540 install_override_mode=555
10541 ;;
10542
10543interix[3-9]*)
10544 version_type=linux # correct to gnu/linux during the next big refactor
10545 need_lib_prefix=no
10546 need_version=no
10547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10548 soname_spec='${libname}${release}${shared_ext}$major'
10549 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10550 shlibpath_var=LD_LIBRARY_PATH
10551 shlibpath_overrides_runpath=no
10552 hardcode_into_libs=yes
10553 ;;
10554
10555irix5* | irix6* | nonstopux*)
10556 case $host_os in
10557 nonstopux*) version_type=nonstopux ;;
10558 *)
10559 if test "$lt_cv_prog_gnu_ld" = yes; then
10560 version_type=linux # correct to gnu/linux during the next big refactor
10561 else
10562 version_type=irix
10563 fi ;;
10564 esac
10565 need_lib_prefix=no
10566 need_version=no
10567 soname_spec='${libname}${release}${shared_ext}$major'
10568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10569 case $host_os in
10570 irix5* | nonstopux*)
10571 libsuff= shlibsuff=
10572 ;;
10573 *)
10574 case $LD in # libtool.m4 will add one of these switches to LD
10575 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10576 libsuff= shlibsuff= libmagic=32-bit;;
10577 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10578 libsuff=32 shlibsuff=N32 libmagic=N32;;
10579 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10580 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10581 *) libsuff= shlibsuff= libmagic=never-match;;
10582 esac
10583 ;;
10584 esac
10585 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10586 shlibpath_overrides_runpath=no
10587 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10588 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10589 hardcode_into_libs=yes
10590 ;;
10591
10592# No shared lib support for Linux oldld, aout, or coff.
10593linux*oldld* | linux*aout* | linux*coff*)
10594 dynamic_linker=no
10595 ;;
10596
10597# This must be glibc/ELF.
10598linux* | k*bsd*-gnu | kopensolaris*-gnu)
10599 version_type=linux # correct to gnu/linux during the next big refactor
10600 need_lib_prefix=no
10601 need_version=no
10602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10603 soname_spec='${libname}${release}${shared_ext}$major'
10604 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10605 shlibpath_var=LD_LIBRARY_PATH
10606 shlibpath_overrides_runpath=no
10607
10608 # Some binutils ld are patched to set DT_RUNPATH
10609 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10610 $as_echo_n "(cached) " >&6
10611else
10612 lt_cv_shlibpath_overrides_runpath=no
10613 save_LDFLAGS=$LDFLAGS
10614 save_libdir=$libdir
10615 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10616 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10618/* end confdefs.h. */
10619
10620int
10621main ()
10622{
10623
10624 ;
10625 return 0;
10626}
10627_ACEOF
10628if ac_fn_c_try_link "$LINENO"; then :
10629 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10630 lt_cv_shlibpath_overrides_runpath=yes
10631fi
10632fi
10633rm -f core conftest.err conftest.$ac_objext \
10634 conftest$ac_exeext conftest.$ac_ext
10635 LDFLAGS=$save_LDFLAGS
10636 libdir=$save_libdir
10637
10638fi
10639
10640 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10641
10642 # This implies no fast_install, which is unacceptable.
10643 # Some rework will be needed to allow for fast_install
10644 # before this can be enabled.
10645 hardcode_into_libs=yes
10646
10647 # Append ld.so.conf contents to the search path
10648 if test -f /etc/ld.so.conf; then
10649 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' ' '`
10650 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10651 fi
10652
10653 # We used to test for /lib/ld.so.1 and disable shared libraries on
10654 # powerpc, because MkLinux only supported shared libraries with the
10655 # GNU dynamic linker. Since this was broken with cross compilers,
10656 # most powerpc-linux boxes support dynamic linking these days and
10657 # people can always --disable-shared, the test was removed, and we
10658 # assume the GNU/Linux dynamic linker is in use.
10659 dynamic_linker='GNU/Linux ld.so'
10660 ;;
10661
10662netbsd*)
10663 version_type=sunos
10664 need_lib_prefix=no
10665 need_version=no
10666 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10668 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10669 dynamic_linker='NetBSD (a.out) ld.so'
10670 else
10671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10672 soname_spec='${libname}${release}${shared_ext}$major'
10673 dynamic_linker='NetBSD ld.elf_so'
10674 fi
10675 shlibpath_var=LD_LIBRARY_PATH
10676 shlibpath_overrides_runpath=yes
10677 hardcode_into_libs=yes
10678 ;;
10679
10680newsos6)
10681 version_type=linux # correct to gnu/linux during the next big refactor
10682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10683 shlibpath_var=LD_LIBRARY_PATH
10684 shlibpath_overrides_runpath=yes
10685 ;;
10686
10687*nto* | *qnx*)
10688 version_type=qnx
10689 need_lib_prefix=no
10690 need_version=no
10691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10692 soname_spec='${libname}${release}${shared_ext}$major'
10693 shlibpath_var=LD_LIBRARY_PATH
10694 shlibpath_overrides_runpath=no
10695 hardcode_into_libs=yes
10696 dynamic_linker='ldqnx.so'
10697 ;;
10698
10699openbsd*)
10700 version_type=sunos
10701 sys_lib_dlsearch_path_spec="/usr/lib"
10702 need_lib_prefix=no
10703 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10704 case $host_os in
10705 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10706 *) need_version=no ;;
10707 esac
10708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10709 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10710 shlibpath_var=LD_LIBRARY_PATH
10711 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10712 case $host_os in
10713 openbsd2.[89] | openbsd2.[89].*)
10714 shlibpath_overrides_runpath=no
10715 ;;
10716 *)
10717 shlibpath_overrides_runpath=yes
10718 ;;
10719 esac
10720 else
10721 shlibpath_overrides_runpath=yes
10722 fi
10723 ;;
10724
10725os2*)
10726 libname_spec='$name'
10727 shrext_cmds=".dll"
10728 need_lib_prefix=no
10729 library_names_spec='$libname${shared_ext} $libname.a'
10730 dynamic_linker='OS/2 ld.exe'
10731 shlibpath_var=LIBPATH
10732 ;;
10733
10734osf3* | osf4* | osf5*)
10735 version_type=osf
10736 need_lib_prefix=no
10737 need_version=no
10738 soname_spec='${libname}${release}${shared_ext}$major'
10739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10740 shlibpath_var=LD_LIBRARY_PATH
10741 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10742 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10743 ;;
10744
10745rdos*)
10746 dynamic_linker=no
10747 ;;
10748
10749solaris*)
10750 version_type=linux # correct to gnu/linux during the next big refactor
10751 need_lib_prefix=no
10752 need_version=no
10753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10754 soname_spec='${libname}${release}${shared_ext}$major'
10755 shlibpath_var=LD_LIBRARY_PATH
10756 shlibpath_overrides_runpath=yes
10757 hardcode_into_libs=yes
10758 # ldd complains unless libraries are executable
10759 postinstall_cmds='chmod +x $lib'
10760 ;;
10761
10762sunos4*)
10763 version_type=sunos
10764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10765 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10766 shlibpath_var=LD_LIBRARY_PATH
10767 shlibpath_overrides_runpath=yes
10768 if test "$with_gnu_ld" = yes; then
10769 need_lib_prefix=no
10770 fi
10771 need_version=yes
10772 ;;
10773
10774sysv4 | sysv4.3*)
10775 version_type=linux # correct to gnu/linux during the next big refactor
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 shlibpath_var=LD_LIBRARY_PATH
10779 case $host_vendor in
10780 sni)
10781 shlibpath_overrides_runpath=no
10782 need_lib_prefix=no
10783 runpath_var=LD_RUN_PATH
10784 ;;
10785 siemens)
10786 need_lib_prefix=no
10787 ;;
10788 motorola)
10789 need_lib_prefix=no
10790 need_version=no
10791 shlibpath_overrides_runpath=no
10792 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10793 ;;
10794 esac
10795 ;;
10796
10797sysv4*MP*)
10798 if test -d /usr/nec ;then
10799 version_type=linux # correct to gnu/linux during the next big refactor
10800 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10801 soname_spec='$libname${shared_ext}.$major'
10802 shlibpath_var=LD_LIBRARY_PATH
10803 fi
10804 ;;
10805
10806sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10807 version_type=freebsd-elf
10808 need_lib_prefix=no
10809 need_version=no
10810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10811 soname_spec='${libname}${release}${shared_ext}$major'
10812 shlibpath_var=LD_LIBRARY_PATH
10813 shlibpath_overrides_runpath=yes
10814 hardcode_into_libs=yes
10815 if test "$with_gnu_ld" = yes; then
10816 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10817 else
10818 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10819 case $host_os in
10820 sco3.2v5*)
10821 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10822 ;;
10823 esac
10824 fi
10825 sys_lib_dlsearch_path_spec='/usr/lib'
10826 ;;
10827
10828tpf*)
10829 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10830 version_type=linux # correct to gnu/linux during the next big refactor
10831 need_lib_prefix=no
10832 need_version=no
10833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10834 shlibpath_var=LD_LIBRARY_PATH
10835 shlibpath_overrides_runpath=no
10836 hardcode_into_libs=yes
10837 ;;
10838
10839uts4*)
10840 version_type=linux # correct to gnu/linux during the next big refactor
10841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10842 soname_spec='${libname}${release}${shared_ext}$major'
10843 shlibpath_var=LD_LIBRARY_PATH
10844 ;;
10845
10846*)
10847 dynamic_linker=no
10848 ;;
10849esac
10850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10851$as_echo "$dynamic_linker" >&6; }
10852test "$dynamic_linker" = no && can_build_shared=no
10853
10854variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10855if test "$GCC" = yes; then
10856 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10857fi
10858
10859if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10860 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10861fi
10862if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10863 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10864fi
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10958$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10959hardcode_action=
10960if test -n "$hardcode_libdir_flag_spec" ||
10961 test -n "$runpath_var" ||
10962 test "X$hardcode_automatic" = "Xyes" ; then
10963
10964 # We can hardcode non-existent directories.
10965 if test "$hardcode_direct" != no &&
10966 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10967 # have to relink, otherwise we might link with an installed library
10968 # when we should be linking with a yet-to-be-installed one
10969 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10970 test "$hardcode_minus_L" != no; then
10971 # Linking always hardcodes the temporary library directory.
10972 hardcode_action=relink
10973 else
10974 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10975 hardcode_action=immediate
10976 fi
10977else
10978 # We cannot hardcode anything, or else we can only hardcode existing
10979 # directories.
10980 hardcode_action=unsupported
10981fi
10982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10983$as_echo "$hardcode_action" >&6; }
10984
10985if test "$hardcode_action" = relink ||
10986 test "$inherit_rpath" = yes; then
10987 # Fast installation is not supported
10988 enable_fast_install=no
10989elif test "$shlibpath_overrides_runpath" = yes ||
10990 test "$enable_shared" = no; then
10991 # Fast installation is not necessary
10992 enable_fast_install=needless
10993fi
10994
10995
10996
10997
10998
10999
11000 if test "x$enable_dlopen" != xyes; then
11001 enable_dlopen=unknown
11002 enable_dlopen_self=unknown
11003 enable_dlopen_self_static=unknown
11004else
11005 lt_cv_dlopen=no
11006 lt_cv_dlopen_libs=
11007
11008 case $host_os in
11009 beos*)
11010 lt_cv_dlopen="load_add_on"
11011 lt_cv_dlopen_libs=
11012 lt_cv_dlopen_self=yes
11013 ;;
11014
11015 mingw* | pw32* | cegcc*)
11016 lt_cv_dlopen="LoadLibrary"
11017 lt_cv_dlopen_libs=
11018 ;;
11019
11020 cygwin*)
11021 lt_cv_dlopen="dlopen"
11022 lt_cv_dlopen_libs=
11023 ;;
11024
11025 darwin*)
11026 # if libdl is installed we need to link against it
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11028$as_echo_n "checking for dlopen in -ldl... " >&6; }
11029if ${ac_cv_lib_dl_dlopen+:} false; then :
11030 $as_echo_n "(cached) " >&6
11031else
11032 ac_check_lib_save_LIBS=$LIBS
11033LIBS="-ldl $LIBS"
11034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11035/* end confdefs.h. */
11036
11037/* Override any GCC internal prototype to avoid an error.
11038 Use char because int might match the return type of a GCC
11039 builtin and then its argument prototype would still apply. */
11040#ifdef __cplusplus
11041extern "C"
11042#endif
11043char dlopen ();
11044int
11045main ()
11046{
11047return dlopen ();
11048 ;
11049 return 0;
11050}
11051_ACEOF
11052if ac_fn_c_try_link "$LINENO"; then :
11053 ac_cv_lib_dl_dlopen=yes
11054else
11055 ac_cv_lib_dl_dlopen=no
11056fi
11057rm -f core conftest.err conftest.$ac_objext \
11058 conftest$ac_exeext conftest.$ac_ext
11059LIBS=$ac_check_lib_save_LIBS
11060fi
11061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11062$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11063if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11064 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11065else
11066
11067 lt_cv_dlopen="dyld"
11068 lt_cv_dlopen_libs=
11069 lt_cv_dlopen_self=yes
11070
11071fi
11072
11073 ;;
11074
11075 *)
11076 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11077if test "x$ac_cv_func_shl_load" = xyes; then :
11078 lt_cv_dlopen="shl_load"
11079else
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11081$as_echo_n "checking for shl_load in -ldld... " >&6; }
11082if ${ac_cv_lib_dld_shl_load+:} false; then :
11083 $as_echo_n "(cached) " >&6
11084else
11085 ac_check_lib_save_LIBS=$LIBS
11086LIBS="-ldld $LIBS"
11087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11088/* end confdefs.h. */
11089
11090/* Override any GCC internal prototype to avoid an error.
11091 Use char because int might match the return type of a GCC
11092 builtin and then its argument prototype would still apply. */
11093#ifdef __cplusplus
11094extern "C"
11095#endif
11096char shl_load ();
11097int
11098main ()
11099{
11100return shl_load ();
11101 ;
11102 return 0;
11103}
11104_ACEOF
11105if ac_fn_c_try_link "$LINENO"; then :
11106 ac_cv_lib_dld_shl_load=yes
11107else
11108 ac_cv_lib_dld_shl_load=no
11109fi
11110rm -f core conftest.err conftest.$ac_objext \
11111 conftest$ac_exeext conftest.$ac_ext
11112LIBS=$ac_check_lib_save_LIBS
11113fi
11114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11115$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11116if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11117 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11118else
11119 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11120if test "x$ac_cv_func_dlopen" = xyes; then :
11121 lt_cv_dlopen="dlopen"
11122else
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11124$as_echo_n "checking for dlopen in -ldl... " >&6; }
11125if ${ac_cv_lib_dl_dlopen+:} false; then :
11126 $as_echo_n "(cached) " >&6
11127else
11128 ac_check_lib_save_LIBS=$LIBS
11129LIBS="-ldl $LIBS"
11130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11131/* end confdefs.h. */
11132
11133/* Override any GCC internal prototype to avoid an error.
11134 Use char because int might match the return type of a GCC
11135 builtin and then its argument prototype would still apply. */
11136#ifdef __cplusplus
11137extern "C"
11138#endif
11139char dlopen ();
11140int
11141main ()
11142{
11143return dlopen ();
11144 ;
11145 return 0;
11146}
11147_ACEOF
11148if ac_fn_c_try_link "$LINENO"; then :
11149 ac_cv_lib_dl_dlopen=yes
11150else
11151 ac_cv_lib_dl_dlopen=no
11152fi
11153rm -f core conftest.err conftest.$ac_objext \
11154 conftest$ac_exeext conftest.$ac_ext
11155LIBS=$ac_check_lib_save_LIBS
11156fi
11157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11158$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11159if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11160 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11161else
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11163$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11164if ${ac_cv_lib_svld_dlopen+:} false; then :
11165 $as_echo_n "(cached) " >&6
11166else
11167 ac_check_lib_save_LIBS=$LIBS
11168LIBS="-lsvld $LIBS"
11169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11170/* end confdefs.h. */
11171
11172/* Override any GCC internal prototype to avoid an error.
11173 Use char because int might match the return type of a GCC
11174 builtin and then its argument prototype would still apply. */
11175#ifdef __cplusplus
11176extern "C"
11177#endif
11178char dlopen ();
11179int
11180main ()
11181{
11182return dlopen ();
11183 ;
11184 return 0;
11185}
11186_ACEOF
11187if ac_fn_c_try_link "$LINENO"; then :
11188 ac_cv_lib_svld_dlopen=yes
11189else
11190 ac_cv_lib_svld_dlopen=no
11191fi
11192rm -f core conftest.err conftest.$ac_objext \
11193 conftest$ac_exeext conftest.$ac_ext
11194LIBS=$ac_check_lib_save_LIBS
11195fi
11196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11197$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11198if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11199 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11200else
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11202$as_echo_n "checking for dld_link in -ldld... " >&6; }
11203if ${ac_cv_lib_dld_dld_link+:} false; then :
11204 $as_echo_n "(cached) " >&6
11205else
11206 ac_check_lib_save_LIBS=$LIBS
11207LIBS="-ldld $LIBS"
11208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11209/* end confdefs.h. */
11210
11211/* Override any GCC internal prototype to avoid an error.
11212 Use char because int might match the return type of a GCC
11213 builtin and then its argument prototype would still apply. */
11214#ifdef __cplusplus
11215extern "C"
11216#endif
11217char dld_link ();
11218int
11219main ()
11220{
11221return dld_link ();
11222 ;
11223 return 0;
11224}
11225_ACEOF
11226if ac_fn_c_try_link "$LINENO"; then :
11227 ac_cv_lib_dld_dld_link=yes
11228else
11229 ac_cv_lib_dld_dld_link=no
11230fi
11231rm -f core conftest.err conftest.$ac_objext \
11232 conftest$ac_exeext conftest.$ac_ext
11233LIBS=$ac_check_lib_save_LIBS
11234fi
11235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11236$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11237if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11238 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11239fi
11240
11241
11242fi
11243
11244
11245fi
11246
11247
11248fi
11249
11250
11251fi
11252
11253
11254fi
11255
11256 ;;
11257 esac
11258
11259 if test "x$lt_cv_dlopen" != xno; then
11260 enable_dlopen=yes
11261 else
11262 enable_dlopen=no
11263 fi
11264
11265 case $lt_cv_dlopen in
11266 dlopen)
11267 save_CPPFLAGS="$CPPFLAGS"
11268 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11269
11270 save_LDFLAGS="$LDFLAGS"
11271 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11272
11273 save_LIBS="$LIBS"
11274 LIBS="$lt_cv_dlopen_libs $LIBS"
11275
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11277$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11278if ${lt_cv_dlopen_self+:} false; then :
11279 $as_echo_n "(cached) " >&6
11280else
11281 if test "$cross_compiling" = yes; then :
11282 lt_cv_dlopen_self=cross
11283else
11284 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11285 lt_status=$lt_dlunknown
11286 cat > conftest.$ac_ext <<_LT_EOF
11287#line $LINENO "configure"
11288#include "confdefs.h"
11289
11290#if HAVE_DLFCN_H
11291#include <dlfcn.h>
11292#endif
11293
11294#include <stdio.h>
11295
11296#ifdef RTLD_GLOBAL
11297# define LT_DLGLOBAL RTLD_GLOBAL
11298#else
11299# ifdef DL_GLOBAL
11300# define LT_DLGLOBAL DL_GLOBAL
11301# else
11302# define LT_DLGLOBAL 0
11303# endif
11304#endif
11305
11306/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11307 find out it does not work in some platform. */
11308#ifndef LT_DLLAZY_OR_NOW
11309# ifdef RTLD_LAZY
11310# define LT_DLLAZY_OR_NOW RTLD_LAZY
11311# else
11312# ifdef DL_LAZY
11313# define LT_DLLAZY_OR_NOW DL_LAZY
11314# else
11315# ifdef RTLD_NOW
11316# define LT_DLLAZY_OR_NOW RTLD_NOW
11317# else
11318# ifdef DL_NOW
11319# define LT_DLLAZY_OR_NOW DL_NOW
11320# else
11321# define LT_DLLAZY_OR_NOW 0
11322# endif
11323# endif
11324# endif
11325# endif
11326#endif
11327
11328/* When -fvisbility=hidden is used, assume the code has been annotated
11329 correspondingly for the symbols needed. */
11330#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11331int fnord () __attribute__((visibility("default")));
11332#endif
11333
11334int fnord () { return 42; }
11335int main ()
11336{
11337 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11338 int status = $lt_dlunknown;
11339
11340 if (self)
11341 {
11342 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11343 else
11344 {
11345 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11346 else puts (dlerror ());
11347 }
11348 /* dlclose (self); */
11349 }
11350 else
11351 puts (dlerror ());
11352
11353 return status;
11354}
11355_LT_EOF
11356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11357 (eval $ac_link) 2>&5
11358 ac_status=$?
11359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11360 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11361 (./conftest; exit; ) >&5 2>/dev/null
11362 lt_status=$?
11363 case x$lt_status in
11364 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11365 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11366 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11367 esac
11368 else :
11369 # compilation failed
11370 lt_cv_dlopen_self=no
11371 fi
11372fi
11373rm -fr conftest*
11374
11375
11376fi
11377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11378$as_echo "$lt_cv_dlopen_self" >&6; }
11379
11380 if test "x$lt_cv_dlopen_self" = xyes; then
11381 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11383$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11384if ${lt_cv_dlopen_self_static+:} false; then :
11385 $as_echo_n "(cached) " >&6
11386else
11387 if test "$cross_compiling" = yes; then :
11388 lt_cv_dlopen_self_static=cross
11389else
11390 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11391 lt_status=$lt_dlunknown
11392 cat > conftest.$ac_ext <<_LT_EOF
11393#line $LINENO "configure"
11394#include "confdefs.h"
11395
11396#if HAVE_DLFCN_H
11397#include <dlfcn.h>
11398#endif
11399
11400#include <stdio.h>
11401
11402#ifdef RTLD_GLOBAL
11403# define LT_DLGLOBAL RTLD_GLOBAL
11404#else
11405# ifdef DL_GLOBAL
11406# define LT_DLGLOBAL DL_GLOBAL
11407# else
11408# define LT_DLGLOBAL 0
11409# endif
11410#endif
11411
11412/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11413 find out it does not work in some platform. */
11414#ifndef LT_DLLAZY_OR_NOW
11415# ifdef RTLD_LAZY
11416# define LT_DLLAZY_OR_NOW RTLD_LAZY
11417# else
11418# ifdef DL_LAZY
11419# define LT_DLLAZY_OR_NOW DL_LAZY
11420# else
11421# ifdef RTLD_NOW
11422# define LT_DLLAZY_OR_NOW RTLD_NOW
11423# else
11424# ifdef DL_NOW
11425# define LT_DLLAZY_OR_NOW DL_NOW
11426# else
11427# define LT_DLLAZY_OR_NOW 0
11428# endif
11429# endif
11430# endif
11431# endif
11432#endif
11433
11434/* When -fvisbility=hidden is used, assume the code has been annotated
11435 correspondingly for the symbols needed. */
11436#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11437int fnord () __attribute__((visibility("default")));
11438#endif
11439
11440int fnord () { return 42; }
11441int main ()
11442{
11443 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11444 int status = $lt_dlunknown;
11445
11446 if (self)
11447 {
11448 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11449 else
11450 {
11451 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11452 else puts (dlerror ());
11453 }
11454 /* dlclose (self); */
11455 }
11456 else
11457 puts (dlerror ());
11458
11459 return status;
11460}
11461_LT_EOF
11462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11463 (eval $ac_link) 2>&5
11464 ac_status=$?
11465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11466 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11467 (./conftest; exit; ) >&5 2>/dev/null
11468 lt_status=$?
11469 case x$lt_status in
11470 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11471 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11472 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11473 esac
11474 else :
11475 # compilation failed
11476 lt_cv_dlopen_self_static=no
11477 fi
11478fi
11479rm -fr conftest*
11480
11481
11482fi
11483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11484$as_echo "$lt_cv_dlopen_self_static" >&6; }
11485 fi
11486
11487 CPPFLAGS="$save_CPPFLAGS"
11488 LDFLAGS="$save_LDFLAGS"
11489 LIBS="$save_LIBS"
11490 ;;
11491 esac
11492
11493 case $lt_cv_dlopen_self in
11494 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11495 *) enable_dlopen_self=unknown ;;
11496 esac
11497
11498 case $lt_cv_dlopen_self_static in
11499 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11500 *) enable_dlopen_self_static=unknown ;;
11501 esac
11502fi
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520striplib=
11521old_striplib=
11522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11523$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11524if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11525 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11526 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11528$as_echo "yes" >&6; }
11529else
11530# FIXME - insert some real tests, host_os isn't really good enough
11531 case $host_os in
11532 darwin*)
11533 if test -n "$STRIP" ; then
11534 striplib="$STRIP -x"
11535 old_striplib="$STRIP -S"
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11537$as_echo "yes" >&6; }
11538 else
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11540$as_echo "no" >&6; }
11541 fi
11542 ;;
11543 *)
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11545$as_echo "no" >&6; }
11546 ;;
11547 esac
11548fi
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561 # Report which library types will actually be built
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11563$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11565$as_echo "$can_build_shared" >&6; }
11566
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11568$as_echo_n "checking whether to build shared libraries... " >&6; }
11569 test "$can_build_shared" = "no" && enable_shared=no
11570
11571 # On AIX, shared libraries and static libraries use the same namespace, and
11572 # are all built from PIC.
11573 case $host_os in
11574 aix3*)
11575 test "$enable_shared" = yes && enable_static=no
11576 if test -n "$RANLIB"; then
11577 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11578 postinstall_cmds='$RANLIB $lib'
11579 fi
11580 ;;
11581
11582 aix[4-9]*)
11583 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11584 test "$enable_shared" = yes && enable_static=no
11585 fi
11586 ;;
11587 esac
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11589$as_echo "$enable_shared" >&6; }
11590
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11592$as_echo_n "checking whether to build static libraries... " >&6; }
11593 # Make sure either enable_shared or enable_static is yes.
11594 test "$enable_shared" = yes || enable_static=yes
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11596$as_echo "$enable_static" >&6; }
11597
11598
11599
11600
11601fi
11602ac_ext=c
11603ac_cpp='$CPP $CPPFLAGS'
11604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11606ac_compiler_gnu=$ac_cv_c_compiler_gnu
11607
11608CC="$lt_save_CC"
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624 ac_config_commands="$ac_config_commands libtool"
11625
11626
11627
11628
11629# Only expand once:
11630
11631
11632ac_ext=cpp
11633ac_cpp='$CXXCPP $CPPFLAGS'
11634ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11635ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11636ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11637if test -z "$CXX"; then
11638 if test -n "$CCC"; then
11639 CXX=$CCC
11640 else
11641 if test -n "$ac_tool_prefix"; then
11642 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11643 do
11644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11645set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11647$as_echo_n "checking for $ac_word... " >&6; }
11648if ${ac_cv_prog_CXX+:} false; then :
11649 $as_echo_n "(cached) " >&6
11650else
11651 if test -n "$CXX"; then
11652 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11653else
11654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11655for as_dir in $PATH
11656do
11657 IFS=$as_save_IFS
11658 test -z "$as_dir" && as_dir=.
11659 for ac_exec_ext in '' $ac_executable_extensions; do
11660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11661 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11663 break 2
11664 fi
11665done
11666 done
11667IFS=$as_save_IFS
11668
11669fi
11670fi
11671CXX=$ac_cv_prog_CXX
11672if test -n "$CXX"; then
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11674$as_echo "$CXX" >&6; }
11675else
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11677$as_echo "no" >&6; }
11678fi
11679
11680
11681 test -n "$CXX" && break
11682 done
11683fi
11684if test -z "$CXX"; then
11685 ac_ct_CXX=$CXX
11686 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11687do
11688 # Extract the first word of "$ac_prog", so it can be a program name with args.
11689set dummy $ac_prog; ac_word=$2
11690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11691$as_echo_n "checking for $ac_word... " >&6; }
11692if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11693 $as_echo_n "(cached) " >&6
11694else
11695 if test -n "$ac_ct_CXX"; then
11696 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11697else
11698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11699for as_dir in $PATH
11700do
11701 IFS=$as_save_IFS
11702 test -z "$as_dir" && as_dir=.
11703 for ac_exec_ext in '' $ac_executable_extensions; do
11704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11705 ac_cv_prog_ac_ct_CXX="$ac_prog"
11706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11707 break 2
11708 fi
11709done
11710 done
11711IFS=$as_save_IFS
11712
11713fi
11714fi
11715ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11716if test -n "$ac_ct_CXX"; then
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11718$as_echo "$ac_ct_CXX" >&6; }
11719else
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11721$as_echo "no" >&6; }
11722fi
11723
11724
11725 test -n "$ac_ct_CXX" && break
11726done
11727
11728 if test "x$ac_ct_CXX" = x; then
11729 CXX="g++"
11730 else
11731 case $cross_compiling:$ac_tool_warned in
11732yes:)
11733{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11734$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11735ac_tool_warned=yes ;;
11736esac
11737 CXX=$ac_ct_CXX
11738 fi
11739fi
11740
11741 fi
11742fi
11743# Provide some information about the compiler.
11744$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11745set X $ac_compile
11746ac_compiler=$2
11747for ac_option in --version -v -V -qversion; do
11748 { { ac_try="$ac_compiler $ac_option >&5"
11749case "(($ac_try" in
11750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11751 *) ac_try_echo=$ac_try;;
11752esac
11753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11754$as_echo "$ac_try_echo"; } >&5
11755 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11756 ac_status=$?
11757 if test -s conftest.err; then
11758 sed '10a\
11759... rest of stderr output deleted ...
11760 10q' conftest.err >conftest.er1
11761 cat conftest.er1 >&5
11762 fi
11763 rm -f conftest.er1 conftest.err
11764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11765 test $ac_status = 0; }
11766done
11767
11768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11769$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11770if ${ac_cv_cxx_compiler_gnu+:} false; then :
11771 $as_echo_n "(cached) " >&6
11772else
11773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11774/* end confdefs.h. */
11775
11776int
11777main ()
11778{
11779#ifndef __GNUC__
11780 choke me
11781#endif
11782
11783 ;
11784 return 0;
11785}
11786_ACEOF
11787if ac_fn_cxx_try_compile "$LINENO"; then :
11788 ac_compiler_gnu=yes
11789else
11790 ac_compiler_gnu=no
11791fi
11792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11793ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11794
11795fi
11796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11797$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11798if test $ac_compiler_gnu = yes; then
11799 GXX=yes
11800else
11801 GXX=
11802fi
11803ac_test_CXXFLAGS=${CXXFLAGS+set}
11804ac_save_CXXFLAGS=$CXXFLAGS
11805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11806$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11807if ${ac_cv_prog_cxx_g+:} false; then :
11808 $as_echo_n "(cached) " >&6
11809else
11810 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11811 ac_cxx_werror_flag=yes
11812 ac_cv_prog_cxx_g=no
11813 CXXFLAGS="-g"
11814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11815/* end confdefs.h. */
11816
11817int
11818main ()
11819{
11820
11821 ;
11822 return 0;
11823}
11824_ACEOF
11825if ac_fn_cxx_try_compile "$LINENO"; then :
11826 ac_cv_prog_cxx_g=yes
11827else
11828 CXXFLAGS=""
11829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830/* end confdefs.h. */
11831
11832int
11833main ()
11834{
11835
11836 ;
11837 return 0;
11838}
11839_ACEOF
11840if ac_fn_cxx_try_compile "$LINENO"; then :
11841
11842else
11843 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11844 CXXFLAGS="-g"
11845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11846/* end confdefs.h. */
11847
11848int
11849main ()
11850{
11851
11852 ;
11853 return 0;
11854}
11855_ACEOF
11856if ac_fn_cxx_try_compile "$LINENO"; then :
11857 ac_cv_prog_cxx_g=yes
11858fi
11859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11860fi
11861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11862fi
11863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11864 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11865fi
11866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11867$as_echo "$ac_cv_prog_cxx_g" >&6; }
11868if test "$ac_test_CXXFLAGS" = set; then
11869 CXXFLAGS=$ac_save_CXXFLAGS
11870elif test $ac_cv_prog_cxx_g = yes; then
11871 if test "$GXX" = yes; then
11872 CXXFLAGS="-g -O2"
11873 else
11874 CXXFLAGS="-g"
11875 fi
11876else
11877 if test "$GXX" = yes; then
11878 CXXFLAGS="-O2"
11879 else
11880 CXXFLAGS=
11881 fi
11882fi
11883ac_ext=c
11884ac_cpp='$CPP $CPPFLAGS'
11885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11887ac_compiler_gnu=$ac_cv_c_compiler_gnu
11888
11889depcc="$CXX" am_compiler_list=
11890
11891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11892$as_echo_n "checking dependency style of $depcc... " >&6; }
11893if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
11894 $as_echo_n "(cached) " >&6
11895else
11896 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11897 # We make a subdir and do the tests there. Otherwise we can end up
11898 # making bogus files that we don't know about and never remove. For
11899 # instance it was reported that on HP-UX the gcc test will end up
11900 # making a dummy file named 'D' -- because '-MD' means "put the output
11901 # in D".
11902 rm -rf conftest.dir
11903 mkdir conftest.dir
11904 # Copy depcomp to subdir because otherwise we won't find it if we're
11905 # using a relative directory.
11906 cp "$am_depcomp" conftest.dir
11907 cd conftest.dir
11908 # We will build objects and dependencies in a subdirectory because
11909 # it helps to detect inapplicable dependency modes. For instance
11910 # both Tru64's cc and ICC support -MD to output dependencies as a
11911 # side effect of compilation, but ICC will put the dependencies in
11912 # the current directory while Tru64 will put them in the object
11913 # directory.
11914 mkdir sub
11915
11916 am_cv_CXX_dependencies_compiler_type=none
11917 if test "$am_compiler_list" = ""; then
11918 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11919 fi
11920 am__universal=false
11921 case " $depcc " in #(
11922 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11923 esac
11924
11925 for depmode in $am_compiler_list; do
11926 # Setup a source with many dependencies, because some compilers
11927 # like to wrap large dependency lists on column 80 (with \), and
11928 # we should not choose a depcomp mode which is confused by this.
11929 #
11930 # We need to recreate these files for each test, as the compiler may
11931 # overwrite some of them when testing with obscure command lines.
11932 # This happens at least with the AIX C compiler.
11933 : > sub/conftest.c
11934 for i in 1 2 3 4 5 6; do
11935 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11936 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11937 # Solaris 10 /bin/sh.
11938 echo '/* dummy */' > sub/conftst$i.h
11939 done
11940 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11941
11942 # We check with '-c' and '-o' for the sake of the "dashmstdout"
11943 # mode. It turns out that the SunPro C++ compiler does not properly
11944 # handle '-M -o', and we need to detect this. Also, some Intel
11945 # versions had trouble with output in subdirs.
11946 am__obj=sub/conftest.${OBJEXT-o}
11947 am__minus_obj="-o $am__obj"
11948 case $depmode in
11949 gcc)
11950 # This depmode causes a compiler race in universal mode.
11951 test "$am__universal" = false || continue
11952 ;;
11953 nosideeffect)
11954 # After this tag, mechanisms are not by side-effect, so they'll
11955 # only be used when explicitly requested.
11956 if test "x$enable_dependency_tracking" = xyes; then
11957 continue
11958 else
11959 break
11960 fi
11961 ;;
11962 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11963 # This compiler won't grok '-c -o', but also, the minuso test has
11964 # not run yet. These depmodes are late enough in the game, and
11965 # so weak that their functioning should not be impacted.
11966 am__obj=conftest.${OBJEXT-o}
11967 am__minus_obj=
11968 ;;
11969 none) break ;;
11970 esac
11971 if depmode=$depmode \
11972 source=sub/conftest.c object=$am__obj \
11973 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11974 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11975 >/dev/null 2>conftest.err &&
11976 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11977 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11978 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11979 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11980 # icc doesn't choke on unknown options, it will just issue warnings
11981 # or remarks (even with -Werror). So we grep stderr for any message
11982 # that says an option was ignored or not supported.
11983 # When given -MP, icc 7.0 and 7.1 complain thusly:
11984 # icc: Command line warning: ignoring option '-M'; no argument required
11985 # The diagnosis changed in icc 8.0:
11986 # icc: Command line remark: option '-MP' not supported
11987 if (grep 'ignoring option' conftest.err ||
11988 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11989 am_cv_CXX_dependencies_compiler_type=$depmode
11990 break
11991 fi
11992 fi
11993 done
11994
11995 cd ..
11996 rm -rf conftest.dir
11997else
11998 am_cv_CXX_dependencies_compiler_type=none
11999fi
12000
12001fi
12002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12003$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12004CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12005
12006 if
12007 test "x$enable_dependency_tracking" != xno \
12008 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12009 am__fastdepCXX_TRUE=
12010 am__fastdepCXX_FALSE='#'
12011else
12012 am__fastdepCXX_TRUE='#'
12013 am__fastdepCXX_FALSE=
12014fi
12015
12016
12017
12018
12019func_stripname_cnf ()
12020{
12021 case ${2} in
12022 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12023 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12024 esac
12025} # func_stripname_cnf
12026
12027 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12028 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12029 (test "X$CXX" != "Xg++"))) ; then
12030 ac_ext=cpp
12031ac_cpp='$CXXCPP $CPPFLAGS'
12032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12036$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12037if test -z "$CXXCPP"; then
12038 if ${ac_cv_prog_CXXCPP+:} false; then :
12039 $as_echo_n "(cached) " >&6
12040else
12041 # Double quotes because CXXCPP needs to be expanded
12042 for CXXCPP in "$CXX -E" "/lib/cpp"
12043 do
12044 ac_preproc_ok=false
12045for ac_cxx_preproc_warn_flag in '' yes
12046do
12047 # Use a header file that comes with gcc, so configuring glibc
12048 # with a fresh cross-compiler works.
12049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12050 # <limits.h> exists even on freestanding compilers.
12051 # On the NeXT, cc -E runs the code through the compiler's parser,
12052 # not just through cpp. "Syntax error" is here to catch this case.
12053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12054/* end confdefs.h. */
12055#ifdef __STDC__
12056# include <limits.h>
12057#else
12058# include <assert.h>
12059#endif
12060 Syntax error
12061_ACEOF
12062if ac_fn_cxx_try_cpp "$LINENO"; then :
12063
12064else
12065 # Broken: fails on valid input.
12066continue
12067fi
12068rm -f conftest.err conftest.i conftest.$ac_ext
12069
12070 # OK, works on sane cases. Now check whether nonexistent headers
12071 # can be detected and how.
12072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073/* end confdefs.h. */
12074#include <ac_nonexistent.h>
12075_ACEOF
12076if ac_fn_cxx_try_cpp "$LINENO"; then :
12077 # Broken: success on invalid input.
12078continue
12079else
12080 # Passes both tests.
12081ac_preproc_ok=:
12082break
12083fi
12084rm -f conftest.err conftest.i conftest.$ac_ext
12085
12086done
12087# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12088rm -f conftest.i conftest.err conftest.$ac_ext
12089if $ac_preproc_ok; then :
12090 break
12091fi
12092
12093 done
12094 ac_cv_prog_CXXCPP=$CXXCPP
12095
12096fi
12097 CXXCPP=$ac_cv_prog_CXXCPP
12098else
12099 ac_cv_prog_CXXCPP=$CXXCPP
12100fi
12101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12102$as_echo "$CXXCPP" >&6; }
12103ac_preproc_ok=false
12104for ac_cxx_preproc_warn_flag in '' yes
12105do
12106 # Use a header file that comes with gcc, so configuring glibc
12107 # with a fresh cross-compiler works.
12108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12109 # <limits.h> exists even on freestanding compilers.
12110 # On the NeXT, cc -E runs the code through the compiler's parser,
12111 # not just through cpp. "Syntax error" is here to catch this case.
12112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12113/* end confdefs.h. */
12114#ifdef __STDC__
12115# include <limits.h>
12116#else
12117# include <assert.h>
12118#endif
12119 Syntax error
12120_ACEOF
12121if ac_fn_cxx_try_cpp "$LINENO"; then :
12122
12123else
12124 # Broken: fails on valid input.
12125continue
12126fi
12127rm -f conftest.err conftest.i conftest.$ac_ext
12128
12129 # OK, works on sane cases. Now check whether nonexistent headers
12130 # can be detected and how.
12131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12132/* end confdefs.h. */
12133#include <ac_nonexistent.h>
12134_ACEOF
12135if ac_fn_cxx_try_cpp "$LINENO"; then :
12136 # Broken: success on invalid input.
12137continue
12138else
12139 # Passes both tests.
12140ac_preproc_ok=:
12141break
12142fi
12143rm -f conftest.err conftest.i conftest.$ac_ext
12144
12145done
12146# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12147rm -f conftest.i conftest.err conftest.$ac_ext
12148if $ac_preproc_ok; then :
12149
12150else
12151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12152$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12153as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12154See \`config.log' for more details" "$LINENO" 5; }
12155fi
12156
12157ac_ext=c
12158ac_cpp='$CPP $CPPFLAGS'
12159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12161ac_compiler_gnu=$ac_cv_c_compiler_gnu
12162
12163else
12164 _lt_caught_CXX_error=yes
12165fi
12166
12167ac_ext=cpp
12168ac_cpp='$CXXCPP $CPPFLAGS'
12169ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12170ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12171ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12172
12173archive_cmds_need_lc_CXX=no
12174allow_undefined_flag_CXX=
12175always_export_symbols_CXX=no
12176archive_expsym_cmds_CXX=
12177compiler_needs_object_CXX=no
12178export_dynamic_flag_spec_CXX=
12179hardcode_direct_CXX=no
12180hardcode_direct_absolute_CXX=no
12181hardcode_libdir_flag_spec_CXX=
12182hardcode_libdir_separator_CXX=
12183hardcode_minus_L_CXX=no
12184hardcode_shlibpath_var_CXX=unsupported
12185hardcode_automatic_CXX=no
12186inherit_rpath_CXX=no
12187module_cmds_CXX=
12188module_expsym_cmds_CXX=
12189link_all_deplibs_CXX=unknown
12190old_archive_cmds_CXX=$old_archive_cmds
12191reload_flag_CXX=$reload_flag
12192reload_cmds_CXX=$reload_cmds
12193no_undefined_flag_CXX=
12194whole_archive_flag_spec_CXX=
12195enable_shared_with_static_runtimes_CXX=no
12196
12197# Source file extension for C++ test sources.
12198ac_ext=cpp
12199
12200# Object file extension for compiled C++ test sources.
12201objext=o
12202objext_CXX=$objext
12203
12204# No sense in running all these tests if we already determined that
12205# the CXX compiler isn't working. Some variables (like enable_shared)
12206# are currently assumed to apply to all compilers on this platform,
12207# and will be corrupted by setting them based on a non-working compiler.
12208if test "$_lt_caught_CXX_error" != yes; then
12209 # Code to be used in simple compile tests
12210 lt_simple_compile_test_code="int some_variable = 0;"
12211
12212 # Code to be used in simple link tests
12213 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12214
12215 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12216
12217
12218
12219
12220
12221
12222# If no C compiler was specified, use CC.
12223LTCC=${LTCC-"$CC"}
12224
12225# If no C compiler flags were specified, use CFLAGS.
12226LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12227
12228# Allow CC to be a program name with arguments.
12229compiler=$CC
12230
12231
12232 # save warnings/boilerplate of simple test code
12233 ac_outfile=conftest.$ac_objext
12234echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12235eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12236_lt_compiler_boilerplate=`cat conftest.err`
12237$RM conftest*
12238
12239 ac_outfile=conftest.$ac_objext
12240echo "$lt_simple_link_test_code" >conftest.$ac_ext
12241eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12242_lt_linker_boilerplate=`cat conftest.err`
12243$RM -r conftest*
12244
12245
12246 # Allow CC to be a program name with arguments.
12247 lt_save_CC=$CC
12248 lt_save_CFLAGS=$CFLAGS
12249 lt_save_LD=$LD
12250 lt_save_GCC=$GCC
12251 GCC=$GXX
12252 lt_save_with_gnu_ld=$with_gnu_ld
12253 lt_save_path_LD=$lt_cv_path_LD
12254 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12255 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12256 else
12257 $as_unset lt_cv_prog_gnu_ld
12258 fi
12259 if test -n "${lt_cv_path_LDCXX+set}"; then
12260 lt_cv_path_LD=$lt_cv_path_LDCXX
12261 else
12262 $as_unset lt_cv_path_LD
12263 fi
12264 test -z "${LDCXX+set}" || LD=$LDCXX
12265 CC=${CXX-"c++"}
12266 CFLAGS=$CXXFLAGS
12267 compiler=$CC
12268 compiler_CXX=$CC
12269 for cc_temp in $compiler""; do
12270 case $cc_temp in
12271 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12272 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12273 \-*) ;;
12274 *) break;;
12275 esac
12276done
12277cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12278
12279
12280 if test -n "$compiler"; then
12281 # We don't want -fno-exception when compiling C++ code, so set the
12282 # no_builtin_flag separately
12283 if test "$GXX" = yes; then
12284 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12285 else
12286 lt_prog_compiler_no_builtin_flag_CXX=
12287 fi
12288
12289 if test "$GXX" = yes; then
12290 # Set up default GNU C++ configuration
12291
12292
12293
12294# Check whether --with-gnu-ld was given.
12295if test "${with_gnu_ld+set}" = set; then :
12296 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12297else
12298 with_gnu_ld=no
12299fi
12300
12301ac_prog=ld
12302if test "$GCC" = yes; then
12303 # Check if gcc -print-prog-name=ld gives a path.
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12305$as_echo_n "checking for ld used by $CC... " >&6; }
12306 case $host in
12307 *-*-mingw*)
12308 # gcc leaves a trailing carriage return which upsets mingw
12309 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12310 *)
12311 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12312 esac
12313 case $ac_prog in
12314 # Accept absolute paths.
12315 [\\/]* | ?:[\\/]*)
12316 re_direlt='/[^/][^/]*/\.\./'
12317 # Canonicalize the pathname of ld
12318 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12319 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12320 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12321 done
12322 test -z "$LD" && LD="$ac_prog"
12323 ;;
12324 "")
12325 # If it fails, then pretend we aren't using GCC.
12326 ac_prog=ld
12327 ;;
12328 *)
12329 # If it is relative, then search for the first ld in PATH.
12330 with_gnu_ld=unknown
12331 ;;
12332 esac
12333elif test "$with_gnu_ld" = yes; then
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12335$as_echo_n "checking for GNU ld... " >&6; }
12336else
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12338$as_echo_n "checking for non-GNU ld... " >&6; }
12339fi
12340if ${lt_cv_path_LD+:} false; then :
12341 $as_echo_n "(cached) " >&6
12342else
12343 if test -z "$LD"; then
12344 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12345 for ac_dir in $PATH; do
12346 IFS="$lt_save_ifs"
12347 test -z "$ac_dir" && ac_dir=.
12348 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12349 lt_cv_path_LD="$ac_dir/$ac_prog"
12350 # Check to see if the program is GNU ld. I'd rather use --version,
12351 # but apparently some variants of GNU ld only accept -v.
12352 # Break only if it was the GNU/non-GNU ld that we prefer.
12353 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12354 *GNU* | *'with BFD'*)
12355 test "$with_gnu_ld" != no && break
12356 ;;
12357 *)
12358 test "$with_gnu_ld" != yes && break
12359 ;;
12360 esac
12361 fi
12362 done
12363 IFS="$lt_save_ifs"
12364else
12365 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12366fi
12367fi
12368
12369LD="$lt_cv_path_LD"
12370if test -n "$LD"; then
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12372$as_echo "$LD" >&6; }
12373else
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12375$as_echo "no" >&6; }
12376fi
12377test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12379$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12380if ${lt_cv_prog_gnu_ld+:} false; then :
12381 $as_echo_n "(cached) " >&6
12382else
12383 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12384case `$LD -v 2>&1 </dev/null` in
12385*GNU* | *'with BFD'*)
12386 lt_cv_prog_gnu_ld=yes
12387 ;;
12388*)
12389 lt_cv_prog_gnu_ld=no
12390 ;;
12391esac
12392fi
12393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12394$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12395with_gnu_ld=$lt_cv_prog_gnu_ld
12396
12397
12398
12399
12400
12401
12402
12403 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12404 # archiving commands below assume that GNU ld is being used.
12405 if test "$with_gnu_ld" = yes; then
12406 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12407 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'
12408
12409 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12410 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12411
12412 # If archive_cmds runs LD, not CC, wlarc should be empty
12413 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12414 # investigate it a little bit more. (MM)
12415 wlarc='${wl}'
12416
12417 # ancient GNU ld didn't support --whole-archive et. al.
12418 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12419 $GREP 'no-whole-archive' > /dev/null; then
12420 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12421 else
12422 whole_archive_flag_spec_CXX=
12423 fi
12424 else
12425 with_gnu_ld=no
12426 wlarc=
12427
12428 # A generic and very simple default shared library creation
12429 # command for GNU C++ for the case where it uses the native
12430 # linker, instead of GNU ld. If possible, this setting should
12431 # overridden to take advantage of the native linker features on
12432 # the platform it is being used on.
12433 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12434 fi
12435
12436 # Commands to make compiler produce verbose output that lists
12437 # what "hidden" libraries, object files and flags are used when
12438 # linking a shared library.
12439 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12440
12441 else
12442 GXX=no
12443 with_gnu_ld=no
12444 wlarc=
12445 fi
12446
12447 # PORTME: fill in a description of your system's C++ link characteristics
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12449$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12450 ld_shlibs_CXX=yes
12451 case $host_os in
12452 aix3*)
12453 # FIXME: insert proper C++ library support
12454 ld_shlibs_CXX=no
12455 ;;
12456 aix[4-9]*)
12457 if test "$host_cpu" = ia64; then
12458 # On IA64, the linker does run time linking by default, so we don't
12459 # have to do anything special.
12460 aix_use_runtimelinking=no
12461 exp_sym_flag='-Bexport'
12462 no_entry_flag=""
12463 else
12464 aix_use_runtimelinking=no
12465
12466 # Test if we are trying to use run time linking or normal
12467 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12468 # need to do runtime linking.
12469 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12470 for ld_flag in $LDFLAGS; do
12471 case $ld_flag in
12472 *-brtl*)
12473 aix_use_runtimelinking=yes
12474 break
12475 ;;
12476 esac
12477 done
12478 ;;
12479 esac
12480
12481 exp_sym_flag='-bexport'
12482 no_entry_flag='-bnoentry'
12483 fi
12484
12485 # When large executables or shared objects are built, AIX ld can
12486 # have problems creating the table of contents. If linking a library
12487 # or program results in "error TOC overflow" add -mminimal-toc to
12488 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12489 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12490
12491 archive_cmds_CXX=''
12492 hardcode_direct_CXX=yes
12493 hardcode_direct_absolute_CXX=yes
12494 hardcode_libdir_separator_CXX=':'
12495 link_all_deplibs_CXX=yes
12496 file_list_spec_CXX='${wl}-f,'
12497
12498 if test "$GXX" = yes; then
12499 case $host_os in aix4.[012]|aix4.[012].*)
12500 # We only want to do this on AIX 4.2 and lower, the check
12501 # below for broken collect2 doesn't work under 4.3+
12502 collect2name=`${CC} -print-prog-name=collect2`
12503 if test -f "$collect2name" &&
12504 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12505 then
12506 # We have reworked collect2
12507 :
12508 else
12509 # We have old collect2
12510 hardcode_direct_CXX=unsupported
12511 # It fails to find uninstalled libraries when the uninstalled
12512 # path is not listed in the libpath. Setting hardcode_minus_L
12513 # to unsupported forces relinking
12514 hardcode_minus_L_CXX=yes
12515 hardcode_libdir_flag_spec_CXX='-L$libdir'
12516 hardcode_libdir_separator_CXX=
12517 fi
12518 esac
12519 shared_flag='-shared'
12520 if test "$aix_use_runtimelinking" = yes; then
12521 shared_flag="$shared_flag "'${wl}-G'
12522 fi
12523 else
12524 # not using gcc
12525 if test "$host_cpu" = ia64; then
12526 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12527 # chokes on -Wl,-G. The following line is correct:
12528 shared_flag='-G'
12529 else
12530 if test "$aix_use_runtimelinking" = yes; then
12531 shared_flag='${wl}-G'
12532 else
12533 shared_flag='${wl}-bM:SRE'
12534 fi
12535 fi
12536 fi
12537
12538 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12539 # It seems that -bexpall does not export symbols beginning with
12540 # underscore (_), so it is better to generate a list of symbols to
12541 # export.
12542 always_export_symbols_CXX=yes
12543 if test "$aix_use_runtimelinking" = yes; then
12544 # Warning - without using the other runtime loading flags (-brtl),
12545 # -berok will link without error, but may produce a broken library.
12546 allow_undefined_flag_CXX='-berok'
12547 # Determine the default libpath from the value encoded in an empty
12548 # executable.
12549 if test "${lt_cv_aix_libpath+set}" = set; then
12550 aix_libpath=$lt_cv_aix_libpath
12551else
12552 if ${lt_cv_aix_libpath__CXX+:} false; then :
12553 $as_echo_n "(cached) " >&6
12554else
12555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12556/* end confdefs.h. */
12557
12558int
12559main ()
12560{
12561
12562 ;
12563 return 0;
12564}
12565_ACEOF
12566if ac_fn_cxx_try_link "$LINENO"; then :
12567
12568 lt_aix_libpath_sed='
12569 /Import File Strings/,/^$/ {
12570 /^0/ {
12571 s/^0 *\([^ ]*\) *$/\1/
12572 p
12573 }
12574 }'
12575 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12576 # Check for a 64-bit object if we didn't find anything.
12577 if test -z "$lt_cv_aix_libpath__CXX"; then
12578 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12579 fi
12580fi
12581rm -f core conftest.err conftest.$ac_objext \
12582 conftest$ac_exeext conftest.$ac_ext
12583 if test -z "$lt_cv_aix_libpath__CXX"; then
12584 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12585 fi
12586
12587fi
12588
12589 aix_libpath=$lt_cv_aix_libpath__CXX
12590fi
12591
12592 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12593
12594 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"
12595 else
12596 if test "$host_cpu" = ia64; then
12597 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12598 allow_undefined_flag_CXX="-z nodefs"
12599 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"
12600 else
12601 # Determine the default libpath from the value encoded in an
12602 # empty executable.
12603 if test "${lt_cv_aix_libpath+set}" = set; then
12604 aix_libpath=$lt_cv_aix_libpath
12605else
12606 if ${lt_cv_aix_libpath__CXX+:} false; then :
12607 $as_echo_n "(cached) " >&6
12608else
12609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12610/* end confdefs.h. */
12611
12612int
12613main ()
12614{
12615
12616 ;
12617 return 0;
12618}
12619_ACEOF
12620if ac_fn_cxx_try_link "$LINENO"; then :
12621
12622 lt_aix_libpath_sed='
12623 /Import File Strings/,/^$/ {
12624 /^0/ {
12625 s/^0 *\([^ ]*\) *$/\1/
12626 p
12627 }
12628 }'
12629 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12630 # Check for a 64-bit object if we didn't find anything.
12631 if test -z "$lt_cv_aix_libpath__CXX"; then
12632 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12633 fi
12634fi
12635rm -f core conftest.err conftest.$ac_objext \
12636 conftest$ac_exeext conftest.$ac_ext
12637 if test -z "$lt_cv_aix_libpath__CXX"; then
12638 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12639 fi
12640
12641fi
12642
12643 aix_libpath=$lt_cv_aix_libpath__CXX
12644fi
12645
12646 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12647 # Warning - without using the other run time loading flags,
12648 # -berok will link without error, but may produce a broken library.
12649 no_undefined_flag_CXX=' ${wl}-bernotok'
12650 allow_undefined_flag_CXX=' ${wl}-berok'
12651 if test "$with_gnu_ld" = yes; then
12652 # We only use this code for GNU lds that support --whole-archive.
12653 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12654 else
12655 # Exported symbols can be pulled into shared objects from archives
12656 whole_archive_flag_spec_CXX='$convenience'
12657 fi
12658 archive_cmds_need_lc_CXX=yes
12659 # This is similar to how AIX traditionally builds its shared
12660 # libraries.
12661 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'
12662 fi
12663 fi
12664 ;;
12665
12666 beos*)
12667 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12668 allow_undefined_flag_CXX=unsupported
12669 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12670 # support --undefined. This deserves some investigation. FIXME
12671 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12672 else
12673 ld_shlibs_CXX=no
12674 fi
12675 ;;
12676
12677 chorus*)
12678 case $cc_basename in
12679 *)
12680 # FIXME: insert proper C++ library support
12681 ld_shlibs_CXX=no
12682 ;;
12683 esac
12684 ;;
12685
12686 cygwin* | mingw* | pw32* | cegcc*)
12687 case $GXX,$cc_basename in
12688 ,cl* | no,cl*)
12689 # Native MSVC
12690 # hardcode_libdir_flag_spec is actually meaningless, as there is
12691 # no search path for DLLs.
12692 hardcode_libdir_flag_spec_CXX=' '
12693 allow_undefined_flag_CXX=unsupported
12694 always_export_symbols_CXX=yes
12695 file_list_spec_CXX='@'
12696 # Tell ltmain to make .lib files, not .a files.
12697 libext=lib
12698 # Tell ltmain to make .dll files, not .so files.
12699 shrext_cmds=".dll"
12700 # FIXME: Setting linknames here is a bad hack.
12701 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12702 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12703 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12704 else
12705 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12706 fi~
12707 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12708 linknames='
12709 # The linker will not automatically build a static lib if we build a DLL.
12710 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12711 enable_shared_with_static_runtimes_CXX=yes
12712 # Don't use ranlib
12713 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12714 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12715 lt_tool_outputfile="@TOOL_OUTPUT@"~
12716 case $lt_outputfile in
12717 *.exe|*.EXE) ;;
12718 *)
12719 lt_outputfile="$lt_outputfile.exe"
12720 lt_tool_outputfile="$lt_tool_outputfile.exe"
12721 ;;
12722 esac~
12723 func_to_tool_file "$lt_outputfile"~
12724 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12725 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12726 $RM "$lt_outputfile.manifest";
12727 fi'
12728 ;;
12729 *)
12730 # g++
12731 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12732 # as there is no search path for DLLs.
12733 hardcode_libdir_flag_spec_CXX='-L$libdir'
12734 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12735 allow_undefined_flag_CXX=unsupported
12736 always_export_symbols_CXX=no
12737 enable_shared_with_static_runtimes_CXX=yes
12738
12739 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12740 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'
12741 # If the export-symbols file already is a .def file (1st line
12742 # is EXPORTS), use it as is; otherwise, prepend...
12743 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12744 cp $export_symbols $output_objdir/$soname.def;
12745 else
12746 echo EXPORTS > $output_objdir/$soname.def;
12747 cat $export_symbols >> $output_objdir/$soname.def;
12748 fi~
12749 $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'
12750 else
12751 ld_shlibs_CXX=no
12752 fi
12753 ;;
12754 esac
12755 ;;
12756 darwin* | rhapsody*)
12757
12758
12759 archive_cmds_need_lc_CXX=no
12760 hardcode_direct_CXX=no
12761 hardcode_automatic_CXX=yes
12762 hardcode_shlibpath_var_CXX=unsupported
12763 if test "$lt_cv_ld_force_load" = "yes"; then
12764 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\"`'
12765
12766 else
12767 whole_archive_flag_spec_CXX=''
12768 fi
12769 link_all_deplibs_CXX=yes
12770 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12771 case $cc_basename in
12772 ifort*) _lt_dar_can_shared=yes ;;
12773 *) _lt_dar_can_shared=$GCC ;;
12774 esac
12775 if test "$_lt_dar_can_shared" = "yes"; then
12776 output_verbose_link_cmd=func_echo_all
12777 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}"
12778 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12779 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}"
12780 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}"
12781 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12782 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}"
12783 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}"
12784 fi
12785
12786 else
12787 ld_shlibs_CXX=no
12788 fi
12789
12790 ;;
12791
12792 dgux*)
12793 case $cc_basename in
12794 ec++*)
12795 # FIXME: insert proper C++ library support
12796 ld_shlibs_CXX=no
12797 ;;
12798 ghcx*)
12799 # Green Hills C++ Compiler
12800 # FIXME: insert proper C++ library support
12801 ld_shlibs_CXX=no
12802 ;;
12803 *)
12804 # FIXME: insert proper C++ library support
12805 ld_shlibs_CXX=no
12806 ;;
12807 esac
12808 ;;
12809
12810 freebsd2.*)
12811 # C++ shared libraries reported to be fairly broken before
12812 # switch to ELF
12813 ld_shlibs_CXX=no
12814 ;;
12815
12816 freebsd-elf*)
12817 archive_cmds_need_lc_CXX=no
12818 ;;
12819
12820 freebsd* | dragonfly*)
12821 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12822 # conventions
12823 ld_shlibs_CXX=yes
12824 ;;
12825
12826 gnu*)
12827 ;;
12828
12829 haiku*)
12830 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12831 link_all_deplibs_CXX=yes
12832 ;;
12833
12834 hpux9*)
12835 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12836 hardcode_libdir_separator_CXX=:
12837 export_dynamic_flag_spec_CXX='${wl}-E'
12838 hardcode_direct_CXX=yes
12839 hardcode_minus_L_CXX=yes # Not in the search PATH,
12840 # but as the default
12841 # location of the library.
12842
12843 case $cc_basename in
12844 CC*)
12845 # FIXME: insert proper C++ library support
12846 ld_shlibs_CXX=no
12847 ;;
12848 aCC*)
12849 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'
12850 # Commands to make compiler produce verbose output that lists
12851 # what "hidden" libraries, object files and flags are used when
12852 # linking a shared library.
12853 #
12854 # There doesn't appear to be a way to prevent this compiler from
12855 # explicitly linking system object files so we need to strip them
12856 # from the output so that they don't get included in the library
12857 # dependencies.
12858 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"'
12859 ;;
12860 *)
12861 if test "$GXX" = yes; then
12862 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'
12863 else
12864 # FIXME: insert proper C++ library support
12865 ld_shlibs_CXX=no
12866 fi
12867 ;;
12868 esac
12869 ;;
12870
12871 hpux10*|hpux11*)
12872 if test $with_gnu_ld = no; then
12873 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12874 hardcode_libdir_separator_CXX=:
12875
12876 case $host_cpu in
12877 hppa*64*|ia64*)
12878 ;;
12879 *)
12880 export_dynamic_flag_spec_CXX='${wl}-E'
12881 ;;
12882 esac
12883 fi
12884 case $host_cpu in
12885 hppa*64*|ia64*)
12886 hardcode_direct_CXX=no
12887 hardcode_shlibpath_var_CXX=no
12888 ;;
12889 *)
12890 hardcode_direct_CXX=yes
12891 hardcode_direct_absolute_CXX=yes
12892 hardcode_minus_L_CXX=yes # Not in the search PATH,
12893 # but as the default
12894 # location of the library.
12895 ;;
12896 esac
12897
12898 case $cc_basename in
12899 CC*)
12900 # FIXME: insert proper C++ library support
12901 ld_shlibs_CXX=no
12902 ;;
12903 aCC*)
12904 case $host_cpu in
12905 hppa*64*)
12906 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12907 ;;
12908 ia64*)
12909 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12910 ;;
12911 *)
12912 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12913 ;;
12914 esac
12915 # Commands to make compiler produce verbose output that lists
12916 # what "hidden" libraries, object files and flags are used when
12917 # linking a shared library.
12918 #
12919 # There doesn't appear to be a way to prevent this compiler from
12920 # explicitly linking system object files so we need to strip them
12921 # from the output so that they don't get included in the library
12922 # dependencies.
12923 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"'
12924 ;;
12925 *)
12926 if test "$GXX" = yes; then
12927 if test $with_gnu_ld = no; then
12928 case $host_cpu in
12929 hppa*64*)
12930 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12931 ;;
12932 ia64*)
12933 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12934 ;;
12935 *)
12936 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'
12937 ;;
12938 esac
12939 fi
12940 else
12941 # FIXME: insert proper C++ library support
12942 ld_shlibs_CXX=no
12943 fi
12944 ;;
12945 esac
12946 ;;
12947
12948 interix[3-9]*)
12949 hardcode_direct_CXX=no
12950 hardcode_shlibpath_var_CXX=no
12951 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12952 export_dynamic_flag_spec_CXX='${wl}-E'
12953 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12954 # Instead, shared libraries are loaded at an image base (0x10000000 by
12955 # default) and relocated if they conflict, which is a slow very memory
12956 # consuming and fragmenting process. To avoid this, we pick a random,
12957 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12958 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12959 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'
12960 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'
12961 ;;
12962 irix5* | irix6*)
12963 case $cc_basename in
12964 CC*)
12965 # SGI C++
12966 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'
12967
12968 # Archives containing C++ object files must be created using
12969 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12970 # necessary to make sure instantiated templates are included
12971 # in the archive.
12972 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12973 ;;
12974 *)
12975 if test "$GXX" = yes; then
12976 if test "$with_gnu_ld" = no; then
12977 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'
12978 else
12979 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'
12980 fi
12981 fi
12982 link_all_deplibs_CXX=yes
12983 ;;
12984 esac
12985 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12986 hardcode_libdir_separator_CXX=:
12987 inherit_rpath_CXX=yes
12988 ;;
12989
12990 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12991 case $cc_basename in
12992 KCC*)
12993 # Kuck and Associates, Inc. (KAI) C++ Compiler
12994
12995 # KCC will only create a shared library if the output file
12996 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12997 # to its proper name (with version) after linking.
12998 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'
12999 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'
13000 # Commands to make compiler produce verbose output that lists
13001 # what "hidden" libraries, object files and flags are used when
13002 # linking a shared library.
13003 #
13004 # There doesn't appear to be a way to prevent this compiler from
13005 # explicitly linking system object files so we need to strip them
13006 # from the output so that they don't get included in the library
13007 # dependencies.
13008 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"'
13009
13010 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13011 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13012
13013 # Archives containing C++ object files must be created using
13014 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13015 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13016 ;;
13017 icpc* | ecpc* )
13018 # Intel C++
13019 with_gnu_ld=yes
13020 # version 8.0 and above of icpc choke on multiply defined symbols
13021 # if we add $predep_objects and $postdep_objects, however 7.1 and
13022 # earlier do not add the objects themselves.
13023 case `$CC -V 2>&1` in
13024 *"Version 7."*)
13025 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13026 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'
13027 ;;
13028 *) # Version 8.0 or newer
13029 tmp_idyn=
13030 case $host_cpu in
13031 ia64*) tmp_idyn=' -i_dynamic';;
13032 esac
13033 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13034 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'
13035 ;;
13036 esac
13037 archive_cmds_need_lc_CXX=no
13038 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13039 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13040 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13041 ;;
13042 pgCC* | pgcpp*)
13043 # Portland Group C++ compiler
13044 case `$CC -V` in
13045 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13046 prelink_cmds_CXX='tpldir=Template.dir~
13047 rm -rf $tpldir~
13048 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13049 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13050 old_archive_cmds_CXX='tpldir=Template.dir~
13051 rm -rf $tpldir~
13052 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13053 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13054 $RANLIB $oldlib'
13055 archive_cmds_CXX='tpldir=Template.dir~
13056 rm -rf $tpldir~
13057 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13058 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13059 archive_expsym_cmds_CXX='tpldir=Template.dir~
13060 rm -rf $tpldir~
13061 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13062 $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'
13063 ;;
13064 *) # Version 6 and above use weak symbols
13065 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13066 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'
13067 ;;
13068 esac
13069
13070 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13071 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13072 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'
13073 ;;
13074 cxx*)
13075 # Compaq C++
13076 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13077 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'
13078
13079 runpath_var=LD_RUN_PATH
13080 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13081 hardcode_libdir_separator_CXX=:
13082
13083 # Commands to make compiler produce verbose output that lists
13084 # what "hidden" libraries, object files and flags are used when
13085 # linking a shared library.
13086 #
13087 # There doesn't appear to be a way to prevent this compiler from
13088 # explicitly linking system object files so we need to strip them
13089 # from the output so that they don't get included in the library
13090 # dependencies.
13091 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'
13092 ;;
13093 xl* | mpixl* | bgxl*)
13094 # IBM XL 8.0 on PPC, with GNU ld
13095 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13096 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13097 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13098 if test "x$supports_anon_versioning" = xyes; then
13099 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13100 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13101 echo "local: *; };" >> $output_objdir/$libname.ver~
13102 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13103 fi
13104 ;;
13105 *)
13106 case `$CC -V 2>&1 | sed 5q` in
13107 *Sun\ C*)
13108 # Sun C++ 5.9
13109 no_undefined_flag_CXX=' -zdefs'
13110 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13111 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'
13112 hardcode_libdir_flag_spec_CXX='-R$libdir'
13113 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'
13114 compiler_needs_object_CXX=yes
13115
13116 # Not sure whether something based on
13117 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13118 # would be better.
13119 output_verbose_link_cmd='func_echo_all'
13120
13121 # Archives containing C++ object files must be created using
13122 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13123 # necessary to make sure instantiated templates are included
13124 # in the archive.
13125 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13126 ;;
13127 esac
13128 ;;
13129 esac
13130 ;;
13131
13132 lynxos*)
13133 # FIXME: insert proper C++ library support
13134 ld_shlibs_CXX=no
13135 ;;
13136
13137 m88k*)
13138 # FIXME: insert proper C++ library support
13139 ld_shlibs_CXX=no
13140 ;;
13141
13142 mvs*)
13143 case $cc_basename in
13144 cxx*)
13145 # FIXME: insert proper C++ library support
13146 ld_shlibs_CXX=no
13147 ;;
13148 *)
13149 # FIXME: insert proper C++ library support
13150 ld_shlibs_CXX=no
13151 ;;
13152 esac
13153 ;;
13154
13155 netbsd*)
13156 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13157 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13158 wlarc=
13159 hardcode_libdir_flag_spec_CXX='-R$libdir'
13160 hardcode_direct_CXX=yes
13161 hardcode_shlibpath_var_CXX=no
13162 fi
13163 # Workaround some broken pre-1.5 toolchains
13164 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13165 ;;
13166
13167 *nto* | *qnx*)
13168 ld_shlibs_CXX=yes
13169 ;;
13170
13171 openbsd2*)
13172 # C++ shared libraries are fairly broken
13173 ld_shlibs_CXX=no
13174 ;;
13175
13176 openbsd*)
13177 if test -f /usr/libexec/ld.so; then
13178 hardcode_direct_CXX=yes
13179 hardcode_shlibpath_var_CXX=no
13180 hardcode_direct_absolute_CXX=yes
13181 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13182 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13183 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13184 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13185 export_dynamic_flag_spec_CXX='${wl}-E'
13186 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13187 fi
13188 output_verbose_link_cmd=func_echo_all
13189 else
13190 ld_shlibs_CXX=no
13191 fi
13192 ;;
13193
13194 osf3* | osf4* | osf5*)
13195 case $cc_basename in
13196 KCC*)
13197 # Kuck and Associates, Inc. (KAI) C++ Compiler
13198
13199 # KCC will only create a shared library if the output file
13200 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13201 # to its proper name (with version) after linking.
13202 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'
13203
13204 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13205 hardcode_libdir_separator_CXX=:
13206
13207 # Archives containing C++ object files must be created using
13208 # the KAI C++ compiler.
13209 case $host in
13210 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13211 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13212 esac
13213 ;;
13214 RCC*)
13215 # Rational C++ 2.4.1
13216 # FIXME: insert proper C++ library support
13217 ld_shlibs_CXX=no
13218 ;;
13219 cxx*)
13220 case $host in
13221 osf3*)
13222 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13223 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'
13224 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13225 ;;
13226 *)
13227 allow_undefined_flag_CXX=' -expect_unresolved \*'
13228 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'
13229 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13230 echo "-hidden">> $lib.exp~
13231 $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~
13232 $RM $lib.exp'
13233 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13234 ;;
13235 esac
13236
13237 hardcode_libdir_separator_CXX=:
13238
13239 # Commands to make compiler produce verbose output that lists
13240 # what "hidden" libraries, object files and flags are used when
13241 # linking a shared library.
13242 #
13243 # There doesn't appear to be a way to prevent this compiler from
13244 # explicitly linking system object files so we need to strip them
13245 # from the output so that they don't get included in the library
13246 # dependencies.
13247 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"'
13248 ;;
13249 *)
13250 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13251 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13252 case $host in
13253 osf3*)
13254 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'
13255 ;;
13256 *)
13257 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'
13258 ;;
13259 esac
13260
13261 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13262 hardcode_libdir_separator_CXX=:
13263
13264 # Commands to make compiler produce verbose output that lists
13265 # what "hidden" libraries, object files and flags are used when
13266 # linking a shared library.
13267 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13268
13269 else
13270 # FIXME: insert proper C++ library support
13271 ld_shlibs_CXX=no
13272 fi
13273 ;;
13274 esac
13275 ;;
13276
13277 psos*)
13278 # FIXME: insert proper C++ library support
13279 ld_shlibs_CXX=no
13280 ;;
13281
13282 sunos4*)
13283 case $cc_basename in
13284 CC*)
13285 # Sun C++ 4.x
13286 # FIXME: insert proper C++ library support
13287 ld_shlibs_CXX=no
13288 ;;
13289 lcc*)
13290 # Lucid
13291 # FIXME: insert proper C++ library support
13292 ld_shlibs_CXX=no
13293 ;;
13294 *)
13295 # FIXME: insert proper C++ library support
13296 ld_shlibs_CXX=no
13297 ;;
13298 esac
13299 ;;
13300
13301 solaris*)
13302 case $cc_basename in
13303 CC* | sunCC*)
13304 # Sun C++ 4.2, 5.x and Centerline C++
13305 archive_cmds_need_lc_CXX=yes
13306 no_undefined_flag_CXX=' -zdefs'
13307 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13308 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13309 $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'
13310
13311 hardcode_libdir_flag_spec_CXX='-R$libdir'
13312 hardcode_shlibpath_var_CXX=no
13313 case $host_os in
13314 solaris2.[0-5] | solaris2.[0-5].*) ;;
13315 *)
13316 # The compiler driver will combine and reorder linker options,
13317 # but understands `-z linker_flag'.
13318 # Supported since Solaris 2.6 (maybe 2.5.1?)
13319 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13320 ;;
13321 esac
13322 link_all_deplibs_CXX=yes
13323
13324 output_verbose_link_cmd='func_echo_all'
13325
13326 # Archives containing C++ object files must be created using
13327 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13328 # necessary to make sure instantiated templates are included
13329 # in the archive.
13330 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13331 ;;
13332 gcx*)
13333 # Green Hills C++ Compiler
13334 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13335
13336 # The C++ compiler must be used to create the archive.
13337 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13338 ;;
13339 *)
13340 # GNU C++ compiler with Solaris linker
13341 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13342 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13343 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13344 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13345 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13346 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13347
13348 # Commands to make compiler produce verbose output that lists
13349 # what "hidden" libraries, object files and flags are used when
13350 # linking a shared library.
13351 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13352 else
13353 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13354 # platform.
13355 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13356 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13357 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13358
13359 # Commands to make compiler produce verbose output that lists
13360 # what "hidden" libraries, object files and flags are used when
13361 # linking a shared library.
13362 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13363 fi
13364
13365 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13366 case $host_os in
13367 solaris2.[0-5] | solaris2.[0-5].*) ;;
13368 *)
13369 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13370 ;;
13371 esac
13372 fi
13373 ;;
13374 esac
13375 ;;
13376
13377 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13378 no_undefined_flag_CXX='${wl}-z,text'
13379 archive_cmds_need_lc_CXX=no
13380 hardcode_shlibpath_var_CXX=no
13381 runpath_var='LD_RUN_PATH'
13382
13383 case $cc_basename in
13384 CC*)
13385 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13386 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13387 ;;
13388 *)
13389 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13390 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13391 ;;
13392 esac
13393 ;;
13394
13395 sysv5* | sco3.2v5* | sco5v6*)
13396 # Note: We can NOT use -z defs as we might desire, because we do not
13397 # link with -lc, and that would cause any symbols used from libc to
13398 # always be unresolved, which means just about no library would
13399 # ever link correctly. If we're not using GNU ld we use -z text
13400 # though, which does catch some bad symbols but isn't as heavy-handed
13401 # as -z defs.
13402 no_undefined_flag_CXX='${wl}-z,text'
13403 allow_undefined_flag_CXX='${wl}-z,nodefs'
13404 archive_cmds_need_lc_CXX=no
13405 hardcode_shlibpath_var_CXX=no
13406 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13407 hardcode_libdir_separator_CXX=':'
13408 link_all_deplibs_CXX=yes
13409 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13410 runpath_var='LD_RUN_PATH'
13411
13412 case $cc_basename in
13413 CC*)
13414 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13415 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13416 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13417 '"$old_archive_cmds_CXX"
13418 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13419 '"$reload_cmds_CXX"
13420 ;;
13421 *)
13422 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13423 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13424 ;;
13425 esac
13426 ;;
13427
13428 tandem*)
13429 case $cc_basename in
13430 NCC*)
13431 # NonStop-UX NCC 3.20
13432 # FIXME: insert proper C++ library support
13433 ld_shlibs_CXX=no
13434 ;;
13435 *)
13436 # FIXME: insert proper C++ library support
13437 ld_shlibs_CXX=no
13438 ;;
13439 esac
13440 ;;
13441
13442 vxworks*)
13443 # FIXME: insert proper C++ library support
13444 ld_shlibs_CXX=no
13445 ;;
13446
13447 *)
13448 # FIXME: insert proper C++ library support
13449 ld_shlibs_CXX=no
13450 ;;
13451 esac
13452
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13454$as_echo "$ld_shlibs_CXX" >&6; }
13455 test "$ld_shlibs_CXX" = no && can_build_shared=no
13456
13457 GCC_CXX="$GXX"
13458 LD_CXX="$LD"
13459
13460 ## CAVEAT EMPTOR:
13461 ## There is no encapsulation within the following macros, do not change
13462 ## the running order or otherwise move them around unless you know exactly
13463 ## what you are doing...
13464 # Dependencies to place before and after the object being linked:
13465predep_objects_CXX=
13466postdep_objects_CXX=
13467predeps_CXX=
13468postdeps_CXX=
13469compiler_lib_search_path_CXX=
13470
13471cat > conftest.$ac_ext <<_LT_EOF
13472class Foo
13473{
13474public:
13475 Foo (void) { a = 0; }
13476private:
13477 int a;
13478};
13479_LT_EOF
13480
13481
13482_lt_libdeps_save_CFLAGS=$CFLAGS
13483case "$CC $CFLAGS " in #(
13484*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13485*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13486*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13487esac
13488
13489if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13490 (eval $ac_compile) 2>&5
13491 ac_status=$?
13492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13493 test $ac_status = 0; }; then
13494 # Parse the compiler output and extract the necessary
13495 # objects, libraries and library flags.
13496
13497 # Sentinel used to keep track of whether or not we are before
13498 # the conftest object file.
13499 pre_test_object_deps_done=no
13500
13501 for p in `eval "$output_verbose_link_cmd"`; do
13502 case ${prev}${p} in
13503
13504 -L* | -R* | -l*)
13505 # Some compilers place space between "-{L,R}" and the path.
13506 # Remove the space.
13507 if test $p = "-L" ||
13508 test $p = "-R"; then
13509 prev=$p
13510 continue
13511 fi
13512
13513 # Expand the sysroot to ease extracting the directories later.
13514 if test -z "$prev"; then
13515 case $p in
13516 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13517 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13518 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13519 esac
13520 fi
13521 case $p in
13522 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13523 esac
13524 if test "$pre_test_object_deps_done" = no; then
13525 case ${prev} in
13526 -L | -R)
13527 # Internal compiler library paths should come after those
13528 # provided the user. The postdeps already come after the
13529 # user supplied libs so there is no need to process them.
13530 if test -z "$compiler_lib_search_path_CXX"; then
13531 compiler_lib_search_path_CXX="${prev}${p}"
13532 else
13533 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13534 fi
13535 ;;
13536 # The "-l" case would never come before the object being
13537 # linked, so don't bother handling this case.
13538 esac
13539 else
13540 if test -z "$postdeps_CXX"; then
13541 postdeps_CXX="${prev}${p}"
13542 else
13543 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13544 fi
13545 fi
13546 prev=
13547 ;;
13548
13549 *.lto.$objext) ;; # Ignore GCC LTO objects
13550 *.$objext)
13551 # This assumes that the test object file only shows up
13552 # once in the compiler output.
13553 if test "$p" = "conftest.$objext"; then
13554 pre_test_object_deps_done=yes
13555 continue
13556 fi
13557
13558 if test "$pre_test_object_deps_done" = no; then
13559 if test -z "$predep_objects_CXX"; then
13560 predep_objects_CXX="$p"
13561 else
13562 predep_objects_CXX="$predep_objects_CXX $p"
13563 fi
13564 else
13565 if test -z "$postdep_objects_CXX"; then
13566 postdep_objects_CXX="$p"
13567 else
13568 postdep_objects_CXX="$postdep_objects_CXX $p"
13569 fi
13570 fi
13571 ;;
13572
13573 *) ;; # Ignore the rest.
13574
13575 esac
13576 done
13577
13578 # Clean up.
13579 rm -f a.out a.exe
13580else
13581 echo "libtool.m4: error: problem compiling CXX test program"
13582fi
13583
13584$RM -f confest.$objext
13585CFLAGS=$_lt_libdeps_save_CFLAGS
13586
13587# PORTME: override above test on systems where it is broken
13588case $host_os in
13589interix[3-9]*)
13590 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13591 # hack all around it, let's just trust "g++" to DTRT.
13592 predep_objects_CXX=
13593 postdep_objects_CXX=
13594 postdeps_CXX=
13595 ;;
13596
13597linux*)
13598 case `$CC -V 2>&1 | sed 5q` in
13599 *Sun\ C*)
13600 # Sun C++ 5.9
13601
13602 # The more standards-conforming stlport4 library is
13603 # incompatible with the Cstd library. Avoid specifying
13604 # it if it's in CXXFLAGS. Ignore libCrun as
13605 # -library=stlport4 depends on it.
13606 case " $CXX $CXXFLAGS " in
13607 *" -library=stlport4 "*)
13608 solaris_use_stlport4=yes
13609 ;;
13610 esac
13611
13612 if test "$solaris_use_stlport4" != yes; then
13613 postdeps_CXX='-library=Cstd -library=Crun'
13614 fi
13615 ;;
13616 esac
13617 ;;
13618
13619solaris*)
13620 case $cc_basename in
13621 CC* | sunCC*)
13622 # The more standards-conforming stlport4 library is
13623 # incompatible with the Cstd library. Avoid specifying
13624 # it if it's in CXXFLAGS. Ignore libCrun as
13625 # -library=stlport4 depends on it.
13626 case " $CXX $CXXFLAGS " in
13627 *" -library=stlport4 "*)
13628 solaris_use_stlport4=yes
13629 ;;
13630 esac
13631
13632 # Adding this requires a known-good setup of shared libraries for
13633 # Sun compiler versions before 5.6, else PIC objects from an old
13634 # archive will be linked into the output, leading to subtle bugs.
13635 if test "$solaris_use_stlport4" != yes; then
13636 postdeps_CXX='-library=Cstd -library=Crun'
13637 fi
13638 ;;
13639 esac
13640 ;;
13641esac
13642
13643
13644case " $postdeps_CXX " in
13645*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13646esac
13647 compiler_lib_search_dirs_CXX=
13648if test -n "${compiler_lib_search_path_CXX}"; then
13649 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13650fi
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682 lt_prog_compiler_wl_CXX=
13683lt_prog_compiler_pic_CXX=
13684lt_prog_compiler_static_CXX=
13685
13686
13687 # C++ specific cases for pic, static, wl, etc.
13688 if test "$GXX" = yes; then
13689 lt_prog_compiler_wl_CXX='-Wl,'
13690 lt_prog_compiler_static_CXX='-static'
13691
13692 case $host_os in
13693 aix*)
13694 # All AIX code is PIC.
13695 if test "$host_cpu" = ia64; then
13696 # AIX 5 now supports IA64 processor
13697 lt_prog_compiler_static_CXX='-Bstatic'
13698 fi
13699 ;;
13700
13701 amigaos*)
13702 case $host_cpu in
13703 powerpc)
13704 # see comment about AmigaOS4 .so support
13705 lt_prog_compiler_pic_CXX='-fPIC'
13706 ;;
13707 m68k)
13708 # FIXME: we need at least 68020 code to build shared libraries, but
13709 # adding the `-m68020' flag to GCC prevents building anything better,
13710 # like `-m68040'.
13711 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13712 ;;
13713 esac
13714 ;;
13715
13716 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13717 # PIC is the default for these OSes.
13718 ;;
13719 mingw* | cygwin* | os2* | pw32* | cegcc*)
13720 # This hack is so that the source file can tell whether it is being
13721 # built for inclusion in a dll (and should export symbols for example).
13722 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13723 # (--disable-auto-import) libraries
13724 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13725 ;;
13726 darwin* | rhapsody*)
13727 # PIC is the default on this platform
13728 # Common symbols not allowed in MH_DYLIB files
13729 lt_prog_compiler_pic_CXX='-fno-common'
13730 ;;
13731 *djgpp*)
13732 # DJGPP does not support shared libraries at all
13733 lt_prog_compiler_pic_CXX=
13734 ;;
13735 haiku*)
13736 # PIC is the default for Haiku.
13737 # The "-static" flag exists, but is broken.
13738 lt_prog_compiler_static_CXX=
13739 ;;
13740 interix[3-9]*)
13741 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13742 # Instead, we relocate shared libraries at runtime.
13743 ;;
13744 sysv4*MP*)
13745 if test -d /usr/nec; then
13746 lt_prog_compiler_pic_CXX=-Kconform_pic
13747 fi
13748 ;;
13749 hpux*)
13750 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13751 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13752 # sets the default TLS model and affects inlining.
13753 case $host_cpu in
13754 hppa*64*)
13755 ;;
13756 *)
13757 lt_prog_compiler_pic_CXX='-fPIC'
13758 ;;
13759 esac
13760 ;;
13761 *qnx* | *nto*)
13762 # QNX uses GNU C++, but need to define -shared option too, otherwise
13763 # it will coredump.
13764 lt_prog_compiler_pic_CXX='-fPIC -shared'
13765 ;;
13766 *)
13767 lt_prog_compiler_pic_CXX='-fPIC'
13768 ;;
13769 esac
13770 else
13771 case $host_os in
13772 aix[4-9]*)
13773 # All AIX code is PIC.
13774 if test "$host_cpu" = ia64; then
13775 # AIX 5 now supports IA64 processor
13776 lt_prog_compiler_static_CXX='-Bstatic'
13777 else
13778 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13779 fi
13780 ;;
13781 chorus*)
13782 case $cc_basename in
13783 cxch68*)
13784 # Green Hills C++ Compiler
13785 # _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"
13786 ;;
13787 esac
13788 ;;
13789 mingw* | cygwin* | os2* | pw32* | cegcc*)
13790 # This hack is so that the source file can tell whether it is being
13791 # built for inclusion in a dll (and should export symbols for example).
13792 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13793 ;;
13794 dgux*)
13795 case $cc_basename in
13796 ec++*)
13797 lt_prog_compiler_pic_CXX='-KPIC'
13798 ;;
13799 ghcx*)
13800 # Green Hills C++ Compiler
13801 lt_prog_compiler_pic_CXX='-pic'
13802 ;;
13803 *)
13804 ;;
13805 esac
13806 ;;
13807 freebsd* | dragonfly*)
13808 # FreeBSD uses GNU C++
13809 ;;
13810 hpux9* | hpux10* | hpux11*)
13811 case $cc_basename in
13812 CC*)
13813 lt_prog_compiler_wl_CXX='-Wl,'
13814 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13815 if test "$host_cpu" != ia64; then
13816 lt_prog_compiler_pic_CXX='+Z'
13817 fi
13818 ;;
13819 aCC*)
13820 lt_prog_compiler_wl_CXX='-Wl,'
13821 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13822 case $host_cpu in
13823 hppa*64*|ia64*)
13824 # +Z the default
13825 ;;
13826 *)
13827 lt_prog_compiler_pic_CXX='+Z'
13828 ;;
13829 esac
13830 ;;
13831 *)
13832 ;;
13833 esac
13834 ;;
13835 interix*)
13836 # This is c89, which is MS Visual C++ (no shared libs)
13837 # Anyone wants to do a port?
13838 ;;
13839 irix5* | irix6* | nonstopux*)
13840 case $cc_basename in
13841 CC*)
13842 lt_prog_compiler_wl_CXX='-Wl,'
13843 lt_prog_compiler_static_CXX='-non_shared'
13844 # CC pic flag -KPIC is the default.
13845 ;;
13846 *)
13847 ;;
13848 esac
13849 ;;
13850 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13851 case $cc_basename in
13852 KCC*)
13853 # KAI C++ Compiler
13854 lt_prog_compiler_wl_CXX='--backend -Wl,'
13855 lt_prog_compiler_pic_CXX='-fPIC'
13856 ;;
13857 ecpc* )
13858 # old Intel C++ for x86_64 which still supported -KPIC.
13859 lt_prog_compiler_wl_CXX='-Wl,'
13860 lt_prog_compiler_pic_CXX='-KPIC'
13861 lt_prog_compiler_static_CXX='-static'
13862 ;;
13863 icpc* )
13864 # Intel C++, used to be incompatible with GCC.
13865 # ICC 10 doesn't accept -KPIC any more.
13866 lt_prog_compiler_wl_CXX='-Wl,'
13867 lt_prog_compiler_pic_CXX='-fPIC'
13868 lt_prog_compiler_static_CXX='-static'
13869 ;;
13870 pgCC* | pgcpp*)
13871 # Portland Group C++ compiler
13872 lt_prog_compiler_wl_CXX='-Wl,'
13873 lt_prog_compiler_pic_CXX='-fpic'
13874 lt_prog_compiler_static_CXX='-Bstatic'
13875 ;;
13876 cxx*)
13877 # Compaq C++
13878 # Make sure the PIC flag is empty. It appears that all Alpha
13879 # Linux and Compaq Tru64 Unix objects are PIC.
13880 lt_prog_compiler_pic_CXX=
13881 lt_prog_compiler_static_CXX='-non_shared'
13882 ;;
13883 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13884 # IBM XL 8.0, 9.0 on PPC and BlueGene
13885 lt_prog_compiler_wl_CXX='-Wl,'
13886 lt_prog_compiler_pic_CXX='-qpic'
13887 lt_prog_compiler_static_CXX='-qstaticlink'
13888 ;;
13889 *)
13890 case `$CC -V 2>&1 | sed 5q` in
13891 *Sun\ C*)
13892 # Sun C++ 5.9
13893 lt_prog_compiler_pic_CXX='-KPIC'
13894 lt_prog_compiler_static_CXX='-Bstatic'
13895 lt_prog_compiler_wl_CXX='-Qoption ld '
13896 ;;
13897 esac
13898 ;;
13899 esac
13900 ;;
13901 lynxos*)
13902 ;;
13903 m88k*)
13904 ;;
13905 mvs*)
13906 case $cc_basename in
13907 cxx*)
13908 lt_prog_compiler_pic_CXX='-W c,exportall'
13909 ;;
13910 *)
13911 ;;
13912 esac
13913 ;;
13914 netbsd*)
13915 ;;
13916 *qnx* | *nto*)
13917 # QNX uses GNU C++, but need to define -shared option too, otherwise
13918 # it will coredump.
13919 lt_prog_compiler_pic_CXX='-fPIC -shared'
13920 ;;
13921 osf3* | osf4* | osf5*)
13922 case $cc_basename in
13923 KCC*)
13924 lt_prog_compiler_wl_CXX='--backend -Wl,'
13925 ;;
13926 RCC*)
13927 # Rational C++ 2.4.1
13928 lt_prog_compiler_pic_CXX='-pic'
13929 ;;
13930 cxx*)
13931 # Digital/Compaq C++
13932 lt_prog_compiler_wl_CXX='-Wl,'
13933 # Make sure the PIC flag is empty. It appears that all Alpha
13934 # Linux and Compaq Tru64 Unix objects are PIC.
13935 lt_prog_compiler_pic_CXX=
13936 lt_prog_compiler_static_CXX='-non_shared'
13937 ;;
13938 *)
13939 ;;
13940 esac
13941 ;;
13942 psos*)
13943 ;;
13944 solaris*)
13945 case $cc_basename in
13946 CC* | sunCC*)
13947 # Sun C++ 4.2, 5.x and Centerline C++
13948 lt_prog_compiler_pic_CXX='-KPIC'
13949 lt_prog_compiler_static_CXX='-Bstatic'
13950 lt_prog_compiler_wl_CXX='-Qoption ld '
13951 ;;
13952 gcx*)
13953 # Green Hills C++ Compiler
13954 lt_prog_compiler_pic_CXX='-PIC'
13955 ;;
13956 *)
13957 ;;
13958 esac
13959 ;;
13960 sunos4*)
13961 case $cc_basename in
13962 CC*)
13963 # Sun C++ 4.x
13964 lt_prog_compiler_pic_CXX='-pic'
13965 lt_prog_compiler_static_CXX='-Bstatic'
13966 ;;
13967 lcc*)
13968 # Lucid
13969 lt_prog_compiler_pic_CXX='-pic'
13970 ;;
13971 *)
13972 ;;
13973 esac
13974 ;;
13975 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13976 case $cc_basename in
13977 CC*)
13978 lt_prog_compiler_wl_CXX='-Wl,'
13979 lt_prog_compiler_pic_CXX='-KPIC'
13980 lt_prog_compiler_static_CXX='-Bstatic'
13981 ;;
13982 esac
13983 ;;
13984 tandem*)
13985 case $cc_basename in
13986 NCC*)
13987 # NonStop-UX NCC 3.20
13988 lt_prog_compiler_pic_CXX='-KPIC'
13989 ;;
13990 *)
13991 ;;
13992 esac
13993 ;;
13994 vxworks*)
13995 ;;
13996 *)
13997 lt_prog_compiler_can_build_shared_CXX=no
13998 ;;
13999 esac
14000 fi
14001
14002case $host_os in
14003 # For platforms which do not support PIC, -DPIC is meaningless:
14004 *djgpp*)
14005 lt_prog_compiler_pic_CXX=
14006 ;;
14007 *)
14008 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14009 ;;
14010esac
14011
14012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14013$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14014if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14015 $as_echo_n "(cached) " >&6
14016else
14017 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14018fi
14019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14020$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14021lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14022
14023#
14024# Check to make sure the PIC flag actually works.
14025#
14026if test -n "$lt_prog_compiler_pic_CXX"; then
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14028$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14029if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14030 $as_echo_n "(cached) " >&6
14031else
14032 lt_cv_prog_compiler_pic_works_CXX=no
14033 ac_outfile=conftest.$ac_objext
14034 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14035 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14036 # Insert the option either (1) after the last *FLAGS variable, or
14037 # (2) before a word containing "conftest.", or (3) at the end.
14038 # Note that $ac_compile itself does not contain backslashes and begins
14039 # with a dollar sign (not a hyphen), so the echo should work correctly.
14040 # The option is referenced via a variable to avoid confusing sed.
14041 lt_compile=`echo "$ac_compile" | $SED \
14042 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14043 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14044 -e 's:$: $lt_compiler_flag:'`
14045 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14046 (eval "$lt_compile" 2>conftest.err)
14047 ac_status=$?
14048 cat conftest.err >&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 if (exit $ac_status) && test -s "$ac_outfile"; then
14051 # The compiler can only warn and ignore the option if not recognized
14052 # So say no if there are warnings other than the usual output.
14053 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14054 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14055 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14056 lt_cv_prog_compiler_pic_works_CXX=yes
14057 fi
14058 fi
14059 $RM conftest*
14060
14061fi
14062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14063$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14064
14065if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14066 case $lt_prog_compiler_pic_CXX in
14067 "" | " "*) ;;
14068 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14069 esac
14070else
14071 lt_prog_compiler_pic_CXX=
14072 lt_prog_compiler_can_build_shared_CXX=no
14073fi
14074
14075fi
14076
14077
14078
14079
14080
14081#
14082# Check to make sure the static flag actually works.
14083#
14084wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14086$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14087if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14088 $as_echo_n "(cached) " >&6
14089else
14090 lt_cv_prog_compiler_static_works_CXX=no
14091 save_LDFLAGS="$LDFLAGS"
14092 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14093 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14094 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14095 # The linker can only warn and ignore the option if not recognized
14096 # So say no if there are warnings
14097 if test -s conftest.err; then
14098 # Append any errors to the config.log.
14099 cat conftest.err 1>&5
14100 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14101 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14102 if diff conftest.exp conftest.er2 >/dev/null; then
14103 lt_cv_prog_compiler_static_works_CXX=yes
14104 fi
14105 else
14106 lt_cv_prog_compiler_static_works_CXX=yes
14107 fi
14108 fi
14109 $RM -r conftest*
14110 LDFLAGS="$save_LDFLAGS"
14111
14112fi
14113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14114$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14115
14116if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14117 :
14118else
14119 lt_prog_compiler_static_CXX=
14120fi
14121
14122
14123
14124
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14126$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14127if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14128 $as_echo_n "(cached) " >&6
14129else
14130 lt_cv_prog_compiler_c_o_CXX=no
14131 $RM -r conftest 2>/dev/null
14132 mkdir conftest
14133 cd conftest
14134 mkdir out
14135 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14136
14137 lt_compiler_flag="-o out/conftest2.$ac_objext"
14138 # Insert the option either (1) after the last *FLAGS variable, or
14139 # (2) before a word containing "conftest.", or (3) at the end.
14140 # Note that $ac_compile itself does not contain backslashes and begins
14141 # with a dollar sign (not a hyphen), so the echo should work correctly.
14142 lt_compile=`echo "$ac_compile" | $SED \
14143 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14144 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14145 -e 's:$: $lt_compiler_flag:'`
14146 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14147 (eval "$lt_compile" 2>out/conftest.err)
14148 ac_status=$?
14149 cat out/conftest.err >&5
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14152 then
14153 # The compiler can only warn and ignore the option if not recognized
14154 # So say no if there are warnings
14155 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14156 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14157 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14158 lt_cv_prog_compiler_c_o_CXX=yes
14159 fi
14160 fi
14161 chmod u+w . 2>&5
14162 $RM conftest*
14163 # SGI C++ compiler will create directory out/ii_files/ for
14164 # template instantiation
14165 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14166 $RM out/* && rmdir out
14167 cd ..
14168 $RM -r conftest
14169 $RM conftest*
14170
14171fi
14172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14173$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14174
14175
14176
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14178$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14179if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14180 $as_echo_n "(cached) " >&6
14181else
14182 lt_cv_prog_compiler_c_o_CXX=no
14183 $RM -r conftest 2>/dev/null
14184 mkdir conftest
14185 cd conftest
14186 mkdir out
14187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14188
14189 lt_compiler_flag="-o out/conftest2.$ac_objext"
14190 # Insert the option either (1) after the last *FLAGS variable, or
14191 # (2) before a word containing "conftest.", or (3) at the end.
14192 # Note that $ac_compile itself does not contain backslashes and begins
14193 # with a dollar sign (not a hyphen), so the echo should work correctly.
14194 lt_compile=`echo "$ac_compile" | $SED \
14195 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14196 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14197 -e 's:$: $lt_compiler_flag:'`
14198 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14199 (eval "$lt_compile" 2>out/conftest.err)
14200 ac_status=$?
14201 cat out/conftest.err >&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14204 then
14205 # The compiler can only warn and ignore the option if not recognized
14206 # So say no if there are warnings
14207 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14208 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14209 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14210 lt_cv_prog_compiler_c_o_CXX=yes
14211 fi
14212 fi
14213 chmod u+w . 2>&5
14214 $RM conftest*
14215 # SGI C++ compiler will create directory out/ii_files/ for
14216 # template instantiation
14217 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14218 $RM out/* && rmdir out
14219 cd ..
14220 $RM -r conftest
14221 $RM conftest*
14222
14223fi
14224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14225$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14226
14227
14228
14229
14230hard_links="nottested"
14231if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14232 # do not overwrite the value of need_locks provided by the user
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14234$as_echo_n "checking if we can lock with hard links... " >&6; }
14235 hard_links=yes
14236 $RM conftest*
14237 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14238 touch conftest.a
14239 ln conftest.a conftest.b 2>&5 || hard_links=no
14240 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14242$as_echo "$hard_links" >&6; }
14243 if test "$hard_links" = no; then
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14245$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14246 need_locks=warn
14247 fi
14248else
14249 need_locks=no
14250fi
14251
14252
14253
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14255$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14256
14257 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14258 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14259 case $host_os in
14260 aix[4-9]*)
14261 # If we're using GNU nm, then we don't want the "-C" option.
14262 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14263 # Also, AIX nm treats weak defined symbols like other global defined
14264 # symbols, whereas GNU nm marks them as "W".
14265 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14266 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'
14267 else
14268 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'
14269 fi
14270 ;;
14271 pw32*)
14272 export_symbols_cmds_CXX="$ltdll_cmds"
14273 ;;
14274 cygwin* | mingw* | cegcc*)
14275 case $cc_basename in
14276 cl*)
14277 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14278 ;;
14279 *)
14280 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'
14281 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14282 ;;
14283 esac
14284 ;;
14285 *)
14286 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14287 ;;
14288 esac
14289
14290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14291$as_echo "$ld_shlibs_CXX" >&6; }
14292test "$ld_shlibs_CXX" = no && can_build_shared=no
14293
14294with_gnu_ld_CXX=$with_gnu_ld
14295
14296
14297
14298
14299
14300
14301#
14302# Do we need to explicitly link libc?
14303#
14304case "x$archive_cmds_need_lc_CXX" in
14305x|xyes)
14306 # Assume -lc should be added
14307 archive_cmds_need_lc_CXX=yes
14308
14309 if test "$enable_shared" = yes && test "$GCC" = yes; then
14310 case $archive_cmds_CXX in
14311 *'~'*)
14312 # FIXME: we may have to deal with multi-command sequences.
14313 ;;
14314 '$CC '*)
14315 # Test whether the compiler implicitly links with -lc since on some
14316 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14317 # to ld, don't add -lc before -lgcc.
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14319$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14320if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14321 $as_echo_n "(cached) " >&6
14322else
14323 $RM conftest*
14324 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14325
14326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14327 (eval $ac_compile) 2>&5
14328 ac_status=$?
14329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14330 test $ac_status = 0; } 2>conftest.err; then
14331 soname=conftest
14332 lib=conftest
14333 libobjs=conftest.$ac_objext
14334 deplibs=
14335 wl=$lt_prog_compiler_wl_CXX
14336 pic_flag=$lt_prog_compiler_pic_CXX
14337 compiler_flags=-v
14338 linker_flags=-v
14339 verstring=
14340 output_objdir=.
14341 libname=conftest
14342 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14343 allow_undefined_flag_CXX=
14344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14345 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14346 ac_status=$?
14347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14348 test $ac_status = 0; }
14349 then
14350 lt_cv_archive_cmds_need_lc_CXX=no
14351 else
14352 lt_cv_archive_cmds_need_lc_CXX=yes
14353 fi
14354 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14355 else
14356 cat conftest.err 1>&5
14357 fi
14358 $RM conftest*
14359
14360fi
14361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14362$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14363 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14364 ;;
14365 esac
14366 fi
14367 ;;
14368esac
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14432$as_echo_n "checking dynamic linker characteristics... " >&6; }
14433
14434library_names_spec=
14435libname_spec='lib$name'
14436soname_spec=
14437shrext_cmds=".so"
14438postinstall_cmds=
14439postuninstall_cmds=
14440finish_cmds=
14441finish_eval=
14442shlibpath_var=
14443shlibpath_overrides_runpath=unknown
14444version_type=none
14445dynamic_linker="$host_os ld.so"
14446sys_lib_dlsearch_path_spec="/lib /usr/lib"
14447need_lib_prefix=unknown
14448hardcode_into_libs=no
14449
14450# when you set need_version to no, make sure it does not cause -set_version
14451# flags to be left without arguments
14452need_version=unknown
14453
14454case $host_os in
14455aix3*)
14456 version_type=linux # correct to gnu/linux during the next big refactor
14457 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14458 shlibpath_var=LIBPATH
14459
14460 # AIX 3 has no versioning support, so we append a major version to the name.
14461 soname_spec='${libname}${release}${shared_ext}$major'
14462 ;;
14463
14464aix[4-9]*)
14465 version_type=linux # correct to gnu/linux during the next big refactor
14466 need_lib_prefix=no
14467 need_version=no
14468 hardcode_into_libs=yes
14469 if test "$host_cpu" = ia64; then
14470 # AIX 5 supports IA64
14471 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14472 shlibpath_var=LD_LIBRARY_PATH
14473 else
14474 # With GCC up to 2.95.x, collect2 would create an import file
14475 # for dependence libraries. The import file would start with
14476 # the line `#! .'. This would cause the generated library to
14477 # depend on `.', always an invalid library. This was fixed in
14478 # development snapshots of GCC prior to 3.0.
14479 case $host_os in
14480 aix4 | aix4.[01] | aix4.[01].*)
14481 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14482 echo ' yes '
14483 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14484 :
14485 else
14486 can_build_shared=no
14487 fi
14488 ;;
14489 esac
14490 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14491 # soname into executable. Probably we can add versioning support to
14492 # collect2, so additional links can be useful in future.
14493 if test "$aix_use_runtimelinking" = yes; then
14494 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14495 # instead of lib<name>.a to let people know that these are not
14496 # typical AIX shared libraries.
14497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14498 else
14499 # We preserve .a as extension for shared libraries through AIX4.2
14500 # and later when we are not doing run time linking.
14501 library_names_spec='${libname}${release}.a $libname.a'
14502 soname_spec='${libname}${release}${shared_ext}$major'
14503 fi
14504 shlibpath_var=LIBPATH
14505 fi
14506 ;;
14507
14508amigaos*)
14509 case $host_cpu in
14510 powerpc)
14511 # Since July 2007 AmigaOS4 officially supports .so libraries.
14512 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14514 ;;
14515 m68k)
14516 library_names_spec='$libname.ixlibrary $libname.a'
14517 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14518 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'
14519 ;;
14520 esac
14521 ;;
14522
14523beos*)
14524 library_names_spec='${libname}${shared_ext}'
14525 dynamic_linker="$host_os ld.so"
14526 shlibpath_var=LIBRARY_PATH
14527 ;;
14528
14529bsdi[45]*)
14530 version_type=linux # correct to gnu/linux during the next big refactor
14531 need_version=no
14532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14533 soname_spec='${libname}${release}${shared_ext}$major'
14534 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14535 shlibpath_var=LD_LIBRARY_PATH
14536 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14537 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14538 # the default ld.so.conf also contains /usr/contrib/lib and
14539 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14540 # libtool to hard-code these into programs
14541 ;;
14542
14543cygwin* | mingw* | pw32* | cegcc*)
14544 version_type=windows
14545 shrext_cmds=".dll"
14546 need_version=no
14547 need_lib_prefix=no
14548
14549 case $GCC,$cc_basename in
14550 yes,*)
14551 # gcc
14552 library_names_spec='$libname.dll.a'
14553 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14554 postinstall_cmds='base_file=`basename \${file}`~
14555 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14556 dldir=$destdir/`dirname \$dlpath`~
14557 test -d \$dldir || mkdir -p \$dldir~
14558 $install_prog $dir/$dlname \$dldir/$dlname~
14559 chmod a+x \$dldir/$dlname~
14560 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14561 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14562 fi'
14563 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14564 dlpath=$dir/\$dldll~
14565 $RM \$dlpath'
14566 shlibpath_overrides_runpath=yes
14567
14568 case $host_os in
14569 cygwin*)
14570 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14571 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14572
14573 ;;
14574 mingw* | cegcc*)
14575 # MinGW DLLs use traditional 'lib' prefix
14576 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14577 ;;
14578 pw32*)
14579 # pw32 DLLs use 'pw' prefix rather than 'lib'
14580 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14581 ;;
14582 esac
14583 dynamic_linker='Win32 ld.exe'
14584 ;;
14585
14586 *,cl*)
14587 # Native MSVC
14588 libname_spec='$name'
14589 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14590 library_names_spec='${libname}.dll.lib'
14591
14592 case $build_os in
14593 mingw*)
14594 sys_lib_search_path_spec=
14595 lt_save_ifs=$IFS
14596 IFS=';'
14597 for lt_path in $LIB
14598 do
14599 IFS=$lt_save_ifs
14600 # Let DOS variable expansion print the short 8.3 style file name.
14601 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14602 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14603 done
14604 IFS=$lt_save_ifs
14605 # Convert to MSYS style.
14606 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14607 ;;
14608 cygwin*)
14609 # Convert to unix form, then to dos form, then back to unix form
14610 # but this time dos style (no spaces!) so that the unix form looks
14611 # like /cygdrive/c/PROGRA~1:/cygdr...
14612 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14613 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14614 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14615 ;;
14616 *)
14617 sys_lib_search_path_spec="$LIB"
14618 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14619 # It is most probably a Windows format PATH.
14620 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14621 else
14622 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14623 fi
14624 # FIXME: find the short name or the path components, as spaces are
14625 # common. (e.g. "Program Files" -> "PROGRA~1")
14626 ;;
14627 esac
14628
14629 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14630 postinstall_cmds='base_file=`basename \${file}`~
14631 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14632 dldir=$destdir/`dirname \$dlpath`~
14633 test -d \$dldir || mkdir -p \$dldir~
14634 $install_prog $dir/$dlname \$dldir/$dlname'
14635 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14636 dlpath=$dir/\$dldll~
14637 $RM \$dlpath'
14638 shlibpath_overrides_runpath=yes
14639 dynamic_linker='Win32 link.exe'
14640 ;;
14641
14642 *)
14643 # Assume MSVC wrapper
14644 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14645 dynamic_linker='Win32 ld.exe'
14646 ;;
14647 esac
14648 # FIXME: first we should search . and the directory the executable is in
14649 shlibpath_var=PATH
14650 ;;
14651
14652darwin* | rhapsody*)
14653 dynamic_linker="$host_os dyld"
14654 version_type=darwin
14655 need_lib_prefix=no
14656 need_version=no
14657 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14658 soname_spec='${libname}${release}${major}$shared_ext'
14659 shlibpath_overrides_runpath=yes
14660 shlibpath_var=DYLD_LIBRARY_PATH
14661 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14662
14663 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14664 ;;
14665
14666dgux*)
14667 version_type=linux # correct to gnu/linux during the next big refactor
14668 need_lib_prefix=no
14669 need_version=no
14670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14671 soname_spec='${libname}${release}${shared_ext}$major'
14672 shlibpath_var=LD_LIBRARY_PATH
14673 ;;
14674
14675freebsd* | dragonfly*)
14676 # DragonFly does not have aout. When/if they implement a new
14677 # versioning mechanism, adjust this.
14678 if test -x /usr/bin/objformat; then
14679 objformat=`/usr/bin/objformat`
14680 else
14681 case $host_os in
14682 freebsd[23].*) objformat=aout ;;
14683 *) objformat=elf ;;
14684 esac
14685 fi
14686 version_type=freebsd-$objformat
14687 case $version_type in
14688 freebsd-elf*)
14689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14690 need_version=no
14691 need_lib_prefix=no
14692 ;;
14693 freebsd-*)
14694 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14695 need_version=yes
14696 ;;
14697 esac
14698 shlibpath_var=LD_LIBRARY_PATH
14699 case $host_os in
14700 freebsd2.*)
14701 shlibpath_overrides_runpath=yes
14702 ;;
14703 freebsd3.[01]* | freebsdelf3.[01]*)
14704 shlibpath_overrides_runpath=yes
14705 hardcode_into_libs=yes
14706 ;;
14707 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14708 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14709 shlibpath_overrides_runpath=no
14710 hardcode_into_libs=yes
14711 ;;
14712 *) # from 4.6 on, and DragonFly
14713 shlibpath_overrides_runpath=yes
14714 hardcode_into_libs=yes
14715 ;;
14716 esac
14717 ;;
14718
14719gnu*)
14720 version_type=linux # correct to gnu/linux during the next big refactor
14721 need_lib_prefix=no
14722 need_version=no
14723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14724 soname_spec='${libname}${release}${shared_ext}$major'
14725 shlibpath_var=LD_LIBRARY_PATH
14726 shlibpath_overrides_runpath=no
14727 hardcode_into_libs=yes
14728 ;;
14729
14730haiku*)
14731 version_type=linux # correct to gnu/linux during the next big refactor
14732 need_lib_prefix=no
14733 need_version=no
14734 dynamic_linker="$host_os runtime_loader"
14735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14736 soname_spec='${libname}${release}${shared_ext}$major'
14737 shlibpath_var=LIBRARY_PATH
14738 shlibpath_overrides_runpath=yes
14739 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14740 hardcode_into_libs=yes
14741 ;;
14742
14743hpux9* | hpux10* | hpux11*)
14744 # Give a soname corresponding to the major version so that dld.sl refuses to
14745 # link against other versions.
14746 version_type=sunos
14747 need_lib_prefix=no
14748 need_version=no
14749 case $host_cpu in
14750 ia64*)
14751 shrext_cmds='.so'
14752 hardcode_into_libs=yes
14753 dynamic_linker="$host_os dld.so"
14754 shlibpath_var=LD_LIBRARY_PATH
14755 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14757 soname_spec='${libname}${release}${shared_ext}$major'
14758 if test "X$HPUX_IA64_MODE" = X32; then
14759 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14760 else
14761 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14762 fi
14763 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14764 ;;
14765 hppa*64*)
14766 shrext_cmds='.sl'
14767 hardcode_into_libs=yes
14768 dynamic_linker="$host_os dld.sl"
14769 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14770 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14772 soname_spec='${libname}${release}${shared_ext}$major'
14773 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14774 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14775 ;;
14776 *)
14777 shrext_cmds='.sl'
14778 dynamic_linker="$host_os dld.sl"
14779 shlibpath_var=SHLIB_PATH
14780 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14782 soname_spec='${libname}${release}${shared_ext}$major'
14783 ;;
14784 esac
14785 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14786 postinstall_cmds='chmod 555 $lib'
14787 # or fails outright, so override atomically:
14788 install_override_mode=555
14789 ;;
14790
14791interix[3-9]*)
14792 version_type=linux # correct to gnu/linux during the next big refactor
14793 need_lib_prefix=no
14794 need_version=no
14795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14796 soname_spec='${libname}${release}${shared_ext}$major'
14797 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14798 shlibpath_var=LD_LIBRARY_PATH
14799 shlibpath_overrides_runpath=no
14800 hardcode_into_libs=yes
14801 ;;
14802
14803irix5* | irix6* | nonstopux*)
14804 case $host_os in
14805 nonstopux*) version_type=nonstopux ;;
14806 *)
14807 if test "$lt_cv_prog_gnu_ld" = yes; then
14808 version_type=linux # correct to gnu/linux during the next big refactor
14809 else
14810 version_type=irix
14811 fi ;;
14812 esac
14813 need_lib_prefix=no
14814 need_version=no
14815 soname_spec='${libname}${release}${shared_ext}$major'
14816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14817 case $host_os in
14818 irix5* | nonstopux*)
14819 libsuff= shlibsuff=
14820 ;;
14821 *)
14822 case $LD in # libtool.m4 will add one of these switches to LD
14823 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14824 libsuff= shlibsuff= libmagic=32-bit;;
14825 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14826 libsuff=32 shlibsuff=N32 libmagic=N32;;
14827 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14828 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14829 *) libsuff= shlibsuff= libmagic=never-match;;
14830 esac
14831 ;;
14832 esac
14833 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14834 shlibpath_overrides_runpath=no
14835 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14836 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14837 hardcode_into_libs=yes
14838 ;;
14839
14840# No shared lib support for Linux oldld, aout, or coff.
14841linux*oldld* | linux*aout* | linux*coff*)
14842 dynamic_linker=no
14843 ;;
14844
14845# This must be glibc/ELF.
14846linux* | k*bsd*-gnu | kopensolaris*-gnu)
14847 version_type=linux # correct to gnu/linux during the next big refactor
14848 need_lib_prefix=no
14849 need_version=no
14850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14851 soname_spec='${libname}${release}${shared_ext}$major'
14852 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14853 shlibpath_var=LD_LIBRARY_PATH
14854 shlibpath_overrides_runpath=no
14855
14856 # Some binutils ld are patched to set DT_RUNPATH
14857 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14858 $as_echo_n "(cached) " >&6
14859else
14860 lt_cv_shlibpath_overrides_runpath=no
14861 save_LDFLAGS=$LDFLAGS
14862 save_libdir=$libdir
14863 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14864 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14866/* end confdefs.h. */
14867
14868int
14869main ()
14870{
14871
14872 ;
14873 return 0;
14874}
14875_ACEOF
14876if ac_fn_cxx_try_link "$LINENO"; then :
14877 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14878 lt_cv_shlibpath_overrides_runpath=yes
14879fi
14880fi
14881rm -f core conftest.err conftest.$ac_objext \
14882 conftest$ac_exeext conftest.$ac_ext
14883 LDFLAGS=$save_LDFLAGS
14884 libdir=$save_libdir
14885
14886fi
14887
14888 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14889
14890 # This implies no fast_install, which is unacceptable.
14891 # Some rework will be needed to allow for fast_install
14892 # before this can be enabled.
14893 hardcode_into_libs=yes
14894
14895 # Append ld.so.conf contents to the search path
14896 if test -f /etc/ld.so.conf; then
14897 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' ' '`
14898 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14899 fi
14900
14901 # We used to test for /lib/ld.so.1 and disable shared libraries on
14902 # powerpc, because MkLinux only supported shared libraries with the
14903 # GNU dynamic linker. Since this was broken with cross compilers,
14904 # most powerpc-linux boxes support dynamic linking these days and
14905 # people can always --disable-shared, the test was removed, and we
14906 # assume the GNU/Linux dynamic linker is in use.
14907 dynamic_linker='GNU/Linux ld.so'
14908 ;;
14909
14910netbsd*)
14911 version_type=sunos
14912 need_lib_prefix=no
14913 need_version=no
14914 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14916 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14917 dynamic_linker='NetBSD (a.out) ld.so'
14918 else
14919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14920 soname_spec='${libname}${release}${shared_ext}$major'
14921 dynamic_linker='NetBSD ld.elf_so'
14922 fi
14923 shlibpath_var=LD_LIBRARY_PATH
14924 shlibpath_overrides_runpath=yes
14925 hardcode_into_libs=yes
14926 ;;
14927
14928newsos6)
14929 version_type=linux # correct to gnu/linux during the next big refactor
14930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14931 shlibpath_var=LD_LIBRARY_PATH
14932 shlibpath_overrides_runpath=yes
14933 ;;
14934
14935*nto* | *qnx*)
14936 version_type=qnx
14937 need_lib_prefix=no
14938 need_version=no
14939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14940 soname_spec='${libname}${release}${shared_ext}$major'
14941 shlibpath_var=LD_LIBRARY_PATH
14942 shlibpath_overrides_runpath=no
14943 hardcode_into_libs=yes
14944 dynamic_linker='ldqnx.so'
14945 ;;
14946
14947openbsd*)
14948 version_type=sunos
14949 sys_lib_dlsearch_path_spec="/usr/lib"
14950 need_lib_prefix=no
14951 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14952 case $host_os in
14953 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14954 *) need_version=no ;;
14955 esac
14956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14957 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14958 shlibpath_var=LD_LIBRARY_PATH
14959 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14960 case $host_os in
14961 openbsd2.[89] | openbsd2.[89].*)
14962 shlibpath_overrides_runpath=no
14963 ;;
14964 *)
14965 shlibpath_overrides_runpath=yes
14966 ;;
14967 esac
14968 else
14969 shlibpath_overrides_runpath=yes
14970 fi
14971 ;;
14972
14973os2*)
14974 libname_spec='$name'
14975 shrext_cmds=".dll"
14976 need_lib_prefix=no
14977 library_names_spec='$libname${shared_ext} $libname.a'
14978 dynamic_linker='OS/2 ld.exe'
14979 shlibpath_var=LIBPATH
14980 ;;
14981
14982osf3* | osf4* | osf5*)
14983 version_type=osf
14984 need_lib_prefix=no
14985 need_version=no
14986 soname_spec='${libname}${release}${shared_ext}$major'
14987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14988 shlibpath_var=LD_LIBRARY_PATH
14989 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14990 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14991 ;;
14992
14993rdos*)
14994 dynamic_linker=no
14995 ;;
14996
14997solaris*)
14998 version_type=linux # correct to gnu/linux during the next big refactor
14999 need_lib_prefix=no
15000 need_version=no
15001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15002 soname_spec='${libname}${release}${shared_ext}$major'
15003 shlibpath_var=LD_LIBRARY_PATH
15004 shlibpath_overrides_runpath=yes
15005 hardcode_into_libs=yes
15006 # ldd complains unless libraries are executable
15007 postinstall_cmds='chmod +x $lib'
15008 ;;
15009
15010sunos4*)
15011 version_type=sunos
15012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15013 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15014 shlibpath_var=LD_LIBRARY_PATH
15015 shlibpath_overrides_runpath=yes
15016 if test "$with_gnu_ld" = yes; then
15017 need_lib_prefix=no
15018 fi
15019 need_version=yes
15020 ;;
15021
15022sysv4 | sysv4.3*)
15023 version_type=linux # correct to gnu/linux during the next big refactor
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 shlibpath_var=LD_LIBRARY_PATH
15027 case $host_vendor in
15028 sni)
15029 shlibpath_overrides_runpath=no
15030 need_lib_prefix=no
15031 runpath_var=LD_RUN_PATH
15032 ;;
15033 siemens)
15034 need_lib_prefix=no
15035 ;;
15036 motorola)
15037 need_lib_prefix=no
15038 need_version=no
15039 shlibpath_overrides_runpath=no
15040 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15041 ;;
15042 esac
15043 ;;
15044
15045sysv4*MP*)
15046 if test -d /usr/nec ;then
15047 version_type=linux # correct to gnu/linux during the next big refactor
15048 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15049 soname_spec='$libname${shared_ext}.$major'
15050 shlibpath_var=LD_LIBRARY_PATH
15051 fi
15052 ;;
15053
15054sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15055 version_type=freebsd-elf
15056 need_lib_prefix=no
15057 need_version=no
15058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15059 soname_spec='${libname}${release}${shared_ext}$major'
15060 shlibpath_var=LD_LIBRARY_PATH
15061 shlibpath_overrides_runpath=yes
15062 hardcode_into_libs=yes
15063 if test "$with_gnu_ld" = yes; then
15064 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15065 else
15066 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15067 case $host_os in
15068 sco3.2v5*)
15069 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15070 ;;
15071 esac
15072 fi
15073 sys_lib_dlsearch_path_spec='/usr/lib'
15074 ;;
15075
15076tpf*)
15077 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15078 version_type=linux # correct to gnu/linux during the next big refactor
15079 need_lib_prefix=no
15080 need_version=no
15081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15082 shlibpath_var=LD_LIBRARY_PATH
15083 shlibpath_overrides_runpath=no
15084 hardcode_into_libs=yes
15085 ;;
15086
15087uts4*)
15088 version_type=linux # correct to gnu/linux during the next big refactor
15089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15090 soname_spec='${libname}${release}${shared_ext}$major'
15091 shlibpath_var=LD_LIBRARY_PATH
15092 ;;
15093
15094*)
15095 dynamic_linker=no
15096 ;;
15097esac
15098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15099$as_echo "$dynamic_linker" >&6; }
15100test "$dynamic_linker" = no && can_build_shared=no
15101
15102variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15103if test "$GCC" = yes; then
15104 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15105fi
15106
15107if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15108 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15109fi
15110if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15111 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15112fi
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15152$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15153hardcode_action_CXX=
15154if test -n "$hardcode_libdir_flag_spec_CXX" ||
15155 test -n "$runpath_var_CXX" ||
15156 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15157
15158 # We can hardcode non-existent directories.
15159 if test "$hardcode_direct_CXX" != no &&
15160 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15161 # have to relink, otherwise we might link with an installed library
15162 # when we should be linking with a yet-to-be-installed one
15163 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15164 test "$hardcode_minus_L_CXX" != no; then
15165 # Linking always hardcodes the temporary library directory.
15166 hardcode_action_CXX=relink
15167 else
15168 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15169 hardcode_action_CXX=immediate
15170 fi
15171else
15172 # We cannot hardcode anything, or else we can only hardcode existing
15173 # directories.
15174 hardcode_action_CXX=unsupported
15175fi
15176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15177$as_echo "$hardcode_action_CXX" >&6; }
15178
15179if test "$hardcode_action_CXX" = relink ||
15180 test "$inherit_rpath_CXX" = yes; then
15181 # Fast installation is not supported
15182 enable_fast_install=no
15183elif test "$shlibpath_overrides_runpath" = yes ||
15184 test "$enable_shared" = no; then
15185 # Fast installation is not necessary
15186 enable_fast_install=needless
15187fi
15188
15189
15190
15191
15192
15193
15194
15195 fi # test -n "$compiler"
15196
15197 CC=$lt_save_CC
15198 CFLAGS=$lt_save_CFLAGS
15199 LDCXX=$LD
15200 LD=$lt_save_LD
15201 GCC=$lt_save_GCC
15202 with_gnu_ld=$lt_save_with_gnu_ld
15203 lt_cv_path_LDCXX=$lt_cv_path_LD
15204 lt_cv_path_LD=$lt_save_path_LD
15205 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15206 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15207fi # test "$_lt_caught_CXX_error" != yes
15208
15209ac_ext=c
15210ac_cpp='$CPP $CPPFLAGS'
15211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15213ac_compiler_gnu=$ac_cv_c_compiler_gnu
15214
15215
Jeff Thompson1a1b4c02013-06-28 22:28:51 -070015216if test "x$CC" != xcc; then
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
15218$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
15219else
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
15221$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
15222fi
15223set dummy $CC; ac_cc=`$as_echo "$2" |
15224 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
15225if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
15226 $as_echo_n "(cached) " >&6
15227else
15228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15229/* end confdefs.h. */
15230
15231int
15232main ()
15233{
15234
15235 ;
15236 return 0;
15237}
15238_ACEOF
15239# Make sure it works both with $CC and with simple cc.
15240# We do the test twice because some compilers refuse to overwrite an
15241# existing .o file with -o, though they will create one.
15242ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15243rm -f conftest2.*
15244if { { case "(($ac_try" in
15245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246 *) ac_try_echo=$ac_try;;
15247esac
15248eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15249$as_echo "$ac_try_echo"; } >&5
15250 (eval "$ac_try") 2>&5
15251 ac_status=$?
15252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15253 test $ac_status = 0; } &&
15254 test -f conftest2.$ac_objext && { { case "(($ac_try" in
15255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256 *) ac_try_echo=$ac_try;;
15257esac
15258eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15259$as_echo "$ac_try_echo"; } >&5
15260 (eval "$ac_try") 2>&5
15261 ac_status=$?
15262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15263 test $ac_status = 0; };
15264then
15265 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
15266 if test "x$CC" != xcc; then
15267 # Test first that cc exists at all.
15268 if { ac_try='cc -c conftest.$ac_ext >&5'
15269 { { case "(($ac_try" in
15270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15271 *) ac_try_echo=$ac_try;;
15272esac
15273eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15274$as_echo "$ac_try_echo"; } >&5
15275 (eval "$ac_try") 2>&5
15276 ac_status=$?
15277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15278 test $ac_status = 0; }; }; then
15279 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15280 rm -f conftest2.*
15281 if { { case "(($ac_try" in
15282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15283 *) ac_try_echo=$ac_try;;
15284esac
15285eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15286$as_echo "$ac_try_echo"; } >&5
15287 (eval "$ac_try") 2>&5
15288 ac_status=$?
15289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15290 test $ac_status = 0; } &&
15291 test -f conftest2.$ac_objext && { { case "(($ac_try" in
15292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15293 *) ac_try_echo=$ac_try;;
15294esac
15295eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15296$as_echo "$ac_try_echo"; } >&5
15297 (eval "$ac_try") 2>&5
15298 ac_status=$?
15299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15300 test $ac_status = 0; };
15301 then
15302 # cc works too.
15303 :
15304 else
15305 # cc exists but doesn't like -o.
15306 eval ac_cv_prog_cc_${ac_cc}_c_o=no
15307 fi
15308 fi
15309 fi
15310else
15311 eval ac_cv_prog_cc_${ac_cc}_c_o=no
15312fi
15313rm -f core conftest*
15314
15315fi
15316if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15318$as_echo "yes" >&6; }
15319else
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15321$as_echo "no" >&6; }
15322
15323$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
15324
15325fi
15326
15327# FIXME: we rely on the cache variable name because
15328# there is no other way.
15329set dummy $CC
15330am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
15331eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
15332if test "$am_t" != yes; then
15333 # Losing compiler, so override with the script.
15334 # FIXME: It is wrong to rewrite CC.
15335 # But if we don't then we get into trouble of one sort or another.
15336 # A longer-term fix would be to have automake use am__CC in this case,
15337 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
15338 CC="$am_aux_dir/compile $CC"
15339fi
15340
15341
Jeff Thompson36174062013-06-21 16:03:44 -070015342ac_ext=cpp
15343ac_cpp='$CXXCPP $CPPFLAGS'
15344ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15345ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15346ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15347
Jeff Thompson36174062013-06-21 16:03:44 -070015348
Jeff Thompson1b8f4c92013-06-19 16:18:46 -070015349 ax_cxx_compile_cxx11_required=falsednl
15350 ac_ext=cpp
15351ac_cpp='$CXXCPP $CPPFLAGS'
15352ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15353ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15354ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15355 ac_success=no
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
15357$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
15358if ${ax_cv_cxx_compile_cxx11+:} false; then :
15359 $as_echo_n "(cached) " >&6
15360else
15361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15362/* end confdefs.h. */
15363
15364 template <typename T>
15365 struct check
15366 {
15367 static_assert(sizeof(int) <= sizeof(T), "not big enough");
15368 };
15369
15370 typedef check<check<bool>> right_angle_brackets;
15371
15372 int a;
15373 decltype(a) b;
15374
15375 typedef check<int> check_type;
15376 check_type c;
15377 check_type&& cr = static_cast<check_type&&>(c);
15378
15379 auto d = a;
15380
15381_ACEOF
15382if ac_fn_cxx_try_compile "$LINENO"; then :
15383 ax_cv_cxx_compile_cxx11=yes
15384else
15385 ax_cv_cxx_compile_cxx11=no
15386fi
15387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15388fi
15389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
15390$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
15391 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
15392 ac_success=yes
15393 fi
15394
15395 if test x$ac_success = xno; then
15396 for switch in -std=gnu++11 -std=gnu++0x; do
15397 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
15399$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
15400if eval \${$cachevar+:} false; then :
15401 $as_echo_n "(cached) " >&6
15402else
15403 ac_save_CXXFLAGS="$CXXFLAGS"
15404 CXXFLAGS="$CXXFLAGS $switch"
15405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15406/* end confdefs.h. */
15407
15408 template <typename T>
15409 struct check
15410 {
15411 static_assert(sizeof(int) <= sizeof(T), "not big enough");
15412 };
15413
15414 typedef check<check<bool>> right_angle_brackets;
15415
15416 int a;
15417 decltype(a) b;
15418
15419 typedef check<int> check_type;
15420 check_type c;
15421 check_type&& cr = static_cast<check_type&&>(c);
15422
15423 auto d = a;
15424
15425_ACEOF
15426if ac_fn_cxx_try_compile "$LINENO"; then :
15427 eval $cachevar=yes
15428else
15429 eval $cachevar=no
15430fi
15431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15432 CXXFLAGS="$ac_save_CXXFLAGS"
15433fi
15434eval ac_res=\$$cachevar
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15436$as_echo "$ac_res" >&6; }
15437 if eval test x\$$cachevar = xyes; then
15438 CXXFLAGS="$CXXFLAGS $switch"
15439 ac_success=yes
15440 break
15441 fi
15442 done
15443 fi
15444
15445 if test x$ac_success = xno; then
15446 for switch in -std=c++11 -std=c++0x; do
15447 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
15449$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
15450if eval \${$cachevar+:} false; then :
15451 $as_echo_n "(cached) " >&6
15452else
15453 ac_save_CXXFLAGS="$CXXFLAGS"
15454 CXXFLAGS="$CXXFLAGS $switch"
15455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15456/* end confdefs.h. */
15457
15458 template <typename T>
15459 struct check
15460 {
15461 static_assert(sizeof(int) <= sizeof(T), "not big enough");
15462 };
15463
15464 typedef check<check<bool>> right_angle_brackets;
15465
15466 int a;
15467 decltype(a) b;
15468
15469 typedef check<int> check_type;
15470 check_type c;
15471 check_type&& cr = static_cast<check_type&&>(c);
15472
15473 auto d = a;
15474
15475_ACEOF
15476if ac_fn_cxx_try_compile "$LINENO"; then :
15477 eval $cachevar=yes
15478else
15479 eval $cachevar=no
15480fi
15481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15482 CXXFLAGS="$ac_save_CXXFLAGS"
15483fi
15484eval ac_res=\$$cachevar
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15486$as_echo "$ac_res" >&6; }
15487 if eval test x\$$cachevar = xyes; then
15488 CXXFLAGS="$CXXFLAGS $switch"
15489 ac_success=yes
15490 break
15491 fi
15492 done
15493 fi
15494 ac_ext=cpp
15495ac_cpp='$CXXCPP $CPPFLAGS'
15496ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15497ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15498ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15499
15500 if test x$ax_cxx_compile_cxx11_required = xtrue; then
15501 if test x$ac_success = xno; then
15502 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
15503 fi
15504 else
15505 if test x$ac_success = xno; then
15506 HAVE_CXX11=0
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
15508$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
15509 else
15510 HAVE_CXX11=1
15511
15512$as_echo "#define HAVE_CXX11 1" >>confdefs.h
15513
15514 fi
15515
15516
15517 fi
15518
15519
Jeff Thompsonb3768ae2013-08-08 21:22:45 -070015520 found=false
15521
15522# Check whether --with-openssl was given.
15523if test "${with_openssl+set}" = set; then :
15524 withval=$with_openssl;
15525 case "$withval" in
15526 "" | y | ye | yes | n | no)
15527 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
15528 ;;
15529 *) ssldirs="$withval"
15530 ;;
15531 esac
15532
15533else
15534
15535 # if pkg-config is installed and openssl has installed a .pc file,
15536 # then use that information and don't search ssldirs
15537 # Extract the first word of "pkg-config", so it can be a program name with args.
15538set dummy pkg-config; ac_word=$2
15539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15540$as_echo_n "checking for $ac_word... " >&6; }
15541if ${ac_cv_path_PKG_CONFIG+:} false; then :
15542 $as_echo_n "(cached) " >&6
15543else
15544 case $PKG_CONFIG in
15545 [\\/]* | ?:[\\/]*)
15546 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15547 ;;
15548 *)
15549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15550for as_dir in $PATH
15551do
15552 IFS=$as_save_IFS
15553 test -z "$as_dir" && as_dir=.
15554 for ac_exec_ext in '' $ac_executable_extensions; do
15555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15556 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15558 break 2
15559 fi
15560done
15561 done
15562IFS=$as_save_IFS
15563
15564 ;;
15565esac
15566fi
15567PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15568if test -n "$PKG_CONFIG"; then
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15570$as_echo "$PKG_CONFIG" >&6; }
15571else
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15573$as_echo "no" >&6; }
15574fi
15575
15576
15577 if test x"$PKG_CONFIG" != x""; then
15578 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
15579 if test $? = 0; then
15580 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
15581 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
15582 found=true
15583 fi
15584 fi
15585
15586 # no such luck; use some default ssldirs
15587 if ! $found; then
15588 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
15589 fi
15590
15591
15592fi
15593
15594
15595
15596 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
15597 # an 'openssl' subdirectory
15598
15599 if ! $found; then
15600 OPENSSL_INCLUDES=
15601 for ssldir in $ssldirs; do
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
15603$as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
15604 if test -f "$ssldir/include/openssl/ssl.h"; then
15605 OPENSSL_INCLUDES="-I$ssldir/include"
15606 OPENSSL_LDFLAGS="-L$ssldir/lib"
15607 OPENSSL_LIBS="-lssl -lcrypto"
15608 found=true
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15610$as_echo "yes" >&6; }
15611 break
15612 else
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15614$as_echo "no" >&6; }
15615 fi
15616 done
15617
15618 # if the file wasn't found, well, go ahead and try the link anyway -- maybe
15619 # it will just work!
15620 fi
15621
15622 # try the preprocessor and linker with our new flags,
15623 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
15624
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
15626$as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
15627 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
15628 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
15629
15630 save_LIBS="$LIBS"
15631 save_LDFLAGS="$LDFLAGS"
15632 save_CPPFLAGS="$CPPFLAGS"
15633 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
15634 LIBS="$OPENSSL_LIBS $LIBS"
15635 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
15636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15637/* end confdefs.h. */
15638#include <openssl/ssl.h>
15639int
15640main ()
15641{
15642SSL_new(NULL)
15643 ;
15644 return 0;
15645}
15646_ACEOF
15647if ac_fn_cxx_try_link "$LINENO"; then :
15648
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15650$as_echo "yes" >&6; }
15651
15652
15653else
15654
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15656$as_echo "no" >&6; }
15657
15658
15659fi
15660rm -f core conftest.err conftest.$ac_objext \
15661 conftest$ac_exeext conftest.$ac_ext
15662 CPPFLAGS="$save_CPPFLAGS"
15663 LDFLAGS="$save_LDFLAGS"
15664 LIBS="$save_LIBS"
15665
15666
15667
15668
15669
15670
Jeff Thompson39128c62013-06-19 14:08:51 -070015671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::shared_ptr" >&5
15672$as_echo_n "checking for std::shared_ptr... " >&6; }
Jeff Thompson39128c62013-06-19 14:08:51 -070015673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15674/* end confdefs.h. */
15675#include <memory>
15676 std::shared_ptr<int> have_shared_ptr;
15677int
15678main ()
15679{
15680
15681 ;
15682 return 0;
15683}
15684
15685_ACEOF
15686if ac_fn_cxx_try_compile "$LINENO"; then :
15687
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15689$as_echo "yes" >&6; }
15690
15691cat >>confdefs.h <<_ACEOF
15692#define HAVE_STD_SHARED_PTR 1
15693_ACEOF
15694
15695
15696else
15697
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15699$as_echo "no" >&6; }
15700
15701cat >>confdefs.h <<_ACEOF
15702#define HAVE_STD_SHARED_PTR 0
15703_ACEOF
15704
15705
15706fi
15707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jeff Thompson9e9ea9f2013-06-22 10:31:18 -070015708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost::shared_ptr" >&5
15709$as_echo_n "checking for boost::shared_ptr... " >&6; }
Jeff Thompson39128c62013-06-19 14:08:51 -070015710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15711/* end confdefs.h. */
15712#include <boost/shared_ptr.hpp>
15713 boost::shared_ptr<int> have_shared_ptr;
15714int
15715main ()
15716{
15717
15718 ;
15719 return 0;
15720}
15721
15722_ACEOF
15723if ac_fn_cxx_try_compile "$LINENO"; then :
15724
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15726$as_echo "yes" >&6; }
15727
15728cat >>confdefs.h <<_ACEOF
15729#define HAVE_BOOST_SHARED_PTR 1
15730_ACEOF
15731
15732
15733else
15734
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15736$as_echo "no" >&6; }
15737
15738cat >>confdefs.h <<_ACEOF
15739#define HAVE_BOOST_SHARED_PTR 0
15740_ACEOF
15741
15742
15743fi
15744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15745
Jeff Thompsond4a1e162013-07-11 12:41:31 -070015746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcmp" >&5
15747$as_echo_n "checking for memcmp... " >&6; }
15748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15749/* end confdefs.h. */
15750#include <memory.h>
15751 void test() { unsigned char buffer[1]; memcmp(buffer, buffer, 1); }
15752int
15753main ()
15754{
15755
15756 ;
15757 return 0;
15758}
15759
15760_ACEOF
15761if ac_fn_cxx_try_compile "$LINENO"; then :
15762
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15764$as_echo "yes" >&6; }
15765
15766cat >>confdefs.h <<_ACEOF
15767#define HAVE_MEMCMP 1
15768_ACEOF
15769
15770
15771else
15772
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15774$as_echo "no" >&6; }
15775
15776cat >>confdefs.h <<_ACEOF
15777#define HAVE_MEMCMP 0
15778_ACEOF
15779
15780
15781fi
15782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jeff Thompsonc804d522013-06-27 16:54:27 -070015783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcpy" >&5
15784$as_echo_n "checking for memcpy... " >&6; }
15785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15786/* end confdefs.h. */
15787#include <memory.h>
15788 void test() { unsigned char buffer[1]; memcpy(buffer, buffer, 1); }
15789int
15790main ()
15791{
15792
15793 ;
15794 return 0;
15795}
15796
15797_ACEOF
15798if ac_fn_cxx_try_compile "$LINENO"; then :
15799
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15801$as_echo "yes" >&6; }
15802
15803cat >>confdefs.h <<_ACEOF
15804#define HAVE_MEMCPY 1
15805_ACEOF
15806
15807
15808else
15809
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15811$as_echo "no" >&6; }
15812
15813cat >>confdefs.h <<_ACEOF
15814#define HAVE_MEMCPY 0
15815_ACEOF
15816
15817
15818fi
15819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memset" >&5
15821$as_echo_n "checking for memset... " >&6; }
15822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15823/* end confdefs.h. */
15824#include <memory.h>
15825 void test() { unsigned char buffer[1]; memset(buffer, 0, 1); }
15826int
15827main ()
15828{
15829
15830 ;
15831 return 0;
15832}
15833
15834_ACEOF
15835if ac_fn_cxx_try_compile "$LINENO"; then :
15836
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15838$as_echo "yes" >&6; }
15839
15840cat >>confdefs.h <<_ACEOF
15841#define HAVE_MEMSET 1
15842_ACEOF
15843
15844
15845else
15846
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15848$as_echo "no" >&6; }
15849
15850cat >>confdefs.h <<_ACEOF
15851#define HAVE_MEMSET 0
15852_ACEOF
15853
15854
15855fi
15856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15857
Jeff Thompsonca45e552013-06-26 17:40:06 -070015858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868# Files:
15869DX_PROJECT=$PACKAGE_NAME
15870
15871DX_CONFIG=Doxyfile
15872
15873DX_DOCDIR=doxygen-doc
15874
15875
15876# Environment variables used inside doxygen.cfg:
15877DX_ENV="$DX_ENV SRCDIR='$srcdir'"
15878
15879DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
15880
15881DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
15882
15883DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
15884
15885
15886# Doxygen itself:
15887
15888
15889
15890 # Check whether --enable-doxygen-doc was given.
15891if test "${enable_doxygen_doc+set}" = set; then :
15892 enableval=$enable_doxygen_doc;
15893case "$enableval" in
15894#(
15895y|Y|yes|Yes|YES)
15896 DX_FLAG_doc=1
15897
15898
15899;; #(
15900n|N|no|No|NO)
15901 DX_FLAG_doc=0
15902
15903;; #(
15904*)
15905 as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
15906;;
15907esac
15908
15909else
15910
15911DX_FLAG_doc=1
15912
15913
15914
15915fi
15916
15917if test "$DX_FLAG_doc" = 1; then
15918
15919if test -n "$ac_tool_prefix"; then
15920 # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
15921set dummy ${ac_tool_prefix}doxygen; ac_word=$2
15922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15923$as_echo_n "checking for $ac_word... " >&6; }
15924if ${ac_cv_path_DX_DOXYGEN+:} false; then :
15925 $as_echo_n "(cached) " >&6
15926else
15927 case $DX_DOXYGEN in
15928 [\\/]* | ?:[\\/]*)
15929 ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
15930 ;;
15931 *)
15932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15933for as_dir in $PATH
15934do
15935 IFS=$as_save_IFS
15936 test -z "$as_dir" && as_dir=.
15937 for ac_exec_ext in '' $ac_executable_extensions; do
15938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15939 ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
15940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15941 break 2
15942 fi
15943done
15944 done
15945IFS=$as_save_IFS
15946
15947 ;;
15948esac
15949fi
15950DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
15951if test -n "$DX_DOXYGEN"; then
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
15953$as_echo "$DX_DOXYGEN" >&6; }
15954else
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15956$as_echo "no" >&6; }
15957fi
15958
15959
15960fi
15961if test -z "$ac_cv_path_DX_DOXYGEN"; then
15962 ac_pt_DX_DOXYGEN=$DX_DOXYGEN
15963 # Extract the first word of "doxygen", so it can be a program name with args.
15964set dummy doxygen; ac_word=$2
15965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15966$as_echo_n "checking for $ac_word... " >&6; }
15967if ${ac_cv_path_ac_pt_DX_DOXYGEN+:} false; then :
15968 $as_echo_n "(cached) " >&6
15969else
15970 case $ac_pt_DX_DOXYGEN in
15971 [\\/]* | ?:[\\/]*)
15972 ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
15973 ;;
15974 *)
15975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15976for as_dir in $PATH
15977do
15978 IFS=$as_save_IFS
15979 test -z "$as_dir" && as_dir=.
15980 for ac_exec_ext in '' $ac_executable_extensions; do
15981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15982 ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
15983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15984 break 2
15985 fi
15986done
15987 done
15988IFS=$as_save_IFS
15989
15990 ;;
15991esac
15992fi
15993ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
15994if test -n "$ac_pt_DX_DOXYGEN"; then
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
15996$as_echo "$ac_pt_DX_DOXYGEN" >&6; }
15997else
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15999$as_echo "no" >&6; }
16000fi
16001
16002 if test "x$ac_pt_DX_DOXYGEN" = x; then
16003 DX_DOXYGEN=""
16004 else
16005 case $cross_compiling:$ac_tool_warned in
16006yes:)
16007{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16008$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16009ac_tool_warned=yes ;;
16010esac
16011 DX_DOXYGEN=$ac_pt_DX_DOXYGEN
16012 fi
16013else
16014 DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
16015fi
16016
16017if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
16019$as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
16020 DX_FLAG_doc=0
16021
16022fi
16023
16024
16025if test -n "$ac_tool_prefix"; then
16026 # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
16027set dummy ${ac_tool_prefix}perl; ac_word=$2
16028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16029$as_echo_n "checking for $ac_word... " >&6; }
16030if ${ac_cv_path_DX_PERL+:} false; then :
16031 $as_echo_n "(cached) " >&6
16032else
16033 case $DX_PERL in
16034 [\\/]* | ?:[\\/]*)
16035 ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
16036 ;;
16037 *)
16038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16039for as_dir in $PATH
16040do
16041 IFS=$as_save_IFS
16042 test -z "$as_dir" && as_dir=.
16043 for ac_exec_ext in '' $ac_executable_extensions; do
16044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16045 ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
16046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16047 break 2
16048 fi
16049done
16050 done
16051IFS=$as_save_IFS
16052
16053 ;;
16054esac
16055fi
16056DX_PERL=$ac_cv_path_DX_PERL
16057if test -n "$DX_PERL"; then
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
16059$as_echo "$DX_PERL" >&6; }
16060else
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16062$as_echo "no" >&6; }
16063fi
16064
16065
16066fi
16067if test -z "$ac_cv_path_DX_PERL"; then
16068 ac_pt_DX_PERL=$DX_PERL
16069 # Extract the first word of "perl", so it can be a program name with args.
16070set dummy perl; ac_word=$2
16071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16072$as_echo_n "checking for $ac_word... " >&6; }
16073if ${ac_cv_path_ac_pt_DX_PERL+:} false; then :
16074 $as_echo_n "(cached) " >&6
16075else
16076 case $ac_pt_DX_PERL in
16077 [\\/]* | ?:[\\/]*)
16078 ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
16079 ;;
16080 *)
16081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16082for as_dir in $PATH
16083do
16084 IFS=$as_save_IFS
16085 test -z "$as_dir" && as_dir=.
16086 for ac_exec_ext in '' $ac_executable_extensions; do
16087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16088 ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
16089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16090 break 2
16091 fi
16092done
16093 done
16094IFS=$as_save_IFS
16095
16096 ;;
16097esac
16098fi
16099ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
16100if test -n "$ac_pt_DX_PERL"; then
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
16102$as_echo "$ac_pt_DX_PERL" >&6; }
16103else
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16105$as_echo "no" >&6; }
16106fi
16107
16108 if test "x$ac_pt_DX_PERL" = x; then
16109 DX_PERL=""
16110 else
16111 case $cross_compiling:$ac_tool_warned in
16112yes:)
16113{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16115ac_tool_warned=yes ;;
16116esac
16117 DX_PERL=$ac_pt_DX_PERL
16118 fi
16119else
16120 DX_PERL="$ac_cv_path_DX_PERL"
16121fi
16122
16123if test "$DX_FLAG_doc$DX_PERL" = 1; then
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
16125$as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
16126 DX_FLAG_doc=0
16127
16128fi
16129
16130 :
16131fi
16132 if test "$DX_FLAG_doc" = 1; then
16133 DX_COND_doc_TRUE=
16134 DX_COND_doc_FALSE='#'
16135else
16136 DX_COND_doc_TRUE='#'
16137 DX_COND_doc_FALSE=
16138fi
16139
16140if test "$DX_FLAG_doc" = 1; then
16141 DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
16142
16143 :
16144else
16145
16146 :
16147fi
16148
16149
16150# Dot for graphics:
16151
16152
16153
16154 # Check whether --enable-doxygen-dot was given.
16155if test "${enable_doxygen_dot+set}" = set; then :
16156 enableval=$enable_doxygen_dot;
16157case "$enableval" in
16158#(
16159y|Y|yes|Yes|YES)
16160 DX_FLAG_dot=1
16161
16162
16163test "$DX_FLAG_doc" = "1" \
16164|| as_fn_error $? "doxygen-dot requires doxygen-dot" "$LINENO" 5
16165
16166;; #(
16167n|N|no|No|NO)
16168 DX_FLAG_dot=0
16169
16170;; #(
16171*)
16172 as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
16173;;
16174esac
16175
16176else
16177
16178DX_FLAG_dot=0
16179
16180
16181test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
16182
16183
16184
16185fi
16186
16187if test "$DX_FLAG_dot" = 1; then
16188
16189if test -n "$ac_tool_prefix"; then
16190 # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
16191set dummy ${ac_tool_prefix}dot; ac_word=$2
16192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16193$as_echo_n "checking for $ac_word... " >&6; }
16194if ${ac_cv_path_DX_DOT+:} false; then :
16195 $as_echo_n "(cached) " >&6
16196else
16197 case $DX_DOT in
16198 [\\/]* | ?:[\\/]*)
16199 ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
16200 ;;
16201 *)
16202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16203for as_dir in $PATH
16204do
16205 IFS=$as_save_IFS
16206 test -z "$as_dir" && as_dir=.
16207 for ac_exec_ext in '' $ac_executable_extensions; do
16208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16209 ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
16210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16211 break 2
16212 fi
16213done
16214 done
16215IFS=$as_save_IFS
16216
16217 ;;
16218esac
16219fi
16220DX_DOT=$ac_cv_path_DX_DOT
16221if test -n "$DX_DOT"; then
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
16223$as_echo "$DX_DOT" >&6; }
16224else
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16226$as_echo "no" >&6; }
16227fi
16228
16229
16230fi
16231if test -z "$ac_cv_path_DX_DOT"; then
16232 ac_pt_DX_DOT=$DX_DOT
16233 # Extract the first word of "dot", so it can be a program name with args.
16234set dummy dot; ac_word=$2
16235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16236$as_echo_n "checking for $ac_word... " >&6; }
16237if ${ac_cv_path_ac_pt_DX_DOT+:} false; then :
16238 $as_echo_n "(cached) " >&6
16239else
16240 case $ac_pt_DX_DOT in
16241 [\\/]* | ?:[\\/]*)
16242 ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
16243 ;;
16244 *)
16245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16246for as_dir in $PATH
16247do
16248 IFS=$as_save_IFS
16249 test -z "$as_dir" && as_dir=.
16250 for ac_exec_ext in '' $ac_executable_extensions; do
16251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16252 ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
16253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16254 break 2
16255 fi
16256done
16257 done
16258IFS=$as_save_IFS
16259
16260 ;;
16261esac
16262fi
16263ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
16264if test -n "$ac_pt_DX_DOT"; then
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
16266$as_echo "$ac_pt_DX_DOT" >&6; }
16267else
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16269$as_echo "no" >&6; }
16270fi
16271
16272 if test "x$ac_pt_DX_DOT" = x; then
16273 DX_DOT=""
16274 else
16275 case $cross_compiling:$ac_tool_warned in
16276yes:)
16277{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16278$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16279ac_tool_warned=yes ;;
16280esac
16281 DX_DOT=$ac_pt_DX_DOT
16282 fi
16283else
16284 DX_DOT="$ac_cv_path_DX_DOT"
16285fi
16286
16287if test "$DX_FLAG_dot$DX_DOT" = 1; then
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
16289$as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
16290 DX_FLAG_dot=0
16291
16292fi
16293
16294 :
16295fi
16296 if test "$DX_FLAG_dot" = 1; then
16297 DX_COND_dot_TRUE=
16298 DX_COND_dot_FALSE='#'
16299else
16300 DX_COND_dot_TRUE='#'
16301 DX_COND_dot_FALSE=
16302fi
16303
16304if test "$DX_FLAG_dot" = 1; then
16305 DX_ENV="$DX_ENV HAVE_DOT='YES'"
16306
16307 DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
16308
16309 :
16310else
16311 DX_ENV="$DX_ENV HAVE_DOT='NO'"
16312
16313 :
16314fi
16315
16316
16317# Man pages generation:
16318
16319
16320
16321 # Check whether --enable-doxygen-man was given.
16322if test "${enable_doxygen_man+set}" = set; then :
16323 enableval=$enable_doxygen_man;
16324case "$enableval" in
16325#(
16326y|Y|yes|Yes|YES)
16327 DX_FLAG_man=1
16328
16329
16330test "$DX_FLAG_doc" = "1" \
16331|| as_fn_error $? "doxygen-man requires doxygen-man" "$LINENO" 5
16332
16333;; #(
16334n|N|no|No|NO)
16335 DX_FLAG_man=0
16336
16337;; #(
16338*)
16339 as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
16340;;
16341esac
16342
16343else
16344
16345DX_FLAG_man=0
16346
16347
16348test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
16349
16350
16351
16352fi
16353
16354if test "$DX_FLAG_man" = 1; then
16355
16356 :
16357fi
16358 if test "$DX_FLAG_man" = 1; then
16359 DX_COND_man_TRUE=
16360 DX_COND_man_FALSE='#'
16361else
16362 DX_COND_man_TRUE='#'
16363 DX_COND_man_FALSE=
16364fi
16365
16366if test "$DX_FLAG_man" = 1; then
16367 DX_ENV="$DX_ENV GENERATE_MAN='YES'"
16368
16369 :
16370else
16371 DX_ENV="$DX_ENV GENERATE_MAN='NO'"
16372
16373 :
16374fi
16375
16376
16377# RTF file generation:
16378
16379
16380
16381 # Check whether --enable-doxygen-rtf was given.
16382if test "${enable_doxygen_rtf+set}" = set; then :
16383 enableval=$enable_doxygen_rtf;
16384case "$enableval" in
16385#(
16386y|Y|yes|Yes|YES)
16387 DX_FLAG_rtf=1
16388
16389
16390test "$DX_FLAG_doc" = "1" \
16391|| as_fn_error $? "doxygen-rtf requires doxygen-rtf" "$LINENO" 5
16392
16393;; #(
16394n|N|no|No|NO)
16395 DX_FLAG_rtf=0
16396
16397;; #(
16398*)
16399 as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
16400;;
16401esac
16402
16403else
16404
16405DX_FLAG_rtf=0
16406
16407
16408test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
16409
16410
16411
16412fi
16413
16414if test "$DX_FLAG_rtf" = 1; then
16415
16416 :
16417fi
16418 if test "$DX_FLAG_rtf" = 1; then
16419 DX_COND_rtf_TRUE=
16420 DX_COND_rtf_FALSE='#'
16421else
16422 DX_COND_rtf_TRUE='#'
16423 DX_COND_rtf_FALSE=
16424fi
16425
16426if test "$DX_FLAG_rtf" = 1; then
16427 DX_ENV="$DX_ENV GENERATE_RTF='YES'"
16428
16429 :
16430else
16431 DX_ENV="$DX_ENV GENERATE_RTF='NO'"
16432
16433 :
16434fi
16435
16436
16437# XML file generation:
16438
16439
16440
16441 # Check whether --enable-doxygen-xml was given.
16442if test "${enable_doxygen_xml+set}" = set; then :
16443 enableval=$enable_doxygen_xml;
16444case "$enableval" in
16445#(
16446y|Y|yes|Yes|YES)
16447 DX_FLAG_xml=1
16448
16449
16450test "$DX_FLAG_doc" = "1" \
16451|| as_fn_error $? "doxygen-xml requires doxygen-xml" "$LINENO" 5
16452
16453;; #(
16454n|N|no|No|NO)
16455 DX_FLAG_xml=0
16456
16457;; #(
16458*)
16459 as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
16460;;
16461esac
16462
16463else
16464
16465DX_FLAG_xml=0
16466
16467
16468test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
16469
16470
16471
16472fi
16473
16474if test "$DX_FLAG_xml" = 1; then
16475
16476 :
16477fi
16478 if test "$DX_FLAG_xml" = 1; then
16479 DX_COND_xml_TRUE=
16480 DX_COND_xml_FALSE='#'
16481else
16482 DX_COND_xml_TRUE='#'
16483 DX_COND_xml_FALSE=
16484fi
16485
16486if test "$DX_FLAG_xml" = 1; then
16487 DX_ENV="$DX_ENV GENERATE_XML='YES'"
16488
16489 :
16490else
16491 DX_ENV="$DX_ENV GENERATE_XML='NO'"
16492
16493 :
16494fi
16495
16496
16497# (Compressed) HTML help generation:
16498
16499
16500
16501 # Check whether --enable-doxygen-chm was given.
16502if test "${enable_doxygen_chm+set}" = set; then :
16503 enableval=$enable_doxygen_chm;
16504case "$enableval" in
16505#(
16506y|Y|yes|Yes|YES)
16507 DX_FLAG_chm=1
16508
16509
16510test "$DX_FLAG_doc" = "1" \
16511|| as_fn_error $? "doxygen-chm requires doxygen-chm" "$LINENO" 5
16512
16513;; #(
16514n|N|no|No|NO)
16515 DX_FLAG_chm=0
16516
16517;; #(
16518*)
16519 as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
16520;;
16521esac
16522
16523else
16524
16525DX_FLAG_chm=0
16526
16527
16528test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
16529
16530
16531
16532fi
16533
16534if test "$DX_FLAG_chm" = 1; then
16535
16536if test -n "$ac_tool_prefix"; then
16537 # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
16538set dummy ${ac_tool_prefix}hhc; ac_word=$2
16539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16540$as_echo_n "checking for $ac_word... " >&6; }
16541if ${ac_cv_path_DX_HHC+:} false; then :
16542 $as_echo_n "(cached) " >&6
16543else
16544 case $DX_HHC in
16545 [\\/]* | ?:[\\/]*)
16546 ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
16547 ;;
16548 *)
16549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16550for as_dir in $PATH
16551do
16552 IFS=$as_save_IFS
16553 test -z "$as_dir" && as_dir=.
16554 for ac_exec_ext in '' $ac_executable_extensions; do
16555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16556 ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
16557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16558 break 2
16559 fi
16560done
16561 done
16562IFS=$as_save_IFS
16563
16564 ;;
16565esac
16566fi
16567DX_HHC=$ac_cv_path_DX_HHC
16568if test -n "$DX_HHC"; then
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
16570$as_echo "$DX_HHC" >&6; }
16571else
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16573$as_echo "no" >&6; }
16574fi
16575
16576
16577fi
16578if test -z "$ac_cv_path_DX_HHC"; then
16579 ac_pt_DX_HHC=$DX_HHC
16580 # Extract the first word of "hhc", so it can be a program name with args.
16581set dummy hhc; ac_word=$2
16582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16583$as_echo_n "checking for $ac_word... " >&6; }
16584if ${ac_cv_path_ac_pt_DX_HHC+:} false; then :
16585 $as_echo_n "(cached) " >&6
16586else
16587 case $ac_pt_DX_HHC in
16588 [\\/]* | ?:[\\/]*)
16589 ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
16590 ;;
16591 *)
16592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16593for as_dir in $PATH
16594do
16595 IFS=$as_save_IFS
16596 test -z "$as_dir" && as_dir=.
16597 for ac_exec_ext in '' $ac_executable_extensions; do
16598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16599 ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
16600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16601 break 2
16602 fi
16603done
16604 done
16605IFS=$as_save_IFS
16606
16607 ;;
16608esac
16609fi
16610ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
16611if test -n "$ac_pt_DX_HHC"; then
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
16613$as_echo "$ac_pt_DX_HHC" >&6; }
16614else
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16616$as_echo "no" >&6; }
16617fi
16618
16619 if test "x$ac_pt_DX_HHC" = x; then
16620 DX_HHC=""
16621 else
16622 case $cross_compiling:$ac_tool_warned in
16623yes:)
16624{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16625$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16626ac_tool_warned=yes ;;
16627esac
16628 DX_HHC=$ac_pt_DX_HHC
16629 fi
16630else
16631 DX_HHC="$ac_cv_path_DX_HHC"
16632fi
16633
16634if test "$DX_FLAG_chm$DX_HHC" = 1; then
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
16636$as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
16637 DX_FLAG_chm=0
16638
16639fi
16640
16641 :
16642fi
16643 if test "$DX_FLAG_chm" = 1; then
16644 DX_COND_chm_TRUE=
16645 DX_COND_chm_FALSE='#'
16646else
16647 DX_COND_chm_TRUE='#'
16648 DX_COND_chm_FALSE=
16649fi
16650
16651if test "$DX_FLAG_chm" = 1; then
16652 DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
16653
16654 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
16655
16656 DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
16657
16658 :
16659else
16660 DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
16661
16662 :
16663fi
16664
16665
16666# Seperate CHI file generation.
16667
16668
16669
16670 # Check whether --enable-doxygen-chi was given.
16671if test "${enable_doxygen_chi+set}" = set; then :
16672 enableval=$enable_doxygen_chi;
16673case "$enableval" in
16674#(
16675y|Y|yes|Yes|YES)
16676 DX_FLAG_chi=1
16677
16678
16679test "$DX_FLAG_chm" = "1" \
16680|| as_fn_error $? "doxygen-chi requires doxygen-chi" "$LINENO" 5
16681
16682;; #(
16683n|N|no|No|NO)
16684 DX_FLAG_chi=0
16685
16686;; #(
16687*)
16688 as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
16689;;
16690esac
16691
16692else
16693
16694DX_FLAG_chi=0
16695
16696
16697test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
16698
16699
16700
16701fi
16702
16703if test "$DX_FLAG_chi" = 1; then
16704
16705 :
16706fi
16707 if test "$DX_FLAG_chi" = 1; then
16708 DX_COND_chi_TRUE=
16709 DX_COND_chi_FALSE='#'
16710else
16711 DX_COND_chi_TRUE='#'
16712 DX_COND_chi_FALSE=
16713fi
16714
16715if test "$DX_FLAG_chi" = 1; then
16716 DX_ENV="$DX_ENV GENERATE_CHI='YES'"
16717
16718 :
16719else
16720 DX_ENV="$DX_ENV GENERATE_CHI='NO'"
16721
16722 :
16723fi
16724
16725
16726# Plain HTML pages generation:
16727
16728
16729
16730 # Check whether --enable-doxygen-html was given.
16731if test "${enable_doxygen_html+set}" = set; then :
16732 enableval=$enable_doxygen_html;
16733case "$enableval" in
16734#(
16735y|Y|yes|Yes|YES)
16736 DX_FLAG_html=1
16737
16738
16739test "$DX_FLAG_doc" = "1" \
16740|| as_fn_error $? "doxygen-html requires doxygen-html" "$LINENO" 5
16741
16742test "$DX_FLAG_chm" = "0" \
16743|| as_fn_error $? "doxygen-html contradicts doxygen-html" "$LINENO" 5
16744
16745;; #(
16746n|N|no|No|NO)
16747 DX_FLAG_html=0
16748
16749;; #(
16750*)
16751 as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
16752;;
16753esac
16754
16755else
16756
16757DX_FLAG_html=1
16758
16759
16760test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
16761
16762
16763test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
16764
16765
16766
16767fi
16768
16769if test "$DX_FLAG_html" = 1; then
16770
16771 :
16772fi
16773 if test "$DX_FLAG_html" = 1; then
16774 DX_COND_html_TRUE=
16775 DX_COND_html_FALSE='#'
16776else
16777 DX_COND_html_TRUE='#'
16778 DX_COND_html_FALSE=
16779fi
16780
16781if test "$DX_FLAG_html" = 1; then
16782 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
16783
16784 :
16785else
16786 test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
16787
16788 :
16789fi
16790
16791
16792# PostScript file generation:
16793
16794
16795
16796 # Check whether --enable-doxygen-ps was given.
16797if test "${enable_doxygen_ps+set}" = set; then :
16798 enableval=$enable_doxygen_ps;
16799case "$enableval" in
16800#(
16801y|Y|yes|Yes|YES)
16802 DX_FLAG_ps=1
16803
16804
16805test "$DX_FLAG_doc" = "1" \
16806|| as_fn_error $? "doxygen-ps requires doxygen-ps" "$LINENO" 5
16807
16808;; #(
16809n|N|no|No|NO)
16810 DX_FLAG_ps=0
16811
16812;; #(
16813*)
16814 as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
16815;;
16816esac
16817
16818else
16819
16820DX_FLAG_ps=0
16821
16822
16823test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
16824
16825
16826
16827fi
16828
16829if test "$DX_FLAG_ps" = 1; then
16830
16831if test -n "$ac_tool_prefix"; then
16832 # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
16833set dummy ${ac_tool_prefix}latex; ac_word=$2
16834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16835$as_echo_n "checking for $ac_word... " >&6; }
16836if ${ac_cv_path_DX_LATEX+:} false; then :
16837 $as_echo_n "(cached) " >&6
16838else
16839 case $DX_LATEX in
16840 [\\/]* | ?:[\\/]*)
16841 ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
16842 ;;
16843 *)
16844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16845for as_dir in $PATH
16846do
16847 IFS=$as_save_IFS
16848 test -z "$as_dir" && as_dir=.
16849 for ac_exec_ext in '' $ac_executable_extensions; do
16850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16851 ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
16852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16853 break 2
16854 fi
16855done
16856 done
16857IFS=$as_save_IFS
16858
16859 ;;
16860esac
16861fi
16862DX_LATEX=$ac_cv_path_DX_LATEX
16863if test -n "$DX_LATEX"; then
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
16865$as_echo "$DX_LATEX" >&6; }
16866else
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16868$as_echo "no" >&6; }
16869fi
16870
16871
16872fi
16873if test -z "$ac_cv_path_DX_LATEX"; then
16874 ac_pt_DX_LATEX=$DX_LATEX
16875 # Extract the first word of "latex", so it can be a program name with args.
16876set dummy latex; ac_word=$2
16877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16878$as_echo_n "checking for $ac_word... " >&6; }
16879if ${ac_cv_path_ac_pt_DX_LATEX+:} false; then :
16880 $as_echo_n "(cached) " >&6
16881else
16882 case $ac_pt_DX_LATEX in
16883 [\\/]* | ?:[\\/]*)
16884 ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
16885 ;;
16886 *)
16887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16888for as_dir in $PATH
16889do
16890 IFS=$as_save_IFS
16891 test -z "$as_dir" && as_dir=.
16892 for ac_exec_ext in '' $ac_executable_extensions; do
16893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16894 ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
16895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16896 break 2
16897 fi
16898done
16899 done
16900IFS=$as_save_IFS
16901
16902 ;;
16903esac
16904fi
16905ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
16906if test -n "$ac_pt_DX_LATEX"; then
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
16908$as_echo "$ac_pt_DX_LATEX" >&6; }
16909else
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16911$as_echo "no" >&6; }
16912fi
16913
16914 if test "x$ac_pt_DX_LATEX" = x; then
16915 DX_LATEX=""
16916 else
16917 case $cross_compiling:$ac_tool_warned in
16918yes:)
16919{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16920$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16921ac_tool_warned=yes ;;
16922esac
16923 DX_LATEX=$ac_pt_DX_LATEX
16924 fi
16925else
16926 DX_LATEX="$ac_cv_path_DX_LATEX"
16927fi
16928
16929if test "$DX_FLAG_ps$DX_LATEX" = 1; then
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
16931$as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
16932 DX_FLAG_ps=0
16933
16934fi
16935
16936
16937if test -n "$ac_tool_prefix"; then
16938 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
16939set dummy ${ac_tool_prefix}makeindex; ac_word=$2
16940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16941$as_echo_n "checking for $ac_word... " >&6; }
16942if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
16943 $as_echo_n "(cached) " >&6
16944else
16945 case $DX_MAKEINDEX in
16946 [\\/]* | ?:[\\/]*)
16947 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
16948 ;;
16949 *)
16950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16951for as_dir in $PATH
16952do
16953 IFS=$as_save_IFS
16954 test -z "$as_dir" && as_dir=.
16955 for ac_exec_ext in '' $ac_executable_extensions; do
16956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16957 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
16958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16959 break 2
16960 fi
16961done
16962 done
16963IFS=$as_save_IFS
16964
16965 ;;
16966esac
16967fi
16968DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
16969if test -n "$DX_MAKEINDEX"; then
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
16971$as_echo "$DX_MAKEINDEX" >&6; }
16972else
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16974$as_echo "no" >&6; }
16975fi
16976
16977
16978fi
16979if test -z "$ac_cv_path_DX_MAKEINDEX"; then
16980 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
16981 # Extract the first word of "makeindex", so it can be a program name with args.
16982set dummy makeindex; ac_word=$2
16983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16984$as_echo_n "checking for $ac_word... " >&6; }
16985if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
16986 $as_echo_n "(cached) " >&6
16987else
16988 case $ac_pt_DX_MAKEINDEX in
16989 [\\/]* | ?:[\\/]*)
16990 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
16991 ;;
16992 *)
16993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16994for as_dir in $PATH
16995do
16996 IFS=$as_save_IFS
16997 test -z "$as_dir" && as_dir=.
16998 for ac_exec_ext in '' $ac_executable_extensions; do
16999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17000 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
17001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17002 break 2
17003 fi
17004done
17005 done
17006IFS=$as_save_IFS
17007
17008 ;;
17009esac
17010fi
17011ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
17012if test -n "$ac_pt_DX_MAKEINDEX"; then
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
17014$as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
17015else
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17017$as_echo "no" >&6; }
17018fi
17019
17020 if test "x$ac_pt_DX_MAKEINDEX" = x; then
17021 DX_MAKEINDEX=""
17022 else
17023 case $cross_compiling:$ac_tool_warned in
17024yes:)
17025{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17027ac_tool_warned=yes ;;
17028esac
17029 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
17030 fi
17031else
17032 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
17033fi
17034
17035if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
17037$as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
17038 DX_FLAG_ps=0
17039
17040fi
17041
17042
17043if test -n "$ac_tool_prefix"; then
17044 # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
17045set dummy ${ac_tool_prefix}dvips; ac_word=$2
17046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17047$as_echo_n "checking for $ac_word... " >&6; }
17048if ${ac_cv_path_DX_DVIPS+:} false; then :
17049 $as_echo_n "(cached) " >&6
17050else
17051 case $DX_DVIPS in
17052 [\\/]* | ?:[\\/]*)
17053 ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
17054 ;;
17055 *)
17056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17057for as_dir in $PATH
17058do
17059 IFS=$as_save_IFS
17060 test -z "$as_dir" && as_dir=.
17061 for ac_exec_ext in '' $ac_executable_extensions; do
17062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17063 ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
17064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17065 break 2
17066 fi
17067done
17068 done
17069IFS=$as_save_IFS
17070
17071 ;;
17072esac
17073fi
17074DX_DVIPS=$ac_cv_path_DX_DVIPS
17075if test -n "$DX_DVIPS"; then
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
17077$as_echo "$DX_DVIPS" >&6; }
17078else
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17080$as_echo "no" >&6; }
17081fi
17082
17083
17084fi
17085if test -z "$ac_cv_path_DX_DVIPS"; then
17086 ac_pt_DX_DVIPS=$DX_DVIPS
17087 # Extract the first word of "dvips", so it can be a program name with args.
17088set dummy dvips; ac_word=$2
17089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17090$as_echo_n "checking for $ac_word... " >&6; }
17091if ${ac_cv_path_ac_pt_DX_DVIPS+:} false; then :
17092 $as_echo_n "(cached) " >&6
17093else
17094 case $ac_pt_DX_DVIPS in
17095 [\\/]* | ?:[\\/]*)
17096 ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
17097 ;;
17098 *)
17099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17100for as_dir in $PATH
17101do
17102 IFS=$as_save_IFS
17103 test -z "$as_dir" && as_dir=.
17104 for ac_exec_ext in '' $ac_executable_extensions; do
17105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17106 ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
17107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17108 break 2
17109 fi
17110done
17111 done
17112IFS=$as_save_IFS
17113
17114 ;;
17115esac
17116fi
17117ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
17118if test -n "$ac_pt_DX_DVIPS"; then
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
17120$as_echo "$ac_pt_DX_DVIPS" >&6; }
17121else
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17123$as_echo "no" >&6; }
17124fi
17125
17126 if test "x$ac_pt_DX_DVIPS" = x; then
17127 DX_DVIPS=""
17128 else
17129 case $cross_compiling:$ac_tool_warned in
17130yes:)
17131{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17132$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17133ac_tool_warned=yes ;;
17134esac
17135 DX_DVIPS=$ac_pt_DX_DVIPS
17136 fi
17137else
17138 DX_DVIPS="$ac_cv_path_DX_DVIPS"
17139fi
17140
17141if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
17143$as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
17144 DX_FLAG_ps=0
17145
17146fi
17147
17148
17149if test -n "$ac_tool_prefix"; then
17150 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
17151set dummy ${ac_tool_prefix}egrep; ac_word=$2
17152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17153$as_echo_n "checking for $ac_word... " >&6; }
17154if ${ac_cv_path_DX_EGREP+:} false; then :
17155 $as_echo_n "(cached) " >&6
17156else
17157 case $DX_EGREP in
17158 [\\/]* | ?:[\\/]*)
17159 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
17160 ;;
17161 *)
17162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17163for as_dir in $PATH
17164do
17165 IFS=$as_save_IFS
17166 test -z "$as_dir" && as_dir=.
17167 for ac_exec_ext in '' $ac_executable_extensions; do
17168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17169 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
17170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17171 break 2
17172 fi
17173done
17174 done
17175IFS=$as_save_IFS
17176
17177 ;;
17178esac
17179fi
17180DX_EGREP=$ac_cv_path_DX_EGREP
17181if test -n "$DX_EGREP"; then
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
17183$as_echo "$DX_EGREP" >&6; }
17184else
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17186$as_echo "no" >&6; }
17187fi
17188
17189
17190fi
17191if test -z "$ac_cv_path_DX_EGREP"; then
17192 ac_pt_DX_EGREP=$DX_EGREP
17193 # Extract the first word of "egrep", so it can be a program name with args.
17194set dummy egrep; ac_word=$2
17195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17196$as_echo_n "checking for $ac_word... " >&6; }
17197if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
17198 $as_echo_n "(cached) " >&6
17199else
17200 case $ac_pt_DX_EGREP in
17201 [\\/]* | ?:[\\/]*)
17202 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
17203 ;;
17204 *)
17205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17206for as_dir in $PATH
17207do
17208 IFS=$as_save_IFS
17209 test -z "$as_dir" && as_dir=.
17210 for ac_exec_ext in '' $ac_executable_extensions; do
17211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17212 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
17213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17214 break 2
17215 fi
17216done
17217 done
17218IFS=$as_save_IFS
17219
17220 ;;
17221esac
17222fi
17223ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
17224if test -n "$ac_pt_DX_EGREP"; then
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
17226$as_echo "$ac_pt_DX_EGREP" >&6; }
17227else
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17229$as_echo "no" >&6; }
17230fi
17231
17232 if test "x$ac_pt_DX_EGREP" = x; then
17233 DX_EGREP=""
17234 else
17235 case $cross_compiling:$ac_tool_warned in
17236yes:)
17237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17239ac_tool_warned=yes ;;
17240esac
17241 DX_EGREP=$ac_pt_DX_EGREP
17242 fi
17243else
17244 DX_EGREP="$ac_cv_path_DX_EGREP"
17245fi
17246
17247if test "$DX_FLAG_ps$DX_EGREP" = 1; then
17248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
17249$as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
17250 DX_FLAG_ps=0
17251
17252fi
17253
17254 :
17255fi
17256 if test "$DX_FLAG_ps" = 1; then
17257 DX_COND_ps_TRUE=
17258 DX_COND_ps_FALSE='#'
17259else
17260 DX_COND_ps_TRUE='#'
17261 DX_COND_ps_FALSE=
17262fi
17263
17264if test "$DX_FLAG_ps" = 1; then
17265
17266 :
17267else
17268
17269 :
17270fi
17271
17272
17273# PDF file generation:
17274
17275
17276
17277 # Check whether --enable-doxygen-pdf was given.
17278if test "${enable_doxygen_pdf+set}" = set; then :
17279 enableval=$enable_doxygen_pdf;
17280case "$enableval" in
17281#(
17282y|Y|yes|Yes|YES)
17283 DX_FLAG_pdf=1
17284
17285
17286test "$DX_FLAG_doc" = "1" \
17287|| as_fn_error $? "doxygen-pdf requires doxygen-pdf" "$LINENO" 5
17288
17289;; #(
17290n|N|no|No|NO)
17291 DX_FLAG_pdf=0
17292
17293;; #(
17294*)
17295 as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
17296;;
17297esac
17298
17299else
17300
17301DX_FLAG_pdf=0
17302
17303
17304test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
17305
17306
17307
17308fi
17309
17310if test "$DX_FLAG_pdf" = 1; then
17311
17312if test -n "$ac_tool_prefix"; then
17313 # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
17314set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
17315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17316$as_echo_n "checking for $ac_word... " >&6; }
17317if ${ac_cv_path_DX_PDFLATEX+:} false; then :
17318 $as_echo_n "(cached) " >&6
17319else
17320 case $DX_PDFLATEX in
17321 [\\/]* | ?:[\\/]*)
17322 ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
17323 ;;
17324 *)
17325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17326for as_dir in $PATH
17327do
17328 IFS=$as_save_IFS
17329 test -z "$as_dir" && as_dir=.
17330 for ac_exec_ext in '' $ac_executable_extensions; do
17331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17332 ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
17333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17334 break 2
17335 fi
17336done
17337 done
17338IFS=$as_save_IFS
17339
17340 ;;
17341esac
17342fi
17343DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
17344if test -n "$DX_PDFLATEX"; then
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
17346$as_echo "$DX_PDFLATEX" >&6; }
17347else
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17349$as_echo "no" >&6; }
17350fi
17351
17352
17353fi
17354if test -z "$ac_cv_path_DX_PDFLATEX"; then
17355 ac_pt_DX_PDFLATEX=$DX_PDFLATEX
17356 # Extract the first word of "pdflatex", so it can be a program name with args.
17357set dummy pdflatex; ac_word=$2
17358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17359$as_echo_n "checking for $ac_word... " >&6; }
17360if ${ac_cv_path_ac_pt_DX_PDFLATEX+:} false; then :
17361 $as_echo_n "(cached) " >&6
17362else
17363 case $ac_pt_DX_PDFLATEX in
17364 [\\/]* | ?:[\\/]*)
17365 ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
17366 ;;
17367 *)
17368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17369for as_dir in $PATH
17370do
17371 IFS=$as_save_IFS
17372 test -z "$as_dir" && as_dir=.
17373 for ac_exec_ext in '' $ac_executable_extensions; do
17374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17375 ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
17376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17377 break 2
17378 fi
17379done
17380 done
17381IFS=$as_save_IFS
17382
17383 ;;
17384esac
17385fi
17386ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
17387if test -n "$ac_pt_DX_PDFLATEX"; then
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
17389$as_echo "$ac_pt_DX_PDFLATEX" >&6; }
17390else
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17392$as_echo "no" >&6; }
17393fi
17394
17395 if test "x$ac_pt_DX_PDFLATEX" = x; then
17396 DX_PDFLATEX=""
17397 else
17398 case $cross_compiling:$ac_tool_warned in
17399yes:)
17400{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17402ac_tool_warned=yes ;;
17403esac
17404 DX_PDFLATEX=$ac_pt_DX_PDFLATEX
17405 fi
17406else
17407 DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
17408fi
17409
17410if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
17412$as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
17413 DX_FLAG_pdf=0
17414
17415fi
17416
17417
17418if test -n "$ac_tool_prefix"; then
17419 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
17420set dummy ${ac_tool_prefix}makeindex; ac_word=$2
17421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17422$as_echo_n "checking for $ac_word... " >&6; }
17423if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
17424 $as_echo_n "(cached) " >&6
17425else
17426 case $DX_MAKEINDEX in
17427 [\\/]* | ?:[\\/]*)
17428 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
17429 ;;
17430 *)
17431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17432for as_dir in $PATH
17433do
17434 IFS=$as_save_IFS
17435 test -z "$as_dir" && as_dir=.
17436 for ac_exec_ext in '' $ac_executable_extensions; do
17437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17438 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
17439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17440 break 2
17441 fi
17442done
17443 done
17444IFS=$as_save_IFS
17445
17446 ;;
17447esac
17448fi
17449DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
17450if test -n "$DX_MAKEINDEX"; then
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
17452$as_echo "$DX_MAKEINDEX" >&6; }
17453else
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17455$as_echo "no" >&6; }
17456fi
17457
17458
17459fi
17460if test -z "$ac_cv_path_DX_MAKEINDEX"; then
17461 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
17462 # Extract the first word of "makeindex", so it can be a program name with args.
17463set dummy makeindex; ac_word=$2
17464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17465$as_echo_n "checking for $ac_word... " >&6; }
17466if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
17467 $as_echo_n "(cached) " >&6
17468else
17469 case $ac_pt_DX_MAKEINDEX in
17470 [\\/]* | ?:[\\/]*)
17471 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
17472 ;;
17473 *)
17474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17475for as_dir in $PATH
17476do
17477 IFS=$as_save_IFS
17478 test -z "$as_dir" && as_dir=.
17479 for ac_exec_ext in '' $ac_executable_extensions; do
17480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17481 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
17482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17483 break 2
17484 fi
17485done
17486 done
17487IFS=$as_save_IFS
17488
17489 ;;
17490esac
17491fi
17492ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
17493if test -n "$ac_pt_DX_MAKEINDEX"; then
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
17495$as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
17496else
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17498$as_echo "no" >&6; }
17499fi
17500
17501 if test "x$ac_pt_DX_MAKEINDEX" = x; then
17502 DX_MAKEINDEX=""
17503 else
17504 case $cross_compiling:$ac_tool_warned in
17505yes:)
17506{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17507$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17508ac_tool_warned=yes ;;
17509esac
17510 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
17511 fi
17512else
17513 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
17514fi
17515
17516if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
17518$as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
17519 DX_FLAG_pdf=0
17520
17521fi
17522
17523
17524if test -n "$ac_tool_prefix"; then
17525 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
17526set dummy ${ac_tool_prefix}egrep; ac_word=$2
17527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17528$as_echo_n "checking for $ac_word... " >&6; }
17529if ${ac_cv_path_DX_EGREP+:} false; then :
17530 $as_echo_n "(cached) " >&6
17531else
17532 case $DX_EGREP in
17533 [\\/]* | ?:[\\/]*)
17534 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
17535 ;;
17536 *)
17537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17538for as_dir in $PATH
17539do
17540 IFS=$as_save_IFS
17541 test -z "$as_dir" && as_dir=.
17542 for ac_exec_ext in '' $ac_executable_extensions; do
17543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17544 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
17545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17546 break 2
17547 fi
17548done
17549 done
17550IFS=$as_save_IFS
17551
17552 ;;
17553esac
17554fi
17555DX_EGREP=$ac_cv_path_DX_EGREP
17556if test -n "$DX_EGREP"; then
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
17558$as_echo "$DX_EGREP" >&6; }
17559else
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17561$as_echo "no" >&6; }
17562fi
17563
17564
17565fi
17566if test -z "$ac_cv_path_DX_EGREP"; then
17567 ac_pt_DX_EGREP=$DX_EGREP
17568 # Extract the first word of "egrep", so it can be a program name with args.
17569set dummy egrep; ac_word=$2
17570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17571$as_echo_n "checking for $ac_word... " >&6; }
17572if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
17573 $as_echo_n "(cached) " >&6
17574else
17575 case $ac_pt_DX_EGREP in
17576 [\\/]* | ?:[\\/]*)
17577 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
17578 ;;
17579 *)
17580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17581for as_dir in $PATH
17582do
17583 IFS=$as_save_IFS
17584 test -z "$as_dir" && as_dir=.
17585 for ac_exec_ext in '' $ac_executable_extensions; do
17586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17587 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
17588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17589 break 2
17590 fi
17591done
17592 done
17593IFS=$as_save_IFS
17594
17595 ;;
17596esac
17597fi
17598ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
17599if test -n "$ac_pt_DX_EGREP"; then
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
17601$as_echo "$ac_pt_DX_EGREP" >&6; }
17602else
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17604$as_echo "no" >&6; }
17605fi
17606
17607 if test "x$ac_pt_DX_EGREP" = x; then
17608 DX_EGREP=""
17609 else
17610 case $cross_compiling:$ac_tool_warned in
17611yes:)
17612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17614ac_tool_warned=yes ;;
17615esac
17616 DX_EGREP=$ac_pt_DX_EGREP
17617 fi
17618else
17619 DX_EGREP="$ac_cv_path_DX_EGREP"
17620fi
17621
17622if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
17624$as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
17625 DX_FLAG_pdf=0
17626
17627fi
17628
17629 :
17630fi
17631 if test "$DX_FLAG_pdf" = 1; then
17632 DX_COND_pdf_TRUE=
17633 DX_COND_pdf_FALSE='#'
17634else
17635 DX_COND_pdf_TRUE='#'
17636 DX_COND_pdf_FALSE=
17637fi
17638
17639if test "$DX_FLAG_pdf" = 1; then
17640
17641 :
17642else
17643
17644 :
17645fi
17646
17647
17648# LaTeX generation for PS and/or PDF:
17649 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
17650 DX_COND_latex_TRUE=
17651 DX_COND_latex_FALSE='#'
17652else
17653 DX_COND_latex_TRUE='#'
17654 DX_COND_latex_FALSE=
17655fi
17656
17657if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
17658 DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
17659
17660else
17661 DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
17662
17663fi
17664
17665# Paper size for PS and/or PDF:
17666
17667case "$DOXYGEN_PAPER_SIZE" in
17668#(
17669"")
17670 DOXYGEN_PAPER_SIZE=""
17671
17672;; #(
17673a4wide|a4|letter|legal|executive)
17674 DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
17675
17676;; #(
17677*)
17678 as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
17679;;
17680esac
17681
17682#For debugging:
17683#echo DX_FLAG_doc=$DX_FLAG_doc
17684#echo DX_FLAG_dot=$DX_FLAG_dot
17685#echo DX_FLAG_man=$DX_FLAG_man
17686#echo DX_FLAG_html=$DX_FLAG_html
17687#echo DX_FLAG_chm=$DX_FLAG_chm
17688#echo DX_FLAG_chi=$DX_FLAG_chi
17689#echo DX_FLAG_rtf=$DX_FLAG_rtf
17690#echo DX_FLAG_xml=$DX_FLAG_xml
17691#echo DX_FLAG_pdf=$DX_FLAG_pdf
17692#echo DX_FLAG_ps=$DX_FLAG_ps
17693#echo DX_ENV=$DX_ENV
17694
17695
Jeff Thompson39128c62013-06-19 14:08:51 -070017696ac_config_files="$ac_config_files Makefile"
17697
17698cat >confcache <<\_ACEOF
17699# This file is a shell script that caches the results of configure
17700# tests run on this system so they can be shared between configure
17701# scripts and configure runs, see configure's option --config-cache.
17702# It is not useful on other systems. If it contains results you don't
17703# want to keep, you may remove or edit it.
17704#
17705# config.status only pays attention to the cache file if you give it
17706# the --recheck option to rerun configure.
17707#
17708# `ac_cv_env_foo' variables (set or unset) will be overridden when
17709# loading this file, other *unset* `ac_cv_foo' will be assigned the
17710# following values.
17711
17712_ACEOF
17713
17714# The following way of writing the cache mishandles newlines in values,
17715# but we know of no workaround that is simple, portable, and efficient.
17716# So, we kill variables containing newlines.
17717# Ultrix sh set writes to stderr and can't be redirected directly,
17718# and sets the high bit in the cache file unless we assign to the vars.
17719(
17720 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17721 eval ac_val=\$$ac_var
17722 case $ac_val in #(
17723 *${as_nl}*)
17724 case $ac_var in #(
17725 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17726$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17727 esac
17728 case $ac_var in #(
17729 _ | IFS | as_nl) ;; #(
17730 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17731 *) { eval $ac_var=; unset $ac_var;} ;;
17732 esac ;;
17733 esac
17734 done
17735
17736 (set) 2>&1 |
17737 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17738 *${as_nl}ac_space=\ *)
17739 # `set' does not quote correctly, so add quotes: double-quote
17740 # substitution turns \\\\ into \\, and sed turns \\ into \.
17741 sed -n \
17742 "s/'/'\\\\''/g;
17743 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17744 ;; #(
17745 *)
17746 # `set' quotes correctly as required by POSIX, so do not add quotes.
17747 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17748 ;;
17749 esac |
17750 sort
17751) |
17752 sed '
17753 /^ac_cv_env_/b end
17754 t clear
17755 :clear
17756 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17757 t end
17758 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17759 :end' >>confcache
17760if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17761 if test -w "$cache_file"; then
17762 if test "x$cache_file" != "x/dev/null"; then
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17764$as_echo "$as_me: updating cache $cache_file" >&6;}
17765 if test ! -f "$cache_file" || test -h "$cache_file"; then
17766 cat confcache >"$cache_file"
17767 else
17768 case $cache_file in #(
17769 */* | ?:*)
17770 mv -f confcache "$cache_file"$$ &&
17771 mv -f "$cache_file"$$ "$cache_file" ;; #(
17772 *)
17773 mv -f confcache "$cache_file" ;;
17774 esac
17775 fi
17776 fi
17777 else
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17779$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17780 fi
17781fi
17782rm -f confcache
17783
17784test "x$prefix" = xNONE && prefix=$ac_default_prefix
17785# Let make expand exec_prefix.
17786test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17787
17788DEFS=-DHAVE_CONFIG_H
17789
17790ac_libobjs=
17791ac_ltlibobjs=
17792U=
17793for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17794 # 1. Remove the extension, and $U if already installed.
17795 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17796 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17797 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17798 # will be set to the directory where LIBOBJS objects are built.
17799 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17800 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17801done
17802LIBOBJS=$ac_libobjs
17803
17804LTLIBOBJS=$ac_ltlibobjs
17805
17806
17807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17808$as_echo_n "checking that generated files are newer than configure... " >&6; }
17809 if test -n "$am_sleep_pid"; then
17810 # Hide warnings about reused PIDs.
17811 wait $am_sleep_pid 2>/dev/null
17812 fi
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17814$as_echo "done" >&6; }
17815 if test -n "$EXEEXT"; then
17816 am__EXEEXT_TRUE=
17817 am__EXEEXT_FALSE='#'
17818else
17819 am__EXEEXT_TRUE='#'
17820 am__EXEEXT_FALSE=
17821fi
17822
Jeff Thompson47053ad2013-08-05 10:36:53 -070017823if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17824 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17825Usually this means the macro was only invoked conditionally." "$LINENO" 5
17826fi
Jeff Thompson39128c62013-06-19 14:08:51 -070017827if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17828 as_fn_error $? "conditional \"AMDEP\" was never defined.
17829Usually this means the macro was only invoked conditionally." "$LINENO" 5
17830fi
Jeff Thompson36174062013-06-21 16:03:44 -070017831if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17832 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17833Usually this means the macro was only invoked conditionally." "$LINENO" 5
17834fi
Jeff Thompson4f031642013-08-05 11:03:16 -070017835if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17836 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17837Usually this means the macro was only invoked conditionally." "$LINENO" 5
17838fi
Jeff Thompsonca45e552013-06-26 17:40:06 -070017839if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
17840 as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
17841Usually this means the macro was only invoked conditionally." "$LINENO" 5
17842fi
17843if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
17844 as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
17845Usually this means the macro was only invoked conditionally." "$LINENO" 5
17846fi
17847if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
17848 as_fn_error $? "conditional \"DX_COND_man\" was never defined.
17849Usually this means the macro was only invoked conditionally." "$LINENO" 5
17850fi
17851if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
17852 as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
17853Usually this means the macro was only invoked conditionally." "$LINENO" 5
17854fi
17855if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
17856 as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
17857Usually this means the macro was only invoked conditionally." "$LINENO" 5
17858fi
17859if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
17860 as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
17861Usually this means the macro was only invoked conditionally." "$LINENO" 5
17862fi
17863if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
17864 as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
17865Usually this means the macro was only invoked conditionally." "$LINENO" 5
17866fi
17867if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
17868 as_fn_error $? "conditional \"DX_COND_html\" was never defined.
17869Usually this means the macro was only invoked conditionally." "$LINENO" 5
17870fi
17871if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
17872 as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
17873Usually this means the macro was only invoked conditionally." "$LINENO" 5
17874fi
17875if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
17876 as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
17877Usually this means the macro was only invoked conditionally." "$LINENO" 5
17878fi
17879if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
17880 as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
17881Usually this means the macro was only invoked conditionally." "$LINENO" 5
17882fi
Jeff Thompson39128c62013-06-19 14:08:51 -070017883
17884: "${CONFIG_STATUS=./config.status}"
17885ac_write_fail=0
17886ac_clean_files_save=$ac_clean_files
17887ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17888{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17889$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17890as_write_fail=0
17891cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17892#! $SHELL
17893# Generated by $as_me.
17894# Run this file to recreate the current configuration.
17895# Compiler output produced by configure, useful for debugging
17896# configure, is in config.log if it exists.
17897
17898debug=false
17899ac_cs_recheck=false
17900ac_cs_silent=false
17901
17902SHELL=\${CONFIG_SHELL-$SHELL}
17903export SHELL
17904_ASEOF
17905cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17906## -------------------- ##
17907## M4sh Initialization. ##
17908## -------------------- ##
17909
17910# Be more Bourne compatible
17911DUALCASE=1; export DUALCASE # for MKS sh
17912if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17913 emulate sh
17914 NULLCMD=:
17915 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17916 # is contrary to our usage. Disable this feature.
17917 alias -g '${1+"$@"}'='"$@"'
17918 setopt NO_GLOB_SUBST
17919else
17920 case `(set -o) 2>/dev/null` in #(
17921 *posix*) :
17922 set -o posix ;; #(
17923 *) :
17924 ;;
17925esac
17926fi
17927
17928
17929as_nl='
17930'
17931export as_nl
17932# Printing a long string crashes Solaris 7 /usr/bin/printf.
17933as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17934as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17935as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17936# Prefer a ksh shell builtin over an external printf program on Solaris,
17937# but without wasting forks for bash or zsh.
17938if test -z "$BASH_VERSION$ZSH_VERSION" \
17939 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17940 as_echo='print -r --'
17941 as_echo_n='print -rn --'
17942elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17943 as_echo='printf %s\n'
17944 as_echo_n='printf %s'
17945else
17946 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17947 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17948 as_echo_n='/usr/ucb/echo -n'
17949 else
17950 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17951 as_echo_n_body='eval
17952 arg=$1;
17953 case $arg in #(
17954 *"$as_nl"*)
17955 expr "X$arg" : "X\\(.*\\)$as_nl";
17956 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17957 esac;
17958 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17959 '
17960 export as_echo_n_body
17961 as_echo_n='sh -c $as_echo_n_body as_echo'
17962 fi
17963 export as_echo_body
17964 as_echo='sh -c $as_echo_body as_echo'
17965fi
17966
17967# The user is always right.
17968if test "${PATH_SEPARATOR+set}" != set; then
17969 PATH_SEPARATOR=:
17970 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17971 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17972 PATH_SEPARATOR=';'
17973 }
17974fi
17975
17976
17977# IFS
17978# We need space, tab and new line, in precisely that order. Quoting is
17979# there to prevent editors from complaining about space-tab.
17980# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17981# splitting by setting IFS to empty value.)
17982IFS=" "" $as_nl"
17983
17984# Find who we are. Look in the path if we contain no directory separator.
17985as_myself=
17986case $0 in #((
17987 *[\\/]* ) as_myself=$0 ;;
17988 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17989for as_dir in $PATH
17990do
17991 IFS=$as_save_IFS
17992 test -z "$as_dir" && as_dir=.
17993 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17994 done
17995IFS=$as_save_IFS
17996
17997 ;;
17998esac
17999# We did not find ourselves, most probably we were run as `sh COMMAND'
18000# in which case we are not to be found in the path.
18001if test "x$as_myself" = x; then
18002 as_myself=$0
18003fi
18004if test ! -f "$as_myself"; then
18005 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18006 exit 1
18007fi
18008
18009# Unset variables that we do not need and which cause bugs (e.g. in
18010# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18011# suppresses any "Segmentation fault" message there. '((' could
18012# trigger a bug in pdksh 5.2.14.
18013for as_var in BASH_ENV ENV MAIL MAILPATH
18014do eval test x\${$as_var+set} = xset \
18015 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18016done
18017PS1='$ '
18018PS2='> '
18019PS4='+ '
18020
18021# NLS nuisances.
18022LC_ALL=C
18023export LC_ALL
18024LANGUAGE=C
18025export LANGUAGE
18026
18027# CDPATH.
18028(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18029
18030
18031# as_fn_error STATUS ERROR [LINENO LOG_FD]
18032# ----------------------------------------
18033# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18034# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18035# script with STATUS, using 1 if that was 0.
18036as_fn_error ()
18037{
18038 as_status=$1; test $as_status -eq 0 && as_status=1
18039 if test "$4"; then
18040 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18041 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18042 fi
18043 $as_echo "$as_me: error: $2" >&2
18044 as_fn_exit $as_status
18045} # as_fn_error
18046
18047
18048# as_fn_set_status STATUS
18049# -----------------------
18050# Set $? to STATUS, without forking.
18051as_fn_set_status ()
18052{
18053 return $1
18054} # as_fn_set_status
18055
18056# as_fn_exit STATUS
18057# -----------------
18058# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18059as_fn_exit ()
18060{
18061 set +e
18062 as_fn_set_status $1
18063 exit $1
18064} # as_fn_exit
18065
18066# as_fn_unset VAR
18067# ---------------
18068# Portably unset VAR.
18069as_fn_unset ()
18070{
18071 { eval $1=; unset $1;}
18072}
18073as_unset=as_fn_unset
18074# as_fn_append VAR VALUE
18075# ----------------------
18076# Append the text in VALUE to the end of the definition contained in VAR. Take
18077# advantage of any shell optimizations that allow amortized linear growth over
18078# repeated appends, instead of the typical quadratic growth present in naive
18079# implementations.
18080if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18081 eval 'as_fn_append ()
18082 {
18083 eval $1+=\$2
18084 }'
18085else
18086 as_fn_append ()
18087 {
18088 eval $1=\$$1\$2
18089 }
18090fi # as_fn_append
18091
18092# as_fn_arith ARG...
18093# ------------------
18094# Perform arithmetic evaluation on the ARGs, and store the result in the
18095# global $as_val. Take advantage of shells that can avoid forks. The arguments
18096# must be portable across $(()) and expr.
18097if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18098 eval 'as_fn_arith ()
18099 {
18100 as_val=$(( $* ))
18101 }'
18102else
18103 as_fn_arith ()
18104 {
18105 as_val=`expr "$@" || test $? -eq 1`
18106 }
18107fi # as_fn_arith
18108
18109
18110if expr a : '\(a\)' >/dev/null 2>&1 &&
18111 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18112 as_expr=expr
18113else
18114 as_expr=false
18115fi
18116
18117if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18118 as_basename=basename
18119else
18120 as_basename=false
18121fi
18122
18123if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18124 as_dirname=dirname
18125else
18126 as_dirname=false
18127fi
18128
18129as_me=`$as_basename -- "$0" ||
18130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18131 X"$0" : 'X\(//\)$' \| \
18132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18133$as_echo X/"$0" |
18134 sed '/^.*\/\([^/][^/]*\)\/*$/{
18135 s//\1/
18136 q
18137 }
18138 /^X\/\(\/\/\)$/{
18139 s//\1/
18140 q
18141 }
18142 /^X\/\(\/\).*/{
18143 s//\1/
18144 q
18145 }
18146 s/.*/./; q'`
18147
18148# Avoid depending upon Character Ranges.
18149as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18150as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18151as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18152as_cr_digits='0123456789'
18153as_cr_alnum=$as_cr_Letters$as_cr_digits
18154
18155ECHO_C= ECHO_N= ECHO_T=
18156case `echo -n x` in #(((((
18157-n*)
18158 case `echo 'xy\c'` in
18159 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18160 xy) ECHO_C='\c';;
18161 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18162 ECHO_T=' ';;
18163 esac;;
18164*)
18165 ECHO_N='-n';;
18166esac
18167
18168rm -f conf$$ conf$$.exe conf$$.file
18169if test -d conf$$.dir; then
18170 rm -f conf$$.dir/conf$$.file
18171else
18172 rm -f conf$$.dir
18173 mkdir conf$$.dir 2>/dev/null
18174fi
18175if (echo >conf$$.file) 2>/dev/null; then
18176 if ln -s conf$$.file conf$$ 2>/dev/null; then
18177 as_ln_s='ln -s'
18178 # ... but there are two gotchas:
18179 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18180 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18181 # In both cases, we have to default to `cp -pR'.
18182 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18183 as_ln_s='cp -pR'
18184 elif ln conf$$.file conf$$ 2>/dev/null; then
18185 as_ln_s=ln
18186 else
18187 as_ln_s='cp -pR'
18188 fi
18189else
18190 as_ln_s='cp -pR'
18191fi
18192rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18193rmdir conf$$.dir 2>/dev/null
18194
18195
18196# as_fn_mkdir_p
18197# -------------
18198# Create "$as_dir" as a directory, including parents if necessary.
18199as_fn_mkdir_p ()
18200{
18201
18202 case $as_dir in #(
18203 -*) as_dir=./$as_dir;;
18204 esac
18205 test -d "$as_dir" || eval $as_mkdir_p || {
18206 as_dirs=
18207 while :; do
18208 case $as_dir in #(
18209 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18210 *) as_qdir=$as_dir;;
18211 esac
18212 as_dirs="'$as_qdir' $as_dirs"
18213 as_dir=`$as_dirname -- "$as_dir" ||
18214$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18215 X"$as_dir" : 'X\(//\)[^/]' \| \
18216 X"$as_dir" : 'X\(//\)$' \| \
18217 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18218$as_echo X"$as_dir" |
18219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18220 s//\1/
18221 q
18222 }
18223 /^X\(\/\/\)[^/].*/{
18224 s//\1/
18225 q
18226 }
18227 /^X\(\/\/\)$/{
18228 s//\1/
18229 q
18230 }
18231 /^X\(\/\).*/{
18232 s//\1/
18233 q
18234 }
18235 s/.*/./; q'`
18236 test -d "$as_dir" && break
18237 done
18238 test -z "$as_dirs" || eval "mkdir $as_dirs"
18239 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18240
18241
18242} # as_fn_mkdir_p
18243if mkdir -p . 2>/dev/null; then
18244 as_mkdir_p='mkdir -p "$as_dir"'
18245else
18246 test -d ./-p && rmdir ./-p
18247 as_mkdir_p=false
18248fi
18249
18250
18251# as_fn_executable_p FILE
18252# -----------------------
18253# Test if FILE is an executable regular file.
18254as_fn_executable_p ()
18255{
18256 test -f "$1" && test -x "$1"
18257} # as_fn_executable_p
18258as_test_x='test -x'
18259as_executable_p=as_fn_executable_p
18260
18261# Sed expression to map a string onto a valid CPP name.
18262as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18263
18264# Sed expression to map a string onto a valid variable name.
18265as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18266
18267
18268exec 6>&1
18269## ----------------------------------- ##
18270## Main body of $CONFIG_STATUS script. ##
18271## ----------------------------------- ##
18272_ASEOF
18273test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18274
18275cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18276# Save the log message, to keep $0 and so on meaningful, and to
18277# report actual input values of CONFIG_FILES etc. instead of their
18278# values after options handling.
18279ac_log="
18280This file was extended by ndn-cpp $as_me 0.5, which was
18281generated by GNU Autoconf 2.69. Invocation command line was
18282
18283 CONFIG_FILES = $CONFIG_FILES
18284 CONFIG_HEADERS = $CONFIG_HEADERS
18285 CONFIG_LINKS = $CONFIG_LINKS
18286 CONFIG_COMMANDS = $CONFIG_COMMANDS
18287 $ $0 $@
18288
18289on `(hostname || uname -n) 2>/dev/null | sed 1q`
18290"
18291
18292_ACEOF
18293
18294case $ac_config_files in *"
18295"*) set x $ac_config_files; shift; ac_config_files=$*;;
18296esac
18297
18298case $ac_config_headers in *"
18299"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18300esac
18301
18302
18303cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18304# Files that config.status was made for.
18305config_files="$ac_config_files"
18306config_headers="$ac_config_headers"
18307config_commands="$ac_config_commands"
18308
18309_ACEOF
18310
18311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18312ac_cs_usage="\
18313\`$as_me' instantiates files and other configuration actions
18314from templates according to the current configuration. Unless the files
18315and actions are specified as TAGs, all are instantiated by default.
18316
18317Usage: $0 [OPTION]... [TAG]...
18318
18319 -h, --help print this help, then exit
18320 -V, --version print version number and configuration settings, then exit
18321 --config print configuration, then exit
18322 -q, --quiet, --silent
18323 do not print progress messages
18324 -d, --debug don't remove temporary files
18325 --recheck update $as_me by reconfiguring in the same conditions
18326 --file=FILE[:TEMPLATE]
18327 instantiate the configuration file FILE
18328 --header=FILE[:TEMPLATE]
18329 instantiate the configuration header FILE
18330
18331Configuration files:
18332$config_files
18333
18334Configuration headers:
18335$config_headers
18336
18337Configuration commands:
18338$config_commands
18339
18340Report bugs to the package provider.
18341ndn-cpp home page: <https://github.com/named-data/ndn-cpp>."
18342
18343_ACEOF
18344cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18345ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18346ac_cs_version="\\
18347ndn-cpp config.status 0.5
18348configured by $0, generated by GNU Autoconf 2.69,
18349 with options \\"\$ac_cs_config\\"
18350
18351Copyright (C) 2012 Free Software Foundation, Inc.
18352This config.status script is free software; the Free Software Foundation
18353gives unlimited permission to copy, distribute and modify it."
18354
18355ac_pwd='$ac_pwd'
18356srcdir='$srcdir'
18357INSTALL='$INSTALL'
18358MKDIR_P='$MKDIR_P'
18359AWK='$AWK'
18360test -n "\$AWK" || AWK=awk
18361_ACEOF
18362
18363cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18364# The default lists apply if the user does not specify any file.
18365ac_need_defaults=:
18366while test $# != 0
18367do
18368 case $1 in
18369 --*=?*)
18370 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18371 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18372 ac_shift=:
18373 ;;
18374 --*=)
18375 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18376 ac_optarg=
18377 ac_shift=:
18378 ;;
18379 *)
18380 ac_option=$1
18381 ac_optarg=$2
18382 ac_shift=shift
18383 ;;
18384 esac
18385
18386 case $ac_option in
18387 # Handling of the options.
18388 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18389 ac_cs_recheck=: ;;
18390 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18391 $as_echo "$ac_cs_version"; exit ;;
18392 --config | --confi | --conf | --con | --co | --c )
18393 $as_echo "$ac_cs_config"; exit ;;
18394 --debug | --debu | --deb | --de | --d | -d )
18395 debug=: ;;
18396 --file | --fil | --fi | --f )
18397 $ac_shift
18398 case $ac_optarg in
18399 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18400 '') as_fn_error $? "missing file argument" ;;
18401 esac
18402 as_fn_append CONFIG_FILES " '$ac_optarg'"
18403 ac_need_defaults=false;;
18404 --header | --heade | --head | --hea )
18405 $ac_shift
18406 case $ac_optarg in
18407 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18408 esac
18409 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18410 ac_need_defaults=false;;
18411 --he | --h)
18412 # Conflict between --help and --header
18413 as_fn_error $? "ambiguous option: \`$1'
18414Try \`$0 --help' for more information.";;
18415 --help | --hel | -h )
18416 $as_echo "$ac_cs_usage"; exit ;;
18417 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18418 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18419 ac_cs_silent=: ;;
18420
18421 # This is an error.
18422 -*) as_fn_error $? "unrecognized option: \`$1'
18423Try \`$0 --help' for more information." ;;
18424
18425 *) as_fn_append ac_config_targets " $1"
18426 ac_need_defaults=false ;;
18427
18428 esac
18429 shift
18430done
18431
18432ac_configure_extra_args=
18433
18434if $ac_cs_silent; then
18435 exec 6>/dev/null
18436 ac_configure_extra_args="$ac_configure_extra_args --silent"
18437fi
18438
18439_ACEOF
18440cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18441if \$ac_cs_recheck; then
18442 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18443 shift
18444 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18445 CONFIG_SHELL='$SHELL'
18446 export CONFIG_SHELL
18447 exec "\$@"
18448fi
18449
18450_ACEOF
18451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18452exec 5>>config.log
18453{
18454 echo
18455 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18456## Running $as_me. ##
18457_ASBOX
18458 $as_echo "$ac_log"
18459} >&5
18460
18461_ACEOF
18462cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18463#
18464# INIT-COMMANDS
18465#
18466AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18467
Jeff Thompson4f031642013-08-05 11:03:16 -070018468
18469# The HP-UX ksh and POSIX shell print the target directory to stdout
18470# if CDPATH is set.
18471(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18472
18473sed_quote_subst='$sed_quote_subst'
18474double_quote_subst='$double_quote_subst'
18475delay_variable_subst='$delay_variable_subst'
18476macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18477macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18478enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18479enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18480pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18481enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18482SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18483ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18484PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18485host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18486host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18487host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18488build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18489build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18490build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18491SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18492Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18493GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18494EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18495FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18496LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18497NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18498LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18499max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18500ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18501exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18502lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18503lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18504lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18505lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18506lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18507reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18508reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18509OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18510deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18511file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18512file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18513want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18514DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18515sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18516AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18517AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18518archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18519STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18520RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18521old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18522old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18523old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18524lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18525CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18526CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18527compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18528GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18529lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18530lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18531lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18532lt_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"`'
18533nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18534lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18535objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18536MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18537lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18538lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18539lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18540lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18541lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18542need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18543MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18544DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18545NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18546LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18547OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18548OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18549libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18550shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18551extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18552archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18553enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18554export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18555whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18556compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18557old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18558old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18559archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18560archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18561module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18562module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18563with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18564allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18565no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18566hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18567hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18568hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18569hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18570hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18571hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18572hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18573inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18574link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18575always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18576export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18577exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18578include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18579prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18580postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18581file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18582variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18583need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18584need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18585version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18586runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18587shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18588shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18589libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18590library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18591soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18592install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18593postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18594postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18595finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18596finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18597hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18598sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18599sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18600hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18601enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18602enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18603enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18604old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18605striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18606compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18607predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18608postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18609predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18610postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18611compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18612LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18613reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18614reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18615old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18616compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18617GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18618lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18619lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18620lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18621lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18622lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18623archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18624enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18625export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18626whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18627compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18628old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18629old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18630archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18631archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18632module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18633module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18634with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18635allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18636no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18637hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18638hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18639hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18640hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18641hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18642hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18643hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18644inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18645link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18646always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18647export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18648exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18649include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18650prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18651postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18652file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18653hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18654compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18655predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18656postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18657predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18658postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18659compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18660
18661LTCC='$LTCC'
18662LTCFLAGS='$LTCFLAGS'
18663compiler='$compiler_DEFAULT'
18664
18665# A function that is used when there is no print builtin or printf.
18666func_fallback_echo ()
18667{
18668 eval 'cat <<_LTECHO_EOF
18669\$1
18670_LTECHO_EOF'
18671}
18672
18673# Quote evaled strings.
18674for var in SHELL \
18675ECHO \
18676PATH_SEPARATOR \
18677SED \
18678GREP \
18679EGREP \
18680FGREP \
18681LD \
18682NM \
18683LN_S \
18684lt_SP2NL \
18685lt_NL2SP \
18686reload_flag \
18687OBJDUMP \
18688deplibs_check_method \
18689file_magic_cmd \
18690file_magic_glob \
18691want_nocaseglob \
18692DLLTOOL \
18693sharedlib_from_linklib_cmd \
18694AR \
18695AR_FLAGS \
18696archiver_list_spec \
18697STRIP \
18698RANLIB \
18699CC \
18700CFLAGS \
18701compiler \
18702lt_cv_sys_global_symbol_pipe \
18703lt_cv_sys_global_symbol_to_cdecl \
18704lt_cv_sys_global_symbol_to_c_name_address \
18705lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18706nm_file_list_spec \
18707lt_prog_compiler_no_builtin_flag \
18708lt_prog_compiler_pic \
18709lt_prog_compiler_wl \
18710lt_prog_compiler_static \
18711lt_cv_prog_compiler_c_o \
18712need_locks \
18713MANIFEST_TOOL \
18714DSYMUTIL \
18715NMEDIT \
18716LIPO \
18717OTOOL \
18718OTOOL64 \
18719shrext_cmds \
18720export_dynamic_flag_spec \
18721whole_archive_flag_spec \
18722compiler_needs_object \
18723with_gnu_ld \
18724allow_undefined_flag \
18725no_undefined_flag \
18726hardcode_libdir_flag_spec \
18727hardcode_libdir_separator \
18728exclude_expsyms \
18729include_expsyms \
18730file_list_spec \
18731variables_saved_for_relink \
18732libname_spec \
18733library_names_spec \
18734soname_spec \
18735install_override_mode \
18736finish_eval \
18737old_striplib \
18738striplib \
18739compiler_lib_search_dirs \
18740predep_objects \
18741postdep_objects \
18742predeps \
18743postdeps \
18744compiler_lib_search_path \
18745LD_CXX \
18746reload_flag_CXX \
18747compiler_CXX \
18748lt_prog_compiler_no_builtin_flag_CXX \
18749lt_prog_compiler_pic_CXX \
18750lt_prog_compiler_wl_CXX \
18751lt_prog_compiler_static_CXX \
18752lt_cv_prog_compiler_c_o_CXX \
18753export_dynamic_flag_spec_CXX \
18754whole_archive_flag_spec_CXX \
18755compiler_needs_object_CXX \
18756with_gnu_ld_CXX \
18757allow_undefined_flag_CXX \
18758no_undefined_flag_CXX \
18759hardcode_libdir_flag_spec_CXX \
18760hardcode_libdir_separator_CXX \
18761exclude_expsyms_CXX \
18762include_expsyms_CXX \
18763file_list_spec_CXX \
18764compiler_lib_search_dirs_CXX \
18765predep_objects_CXX \
18766postdep_objects_CXX \
18767predeps_CXX \
18768postdeps_CXX \
18769compiler_lib_search_path_CXX; do
18770 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18771 *[\\\\\\\`\\"\\\$]*)
18772 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18773 ;;
18774 *)
18775 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18776 ;;
18777 esac
18778done
18779
18780# Double-quote double-evaled strings.
18781for var in reload_cmds \
18782old_postinstall_cmds \
18783old_postuninstall_cmds \
18784old_archive_cmds \
18785extract_expsyms_cmds \
18786old_archive_from_new_cmds \
18787old_archive_from_expsyms_cmds \
18788archive_cmds \
18789archive_expsym_cmds \
18790module_cmds \
18791module_expsym_cmds \
18792export_symbols_cmds \
18793prelink_cmds \
18794postlink_cmds \
18795postinstall_cmds \
18796postuninstall_cmds \
18797finish_cmds \
18798sys_lib_search_path_spec \
18799sys_lib_dlsearch_path_spec \
18800reload_cmds_CXX \
18801old_archive_cmds_CXX \
18802old_archive_from_new_cmds_CXX \
18803old_archive_from_expsyms_cmds_CXX \
18804archive_cmds_CXX \
18805archive_expsym_cmds_CXX \
18806module_cmds_CXX \
18807module_expsym_cmds_CXX \
18808export_symbols_cmds_CXX \
18809prelink_cmds_CXX \
18810postlink_cmds_CXX; do
18811 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18812 *[\\\\\\\`\\"\\\$]*)
18813 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18814 ;;
18815 *)
18816 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18817 ;;
18818 esac
18819done
18820
18821ac_aux_dir='$ac_aux_dir'
18822xsi_shell='$xsi_shell'
18823lt_shell_append='$lt_shell_append'
18824
18825# See if we are running on zsh, and set the options which allow our
18826# commands through without removal of \ escapes INIT.
18827if test -n "\${ZSH_VERSION+set}" ; then
18828 setopt NO_GLOB_SUBST
18829fi
18830
18831
18832 PACKAGE='$PACKAGE'
18833 VERSION='$VERSION'
18834 TIMESTAMP='$TIMESTAMP'
18835 RM='$RM'
18836 ofile='$ofile'
18837
18838
18839
18840
18841
18842
Jeff Thompson39128c62013-06-19 14:08:51 -070018843_ACEOF
18844
18845cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18846
18847# Handling of arguments.
18848for ac_config_target in $ac_config_targets
18849do
18850 case $ac_config_target in
18851 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18852 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Jeff Thompson4f031642013-08-05 11:03:16 -070018853 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Jeff Thompson39128c62013-06-19 14:08:51 -070018854 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18855
18856 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18857 esac
18858done
18859
18860
18861# If the user did not use the arguments to specify the items to instantiate,
18862# then the envvar interface is used. Set only those that are not.
18863# We use the long form for the default assignment because of an extremely
18864# bizarre bug on SunOS 4.1.3.
18865if $ac_need_defaults; then
18866 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18867 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18868 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18869fi
18870
18871# Have a temporary directory for convenience. Make it in the build tree
18872# simply because there is no reason against having it here, and in addition,
18873# creating and moving files from /tmp can sometimes cause problems.
18874# Hook for its removal unless debugging.
18875# Note that there is a small window in which the directory will not be cleaned:
18876# after its creation but before its name has been assigned to `$tmp'.
18877$debug ||
18878{
18879 tmp= ac_tmp=
18880 trap 'exit_status=$?
18881 : "${ac_tmp:=$tmp}"
18882 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18883' 0
18884 trap 'as_fn_exit 1' 1 2 13 15
18885}
18886# Create a (secure) tmp directory for tmp files.
18887
18888{
18889 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18890 test -d "$tmp"
18891} ||
18892{
18893 tmp=./conf$$-$RANDOM
18894 (umask 077 && mkdir "$tmp")
18895} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18896ac_tmp=$tmp
18897
18898# Set up the scripts for CONFIG_FILES section.
18899# No need to generate them if there are no CONFIG_FILES.
18900# This happens for instance with `./config.status config.h'.
18901if test -n "$CONFIG_FILES"; then
18902
18903
18904ac_cr=`echo X | tr X '\015'`
18905# On cygwin, bash can eat \r inside `` if the user requested igncr.
18906# But we know of no other shell where ac_cr would be empty at this
18907# point, so we can use a bashism as a fallback.
18908if test "x$ac_cr" = x; then
18909 eval ac_cr=\$\'\\r\'
18910fi
18911ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18912if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18913 ac_cs_awk_cr='\\r'
18914else
18915 ac_cs_awk_cr=$ac_cr
18916fi
18917
18918echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18919_ACEOF
18920
18921
18922{
18923 echo "cat >conf$$subs.awk <<_ACEOF" &&
18924 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18925 echo "_ACEOF"
18926} >conf$$subs.sh ||
18927 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18928ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18929ac_delim='%!_!# '
18930for ac_last_try in false false false false false :; do
18931 . ./conf$$subs.sh ||
18932 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18933
18934 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18935 if test $ac_delim_n = $ac_delim_num; then
18936 break
18937 elif $ac_last_try; then
18938 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18939 else
18940 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18941 fi
18942done
18943rm -f conf$$subs.sh
18944
18945cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18946cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18947_ACEOF
18948sed -n '
18949h
18950s/^/S["/; s/!.*/"]=/
18951p
18952g
18953s/^[^!]*!//
18954:repl
18955t repl
18956s/'"$ac_delim"'$//
18957t delim
18958:nl
18959h
18960s/\(.\{148\}\)..*/\1/
18961t more1
18962s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18963p
18964n
18965b repl
18966:more1
18967s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18968p
18969g
18970s/.\{148\}//
18971t nl
18972:delim
18973h
18974s/\(.\{148\}\)..*/\1/
18975t more2
18976s/["\\]/\\&/g; s/^/"/; s/$/"/
18977p
18978b
18979:more2
18980s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18981p
18982g
18983s/.\{148\}//
18984t delim
18985' <conf$$subs.awk | sed '
18986/^[^""]/{
18987 N
18988 s/\n//
18989}
18990' >>$CONFIG_STATUS || ac_write_fail=1
18991rm -f conf$$subs.awk
18992cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18993_ACAWK
18994cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18995 for (key in S) S_is_set[key] = 1
18996 FS = ""
18997
18998}
18999{
19000 line = $ 0
19001 nfields = split(line, field, "@")
19002 substed = 0
19003 len = length(field[1])
19004 for (i = 2; i < nfields; i++) {
19005 key = field[i]
19006 keylen = length(key)
19007 if (S_is_set[key]) {
19008 value = S[key]
19009 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19010 len += length(value) + length(field[++i])
19011 substed = 1
19012 } else
19013 len += 1 + keylen
19014 }
19015
19016 print line
19017}
19018
19019_ACAWK
19020_ACEOF
19021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19022if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19023 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19024else
19025 cat
19026fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19027 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19028_ACEOF
19029
19030# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19031# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19032# trailing colons and then remove the whole line if VPATH becomes empty
19033# (actually we leave an empty line to preserve line numbers).
19034if test "x$srcdir" = x.; then
19035 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19036h
19037s///
19038s/^/:/
19039s/[ ]*$/:/
19040s/:\$(srcdir):/:/g
19041s/:\${srcdir}:/:/g
19042s/:@srcdir@:/:/g
19043s/^:*//
19044s/:*$//
19045x
19046s/\(=[ ]*\).*/\1/
19047G
19048s/\n//
19049s/^[^=]*=[ ]*$//
19050}'
19051fi
19052
19053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19054fi # test -n "$CONFIG_FILES"
19055
19056# Set up the scripts for CONFIG_HEADERS section.
19057# No need to generate them if there are no CONFIG_HEADERS.
19058# This happens for instance with `./config.status Makefile'.
19059if test -n "$CONFIG_HEADERS"; then
19060cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19061BEGIN {
19062_ACEOF
19063
19064# Transform confdefs.h into an awk script `defines.awk', embedded as
19065# here-document in config.status, that substitutes the proper values into
19066# config.h.in to produce config.h.
19067
19068# Create a delimiter string that does not exist in confdefs.h, to ease
19069# handling of long lines.
19070ac_delim='%!_!# '
19071for ac_last_try in false false :; do
19072 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19073 if test -z "$ac_tt"; then
19074 break
19075 elif $ac_last_try; then
19076 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19077 else
19078 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19079 fi
19080done
19081
19082# For the awk script, D is an array of macro values keyed by name,
19083# likewise P contains macro parameters if any. Preserve backslash
19084# newline sequences.
19085
19086ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19087sed -n '
19088s/.\{148\}/&'"$ac_delim"'/g
19089t rset
19090:rset
19091s/^[ ]*#[ ]*define[ ][ ]*/ /
19092t def
19093d
19094:def
19095s/\\$//
19096t bsnl
19097s/["\\]/\\&/g
19098s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19099D["\1"]=" \3"/p
19100s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19101d
19102:bsnl
19103s/["\\]/\\&/g
19104s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19105D["\1"]=" \3\\\\\\n"\\/p
19106t cont
19107s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19108t cont
19109d
19110:cont
19111n
19112s/.\{148\}/&'"$ac_delim"'/g
19113t clear
19114:clear
19115s/\\$//
19116t bsnlc
19117s/["\\]/\\&/g; s/^/"/; s/$/"/p
19118d
19119:bsnlc
19120s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19121b cont
19122' <confdefs.h | sed '
19123s/'"$ac_delim"'/"\\\
19124"/g' >>$CONFIG_STATUS || ac_write_fail=1
19125
19126cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19127 for (key in D) D_is_set[key] = 1
19128 FS = ""
19129}
19130/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19131 line = \$ 0
19132 split(line, arg, " ")
19133 if (arg[1] == "#") {
19134 defundef = arg[2]
19135 mac1 = arg[3]
19136 } else {
19137 defundef = substr(arg[1], 2)
19138 mac1 = arg[2]
19139 }
19140 split(mac1, mac2, "(") #)
19141 macro = mac2[1]
19142 prefix = substr(line, 1, index(line, defundef) - 1)
19143 if (D_is_set[macro]) {
19144 # Preserve the white space surrounding the "#".
19145 print prefix "define", macro P[macro] D[macro]
19146 next
19147 } else {
19148 # Replace #undef with comments. This is necessary, for example,
19149 # in the case of _POSIX_SOURCE, which is predefined and required
19150 # on some systems where configure will not decide to define it.
19151 if (defundef == "undef") {
19152 print "/*", prefix defundef, macro, "*/"
19153 next
19154 }
19155 }
19156}
19157{ print }
19158_ACAWK
19159_ACEOF
19160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19161 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19162fi # test -n "$CONFIG_HEADERS"
19163
19164
19165eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19166shift
19167for ac_tag
19168do
19169 case $ac_tag in
19170 :[FHLC]) ac_mode=$ac_tag; continue;;
19171 esac
19172 case $ac_mode$ac_tag in
19173 :[FHL]*:*);;
19174 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19175 :[FH]-) ac_tag=-:-;;
19176 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19177 esac
19178 ac_save_IFS=$IFS
19179 IFS=:
19180 set x $ac_tag
19181 IFS=$ac_save_IFS
19182 shift
19183 ac_file=$1
19184 shift
19185
19186 case $ac_mode in
19187 :L) ac_source=$1;;
19188 :[FH])
19189 ac_file_inputs=
19190 for ac_f
19191 do
19192 case $ac_f in
19193 -) ac_f="$ac_tmp/stdin";;
19194 *) # Look for the file first in the build tree, then in the source tree
19195 # (if the path is not absolute). The absolute path cannot be DOS-style,
19196 # because $ac_f cannot contain `:'.
19197 test -f "$ac_f" ||
19198 case $ac_f in
19199 [\\/$]*) false;;
19200 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19201 esac ||
19202 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19203 esac
19204 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19205 as_fn_append ac_file_inputs " '$ac_f'"
19206 done
19207
19208 # Let's still pretend it is `configure' which instantiates (i.e., don't
19209 # use $as_me), people would be surprised to read:
19210 # /* config.h. Generated by config.status. */
19211 configure_input='Generated from '`
19212 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19213 `' by configure.'
19214 if test x"$ac_file" != x-; then
19215 configure_input="$ac_file. $configure_input"
19216 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19217$as_echo "$as_me: creating $ac_file" >&6;}
19218 fi
19219 # Neutralize special characters interpreted by sed in replacement strings.
19220 case $configure_input in #(
19221 *\&* | *\|* | *\\* )
19222 ac_sed_conf_input=`$as_echo "$configure_input" |
19223 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19224 *) ac_sed_conf_input=$configure_input;;
19225 esac
19226
19227 case $ac_tag in
19228 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19229 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19230 esac
19231 ;;
19232 esac
19233
19234 ac_dir=`$as_dirname -- "$ac_file" ||
19235$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19236 X"$ac_file" : 'X\(//\)[^/]' \| \
19237 X"$ac_file" : 'X\(//\)$' \| \
19238 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19239$as_echo X"$ac_file" |
19240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19241 s//\1/
19242 q
19243 }
19244 /^X\(\/\/\)[^/].*/{
19245 s//\1/
19246 q
19247 }
19248 /^X\(\/\/\)$/{
19249 s//\1/
19250 q
19251 }
19252 /^X\(\/\).*/{
19253 s//\1/
19254 q
19255 }
19256 s/.*/./; q'`
19257 as_dir="$ac_dir"; as_fn_mkdir_p
19258 ac_builddir=.
19259
19260case "$ac_dir" in
19261.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19262*)
19263 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19264 # A ".." for each directory in $ac_dir_suffix.
19265 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19266 case $ac_top_builddir_sub in
19267 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19268 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19269 esac ;;
19270esac
19271ac_abs_top_builddir=$ac_pwd
19272ac_abs_builddir=$ac_pwd$ac_dir_suffix
19273# for backward compatibility:
19274ac_top_builddir=$ac_top_build_prefix
19275
19276case $srcdir in
19277 .) # We are building in place.
19278 ac_srcdir=.
19279 ac_top_srcdir=$ac_top_builddir_sub
19280 ac_abs_top_srcdir=$ac_pwd ;;
19281 [\\/]* | ?:[\\/]* ) # Absolute name.
19282 ac_srcdir=$srcdir$ac_dir_suffix;
19283 ac_top_srcdir=$srcdir
19284 ac_abs_top_srcdir=$srcdir ;;
19285 *) # Relative name.
19286 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19287 ac_top_srcdir=$ac_top_build_prefix$srcdir
19288 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19289esac
19290ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19291
19292
19293 case $ac_mode in
19294 :F)
19295 #
19296 # CONFIG_FILE
19297 #
19298
19299 case $INSTALL in
19300 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19301 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19302 esac
19303 ac_MKDIR_P=$MKDIR_P
19304 case $MKDIR_P in
19305 [\\/$]* | ?:[\\/]* ) ;;
19306 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19307 esac
19308_ACEOF
19309
19310cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19311# If the template does not know about datarootdir, expand it.
19312# FIXME: This hack should be removed a few years after 2.60.
19313ac_datarootdir_hack=; ac_datarootdir_seen=
19314ac_sed_dataroot='
19315/datarootdir/ {
19316 p
19317 q
19318}
19319/@datadir@/p
19320/@docdir@/p
19321/@infodir@/p
19322/@localedir@/p
19323/@mandir@/p'
19324case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19325*datarootdir*) ac_datarootdir_seen=yes;;
19326*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19328$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19329_ACEOF
19330cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19331 ac_datarootdir_hack='
19332 s&@datadir@&$datadir&g
19333 s&@docdir@&$docdir&g
19334 s&@infodir@&$infodir&g
19335 s&@localedir@&$localedir&g
19336 s&@mandir@&$mandir&g
19337 s&\\\${datarootdir}&$datarootdir&g' ;;
19338esac
19339_ACEOF
19340
19341# Neutralize VPATH when `$srcdir' = `.'.
19342# Shell code in configure.ac might set extrasub.
19343# FIXME: do we really want to maintain this feature?
19344cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19345ac_sed_extra="$ac_vpsub
19346$extrasub
19347_ACEOF
19348cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19349:t
19350/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19351s|@configure_input@|$ac_sed_conf_input|;t t
19352s&@top_builddir@&$ac_top_builddir_sub&;t t
19353s&@top_build_prefix@&$ac_top_build_prefix&;t t
19354s&@srcdir@&$ac_srcdir&;t t
19355s&@abs_srcdir@&$ac_abs_srcdir&;t t
19356s&@top_srcdir@&$ac_top_srcdir&;t t
19357s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19358s&@builddir@&$ac_builddir&;t t
19359s&@abs_builddir@&$ac_abs_builddir&;t t
19360s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19361s&@INSTALL@&$ac_INSTALL&;t t
19362s&@MKDIR_P@&$ac_MKDIR_P&;t t
19363$ac_datarootdir_hack
19364"
19365eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19366 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19367
19368test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19369 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19370 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19371 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19373which seems to be undefined. Please make sure it is defined" >&5
19374$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19375which seems to be undefined. Please make sure it is defined" >&2;}
19376
19377 rm -f "$ac_tmp/stdin"
19378 case $ac_file in
19379 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19380 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19381 esac \
19382 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19383 ;;
19384 :H)
19385 #
19386 # CONFIG_HEADER
19387 #
19388 if test x"$ac_file" != x-; then
19389 {
19390 $as_echo "/* $configure_input */" \
19391 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19392 } >"$ac_tmp/config.h" \
19393 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19394 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19395 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19396$as_echo "$as_me: $ac_file is unchanged" >&6;}
19397 else
19398 rm -f "$ac_file"
19399 mv "$ac_tmp/config.h" "$ac_file" \
19400 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19401 fi
19402 else
19403 $as_echo "/* $configure_input */" \
19404 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19405 || as_fn_error $? "could not create -" "$LINENO" 5
19406 fi
19407# Compute "$ac_file"'s index in $config_headers.
19408_am_arg="$ac_file"
19409_am_stamp_count=1
19410for _am_header in $config_headers :; do
19411 case $_am_header in
19412 $_am_arg | $_am_arg:* )
19413 break ;;
19414 * )
19415 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19416 esac
19417done
19418echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19419$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19420 X"$_am_arg" : 'X\(//\)[^/]' \| \
19421 X"$_am_arg" : 'X\(//\)$' \| \
19422 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19423$as_echo X"$_am_arg" |
19424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19425 s//\1/
19426 q
19427 }
19428 /^X\(\/\/\)[^/].*/{
19429 s//\1/
19430 q
19431 }
19432 /^X\(\/\/\)$/{
19433 s//\1/
19434 q
19435 }
19436 /^X\(\/\).*/{
19437 s//\1/
19438 q
19439 }
19440 s/.*/./; q'`/stamp-h$_am_stamp_count
19441 ;;
19442
19443 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19444$as_echo "$as_me: executing $ac_file commands" >&6;}
19445 ;;
19446 esac
19447
19448
19449 case $ac_file$ac_mode in
19450 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19451 # Older Autoconf quotes --file arguments for eval, but not when files
19452 # are listed without --file. Let's play safe and only enable the eval
19453 # if we detect the quoting.
19454 case $CONFIG_FILES in
19455 *\'*) eval set x "$CONFIG_FILES" ;;
19456 *) set x $CONFIG_FILES ;;
19457 esac
19458 shift
19459 for mf
19460 do
19461 # Strip MF so we end up with the name of the file.
19462 mf=`echo "$mf" | sed -e 's/:.*$//'`
19463 # Check whether this is an Automake generated Makefile or not.
19464 # We used to match only the files named 'Makefile.in', but
19465 # some people rename them; so instead we look at the file content.
19466 # Grep'ing the first line is not enough: some people post-process
19467 # each Makefile.in and add a new line on top of each file to say so.
19468 # Grep'ing the whole file is not good either: AIX grep has a line
19469 # limit of 2048, but all sed's we know have understand at least 4000.
19470 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19471 dirpart=`$as_dirname -- "$mf" ||
19472$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19473 X"$mf" : 'X\(//\)[^/]' \| \
19474 X"$mf" : 'X\(//\)$' \| \
19475 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19476$as_echo X"$mf" |
19477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19478 s//\1/
19479 q
19480 }
19481 /^X\(\/\/\)[^/].*/{
19482 s//\1/
19483 q
19484 }
19485 /^X\(\/\/\)$/{
19486 s//\1/
19487 q
19488 }
19489 /^X\(\/\).*/{
19490 s//\1/
19491 q
19492 }
19493 s/.*/./; q'`
19494 else
19495 continue
19496 fi
19497 # Extract the definition of DEPDIR, am__include, and am__quote
19498 # from the Makefile without running 'make'.
19499 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19500 test -z "$DEPDIR" && continue
19501 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19502 test -z "$am__include" && continue
19503 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19504 # Find all dependency output files, they are included files with
19505 # $(DEPDIR) in their names. We invoke sed twice because it is the
19506 # simplest approach to changing $(DEPDIR) to its actual value in the
19507 # expansion.
19508 for file in `sed -n "
19509 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19510 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19511 # Make sure the directory exists.
19512 test -f "$dirpart/$file" && continue
19513 fdir=`$as_dirname -- "$file" ||
19514$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19515 X"$file" : 'X\(//\)[^/]' \| \
19516 X"$file" : 'X\(//\)$' \| \
19517 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19518$as_echo X"$file" |
19519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19520 s//\1/
19521 q
19522 }
19523 /^X\(\/\/\)[^/].*/{
19524 s//\1/
19525 q
19526 }
19527 /^X\(\/\/\)$/{
19528 s//\1/
19529 q
19530 }
19531 /^X\(\/\).*/{
19532 s//\1/
19533 q
19534 }
19535 s/.*/./; q'`
19536 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19537 # echo "creating $dirpart/$file"
19538 echo '# dummy' > "$dirpart/$file"
19539 done
19540 done
19541}
19542 ;;
Jeff Thompson4f031642013-08-05 11:03:16 -070019543 "libtool":C)
19544
19545 # See if we are running on zsh, and set the options which allow our
19546 # commands through without removal of \ escapes.
19547 if test -n "${ZSH_VERSION+set}" ; then
19548 setopt NO_GLOB_SUBST
19549 fi
19550
19551 cfgfile="${ofile}T"
19552 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19553 $RM "$cfgfile"
19554
19555 cat <<_LT_EOF >> "$cfgfile"
19556#! $SHELL
19557
19558# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19559# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19560# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19561# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19562#
19563# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19564# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19565# Foundation, Inc.
19566# Written by Gordon Matzigkeit, 1996
19567#
19568# This file is part of GNU Libtool.
19569#
19570# GNU Libtool is free software; you can redistribute it and/or
19571# modify it under the terms of the GNU General Public License as
19572# published by the Free Software Foundation; either version 2 of
19573# the License, or (at your option) any later version.
19574#
19575# As a special exception to the GNU General Public License,
19576# if you distribute this file as part of a program or library that
19577# is built using GNU Libtool, you may include this file under the
19578# same distribution terms that you use for the rest of that program.
19579#
19580# GNU Libtool is distributed in the hope that it will be useful,
19581# but WITHOUT ANY WARRANTY; without even the implied warranty of
19582# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19583# GNU General Public License for more details.
19584#
19585# You should have received a copy of the GNU General Public License
19586# along with GNU Libtool; see the file COPYING. If not, a copy
19587# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19588# obtained by writing to the Free Software Foundation, Inc.,
19589# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19590
19591
19592# The names of the tagged configurations supported by this script.
19593available_tags="CXX "
19594
19595# ### BEGIN LIBTOOL CONFIG
19596
19597# Which release of libtool.m4 was used?
19598macro_version=$macro_version
19599macro_revision=$macro_revision
19600
19601# Whether or not to build shared libraries.
19602build_libtool_libs=$enable_shared
19603
19604# Whether or not to build static libraries.
19605build_old_libs=$enable_static
19606
19607# What type of objects to build.
19608pic_mode=$pic_mode
19609
19610# Whether or not to optimize for fast installation.
19611fast_install=$enable_fast_install
19612
19613# Shell to use when invoking shell scripts.
19614SHELL=$lt_SHELL
19615
19616# An echo program that protects backslashes.
19617ECHO=$lt_ECHO
19618
19619# The PATH separator for the build system.
19620PATH_SEPARATOR=$lt_PATH_SEPARATOR
19621
19622# The host system.
19623host_alias=$host_alias
19624host=$host
19625host_os=$host_os
19626
19627# The build system.
19628build_alias=$build_alias
19629build=$build
19630build_os=$build_os
19631
19632# A sed program that does not truncate output.
19633SED=$lt_SED
19634
19635# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19636Xsed="\$SED -e 1s/^X//"
19637
19638# A grep program that handles long lines.
19639GREP=$lt_GREP
19640
19641# An ERE matcher.
19642EGREP=$lt_EGREP
19643
19644# A literal string matcher.
19645FGREP=$lt_FGREP
19646
19647# A BSD- or MS-compatible name lister.
19648NM=$lt_NM
19649
19650# Whether we need soft or hard links.
19651LN_S=$lt_LN_S
19652
19653# What is the maximum length of a command?
19654max_cmd_len=$max_cmd_len
19655
19656# Object file suffix (normally "o").
19657objext=$ac_objext
19658
19659# Executable file suffix (normally "").
19660exeext=$exeext
19661
19662# whether the shell understands "unset".
19663lt_unset=$lt_unset
19664
19665# turn spaces into newlines.
19666SP2NL=$lt_lt_SP2NL
19667
19668# turn newlines into spaces.
19669NL2SP=$lt_lt_NL2SP
19670
19671# convert \$build file names to \$host format.
19672to_host_file_cmd=$lt_cv_to_host_file_cmd
19673
19674# convert \$build files to toolchain format.
19675to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19676
19677# An object symbol dumper.
19678OBJDUMP=$lt_OBJDUMP
19679
19680# Method to check whether dependent libraries are shared objects.
19681deplibs_check_method=$lt_deplibs_check_method
19682
19683# Command to use when deplibs_check_method = "file_magic".
19684file_magic_cmd=$lt_file_magic_cmd
19685
19686# How to find potential files when deplibs_check_method = "file_magic".
19687file_magic_glob=$lt_file_magic_glob
19688
19689# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19690want_nocaseglob=$lt_want_nocaseglob
19691
19692# DLL creation program.
19693DLLTOOL=$lt_DLLTOOL
19694
19695# Command to associate shared and link libraries.
19696sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19697
19698# The archiver.
19699AR=$lt_AR
19700
19701# Flags to create an archive.
19702AR_FLAGS=$lt_AR_FLAGS
19703
19704# How to feed a file listing to the archiver.
19705archiver_list_spec=$lt_archiver_list_spec
19706
19707# A symbol stripping program.
19708STRIP=$lt_STRIP
19709
19710# Commands used to install an old-style archive.
19711RANLIB=$lt_RANLIB
19712old_postinstall_cmds=$lt_old_postinstall_cmds
19713old_postuninstall_cmds=$lt_old_postuninstall_cmds
19714
19715# Whether to use a lock for old archive extraction.
19716lock_old_archive_extraction=$lock_old_archive_extraction
19717
19718# A C compiler.
19719LTCC=$lt_CC
19720
19721# LTCC compiler flags.
19722LTCFLAGS=$lt_CFLAGS
19723
19724# Take the output of nm and produce a listing of raw symbols and C names.
19725global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19726
19727# Transform the output of nm in a proper C declaration.
19728global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19729
19730# Transform the output of nm in a C name address pair.
19731global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19732
19733# Transform the output of nm in a C name address pair when lib prefix is needed.
19734global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19735
19736# Specify filename containing input files for \$NM.
19737nm_file_list_spec=$lt_nm_file_list_spec
19738
19739# The root where to search for dependent libraries,and in which our libraries should be installed.
19740lt_sysroot=$lt_sysroot
19741
19742# The name of the directory that contains temporary libtool files.
19743objdir=$objdir
19744
19745# Used to examine libraries when file_magic_cmd begins with "file".
19746MAGIC_CMD=$MAGIC_CMD
19747
19748# Must we lock files when doing compilation?
19749need_locks=$lt_need_locks
19750
19751# Manifest tool.
19752MANIFEST_TOOL=$lt_MANIFEST_TOOL
19753
19754# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19755DSYMUTIL=$lt_DSYMUTIL
19756
19757# Tool to change global to local symbols on Mac OS X.
19758NMEDIT=$lt_NMEDIT
19759
19760# Tool to manipulate fat objects and archives on Mac OS X.
19761LIPO=$lt_LIPO
19762
19763# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19764OTOOL=$lt_OTOOL
19765
19766# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19767OTOOL64=$lt_OTOOL64
19768
19769# Old archive suffix (normally "a").
19770libext=$libext
19771
19772# Shared library suffix (normally ".so").
19773shrext_cmds=$lt_shrext_cmds
19774
19775# The commands to extract the exported symbol list from a shared archive.
19776extract_expsyms_cmds=$lt_extract_expsyms_cmds
19777
19778# Variables whose values should be saved in libtool wrapper scripts and
19779# restored at link time.
19780variables_saved_for_relink=$lt_variables_saved_for_relink
19781
19782# Do we need the "lib" prefix for modules?
19783need_lib_prefix=$need_lib_prefix
19784
19785# Do we need a version for libraries?
19786need_version=$need_version
19787
19788# Library versioning type.
19789version_type=$version_type
19790
19791# Shared library runtime path variable.
19792runpath_var=$runpath_var
19793
19794# Shared library path variable.
19795shlibpath_var=$shlibpath_var
19796
19797# Is shlibpath searched before the hard-coded library search path?
19798shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19799
19800# Format of library name prefix.
19801libname_spec=$lt_libname_spec
19802
19803# List of archive names. First name is the real one, the rest are links.
19804# The last name is the one that the linker finds with -lNAME
19805library_names_spec=$lt_library_names_spec
19806
19807# The coded name of the library, if different from the real name.
19808soname_spec=$lt_soname_spec
19809
19810# Permission mode override for installation of shared libraries.
19811install_override_mode=$lt_install_override_mode
19812
19813# Command to use after installation of a shared archive.
19814postinstall_cmds=$lt_postinstall_cmds
19815
19816# Command to use after uninstallation of a shared archive.
19817postuninstall_cmds=$lt_postuninstall_cmds
19818
19819# Commands used to finish a libtool library installation in a directory.
19820finish_cmds=$lt_finish_cmds
19821
19822# As "finish_cmds", except a single script fragment to be evaled but
19823# not shown.
19824finish_eval=$lt_finish_eval
19825
19826# Whether we should hardcode library paths into libraries.
19827hardcode_into_libs=$hardcode_into_libs
19828
19829# Compile-time system search path for libraries.
19830sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19831
19832# Run-time system search path for libraries.
19833sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19834
19835# Whether dlopen is supported.
19836dlopen_support=$enable_dlopen
19837
19838# Whether dlopen of programs is supported.
19839dlopen_self=$enable_dlopen_self
19840
19841# Whether dlopen of statically linked programs is supported.
19842dlopen_self_static=$enable_dlopen_self_static
19843
19844# Commands to strip libraries.
19845old_striplib=$lt_old_striplib
19846striplib=$lt_striplib
19847
19848
19849# The linker used to build libraries.
19850LD=$lt_LD
19851
19852# How to create reloadable object files.
19853reload_flag=$lt_reload_flag
19854reload_cmds=$lt_reload_cmds
19855
19856# Commands used to build an old-style archive.
19857old_archive_cmds=$lt_old_archive_cmds
19858
19859# A language specific compiler.
19860CC=$lt_compiler
19861
19862# Is the compiler the GNU compiler?
19863with_gcc=$GCC
19864
19865# Compiler flag to turn off builtin functions.
19866no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19867
19868# Additional compiler flags for building library objects.
19869pic_flag=$lt_lt_prog_compiler_pic
19870
19871# How to pass a linker flag through the compiler.
19872wl=$lt_lt_prog_compiler_wl
19873
19874# Compiler flag to prevent dynamic linking.
19875link_static_flag=$lt_lt_prog_compiler_static
19876
19877# Does compiler simultaneously support -c and -o options?
19878compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19879
19880# Whether or not to add -lc for building shared libraries.
19881build_libtool_need_lc=$archive_cmds_need_lc
19882
19883# Whether or not to disallow shared libs when runtime libs are static.
19884allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19885
19886# Compiler flag to allow reflexive dlopens.
19887export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19888
19889# Compiler flag to generate shared objects directly from archives.
19890whole_archive_flag_spec=$lt_whole_archive_flag_spec
19891
19892# Whether the compiler copes with passing no objects directly.
19893compiler_needs_object=$lt_compiler_needs_object
19894
19895# Create an old-style archive from a shared archive.
19896old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19897
19898# Create a temporary old-style archive to link instead of a shared archive.
19899old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19900
19901# Commands used to build a shared archive.
19902archive_cmds=$lt_archive_cmds
19903archive_expsym_cmds=$lt_archive_expsym_cmds
19904
19905# Commands used to build a loadable module if different from building
19906# a shared archive.
19907module_cmds=$lt_module_cmds
19908module_expsym_cmds=$lt_module_expsym_cmds
19909
19910# Whether we are building with GNU ld or not.
19911with_gnu_ld=$lt_with_gnu_ld
19912
19913# Flag that allows shared libraries with undefined symbols to be built.
19914allow_undefined_flag=$lt_allow_undefined_flag
19915
19916# Flag that enforces no undefined symbols.
19917no_undefined_flag=$lt_no_undefined_flag
19918
19919# Flag to hardcode \$libdir into a binary during linking.
19920# This must work even if \$libdir does not exist
19921hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19922
19923# Whether we need a single "-rpath" flag with a separated argument.
19924hardcode_libdir_separator=$lt_hardcode_libdir_separator
19925
19926# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19927# DIR into the resulting binary.
19928hardcode_direct=$hardcode_direct
19929
19930# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19931# DIR into the resulting binary and the resulting library dependency is
19932# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19933# library is relocated.
19934hardcode_direct_absolute=$hardcode_direct_absolute
19935
19936# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19937# into the resulting binary.
19938hardcode_minus_L=$hardcode_minus_L
19939
19940# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19941# into the resulting binary.
19942hardcode_shlibpath_var=$hardcode_shlibpath_var
19943
19944# Set to "yes" if building a shared library automatically hardcodes DIR
19945# into the library and all subsequent libraries and executables linked
19946# against it.
19947hardcode_automatic=$hardcode_automatic
19948
19949# Set to yes if linker adds runtime paths of dependent libraries
19950# to runtime path list.
19951inherit_rpath=$inherit_rpath
19952
19953# Whether libtool must link a program against all its dependency libraries.
19954link_all_deplibs=$link_all_deplibs
19955
19956# Set to "yes" if exported symbols are required.
19957always_export_symbols=$always_export_symbols
19958
19959# The commands to list exported symbols.
19960export_symbols_cmds=$lt_export_symbols_cmds
19961
19962# Symbols that should not be listed in the preloaded symbols.
19963exclude_expsyms=$lt_exclude_expsyms
19964
19965# Symbols that must always be exported.
19966include_expsyms=$lt_include_expsyms
19967
19968# Commands necessary for linking programs (against libraries) with templates.
19969prelink_cmds=$lt_prelink_cmds
19970
19971# Commands necessary for finishing linking programs.
19972postlink_cmds=$lt_postlink_cmds
19973
19974# Specify filename containing input files.
19975file_list_spec=$lt_file_list_spec
19976
19977# How to hardcode a shared library path into an executable.
19978hardcode_action=$hardcode_action
19979
19980# The directories searched by this compiler when creating a shared library.
19981compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19982
19983# Dependencies to place before and after the objects being linked to
19984# create a shared library.
19985predep_objects=$lt_predep_objects
19986postdep_objects=$lt_postdep_objects
19987predeps=$lt_predeps
19988postdeps=$lt_postdeps
19989
19990# The library search path used internally by the compiler when linking
19991# a shared library.
19992compiler_lib_search_path=$lt_compiler_lib_search_path
19993
19994# ### END LIBTOOL CONFIG
19995
19996_LT_EOF
19997
19998 case $host_os in
19999 aix3*)
20000 cat <<\_LT_EOF >> "$cfgfile"
20001# AIX sometimes has problems with the GCC collect2 program. For some
20002# reason, if we set the COLLECT_NAMES environment variable, the problems
20003# vanish in a puff of smoke.
20004if test "X${COLLECT_NAMES+set}" != Xset; then
20005 COLLECT_NAMES=
20006 export COLLECT_NAMES
20007fi
20008_LT_EOF
20009 ;;
20010 esac
20011
20012
20013ltmain="$ac_aux_dir/ltmain.sh"
20014
20015
20016 # We use sed instead of cat because bash on DJGPP gets confused if
20017 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20018 # text mode, it properly converts lines to CR/LF. This bash problem
20019 # is reportedly fixed, but why not run on old versions too?
20020 sed '$q' "$ltmain" >> "$cfgfile" \
20021 || (rm -f "$cfgfile"; exit 1)
20022
20023 if test x"$xsi_shell" = xyes; then
20024 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20025func_dirname ()\
20026{\
20027\ case ${1} in\
20028\ */*) func_dirname_result="${1%/*}${2}" ;;\
20029\ * ) func_dirname_result="${3}" ;;\
20030\ esac\
20031} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20032 && mv -f "$cfgfile.tmp" "$cfgfile" \
20033 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20034test 0 -eq $? || _lt_function_replace_fail=:
20035
20036
20037 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20038func_basename ()\
20039{\
20040\ func_basename_result="${1##*/}"\
20041} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20042 && mv -f "$cfgfile.tmp" "$cfgfile" \
20043 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20044test 0 -eq $? || _lt_function_replace_fail=:
20045
20046
20047 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20048func_dirname_and_basename ()\
20049{\
20050\ case ${1} in\
20051\ */*) func_dirname_result="${1%/*}${2}" ;;\
20052\ * ) func_dirname_result="${3}" ;;\
20053\ esac\
20054\ func_basename_result="${1##*/}"\
20055} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20056 && mv -f "$cfgfile.tmp" "$cfgfile" \
20057 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20058test 0 -eq $? || _lt_function_replace_fail=:
20059
20060
20061 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20062func_stripname ()\
20063{\
20064\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20065\ # positional parameters, so assign one to ordinary parameter first.\
20066\ func_stripname_result=${3}\
20067\ func_stripname_result=${func_stripname_result#"${1}"}\
20068\ func_stripname_result=${func_stripname_result%"${2}"}\
20069} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20070 && mv -f "$cfgfile.tmp" "$cfgfile" \
20071 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20072test 0 -eq $? || _lt_function_replace_fail=:
20073
20074
20075 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20076func_split_long_opt ()\
20077{\
20078\ func_split_long_opt_name=${1%%=*}\
20079\ func_split_long_opt_arg=${1#*=}\
20080} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20081 && mv -f "$cfgfile.tmp" "$cfgfile" \
20082 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20083test 0 -eq $? || _lt_function_replace_fail=:
20084
20085
20086 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20087func_split_short_opt ()\
20088{\
20089\ func_split_short_opt_arg=${1#??}\
20090\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20091} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20092 && mv -f "$cfgfile.tmp" "$cfgfile" \
20093 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20094test 0 -eq $? || _lt_function_replace_fail=:
20095
20096
20097 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20098func_lo2o ()\
20099{\
20100\ case ${1} in\
20101\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20102\ *) func_lo2o_result=${1} ;;\
20103\ esac\
20104} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20105 && mv -f "$cfgfile.tmp" "$cfgfile" \
20106 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20107test 0 -eq $? || _lt_function_replace_fail=:
20108
20109
20110 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20111func_xform ()\
20112{\
20113 func_xform_result=${1%.*}.lo\
20114} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20115 && mv -f "$cfgfile.tmp" "$cfgfile" \
20116 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20117test 0 -eq $? || _lt_function_replace_fail=:
20118
20119
20120 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20121func_arith ()\
20122{\
20123 func_arith_result=$(( $* ))\
20124} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20125 && mv -f "$cfgfile.tmp" "$cfgfile" \
20126 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20127test 0 -eq $? || _lt_function_replace_fail=:
20128
20129
20130 sed -e '/^func_len ()$/,/^} # func_len /c\
20131func_len ()\
20132{\
20133 func_len_result=${#1}\
20134} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20135 && mv -f "$cfgfile.tmp" "$cfgfile" \
20136 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20137test 0 -eq $? || _lt_function_replace_fail=:
20138
20139fi
20140
20141if test x"$lt_shell_append" = xyes; then
20142 sed -e '/^func_append ()$/,/^} # func_append /c\
20143func_append ()\
20144{\
20145 eval "${1}+=\\${2}"\
20146} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20147 && mv -f "$cfgfile.tmp" "$cfgfile" \
20148 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20149test 0 -eq $? || _lt_function_replace_fail=:
20150
20151
20152 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20153func_append_quoted ()\
20154{\
20155\ func_quote_for_eval "${2}"\
20156\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20157} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20158 && mv -f "$cfgfile.tmp" "$cfgfile" \
20159 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20160test 0 -eq $? || _lt_function_replace_fail=:
20161
20162
20163 # Save a `func_append' function call where possible by direct use of '+='
20164 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20165 && mv -f "$cfgfile.tmp" "$cfgfile" \
20166 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20167 test 0 -eq $? || _lt_function_replace_fail=:
20168else
20169 # Save a `func_append' function call even when '+=' is not available
20170 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20171 && mv -f "$cfgfile.tmp" "$cfgfile" \
20172 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20173 test 0 -eq $? || _lt_function_replace_fail=:
20174fi
20175
20176if test x"$_lt_function_replace_fail" = x":"; then
20177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20178$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20179fi
20180
20181
20182 mv -f "$cfgfile" "$ofile" ||
20183 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20184 chmod +x "$ofile"
20185
20186
20187 cat <<_LT_EOF >> "$ofile"
20188
20189# ### BEGIN LIBTOOL TAG CONFIG: CXX
20190
20191# The linker used to build libraries.
20192LD=$lt_LD_CXX
20193
20194# How to create reloadable object files.
20195reload_flag=$lt_reload_flag_CXX
20196reload_cmds=$lt_reload_cmds_CXX
20197
20198# Commands used to build an old-style archive.
20199old_archive_cmds=$lt_old_archive_cmds_CXX
20200
20201# A language specific compiler.
20202CC=$lt_compiler_CXX
20203
20204# Is the compiler the GNU compiler?
20205with_gcc=$GCC_CXX
20206
20207# Compiler flag to turn off builtin functions.
20208no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20209
20210# Additional compiler flags for building library objects.
20211pic_flag=$lt_lt_prog_compiler_pic_CXX
20212
20213# How to pass a linker flag through the compiler.
20214wl=$lt_lt_prog_compiler_wl_CXX
20215
20216# Compiler flag to prevent dynamic linking.
20217link_static_flag=$lt_lt_prog_compiler_static_CXX
20218
20219# Does compiler simultaneously support -c and -o options?
20220compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20221
20222# Whether or not to add -lc for building shared libraries.
20223build_libtool_need_lc=$archive_cmds_need_lc_CXX
20224
20225# Whether or not to disallow shared libs when runtime libs are static.
20226allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20227
20228# Compiler flag to allow reflexive dlopens.
20229export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20230
20231# Compiler flag to generate shared objects directly from archives.
20232whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20233
20234# Whether the compiler copes with passing no objects directly.
20235compiler_needs_object=$lt_compiler_needs_object_CXX
20236
20237# Create an old-style archive from a shared archive.
20238old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20239
20240# Create a temporary old-style archive to link instead of a shared archive.
20241old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20242
20243# Commands used to build a shared archive.
20244archive_cmds=$lt_archive_cmds_CXX
20245archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20246
20247# Commands used to build a loadable module if different from building
20248# a shared archive.
20249module_cmds=$lt_module_cmds_CXX
20250module_expsym_cmds=$lt_module_expsym_cmds_CXX
20251
20252# Whether we are building with GNU ld or not.
20253with_gnu_ld=$lt_with_gnu_ld_CXX
20254
20255# Flag that allows shared libraries with undefined symbols to be built.
20256allow_undefined_flag=$lt_allow_undefined_flag_CXX
20257
20258# Flag that enforces no undefined symbols.
20259no_undefined_flag=$lt_no_undefined_flag_CXX
20260
20261# Flag to hardcode \$libdir into a binary during linking.
20262# This must work even if \$libdir does not exist
20263hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20264
20265# Whether we need a single "-rpath" flag with a separated argument.
20266hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20267
20268# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20269# DIR into the resulting binary.
20270hardcode_direct=$hardcode_direct_CXX
20271
20272# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20273# DIR into the resulting binary and the resulting library dependency is
20274# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20275# library is relocated.
20276hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20277
20278# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20279# into the resulting binary.
20280hardcode_minus_L=$hardcode_minus_L_CXX
20281
20282# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20283# into the resulting binary.
20284hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20285
20286# Set to "yes" if building a shared library automatically hardcodes DIR
20287# into the library and all subsequent libraries and executables linked
20288# against it.
20289hardcode_automatic=$hardcode_automatic_CXX
20290
20291# Set to yes if linker adds runtime paths of dependent libraries
20292# to runtime path list.
20293inherit_rpath=$inherit_rpath_CXX
20294
20295# Whether libtool must link a program against all its dependency libraries.
20296link_all_deplibs=$link_all_deplibs_CXX
20297
20298# Set to "yes" if exported symbols are required.
20299always_export_symbols=$always_export_symbols_CXX
20300
20301# The commands to list exported symbols.
20302export_symbols_cmds=$lt_export_symbols_cmds_CXX
20303
20304# Symbols that should not be listed in the preloaded symbols.
20305exclude_expsyms=$lt_exclude_expsyms_CXX
20306
20307# Symbols that must always be exported.
20308include_expsyms=$lt_include_expsyms_CXX
20309
20310# Commands necessary for linking programs (against libraries) with templates.
20311prelink_cmds=$lt_prelink_cmds_CXX
20312
20313# Commands necessary for finishing linking programs.
20314postlink_cmds=$lt_postlink_cmds_CXX
20315
20316# Specify filename containing input files.
20317file_list_spec=$lt_file_list_spec_CXX
20318
20319# How to hardcode a shared library path into an executable.
20320hardcode_action=$hardcode_action_CXX
20321
20322# The directories searched by this compiler when creating a shared library.
20323compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20324
20325# Dependencies to place before and after the objects being linked to
20326# create a shared library.
20327predep_objects=$lt_predep_objects_CXX
20328postdep_objects=$lt_postdep_objects_CXX
20329predeps=$lt_predeps_CXX
20330postdeps=$lt_postdeps_CXX
20331
20332# The library search path used internally by the compiler when linking
20333# a shared library.
20334compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20335
20336# ### END LIBTOOL TAG CONFIG: CXX
20337_LT_EOF
20338
20339 ;;
Jeff Thompson39128c62013-06-19 14:08:51 -070020340
20341 esac
20342done # for ac_tag
20343
20344
20345as_fn_exit 0
20346_ACEOF
20347ac_clean_files=$ac_clean_files_save
20348
20349test $ac_write_fail = 0 ||
20350 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20351
20352
20353# configure is writing to config.log, and then calls config.status.
20354# config.status does its own redirection, appending to config.log.
20355# Unfortunately, on DOS this fails, as config.log is still kept open
20356# by configure, so config.status won't be able to write to it; its
20357# output is simply discarded. So we exec the FD to /dev/null,
20358# effectively closing config.log, so it can be properly (re)opened and
20359# appended to by config.status. When coming back to configure, we
20360# need to make the FD available again.
20361if test "$no_create" != yes; then
20362 ac_cs_success=:
20363 ac_config_status_args=
20364 test "$silent" = yes &&
20365 ac_config_status_args="$ac_config_status_args --quiet"
20366 exec 5>/dev/null
20367 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20368 exec 5>>config.log
20369 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20370 # would make configure fail if this is the last instruction.
20371 $ac_cs_success || as_fn_exit 1
20372fi
20373if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20375$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20376fi
20377