blob: f54c09f1933f27971de1e4900936e7febd572e26 [file] [log] [blame]
Jeff Thompson39128c62013-06-19 14:08:51 -07001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Jeff Thompson93a24162013-09-27 13:28:13 -07003# Generated by GNU Autoconf 2.69 for ndn-cpp 0.2.
4#
5# Report bugs to <ndn-lib@lists.cs.ucla.edu>.
Jeff Thompson39128c62013-06-19 14:08:51 -07006#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
Jeff Thompson4f031642013-08-05 11:03:16 -0700200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
Jeff Thompson39128c62013-06-19 14:08:51 -0700210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
Jeff Thompson93a24162013-09-27 13:28:13 -0700277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: ndn-lib@lists.cs.ucla.edu about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
Jeff Thompson39128c62013-06-19 14:08:51 -0700282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520*)
521 ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545else
546 as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
Jeff Thompson4f031642013-08-05 11:03:16 -0700567SHELL=${CONFIG_SHELL-/bin/sh}
568
Jeff Thompson39128c62013-06-19 14:08:51 -0700569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='ndn-cpp'
592PACKAGE_TARNAME='ndn-cpp'
Jeff Thompson93a24162013-09-27 13:28:13 -0700593PACKAGE_VERSION='0.2'
594PACKAGE_STRING='ndn-cpp 0.2'
595PACKAGE_BUGREPORT='ndn-lib@lists.cs.ucla.edu'
Jeff Thompson39128c62013-06-19 14:08:51 -0700596PACKAGE_URL='https://github.com/named-data/ndn-cpp'
597
Jeff Thompson5d16a902013-10-10 11:15:14 -0700598ac_unique_file="configure.ac"
Jeff Thompson4f031642013-08-05 11:03:16 -0700599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
Jeff Thompson39128c62013-06-19 14:08:51 -0700635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
Jeff Thompsonca45e552013-06-26 17:40:06 -0700639DOXYGEN_PAPER_SIZE
640DX_COND_latex_FALSE
641DX_COND_latex_TRUE
642DX_COND_pdf_FALSE
643DX_COND_pdf_TRUE
644DX_PDFLATEX
645DX_FLAG_pdf
646DX_COND_ps_FALSE
647DX_COND_ps_TRUE
648DX_EGREP
649DX_DVIPS
650DX_MAKEINDEX
651DX_LATEX
652DX_FLAG_ps
653DX_COND_html_FALSE
654DX_COND_html_TRUE
655DX_FLAG_html
656DX_COND_chi_FALSE
657DX_COND_chi_TRUE
658DX_FLAG_chi
659DX_COND_chm_FALSE
660DX_COND_chm_TRUE
661DX_HHC
662DX_FLAG_chm
663DX_COND_xml_FALSE
664DX_COND_xml_TRUE
665DX_FLAG_xml
666DX_COND_rtf_FALSE
667DX_COND_rtf_TRUE
668DX_FLAG_rtf
669DX_COND_man_FALSE
670DX_COND_man_TRUE
671DX_FLAG_man
672DX_COND_dot_FALSE
673DX_COND_dot_TRUE
674DX_DOT
675DX_FLAG_dot
676DX_COND_doc_FALSE
677DX_COND_doc_TRUE
678DX_PERL
679DX_DOXYGEN
680DX_FLAG_doc
681DX_ENV
682DX_DOCDIR
683DX_CONFIG
684DX_PROJECT
Jeff Thompson965a3242013-10-02 09:59:35 -0700685SQLITE3_VERSION
686SQLITE3_LDFLAGS
687SQLITE3_CFLAGS
Jeff Thompsond0f62e12013-10-09 17:41:25 -0700688HAVE_CXX11
Jeff Thompson965a3242013-10-02 09:59:35 -0700689am__fastdepOBJCXX_FALSE
690am__fastdepOBJCXX_TRUE
691OBJCXXDEPMODE
692ac_ct_OBJCXX
693OBJCXXFLAGS
694OBJCXX
Jeff Thompson4f031642013-08-05 11:03:16 -0700695CXXCPP
Jeff Thompson39128c62013-06-19 14:08:51 -0700696am__fastdepCXX_FALSE
697am__fastdepCXX_TRUE
698CXXDEPMODE
Jeff Thompson4f031642013-08-05 11:03:16 -0700699ac_ct_CXX
700CXXFLAGS
701CXX
702CPP
703OTOOL64
704OTOOL
705LIPO
706NMEDIT
707DSYMUTIL
708MANIFEST_TOOL
709RANLIB
710DLLTOOL
711OBJDUMP
712LN_S
713NM
714ac_ct_DUMPBIN
715DUMPBIN
716LD
717FGREP
718EGREP
719GREP
720SED
721host_os
722host_vendor
723host_cpu
724host
725build_os
726build_vendor
727build_cpu
728build
729LIBTOOL
730am__fastdepCC_FALSE
731am__fastdepCC_TRUE
732CCDEPMODE
Jeff Thompson39128c62013-06-19 14:08:51 -0700733am__nodep
734AMDEPBACKSLASH
735AMDEP_FALSE
736AMDEP_TRUE
737am__quote
738am__include
739DEPDIR
740OBJEXT
741EXEEXT
Jeff Thompson4f031642013-08-05 11:03:16 -0700742ac_ct_CC
Jeff Thompson39128c62013-06-19 14:08:51 -0700743CPPFLAGS
744LDFLAGS
Jeff Thompson4f031642013-08-05 11:03:16 -0700745CFLAGS
746CC
747ac_ct_AR
748AR
Jeff Thompson47053ad2013-08-05 10:36:53 -0700749MAINT
750MAINTAINER_MODE_FALSE
751MAINTAINER_MODE_TRUE
Jeff Thompson39128c62013-06-19 14:08:51 -0700752AM_BACKSLASH
753AM_DEFAULT_VERBOSITY
754AM_DEFAULT_V
755AM_V
756am__untar
757am__tar
758AMTAR
759am__leading_dot
760SET_MAKE
761AWK
762mkdir_p
763MKDIR_P
764INSTALL_STRIP_PROGRAM
765STRIP
766install_sh
767MAKEINFO
768AUTOHEADER
769AUTOMAKE
770AUTOCONF
771ACLOCAL
772VERSION
773PACKAGE
774CYGPATH_W
775am__isrc
776INSTALL_DATA
777INSTALL_SCRIPT
778INSTALL_PROGRAM
779target_alias
780host_alias
781build_alias
782LIBS
783ECHO_T
784ECHO_N
785ECHO_C
786DEFS
787mandir
788localedir
789libdir
790psdir
791pdfdir
792dvidir
793htmldir
794infodir
795docdir
796oldincludedir
797includedir
798localstatedir
799sharedstatedir
800sysconfdir
801datadir
802datarootdir
803libexecdir
804sbindir
805bindir
806program_transform_name
807prefix
808exec_prefix
809PACKAGE_URL
810PACKAGE_BUGREPORT
811PACKAGE_STRING
812PACKAGE_VERSION
813PACKAGE_TARNAME
814PACKAGE_NAME
815PATH_SEPARATOR
816SHELL'
817ac_subst_files=''
818ac_user_opts='
819enable_option_checking
820enable_silent_rules
Jeff Thompson47053ad2013-08-05 10:36:53 -0700821enable_maintainer_mode
Jeff Thompson39128c62013-06-19 14:08:51 -0700822enable_dependency_tracking
Jeff Thompson4f031642013-08-05 11:03:16 -0700823enable_shared
824enable_static
825with_pic
826enable_fast_install
827with_gnu_ld
828with_sysroot
829enable_libtool_lock
Jeff Thompson965a3242013-10-02 09:59:35 -0700830with_sqlite3
Jeff Thompsonca45e552013-06-26 17:40:06 -0700831enable_doxygen_doc
832enable_doxygen_dot
833enable_doxygen_man
834enable_doxygen_rtf
835enable_doxygen_xml
836enable_doxygen_chm
837enable_doxygen_chi
838enable_doxygen_html
839enable_doxygen_ps
840enable_doxygen_pdf
Jeff Thompson39128c62013-06-19 14:08:51 -0700841'
842 ac_precious_vars='build_alias
843host_alias
844target_alias
Jeff Thompson4f031642013-08-05 11:03:16 -0700845CC
846CFLAGS
Jeff Thompson39128c62013-06-19 14:08:51 -0700847LDFLAGS
848LIBS
849CPPFLAGS
Jeff Thompson4f031642013-08-05 11:03:16 -0700850CPP
851CXX
852CXXFLAGS
Jeff Thompson36174062013-06-21 16:03:44 -0700853CCC
Jeff Thompson4f031642013-08-05 11:03:16 -0700854CXXCPP
Jeff Thompson965a3242013-10-02 09:59:35 -0700855OBJCXX
856OBJCXXFLAGS
Jeff Thompsonca45e552013-06-26 17:40:06 -0700857DOXYGEN_PAPER_SIZE'
Jeff Thompson39128c62013-06-19 14:08:51 -0700858
859
860# Initialize some variables set by options.
861ac_init_help=
862ac_init_version=false
863ac_unrecognized_opts=
864ac_unrecognized_sep=
865# The variables have the same names as the options, with
866# dashes changed to underlines.
867cache_file=/dev/null
868exec_prefix=NONE
869no_create=
870no_recursion=
871prefix=NONE
872program_prefix=NONE
873program_suffix=NONE
874program_transform_name=s,x,x,
875silent=
876site=
877srcdir=
878verbose=
879x_includes=NONE
880x_libraries=NONE
881
882# Installation directory options.
883# These are left unexpanded so users can "make install exec_prefix=/foo"
884# and all the variables that are supposed to be based on exec_prefix
885# by default will actually change.
886# Use braces instead of parens because sh, perl, etc. also accept them.
887# (The list follows the same order as the GNU Coding Standards.)
888bindir='${exec_prefix}/bin'
889sbindir='${exec_prefix}/sbin'
890libexecdir='${exec_prefix}/libexec'
891datarootdir='${prefix}/share'
892datadir='${datarootdir}'
893sysconfdir='${prefix}/etc'
894sharedstatedir='${prefix}/com'
895localstatedir='${prefix}/var'
896includedir='${prefix}/include'
897oldincludedir='/usr/include'
898docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
899infodir='${datarootdir}/info'
900htmldir='${docdir}'
901dvidir='${docdir}'
902pdfdir='${docdir}'
903psdir='${docdir}'
904libdir='${exec_prefix}/lib'
905localedir='${datarootdir}/locale'
906mandir='${datarootdir}/man'
907
908ac_prev=
909ac_dashdash=
910for ac_option
911do
912 # If the previous option needs an argument, assign it.
913 if test -n "$ac_prev"; then
914 eval $ac_prev=\$ac_option
915 ac_prev=
916 continue
917 fi
918
919 case $ac_option in
920 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921 *=) ac_optarg= ;;
922 *) ac_optarg=yes ;;
923 esac
924
925 # Accept the important Cygnus configure options, so we can diagnose typos.
926
927 case $ac_dashdash$ac_option in
928 --)
929 ac_dashdash=yes ;;
930
931 -bindir | --bindir | --bindi | --bind | --bin | --bi)
932 ac_prev=bindir ;;
933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934 bindir=$ac_optarg ;;
935
936 -build | --build | --buil | --bui | --bu)
937 ac_prev=build_alias ;;
938 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939 build_alias=$ac_optarg ;;
940
941 -cache-file | --cache-file | --cache-fil | --cache-fi \
942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943 ac_prev=cache_file ;;
944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946 cache_file=$ac_optarg ;;
947
948 --config-cache | -C)
949 cache_file=config.cache ;;
950
951 -datadir | --datadir | --datadi | --datad)
952 ac_prev=datadir ;;
953 -datadir=* | --datadir=* | --datadi=* | --datad=*)
954 datadir=$ac_optarg ;;
955
956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957 | --dataroo | --dataro | --datar)
958 ac_prev=datarootdir ;;
959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961 datarootdir=$ac_optarg ;;
962
963 -disable-* | --disable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
971 *"
972"enable_$ac_useropt"
973"*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=no ;;
978
979 -docdir | --docdir | --docdi | --doc | --do)
980 ac_prev=docdir ;;
981 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
982 docdir=$ac_optarg ;;
983
984 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
985 ac_prev=dvidir ;;
986 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
987 dvidir=$ac_optarg ;;
988
989 -enable-* | --enable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 as_fn_error $? "invalid feature name: $ac_useropt"
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
997 *"
998"enable_$ac_useropt"
999"*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=\$ac_optarg ;;
1004
1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007 | --exec | --exe | --ex)
1008 ac_prev=exec_prefix ;;
1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011 | --exec=* | --exe=* | --ex=*)
1012 exec_prefix=$ac_optarg ;;
1013
1014 -gas | --gas | --ga | --g)
1015 # Obsolete; use --with-gas.
1016 with_gas=yes ;;
1017
1018 -help | --help | --hel | --he | -h)
1019 ac_init_help=long ;;
1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021 ac_init_help=recursive ;;
1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023 ac_init_help=short ;;
1024
1025 -host | --host | --hos | --ho)
1026 ac_prev=host_alias ;;
1027 -host=* | --host=* | --hos=* | --ho=*)
1028 host_alias=$ac_optarg ;;
1029
1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1031 ac_prev=htmldir ;;
1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1033 | --ht=*)
1034 htmldir=$ac_optarg ;;
1035
1036 -includedir | --includedir | --includedi | --included | --include \
1037 | --includ | --inclu | --incl | --inc)
1038 ac_prev=includedir ;;
1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040 | --includ=* | --inclu=* | --incl=* | --inc=*)
1041 includedir=$ac_optarg ;;
1042
1043 -infodir | --infodir | --infodi | --infod | --info | --inf)
1044 ac_prev=infodir ;;
1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046 infodir=$ac_optarg ;;
1047
1048 -libdir | --libdir | --libdi | --libd)
1049 ac_prev=libdir ;;
1050 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051 libdir=$ac_optarg ;;
1052
1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054 | --libexe | --libex | --libe)
1055 ac_prev=libexecdir ;;
1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057 | --libexe=* | --libex=* | --libe=*)
1058 libexecdir=$ac_optarg ;;
1059
1060 -localedir | --localedir | --localedi | --localed | --locale)
1061 ac_prev=localedir ;;
1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063 localedir=$ac_optarg ;;
1064
1065 -localstatedir | --localstatedir | --localstatedi | --localstated \
1066 | --localstate | --localstat | --localsta | --localst | --locals)
1067 ac_prev=localstatedir ;;
1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070 localstatedir=$ac_optarg ;;
1071
1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1073 ac_prev=mandir ;;
1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075 mandir=$ac_optarg ;;
1076
1077 -nfp | --nfp | --nf)
1078 # Obsolete; use --without-fp.
1079 with_fp=no ;;
1080
1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082 | --no-cr | --no-c | -n)
1083 no_create=yes ;;
1084
1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087 no_recursion=yes ;;
1088
1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091 | --oldin | --oldi | --old | --ol | --o)
1092 ac_prev=oldincludedir ;;
1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096 oldincludedir=$ac_optarg ;;
1097
1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1099 ac_prev=prefix ;;
1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101 prefix=$ac_optarg ;;
1102
1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104 | --program-pre | --program-pr | --program-p)
1105 ac_prev=program_prefix ;;
1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108 program_prefix=$ac_optarg ;;
1109
1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111 | --program-suf | --program-su | --program-s)
1112 ac_prev=program_suffix ;;
1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115 program_suffix=$ac_optarg ;;
1116
1117 -program-transform-name | --program-transform-name \
1118 | --program-transform-nam | --program-transform-na \
1119 | --program-transform-n | --program-transform- \
1120 | --program-transform | --program-transfor \
1121 | --program-transfo | --program-transf \
1122 | --program-trans | --program-tran \
1123 | --progr-tra | --program-tr | --program-t)
1124 ac_prev=program_transform_name ;;
1125 -program-transform-name=* | --program-transform-name=* \
1126 | --program-transform-nam=* | --program-transform-na=* \
1127 | --program-transform-n=* | --program-transform-=* \
1128 | --program-transform=* | --program-transfor=* \
1129 | --program-transfo=* | --program-transf=* \
1130 | --program-trans=* | --program-tran=* \
1131 | --progr-tra=* | --program-tr=* | --program-t=*)
1132 program_transform_name=$ac_optarg ;;
1133
1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1135 ac_prev=pdfdir ;;
1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137 pdfdir=$ac_optarg ;;
1138
1139 -psdir | --psdir | --psdi | --psd | --ps)
1140 ac_prev=psdir ;;
1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142 psdir=$ac_optarg ;;
1143
1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145 | -silent | --silent | --silen | --sile | --sil)
1146 silent=yes ;;
1147
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149 ac_prev=sbindir ;;
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151 | --sbi=* | --sb=*)
1152 sbindir=$ac_optarg ;;
1153
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1157 | --sha | --sh)
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162 | --sha=* | --sh=*)
1163 sharedstatedir=$ac_optarg ;;
1164
1165 -site | --site | --sit)
1166 ac_prev=site ;;
1167 -site=* | --site=* | --sit=*)
1168 site=$ac_optarg ;;
1169
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171 ac_prev=srcdir ;;
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1174
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1181
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1186
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188 verbose=yes ;;
1189
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1192
1193 -with-* | --with-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: $ac_useropt"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1201 *"
1202"with_$ac_useropt"
1203"*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=\$ac_optarg ;;
1208
1209 -without-* | --without-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: $ac_useropt"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1217 *"
1218"with_$ac_useropt"
1219"*) ;;
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1222 esac
1223 eval with_$ac_useropt=no ;;
1224
1225 --x)
1226 # Obsolete; use --with-x.
1227 with_x=yes ;;
1228
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234 x_includes=$ac_optarg ;;
1235
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241 x_libraries=$ac_optarg ;;
1242
1243 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244Try \`$0 --help' for more information"
1245 ;;
1246
1247 *=*)
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 case $ac_envvar in #(
1251 '' | [0-9]* | *[!_$as_cr_alnum]* )
1252 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1253 esac
1254 eval $ac_envvar=\$ac_optarg
1255 export $ac_envvar ;;
1256
1257 *)
1258 # FIXME: should be removed in autoconf 3.0.
1259 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1263 ;;
1264
1265 esac
1266done
1267
1268if test -n "$ac_prev"; then
1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270 as_fn_error $? "missing argument to $ac_option"
1271fi
1272
1273if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1275 no) ;;
1276 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278 esac
1279fi
1280
1281# Check all directory arguments for consistency.
1282for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir
1286do
1287 eval ac_val=\$$ac_var
1288 # Remove trailing slashes.
1289 case $ac_val in
1290 */ )
1291 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292 eval $ac_var=\$ac_val;;
1293 esac
1294 # Be sure to have absolute directory names.
1295 case $ac_val in
1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298 esac
1299 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1300done
1301
1302# There might be people who depend on the old broken behavior: `$host'
1303# used to hold the argument of --host etc.
1304# FIXME: To remove some day.
1305build=$build_alias
1306host=$host_alias
1307target=$target_alias
1308
1309# FIXME: To remove some day.
1310if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 elif test "x$build_alias" != "x$host_alias"; then
1314 cross_compiling=yes
1315 fi
1316fi
1317
1318ac_tool_prefix=
1319test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321test "$silent" = yes && exec 6>/dev/null
1322
1323
1324ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325ac_ls_di=`ls -di .` &&
1326ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 as_fn_error $? "working directory cannot be determined"
1328test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329 as_fn_error $? "pwd does not report name of working directory"
1330
1331
1332# Find the source files, if location was not specified.
1333if test -z "$srcdir"; then
1334 ac_srcdir_defaulted=yes
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir=`$as_dirname -- "$as_myself" ||
1337$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$as_myself" : 'X\(//\)[^/]' \| \
1339 X"$as_myself" : 'X\(//\)$' \| \
1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341$as_echo X"$as_myself" |
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)[^/].*/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)$/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\).*/{
1355 s//\1/
1356 q
1357 }
1358 s/.*/./; q'`
1359 srcdir=$ac_confdir
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 srcdir=..
1362 fi
1363else
1364 ac_srcdir_defaulted=no
1365fi
1366if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1369fi
1370ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371ac_abs_confdir=`(
1372 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1373 pwd)`
1374# When building in place, set srcdir=.
1375if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 srcdir=.
1377fi
1378# Remove unnecessary trailing slashes from srcdir.
1379# Double slashes in file names in object file debugging info
1380# mess up M-x gdb in Emacs.
1381case $srcdir in
1382*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383esac
1384for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389done
1390
1391#
1392# Report the --help message.
1393#
1394if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1397 cat <<_ACEOF
Jeff Thompson93a24162013-09-27 13:28:13 -07001398\`configure' configures ndn-cpp 0.2 to adapt to many kinds of systems.
Jeff Thompson39128c62013-06-19 14:08:51 -07001399
1400Usage: $0 [OPTION]... [VAR=VALUE]...
1401
1402To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403VAR=VALUE. See below for descriptions of some of the useful variables.
1404
1405Defaults for the options are specified in brackets.
1406
1407Configuration:
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking ...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417
1418Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 [PREFIX]
1423
1424By default, \`make install' will install all the files in
1425\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427for instance \`--prefix=\$HOME'.
1428
1429For better control, use the options below.
1430
1431Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/ndn-cpp]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1451_ACEOF
1452
1453 cat <<\_ACEOF
1454
1455Program names:
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
Jeff Thompson4f031642013-08-05 11:03:16 -07001459
1460System types:
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Jeff Thompson39128c62013-06-19 14:08:51 -07001463_ACEOF
1464fi
1465
1466if test -n "$ac_init_help"; then
1467 case $ac_init_help in
Jeff Thompson93a24162013-09-27 13:28:13 -07001468 short | recursive ) echo "Configuration of ndn-cpp 0.2:";;
Jeff Thompson39128c62013-06-19 14:08:51 -07001469 esac
1470 cat <<\_ACEOF
1471
1472Optional Features:
1473 --disable-option-checking ignore unrecognized --enable/--with options
1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1476 --enable-silent-rules less verbose build output (undo: "make V=1")
1477 --disable-silent-rules verbose build output (undo: "make V=0")
Jeff Thompson47053ad2013-08-05 10:36:53 -07001478 --enable-maintainer-mode
1479 enable make rules and dependencies not useful (and
1480 sometimes confusing) to the casual installer
Jeff Thompson39128c62013-06-19 14:08:51 -07001481 --enable-dependency-tracking
1482 do not reject slow dependency extractors
1483 --disable-dependency-tracking
1484 speeds up one-time build
Jeff Thompson4f031642013-08-05 11:03:16 -07001485 --enable-shared[=PKGS] build shared libraries [default=yes]
1486 --enable-static[=PKGS] build static libraries [default=yes]
1487 --enable-fast-install[=PKGS]
1488 optimize for fast installation [default=yes]
1489 --disable-libtool-lock avoid locking (might break parallel builds)
Jeff Thompsonca45e552013-06-26 17:40:06 -07001490 --disable-doxygen-doc don't generate any doxygen documentation
1491 --enable-doxygen-dot generate graphics for doxygen documentation
1492 --enable-doxygen-man generate doxygen manual pages
1493 --enable-doxygen-rtf generate doxygen RTF documentation
1494 --enable-doxygen-xml generate doxygen XML documentation
1495 --enable-doxygen-chm generate doxygen compressed HTML help documentation
1496 --enable-doxygen-chi generate doxygen seperate compressed HTML help index
1497 file
1498 --disable-doxygen-html don't generate doxygen plain HTML documentation
1499 --enable-doxygen-ps generate doxygen PostScript documentation
1500 --enable-doxygen-pdf generate doxygen PDF documentation
Jeff Thompson39128c62013-06-19 14:08:51 -07001501
Jeff Thompson4f031642013-08-05 11:03:16 -07001502Optional Packages:
1503 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1504 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1505 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1506 both]
1507 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1508 --with-sysroot=DIR Search for dependent libraries within DIR
1509 (or the compiler's sysroot if not specified).
Jeff Thompson965a3242013-10-02 09:59:35 -07001510 --with-sqlite3=[ARG] use SQLite 3 library [default=yes], optionally
1511 specify the prefix for sqlite3 library
Jeff Thompson4f031642013-08-05 11:03:16 -07001512
Jeff Thompson39128c62013-06-19 14:08:51 -07001513Some influential environment variables:
Jeff Thompson4f031642013-08-05 11:03:16 -07001514 CC C compiler command
1515 CFLAGS C compiler flags
Jeff Thompson39128c62013-06-19 14:08:51 -07001516 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1517 nonstandard directory <lib dir>
1518 LIBS libraries to pass to the linker, e.g. -l<library>
1519 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1520 you have headers in a nonstandard directory <include dir>
Jeff Thompson4f031642013-08-05 11:03:16 -07001521 CPP C preprocessor
1522 CXX C++ compiler command
1523 CXXFLAGS C++ compiler flags
1524 CXXCPP C++ preprocessor
Jeff Thompson965a3242013-10-02 09:59:35 -07001525 OBJCXX Objective C++ compiler command
1526 OBJCXXFLAGS Objective C++ compiler flags
Jeff Thompsonca45e552013-06-26 17:40:06 -07001527 DOXYGEN_PAPER_SIZE
1528 a4wide (default), a4, letter, legal or executive
Jeff Thompson39128c62013-06-19 14:08:51 -07001529
1530Use these variables to override the choices made by `configure' or to help
1531it to find libraries and programs with nonstandard names/locations.
1532
Jeff Thompson93a24162013-09-27 13:28:13 -07001533Report bugs to <ndn-lib@lists.cs.ucla.edu>.
Jeff Thompson39128c62013-06-19 14:08:51 -07001534ndn-cpp home page: <https://github.com/named-data/ndn-cpp>.
1535_ACEOF
1536ac_status=$?
1537fi
1538
1539if test "$ac_init_help" = "recursive"; then
1540 # If there are subdirs, report their specific --help.
1541 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542 test -d "$ac_dir" ||
1543 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1544 continue
1545 ac_builddir=.
1546
1547case "$ac_dir" in
1548.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549*)
1550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1551 # A ".." for each directory in $ac_dir_suffix.
1552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1553 case $ac_top_builddir_sub in
1554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556 esac ;;
1557esac
1558ac_abs_top_builddir=$ac_pwd
1559ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560# for backward compatibility:
1561ac_top_builddir=$ac_top_build_prefix
1562
1563case $srcdir in
1564 .) # We are building in place.
1565 ac_srcdir=.
1566 ac_top_srcdir=$ac_top_builddir_sub
1567 ac_abs_top_srcdir=$ac_pwd ;;
1568 [\\/]* | ?:[\\/]* ) # Absolute name.
1569 ac_srcdir=$srcdir$ac_dir_suffix;
1570 ac_top_srcdir=$srcdir
1571 ac_abs_top_srcdir=$srcdir ;;
1572 *) # Relative name.
1573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574 ac_top_srcdir=$ac_top_build_prefix$srcdir
1575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576esac
1577ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1578
1579 cd "$ac_dir" || { ac_status=$?; continue; }
1580 # Check for guested configure.
1581 if test -f "$ac_srcdir/configure.gnu"; then
1582 echo &&
1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584 elif test -f "$ac_srcdir/configure"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure" --help=recursive
1587 else
1588 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589 fi || ac_status=$?
1590 cd "$ac_pwd" || { ac_status=$?; break; }
1591 done
1592fi
1593
1594test -n "$ac_init_help" && exit $ac_status
1595if $ac_init_version; then
1596 cat <<\_ACEOF
Jeff Thompson93a24162013-09-27 13:28:13 -07001597ndn-cpp configure 0.2
Jeff Thompson39128c62013-06-19 14:08:51 -07001598generated by GNU Autoconf 2.69
1599
1600Copyright (C) 2012 Free Software Foundation, Inc.
1601This configure script is free software; the Free Software Foundation
1602gives unlimited permission to copy, distribute and modify it.
1603_ACEOF
1604 exit
1605fi
1606
1607## ------------------------ ##
1608## Autoconf initialization. ##
1609## ------------------------ ##
1610
Jeff Thompson4f031642013-08-05 11:03:16 -07001611# ac_fn_c_try_compile LINENO
1612# --------------------------
1613# Try to compile conftest.$ac_ext, and return whether this succeeded.
1614ac_fn_c_try_compile ()
1615{
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 rm -f conftest.$ac_objext
1618 if { { ac_try="$ac_compile"
1619case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622esac
1623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624$as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_compile") 2>conftest.err
1626 ac_status=$?
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1631 fi
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && {
1634 test -z "$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 } && test -s conftest.$ac_objext; then :
1637 ac_retval=0
1638else
1639 $as_echo "$as_me: failed program was:" >&5
1640sed 's/^/| /' conftest.$ac_ext >&5
1641
1642 ac_retval=1
1643fi
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
1646
1647} # ac_fn_c_try_compile
1648
1649# ac_fn_c_try_link LINENO
1650# -----------------------
1651# Try to link conftest.$ac_ext, and return whether this succeeded.
1652ac_fn_c_try_link ()
1653{
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext conftest$ac_exeext
1656 if { { ac_try="$ac_link"
1657case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660esac
1661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662$as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_link") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1669 fi
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest$ac_exeext && {
1675 test "$cross_compiling" = yes ||
1676 test -x conftest$ac_exeext
1677 }; then :
1678 ac_retval=0
1679else
1680 $as_echo "$as_me: failed program was:" >&5
1681sed 's/^/| /' conftest.$ac_ext >&5
1682
1683 ac_retval=1
1684fi
1685 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1686 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1687 # interfere with the next link command; also delete a directory that is
1688 # left behind by Apple's compiler. We do this before executing the actions.
1689 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
1692
1693} # ac_fn_c_try_link
1694
1695# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1696# -------------------------------------------------------
1697# Tests whether HEADER exists and can be compiled using the include files in
1698# INCLUDES, setting the cache variable VAR accordingly.
1699ac_fn_c_check_header_compile ()
1700{
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703$as_echo_n "checking for $2... " >&6; }
1704if eval \${$3+:} false; then :
1705 $as_echo_n "(cached) " >&6
1706else
1707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708/* end confdefs.h. */
1709$4
1710#include <$2>
1711_ACEOF
1712if ac_fn_c_try_compile "$LINENO"; then :
1713 eval "$3=yes"
1714else
1715 eval "$3=no"
1716fi
1717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1718fi
1719eval ac_res=\$$3
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1721$as_echo "$ac_res" >&6; }
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723
1724} # ac_fn_c_check_header_compile
1725
1726# ac_fn_c_try_cpp LINENO
1727# ----------------------
1728# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1729ac_fn_c_try_cpp ()
1730{
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if { { ac_try="$ac_cpp conftest.$ac_ext"
1733case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1740 ac_status=$?
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1745 fi
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } > conftest.i && {
1748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1749 test ! -s conftest.err
1750 }; then :
1751 ac_retval=0
1752else
1753 $as_echo "$as_me: failed program was:" >&5
1754sed 's/^/| /' conftest.$ac_ext >&5
1755
1756 ac_retval=1
1757fi
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
1760
1761} # ac_fn_c_try_cpp
1762
1763# ac_fn_c_try_run LINENO
1764# ----------------------
1765# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1766# that executables *can* be run.
1767ac_fn_c_try_run ()
1768{
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 if { { ac_try="$ac_link"
1771case "(($ac_try" in
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1774esac
1775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776$as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_link") 2>&5
1778 ac_status=$?
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1781 { { case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784esac
1785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786$as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_try") 2>&5
1788 ac_status=$?
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; }; }; then :
1791 ac_retval=0
1792else
1793 $as_echo "$as_me: program exited with status $ac_status" >&5
1794 $as_echo "$as_me: failed program was:" >&5
1795sed 's/^/| /' conftest.$ac_ext >&5
1796
1797 ac_retval=$ac_status
1798fi
1799 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801 as_fn_set_status $ac_retval
1802
1803} # ac_fn_c_try_run
1804
1805# ac_fn_c_check_func LINENO FUNC VAR
1806# ----------------------------------
1807# Tests whether FUNC exists, setting the cache variable VAR accordingly
1808ac_fn_c_check_func ()
1809{
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812$as_echo_n "checking for $2... " >&6; }
1813if eval \${$3+:} false; then :
1814 $as_echo_n "(cached) " >&6
1815else
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817/* end confdefs.h. */
1818/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1820#define $2 innocuous_$2
1821
1822/* System header to define __stub macros and hopefully few prototypes,
1823 which can conflict with char $2 (); below.
1824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1825 <limits.h> exists even on freestanding compilers. */
1826
1827#ifdef __STDC__
1828# include <limits.h>
1829#else
1830# include <assert.h>
1831#endif
1832
1833#undef $2
1834
1835/* Override any GCC internal prototype to avoid an error.
1836 Use char because int might match the return type of a GCC
1837 builtin and then its argument prototype would still apply. */
1838#ifdef __cplusplus
1839extern "C"
1840#endif
1841char $2 ();
1842/* The GNU C library defines this for functions which it implements
1843 to always fail with ENOSYS. Some functions are actually named
1844 something starting with __ and the normal name is an alias. */
1845#if defined __stub_$2 || defined __stub___$2
1846choke me
1847#endif
1848
1849int
1850main ()
1851{
1852return $2 ();
1853 ;
1854 return 0;
1855}
1856_ACEOF
1857if ac_fn_c_try_link "$LINENO"; then :
1858 eval "$3=yes"
1859else
1860 eval "$3=no"
1861fi
1862rm -f core conftest.err conftest.$ac_objext \
1863 conftest$ac_exeext conftest.$ac_ext
1864fi
1865eval ac_res=\$$3
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867$as_echo "$ac_res" >&6; }
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869
1870} # ac_fn_c_check_func
1871
Jeff Thompson39128c62013-06-19 14:08:51 -07001872# ac_fn_cxx_try_compile LINENO
1873# ----------------------------
1874# Try to compile conftest.$ac_ext, and return whether this succeeded.
1875ac_fn_cxx_try_compile ()
1876{
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 rm -f conftest.$ac_objext
1879 if { { ac_try="$ac_compile"
1880case "(($ac_try" in
1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1883esac
1884eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885$as_echo "$ac_try_echo"; } >&5
1886 (eval "$ac_compile") 2>conftest.err
1887 ac_status=$?
1888 if test -s conftest.err; then
1889 grep -v '^ *+' conftest.err >conftest.er1
1890 cat conftest.er1 >&5
1891 mv -f conftest.er1 conftest.err
1892 fi
1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; } && {
1895 test -z "$ac_cxx_werror_flag" ||
1896 test ! -s conftest.err
1897 } && test -s conftest.$ac_objext; then :
1898 ac_retval=0
1899else
1900 $as_echo "$as_me: failed program was:" >&5
1901sed 's/^/| /' conftest.$ac_ext >&5
1902
1903 ac_retval=1
1904fi
1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906 as_fn_set_status $ac_retval
1907
1908} # ac_fn_cxx_try_compile
Jeff Thompson36174062013-06-21 16:03:44 -07001909
Jeff Thompson4f031642013-08-05 11:03:16 -07001910# ac_fn_cxx_try_cpp LINENO
1911# ------------------------
1912# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1913ac_fn_cxx_try_cpp ()
Jeff Thompson36174062013-06-21 16:03:44 -07001914{
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Jeff Thompson4f031642013-08-05 11:03:16 -07001916 if { { ac_try="$ac_cpp conftest.$ac_ext"
Jeff Thompson36174062013-06-21 16:03:44 -07001917case "(($ac_try" in
1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919 *) ac_try_echo=$ac_try;;
1920esac
1921eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922$as_echo "$ac_try_echo"; } >&5
Jeff Thompson4f031642013-08-05 11:03:16 -07001923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1924 ac_status=$?
1925 if test -s conftest.err; then
1926 grep -v '^ *+' conftest.err >conftest.er1
1927 cat conftest.er1 >&5
1928 mv -f conftest.er1 conftest.err
1929 fi
1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931 test $ac_status = 0; } > conftest.i && {
1932 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1933 test ! -s conftest.err
1934 }; then :
1935 ac_retval=0
1936else
1937 $as_echo "$as_me: failed program was:" >&5
1938sed 's/^/| /' conftest.$ac_ext >&5
1939
1940 ac_retval=1
1941fi
1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943 as_fn_set_status $ac_retval
1944
1945} # ac_fn_cxx_try_cpp
1946
1947# ac_fn_cxx_try_link LINENO
1948# -------------------------
1949# Try to link conftest.$ac_ext, and return whether this succeeded.
1950ac_fn_cxx_try_link ()
1951{
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 rm -f conftest.$ac_objext conftest$ac_exeext
1954 if { { ac_try="$ac_link"
1955case "(($ac_try" in
1956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1957 *) ac_try_echo=$ac_try;;
1958esac
1959eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960$as_echo "$ac_try_echo"; } >&5
1961 (eval "$ac_link") 2>conftest.err
Jeff Thompson36174062013-06-21 16:03:44 -07001962 ac_status=$?
1963 if test -s conftest.err; then
1964 grep -v '^ *+' conftest.err >conftest.er1
1965 cat conftest.er1 >&5
1966 mv -f conftest.er1 conftest.err
1967 fi
1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969 test $ac_status = 0; } && {
Jeff Thompson4f031642013-08-05 11:03:16 -07001970 test -z "$ac_cxx_werror_flag" ||
Jeff Thompson36174062013-06-21 16:03:44 -07001971 test ! -s conftest.err
Jeff Thompson4f031642013-08-05 11:03:16 -07001972 } && test -s conftest$ac_exeext && {
1973 test "$cross_compiling" = yes ||
1974 test -x conftest$ac_exeext
1975 }; then :
Jeff Thompson36174062013-06-21 16:03:44 -07001976 ac_retval=0
1977else
1978 $as_echo "$as_me: failed program was:" >&5
1979sed 's/^/| /' conftest.$ac_ext >&5
1980
1981 ac_retval=1
1982fi
Jeff Thompson4f031642013-08-05 11:03:16 -07001983 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1984 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1985 # interfere with the next link command; also delete a directory that is
1986 # left behind by Apple's compiler. We do this before executing the actions.
1987 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Jeff Thompson36174062013-06-21 16:03:44 -07001988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989 as_fn_set_status $ac_retval
1990
Jeff Thompson4f031642013-08-05 11:03:16 -07001991} # ac_fn_cxx_try_link
Jeff Thompson965a3242013-10-02 09:59:35 -07001992
1993# ac_fn_objcxx_try_compile LINENO
1994# -------------------------------
1995# Try to compile conftest.$ac_ext, and return whether this succeeded.
1996ac_fn_objcxx_try_compile ()
1997{
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 rm -f conftest.$ac_objext
2000 if { { ac_try="$ac_compile"
2001case "(($ac_try" in
2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003 *) ac_try_echo=$ac_try;;
2004esac
2005eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006$as_echo "$ac_try_echo"; } >&5
2007 (eval "$ac_compile") 2>conftest.err
2008 ac_status=$?
2009 if test -s conftest.err; then
2010 grep -v '^ *+' conftest.err >conftest.er1
2011 cat conftest.er1 >&5
2012 mv -f conftest.er1 conftest.err
2013 fi
2014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2015 test $ac_status = 0; } && {
2016 test -z "$ac_objcxx_werror_flag" ||
2017 test ! -s conftest.err
2018 } && test -s conftest.$ac_objext; then :
2019 ac_retval=0
2020else
2021 $as_echo "$as_me: failed program was:" >&5
2022sed 's/^/| /' conftest.$ac_ext >&5
2023
2024 ac_retval=1
2025fi
2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027 as_fn_set_status $ac_retval
2028
2029} # ac_fn_objcxx_try_compile
Jeff Thompson32a23332013-10-07 18:39:00 -07002030
2031# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2032# ---------------------------------------------
2033# Tests whether TYPE exists after having included INCLUDES, setting cache
2034# variable VAR accordingly.
2035ac_fn_cxx_check_type ()
2036{
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039$as_echo_n "checking for $2... " >&6; }
2040if eval \${$3+:} false; then :
2041 $as_echo_n "(cached) " >&6
2042else
2043 eval "$3=no"
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045/* end confdefs.h. */
2046$4
2047int
2048main ()
2049{
2050if (sizeof ($2))
2051 return 0;
2052 ;
2053 return 0;
2054}
2055_ACEOF
2056if ac_fn_cxx_try_compile "$LINENO"; then :
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058/* end confdefs.h. */
2059$4
2060int
2061main ()
2062{
2063if (sizeof (($2)))
2064 return 0;
2065 ;
2066 return 0;
2067}
2068_ACEOF
2069if ac_fn_cxx_try_compile "$LINENO"; then :
2070
2071else
2072 eval "$3=yes"
2073fi
2074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075fi
2076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077fi
2078eval ac_res=\$$3
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2080$as_echo "$ac_res" >&6; }
2081 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2082
2083} # ac_fn_cxx_check_type
2084
2085# ac_fn_c_find_intX_t LINENO BITS VAR
2086# -----------------------------------
2087# Finds a signed integer type with width BITS, setting cache variable VAR
2088# accordingly.
2089ac_fn_c_find_intX_t ()
2090{
2091 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2093$as_echo_n "checking for int$2_t... " >&6; }
2094if eval \${$3+:} false; then :
2095 $as_echo_n "(cached) " >&6
2096else
2097 eval "$3=no"
2098 # Order is important - never check a type that is potentially smaller
2099 # than half of the expected target width.
2100 for ac_type in int$2_t 'int' 'long int' \
2101 'long long int' 'short int' 'signed char'; do
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103/* end confdefs.h. */
2104$ac_includes_default
2105 enum { N = $2 / 2 - 1 };
2106int
2107main ()
2108{
2109static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2110test_array [0] = 0;
2111return test_array [0];
2112
2113 ;
2114 return 0;
2115}
2116_ACEOF
2117if ac_fn_cxx_try_compile "$LINENO"; then :
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119/* end confdefs.h. */
2120$ac_includes_default
2121 enum { N = $2 / 2 - 1 };
2122int
2123main ()
2124{
2125static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2126 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2127test_array [0] = 0;
2128return test_array [0];
2129
2130 ;
2131 return 0;
2132}
2133_ACEOF
2134if ac_fn_cxx_try_compile "$LINENO"; then :
2135
2136else
2137 case $ac_type in #(
2138 int$2_t) :
2139 eval "$3=yes" ;; #(
2140 *) :
2141 eval "$3=\$ac_type" ;;
2142esac
2143fi
2144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145fi
2146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 if eval test \"x\$"$3"\" = x"no"; then :
2148
2149else
2150 break
2151fi
2152 done
2153fi
2154eval ac_res=\$$3
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2156$as_echo "$ac_res" >&6; }
2157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2158
2159} # ac_fn_c_find_intX_t
2160
2161# ac_fn_c_find_uintX_t LINENO BITS VAR
2162# ------------------------------------
2163# Finds an unsigned integer type with width BITS, setting cache variable VAR
2164# accordingly.
2165ac_fn_c_find_uintX_t ()
2166{
2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2169$as_echo_n "checking for uint$2_t... " >&6; }
2170if eval \${$3+:} false; then :
2171 $as_echo_n "(cached) " >&6
2172else
2173 eval "$3=no"
2174 # Order is important - never check a type that is potentially smaller
2175 # than half of the expected target width.
2176 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2177 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179/* end confdefs.h. */
2180$ac_includes_default
2181int
2182main ()
2183{
2184static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2185test_array [0] = 0;
2186return test_array [0];
2187
2188 ;
2189 return 0;
2190}
2191_ACEOF
2192if ac_fn_cxx_try_compile "$LINENO"; then :
2193 case $ac_type in #(
2194 uint$2_t) :
2195 eval "$3=yes" ;; #(
2196 *) :
2197 eval "$3=\$ac_type" ;;
2198esac
2199fi
2200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201 if eval test \"x\$"$3"\" = x"no"; then :
2202
2203else
2204 break
2205fi
2206 done
2207fi
2208eval ac_res=\$$3
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2210$as_echo "$ac_res" >&6; }
2211 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2212
2213} # ac_fn_c_find_uintX_t
2214
2215# ac_fn_cxx_check_func LINENO FUNC VAR
2216# ------------------------------------
2217# Tests whether FUNC exists, setting the cache variable VAR accordingly
2218ac_fn_cxx_check_func ()
2219{
2220 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2222$as_echo_n "checking for $2... " >&6; }
2223if eval \${$3+:} false; then :
2224 $as_echo_n "(cached) " >&6
2225else
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227/* end confdefs.h. */
2228/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2230#define $2 innocuous_$2
2231
2232/* System header to define __stub macros and hopefully few prototypes,
2233 which can conflict with char $2 (); below.
2234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2235 <limits.h> exists even on freestanding compilers. */
2236
2237#ifdef __STDC__
2238# include <limits.h>
2239#else
2240# include <assert.h>
2241#endif
2242
2243#undef $2
2244
2245/* Override any GCC internal prototype to avoid an error.
2246 Use char because int might match the return type of a GCC
2247 builtin and then its argument prototype would still apply. */
2248#ifdef __cplusplus
2249extern "C"
2250#endif
2251char $2 ();
2252/* The GNU C library defines this for functions which it implements
2253 to always fail with ENOSYS. Some functions are actually named
2254 something starting with __ and the normal name is an alias. */
2255#if defined __stub_$2 || defined __stub___$2
2256choke me
2257#endif
2258
2259int
2260main ()
2261{
2262return $2 ();
2263 ;
2264 return 0;
2265}
2266_ACEOF
2267if ac_fn_cxx_try_link "$LINENO"; then :
2268 eval "$3=yes"
2269else
2270 eval "$3=no"
2271fi
2272rm -f core conftest.err conftest.$ac_objext \
2273 conftest$ac_exeext conftest.$ac_ext
2274fi
2275eval ac_res=\$$3
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2277$as_echo "$ac_res" >&6; }
2278 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2279
2280} # ac_fn_cxx_check_func
Jeff Thompsonea946202013-10-18 14:35:32 -07002281
2282# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2283# ---------------------------------------------------------
2284# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2285# the include files in INCLUDES and setting the cache variable VAR
2286# accordingly.
2287ac_fn_cxx_check_header_mongrel ()
2288{
2289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290 if eval \${$3+:} false; then :
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2292$as_echo_n "checking for $2... " >&6; }
2293if eval \${$3+:} false; then :
2294 $as_echo_n "(cached) " >&6
2295fi
2296eval ac_res=\$$3
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2298$as_echo "$ac_res" >&6; }
2299else
2300 # Is the header compilable?
2301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2302$as_echo_n "checking $2 usability... " >&6; }
2303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304/* end confdefs.h. */
2305$4
2306#include <$2>
2307_ACEOF
2308if ac_fn_cxx_try_compile "$LINENO"; then :
2309 ac_header_compiler=yes
2310else
2311 ac_header_compiler=no
2312fi
2313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2315$as_echo "$ac_header_compiler" >&6; }
2316
2317# Is the header present?
2318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2319$as_echo_n "checking $2 presence... " >&6; }
2320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321/* end confdefs.h. */
2322#include <$2>
2323_ACEOF
2324if ac_fn_cxx_try_cpp "$LINENO"; then :
2325 ac_header_preproc=yes
2326else
2327 ac_header_preproc=no
2328fi
2329rm -f conftest.err conftest.i conftest.$ac_ext
2330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2331$as_echo "$ac_header_preproc" >&6; }
2332
2333# So? What about this header?
2334case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2335 yes:no: )
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2337$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2339$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2340 ;;
2341 no:yes:* )
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2343$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2345$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2347$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2349$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2351$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2352( $as_echo "## ---------------------------------------- ##
2353## Report this to ndn-lib@lists.cs.ucla.edu ##
2354## ---------------------------------------- ##"
2355 ) | sed "s/^/$as_me: WARNING: /" >&2
2356 ;;
2357esac
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2359$as_echo_n "checking for $2... " >&6; }
2360if eval \${$3+:} false; then :
2361 $as_echo_n "(cached) " >&6
2362else
2363 eval "$3=\$ac_header_compiler"
2364fi
2365eval ac_res=\$$3
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2367$as_echo "$ac_res" >&6; }
2368fi
2369 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2370
2371} # ac_fn_cxx_check_header_mongrel
Jeff Thompson39128c62013-06-19 14:08:51 -07002372cat >config.log <<_ACEOF
2373This file contains any messages produced by compilers while
2374running configure, to aid debugging if configure makes a mistake.
2375
Jeff Thompson93a24162013-09-27 13:28:13 -07002376It was created by ndn-cpp $as_me 0.2, which was
Jeff Thompson39128c62013-06-19 14:08:51 -07002377generated by GNU Autoconf 2.69. Invocation command line was
2378
2379 $ $0 $@
2380
2381_ACEOF
2382exec 5>>config.log
2383{
2384cat <<_ASUNAME
2385## --------- ##
2386## Platform. ##
2387## --------- ##
2388
2389hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2390uname -m = `(uname -m) 2>/dev/null || echo unknown`
2391uname -r = `(uname -r) 2>/dev/null || echo unknown`
2392uname -s = `(uname -s) 2>/dev/null || echo unknown`
2393uname -v = `(uname -v) 2>/dev/null || echo unknown`
2394
2395/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2396/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2397
2398/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2399/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2400/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2401/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2402/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2403/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2404/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2405
2406_ASUNAME
2407
2408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409for as_dir in $PATH
2410do
2411 IFS=$as_save_IFS
2412 test -z "$as_dir" && as_dir=.
2413 $as_echo "PATH: $as_dir"
2414 done
2415IFS=$as_save_IFS
2416
2417} >&5
2418
2419cat >&5 <<_ACEOF
2420
2421
2422## ----------- ##
2423## Core tests. ##
2424## ----------- ##
2425
2426_ACEOF
2427
2428
2429# Keep a trace of the command line.
2430# Strip out --no-create and --no-recursion so they do not pile up.
2431# Strip out --silent because we don't want to record it for future runs.
2432# Also quote any args containing shell meta-characters.
2433# Make two passes to allow for proper duplicate-argument suppression.
2434ac_configure_args=
2435ac_configure_args0=
2436ac_configure_args1=
2437ac_must_keep_next=false
2438for ac_pass in 1 2
2439do
2440 for ac_arg
2441 do
2442 case $ac_arg in
2443 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2444 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2445 | -silent | --silent | --silen | --sile | --sil)
2446 continue ;;
2447 *\'*)
2448 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2449 esac
2450 case $ac_pass in
2451 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2452 2)
2453 as_fn_append ac_configure_args1 " '$ac_arg'"
2454 if test $ac_must_keep_next = true; then
2455 ac_must_keep_next=false # Got value, back to normal.
2456 else
2457 case $ac_arg in
2458 *=* | --config-cache | -C | -disable-* | --disable-* \
2459 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2460 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2461 | -with-* | --with-* | -without-* | --without-* | --x)
2462 case "$ac_configure_args0 " in
2463 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2464 esac
2465 ;;
2466 -* ) ac_must_keep_next=true ;;
2467 esac
2468 fi
2469 as_fn_append ac_configure_args " '$ac_arg'"
2470 ;;
2471 esac
2472 done
2473done
2474{ ac_configure_args0=; unset ac_configure_args0;}
2475{ ac_configure_args1=; unset ac_configure_args1;}
2476
2477# When interrupted or exit'd, cleanup temporary files, and complete
2478# config.log. We remove comments because anyway the quotes in there
2479# would cause problems or look ugly.
2480# WARNING: Use '\'' to represent an apostrophe within the trap.
2481# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2482trap 'exit_status=$?
2483 # Save into config.log some information that might help in debugging.
2484 {
2485 echo
2486
2487 $as_echo "## ---------------- ##
2488## Cache variables. ##
2489## ---------------- ##"
2490 echo
2491 # The following way of writing the cache mishandles newlines in values,
2492(
2493 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2494 eval ac_val=\$$ac_var
2495 case $ac_val in #(
2496 *${as_nl}*)
2497 case $ac_var in #(
2498 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2499$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2500 esac
2501 case $ac_var in #(
2502 _ | IFS | as_nl) ;; #(
2503 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2504 *) { eval $ac_var=; unset $ac_var;} ;;
2505 esac ;;
2506 esac
2507 done
2508 (set) 2>&1 |
2509 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2510 *${as_nl}ac_space=\ *)
2511 sed -n \
2512 "s/'\''/'\''\\\\'\'''\''/g;
2513 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2514 ;; #(
2515 *)
2516 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2517 ;;
2518 esac |
2519 sort
2520)
2521 echo
2522
2523 $as_echo "## ----------------- ##
2524## Output variables. ##
2525## ----------------- ##"
2526 echo
2527 for ac_var in $ac_subst_vars
2528 do
2529 eval ac_val=\$$ac_var
2530 case $ac_val in
2531 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2532 esac
2533 $as_echo "$ac_var='\''$ac_val'\''"
2534 done | sort
2535 echo
2536
2537 if test -n "$ac_subst_files"; then
2538 $as_echo "## ------------------- ##
2539## File substitutions. ##
2540## ------------------- ##"
2541 echo
2542 for ac_var in $ac_subst_files
2543 do
2544 eval ac_val=\$$ac_var
2545 case $ac_val in
2546 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2547 esac
2548 $as_echo "$ac_var='\''$ac_val'\''"
2549 done | sort
2550 echo
2551 fi
2552
2553 if test -s confdefs.h; then
2554 $as_echo "## ----------- ##
2555## confdefs.h. ##
2556## ----------- ##"
2557 echo
2558 cat confdefs.h
2559 echo
2560 fi
2561 test "$ac_signal" != 0 &&
2562 $as_echo "$as_me: caught signal $ac_signal"
2563 $as_echo "$as_me: exit $exit_status"
2564 } >&5
2565 rm -f core *.core core.conftest.* &&
2566 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2567 exit $exit_status
2568' 0
2569for ac_signal in 1 2 13 15; do
2570 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2571done
2572ac_signal=0
2573
2574# confdefs.h avoids OS command line length limits that DEFS can exceed.
2575rm -f -r conftest* confdefs.h
2576
2577$as_echo "/* confdefs.h */" > confdefs.h
2578
2579# Predefined preprocessor variables.
2580
2581cat >>confdefs.h <<_ACEOF
2582#define PACKAGE_NAME "$PACKAGE_NAME"
2583_ACEOF
2584
2585cat >>confdefs.h <<_ACEOF
2586#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2587_ACEOF
2588
2589cat >>confdefs.h <<_ACEOF
2590#define PACKAGE_VERSION "$PACKAGE_VERSION"
2591_ACEOF
2592
2593cat >>confdefs.h <<_ACEOF
2594#define PACKAGE_STRING "$PACKAGE_STRING"
2595_ACEOF
2596
2597cat >>confdefs.h <<_ACEOF
2598#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2599_ACEOF
2600
2601cat >>confdefs.h <<_ACEOF
2602#define PACKAGE_URL "$PACKAGE_URL"
2603_ACEOF
2604
2605
2606# Let the site file select an alternate cache file if it wants to.
2607# Prefer an explicitly selected file to automatically selected ones.
2608ac_site_file1=NONE
2609ac_site_file2=NONE
2610if test -n "$CONFIG_SITE"; then
2611 # We do not want a PATH search for config.site.
2612 case $CONFIG_SITE in #((
2613 -*) ac_site_file1=./$CONFIG_SITE;;
2614 */*) ac_site_file1=$CONFIG_SITE;;
2615 *) ac_site_file1=./$CONFIG_SITE;;
2616 esac
2617elif test "x$prefix" != xNONE; then
2618 ac_site_file1=$prefix/share/config.site
2619 ac_site_file2=$prefix/etc/config.site
2620else
2621 ac_site_file1=$ac_default_prefix/share/config.site
2622 ac_site_file2=$ac_default_prefix/etc/config.site
2623fi
2624for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2625do
2626 test "x$ac_site_file" = xNONE && continue
2627 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2629$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2630 sed 's/^/| /' "$ac_site_file" >&5
2631 . "$ac_site_file" \
2632 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2634as_fn_error $? "failed to load site script $ac_site_file
2635See \`config.log' for more details" "$LINENO" 5; }
2636 fi
2637done
2638
2639if test -r "$cache_file"; then
2640 # Some versions of bash will fail to source /dev/null (special files
2641 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2642 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2644$as_echo "$as_me: loading cache $cache_file" >&6;}
2645 case $cache_file in
2646 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2647 *) . "./$cache_file";;
2648 esac
2649 fi
2650else
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2652$as_echo "$as_me: creating cache $cache_file" >&6;}
2653 >$cache_file
2654fi
2655
2656# Check that the precious variables saved in the cache have kept the same
2657# value.
2658ac_cache_corrupted=false
2659for ac_var in $ac_precious_vars; do
2660 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2661 eval ac_new_set=\$ac_env_${ac_var}_set
2662 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2663 eval ac_new_val=\$ac_env_${ac_var}_value
2664 case $ac_old_set,$ac_new_set in
2665 set,)
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2667$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2668 ac_cache_corrupted=: ;;
2669 ,set)
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2671$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2672 ac_cache_corrupted=: ;;
2673 ,);;
2674 *)
2675 if test "x$ac_old_val" != "x$ac_new_val"; then
2676 # differences in whitespace do not lead to failure.
2677 ac_old_val_w=`echo x $ac_old_val`
2678 ac_new_val_w=`echo x $ac_new_val`
2679 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2681$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2682 ac_cache_corrupted=:
2683 else
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2685$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2686 eval $ac_var=\$ac_old_val
2687 fi
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2689$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2691$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2692 fi;;
2693 esac
2694 # Pass precious variables to config.status.
2695 if test "$ac_new_set" = set; then
2696 case $ac_new_val in
2697 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2698 *) ac_arg=$ac_var=$ac_new_val ;;
2699 esac
2700 case " $ac_configure_args " in
2701 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2702 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2703 esac
2704 fi
2705done
2706if $ac_cache_corrupted; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2710$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2711 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2712fi
2713## -------------------- ##
2714## Main body of script. ##
2715## -------------------- ##
2716
2717ac_ext=c
2718ac_cpp='$CPP $CPPFLAGS'
2719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2721ac_compiler_gnu=$ac_cv_c_compiler_gnu
2722
2723
Jeff Thompsona04f23c2013-09-16 17:48:38 -07002724am__api_version='1.14'
Jeff Thompson39128c62013-06-19 14:08:51 -07002725
2726ac_aux_dir=
2727for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2728 if test -f "$ac_dir/install-sh"; then
2729 ac_aux_dir=$ac_dir
2730 ac_install_sh="$ac_aux_dir/install-sh -c"
2731 break
2732 elif test -f "$ac_dir/install.sh"; then
2733 ac_aux_dir=$ac_dir
2734 ac_install_sh="$ac_aux_dir/install.sh -c"
2735 break
2736 elif test -f "$ac_dir/shtool"; then
2737 ac_aux_dir=$ac_dir
2738 ac_install_sh="$ac_aux_dir/shtool install -c"
2739 break
2740 fi
2741done
2742if test -z "$ac_aux_dir"; then
2743 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2744fi
2745
2746# These three variables are undocumented and unsupported,
2747# and are intended to be withdrawn in a future Autoconf release.
2748# They can cause serious problems if a builder's source tree is in a directory
2749# whose full name contains unusual characters.
2750ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2751ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2752ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2753
2754
2755# Find a good install program. We prefer a C program (faster),
2756# so one script is as good as another. But avoid the broken or
2757# incompatible versions:
2758# SysV /etc/install, /usr/sbin/install
2759# SunOS /usr/etc/install
2760# IRIX /sbin/install
2761# AIX /bin/install
2762# AmigaOS /C/install, which installs bootblocks on floppy discs
2763# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2764# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2765# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2766# OS/2's system install, which has a completely different semantic
2767# ./install, which can be erroneously created by make from ./install.sh.
2768# Reject install programs that cannot install multiple files.
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2770$as_echo_n "checking for a BSD-compatible install... " >&6; }
2771if test -z "$INSTALL"; then
2772if ${ac_cv_path_install+:} false; then :
2773 $as_echo_n "(cached) " >&6
2774else
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776for as_dir in $PATH
2777do
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
2780 # Account for people who put trailing slashes in PATH elements.
2781case $as_dir/ in #((
2782 ./ | .// | /[cC]/* | \
2783 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2784 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2785 /usr/ucb/* ) ;;
2786 *)
2787 # OSF1 and SCO ODT 3.0 have their own names for install.
2788 # Don't use installbsd from OSF since it installs stuff as root
2789 # by default.
2790 for ac_prog in ginstall scoinst install; do
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2793 if test $ac_prog = install &&
2794 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2795 # AIX install. It has an incompatible calling convention.
2796 :
2797 elif test $ac_prog = install &&
2798 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2799 # program-specific install script used by HP pwplus--don't use.
2800 :
2801 else
2802 rm -rf conftest.one conftest.two conftest.dir
2803 echo one > conftest.one
2804 echo two > conftest.two
2805 mkdir conftest.dir
2806 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2807 test -s conftest.one && test -s conftest.two &&
2808 test -s conftest.dir/conftest.one &&
2809 test -s conftest.dir/conftest.two
2810 then
2811 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2812 break 3
2813 fi
2814 fi
2815 fi
2816 done
2817 done
2818 ;;
2819esac
2820
2821 done
2822IFS=$as_save_IFS
2823
2824rm -rf conftest.one conftest.two conftest.dir
2825
2826fi
2827 if test "${ac_cv_path_install+set}" = set; then
2828 INSTALL=$ac_cv_path_install
2829 else
2830 # As a last resort, use the slow shell script. Don't cache a
2831 # value for INSTALL within a source directory, because that will
2832 # break other packages using the cache if that directory is
2833 # removed, or if the value is a relative name.
2834 INSTALL=$ac_install_sh
2835 fi
2836fi
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2838$as_echo "$INSTALL" >&6; }
2839
2840# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2841# It thinks the first close brace ends the variable substitution.
2842test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2843
2844test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2845
2846test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2847
2848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2849$as_echo_n "checking whether build environment is sane... " >&6; }
2850# Reject unsafe characters in $srcdir or the absolute working directory
2851# name. Accept space and tab only in the latter.
2852am_lf='
2853'
2854case `pwd` in
2855 *[\\\"\#\$\&\'\`$am_lf]*)
2856 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2857esac
2858case $srcdir in
2859 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2860 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2861esac
2862
2863# Do 'set' in a subshell so we don't clobber the current shell's
2864# arguments. Must try -L first in case configure is actually a
2865# symlink; some systems play weird games with the mod time of symlinks
2866# (eg FreeBSD returns the mod time of the symlink's containing
2867# directory).
2868if (
2869 am_has_slept=no
2870 for am_try in 1 2; do
2871 echo "timestamp, slept: $am_has_slept" > conftest.file
2872 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2873 if test "$*" = "X"; then
2874 # -L didn't work.
2875 set X `ls -t "$srcdir/configure" conftest.file`
2876 fi
2877 if test "$*" != "X $srcdir/configure conftest.file" \
2878 && test "$*" != "X conftest.file $srcdir/configure"; then
2879
2880 # If neither matched, then we have a broken ls. This can happen
2881 # if, for instance, CONFIG_SHELL is bash and it inherits a
2882 # broken ls alias from the environment. This has actually
2883 # happened. Such a system could not be considered "sane".
2884 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2885 alias in your environment" "$LINENO" 5
2886 fi
2887 if test "$2" = conftest.file || test $am_try -eq 2; then
2888 break
2889 fi
2890 # Just in case.
2891 sleep 1
2892 am_has_slept=yes
2893 done
2894 test "$2" = conftest.file
2895 )
2896then
2897 # Ok.
2898 :
2899else
2900 as_fn_error $? "newly created file is older than distributed files!
2901Check your system clock" "$LINENO" 5
2902fi
2903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2904$as_echo "yes" >&6; }
2905# If we didn't sleep, we still need to ensure time stamps of config.status and
2906# generated files are strictly newer.
2907am_sleep_pid=
2908if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2909 ( sleep 1 ) &
2910 am_sleep_pid=$!
2911fi
2912
2913rm -f conftest.file
2914
2915test "$program_prefix" != NONE &&
2916 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2917# Use a double $ so make ignores it.
2918test "$program_suffix" != NONE &&
2919 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2920# Double any \ or $.
2921# By default was `s,x,x', remove it if useless.
2922ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2923program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2924
2925# expand $ac_aux_dir to an absolute path
2926am_aux_dir=`cd $ac_aux_dir && pwd`
2927
2928if test x"${MISSING+set}" != xset; then
2929 case $am_aux_dir in
2930 *\ * | *\ *)
2931 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2932 *)
2933 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2934 esac
2935fi
2936# Use eval to expand $SHELL
2937if eval "$MISSING --is-lightweight"; then
2938 am_missing_run="$MISSING "
2939else
2940 am_missing_run=
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2942$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2943fi
2944
2945if test x"${install_sh}" != xset; then
2946 case $am_aux_dir in
2947 *\ * | *\ *)
2948 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2949 *)
2950 install_sh="\${SHELL} $am_aux_dir/install-sh"
2951 esac
2952fi
2953
2954# Installed binaries are usually stripped using 'strip' when the user
2955# run "make install-strip". However 'strip' might not be the right
2956# tool to use in cross-compilation environments, therefore Automake
2957# will honor the 'STRIP' environment variable to overrule this program.
2958if test "$cross_compiling" != no; then
2959 if test -n "$ac_tool_prefix"; then
2960 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2961set dummy ${ac_tool_prefix}strip; ac_word=$2
2962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963$as_echo_n "checking for $ac_word... " >&6; }
2964if ${ac_cv_prog_STRIP+:} false; then :
2965 $as_echo_n "(cached) " >&6
2966else
2967 if test -n "$STRIP"; then
2968 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2969else
2970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971for as_dir in $PATH
2972do
2973 IFS=$as_save_IFS
2974 test -z "$as_dir" && as_dir=.
2975 for ac_exec_ext in '' $ac_executable_extensions; do
2976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2977 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 break 2
2980 fi
2981done
2982 done
2983IFS=$as_save_IFS
2984
2985fi
2986fi
2987STRIP=$ac_cv_prog_STRIP
2988if test -n "$STRIP"; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2990$as_echo "$STRIP" >&6; }
2991else
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993$as_echo "no" >&6; }
2994fi
2995
2996
2997fi
2998if test -z "$ac_cv_prog_STRIP"; then
2999 ac_ct_STRIP=$STRIP
3000 # Extract the first word of "strip", so it can be a program name with args.
3001set dummy strip; ac_word=$2
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003$as_echo_n "checking for $ac_word... " >&6; }
3004if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3005 $as_echo_n "(cached) " >&6
3006else
3007 if test -n "$ac_ct_STRIP"; then
3008 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3009else
3010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011for as_dir in $PATH
3012do
3013 IFS=$as_save_IFS
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3017 ac_cv_prog_ac_ct_STRIP="strip"
3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 break 2
3020 fi
3021done
3022 done
3023IFS=$as_save_IFS
3024
3025fi
3026fi
3027ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3028if test -n "$ac_ct_STRIP"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3030$as_echo "$ac_ct_STRIP" >&6; }
3031else
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033$as_echo "no" >&6; }
3034fi
3035
3036 if test "x$ac_ct_STRIP" = x; then
3037 STRIP=":"
3038 else
3039 case $cross_compiling:$ac_tool_warned in
3040yes:)
3041{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3043ac_tool_warned=yes ;;
3044esac
3045 STRIP=$ac_ct_STRIP
3046 fi
3047else
3048 STRIP="$ac_cv_prog_STRIP"
3049fi
3050
3051fi
3052INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3053
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3055$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3056if test -z "$MKDIR_P"; then
3057 if ${ac_cv_path_mkdir+:} false; then :
3058 $as_echo_n "(cached) " >&6
3059else
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3062do
3063 IFS=$as_save_IFS
3064 test -z "$as_dir" && as_dir=.
3065 for ac_prog in mkdir gmkdir; do
3066 for ac_exec_ext in '' $ac_executable_extensions; do
3067 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3068 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3069 'mkdir (GNU coreutils) '* | \
3070 'mkdir (coreutils) '* | \
3071 'mkdir (fileutils) '4.1*)
3072 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3073 break 3;;
3074 esac
3075 done
3076 done
3077 done
3078IFS=$as_save_IFS
3079
3080fi
3081
3082 test -d ./--version && rmdir ./--version
3083 if test "${ac_cv_path_mkdir+set}" = set; then
3084 MKDIR_P="$ac_cv_path_mkdir -p"
3085 else
3086 # As a last resort, use the slow shell script. Don't cache a
3087 # value for MKDIR_P within a source directory, because that will
3088 # break other packages using the cache if that directory is
3089 # removed, or if the value is a relative name.
3090 MKDIR_P="$ac_install_sh -d"
3091 fi
3092fi
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3094$as_echo "$MKDIR_P" >&6; }
3095
3096for ac_prog in gawk mawk nawk awk
3097do
3098 # Extract the first word of "$ac_prog", so it can be a program name with args.
3099set dummy $ac_prog; ac_word=$2
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101$as_echo_n "checking for $ac_word... " >&6; }
3102if ${ac_cv_prog_AWK+:} false; then :
3103 $as_echo_n "(cached) " >&6
3104else
3105 if test -n "$AWK"; then
3106 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3107else
3108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109for as_dir in $PATH
3110do
3111 IFS=$as_save_IFS
3112 test -z "$as_dir" && as_dir=.
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3115 ac_cv_prog_AWK="$ac_prog"
3116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 break 2
3118 fi
3119done
3120 done
3121IFS=$as_save_IFS
3122
3123fi
3124fi
3125AWK=$ac_cv_prog_AWK
3126if test -n "$AWK"; then
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3128$as_echo "$AWK" >&6; }
3129else
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131$as_echo "no" >&6; }
3132fi
3133
3134
3135 test -n "$AWK" && break
3136done
3137
3138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3139$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3140set x ${MAKE-make}
3141ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3142if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3143 $as_echo_n "(cached) " >&6
3144else
3145 cat >conftest.make <<\_ACEOF
3146SHELL = /bin/sh
3147all:
3148 @echo '@@@%%%=$(MAKE)=@@@%%%'
3149_ACEOF
3150# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3151case `${MAKE-make} -f conftest.make 2>/dev/null` in
3152 *@@@%%%=?*=@@@%%%*)
3153 eval ac_cv_prog_make_${ac_make}_set=yes;;
3154 *)
3155 eval ac_cv_prog_make_${ac_make}_set=no;;
3156esac
3157rm -f conftest.make
3158fi
3159if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3161$as_echo "yes" >&6; }
3162 SET_MAKE=
3163else
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165$as_echo "no" >&6; }
3166 SET_MAKE="MAKE=${MAKE-make}"
3167fi
3168
3169rm -rf .tst 2>/dev/null
3170mkdir .tst 2>/dev/null
3171if test -d .tst; then
3172 am__leading_dot=.
3173else
3174 am__leading_dot=_
3175fi
3176rmdir .tst 2>/dev/null
3177
3178# Check whether --enable-silent-rules was given.
3179if test "${enable_silent_rules+set}" = set; then :
3180 enableval=$enable_silent_rules;
3181fi
3182
3183case $enable_silent_rules in # (((
3184 yes) AM_DEFAULT_VERBOSITY=0;;
3185 no) AM_DEFAULT_VERBOSITY=1;;
3186 *) AM_DEFAULT_VERBOSITY=1;;
3187esac
3188am_make=${MAKE-make}
3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3190$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3191if ${am_cv_make_support_nested_variables+:} false; then :
3192 $as_echo_n "(cached) " >&6
3193else
3194 if $as_echo 'TRUE=$(BAR$(V))
3195BAR0=false
3196BAR1=true
3197V=1
3198am__doit:
3199 @$(TRUE)
3200.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3201 am_cv_make_support_nested_variables=yes
3202else
3203 am_cv_make_support_nested_variables=no
3204fi
3205fi
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3207$as_echo "$am_cv_make_support_nested_variables" >&6; }
3208if test $am_cv_make_support_nested_variables = yes; then
3209 AM_V='$(V)'
3210 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3211else
3212 AM_V=$AM_DEFAULT_VERBOSITY
3213 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3214fi
3215AM_BACKSLASH='\'
3216
3217if test "`cd $srcdir && pwd`" != "`pwd`"; then
3218 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3219 # is not polluted with repeated "-I."
3220 am__isrc=' -I$(srcdir)'
3221 # test to see if srcdir already configured
3222 if test -f $srcdir/config.status; then
3223 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3224 fi
3225fi
3226
3227# test whether we have cygpath
3228if test -z "$CYGPATH_W"; then
3229 if (cygpath --version) >/dev/null 2>/dev/null; then
3230 CYGPATH_W='cygpath -w'
3231 else
3232 CYGPATH_W=echo
3233 fi
3234fi
3235
3236
3237# Define the identity of the package.
3238 PACKAGE='ndn-cpp'
Jeff Thompson93a24162013-09-27 13:28:13 -07003239 VERSION='0.2'
Jeff Thompson39128c62013-06-19 14:08:51 -07003240
3241
3242# Some tools Automake needs.
3243
3244ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3245
3246
3247AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3248
3249
3250AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3251
3252
3253AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3254
3255
3256MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3257
3258# For better backward compatibility. To be removed once Automake 1.9.x
3259# dies out for good. For more background, see:
3260# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3261# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3262mkdir_p='$(MKDIR_P)'
3263
3264# We need awk for the "check" target. The system "awk" is bad on
3265# some platforms.
3266# Always define AMTAR for backward compatibility. Yes, it's still used
3267# in the wild :-( We should find a proper way to deprecate it ...
3268AMTAR='$${TAR-tar}'
3269
3270
3271# We'll loop over all known methods to create a tar archive until one works.
3272_am_tools='gnutar pax cpio none'
3273
3274am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3275
3276
3277
3278
3279
3280
Jeff Thompsona04f23c2013-09-16 17:48:38 -07003281# POSIX will say in a future version that running "rm -f" with no argument
3282# is OK; and we want to be able to make that assumption in our Makefile
3283# recipes. So use an aggressive probe to check that the usage we want is
3284# actually supported "in the wild" to an acceptable degree.
3285# See automake bug#10828.
3286# To make any issue more visible, cause the running configure to be aborted
3287# by default if the 'rm' program in use doesn't match our expectations; the
3288# user can still override this though.
3289if rm -f && rm -fr && rm -rf; then : OK; else
3290 cat >&2 <<'END'
3291Oops!
3292
3293Your 'rm' program seems unable to run without file operands specified
3294on the command line, even when the '-f' option is present. This is contrary
3295to the behaviour of most rm programs out there, and not conforming with
3296the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3297
3298Please tell bug-automake@gnu.org about your system, including the value
3299of your $PATH and any error possibly output before this message. This
3300can help us improve future automake versions.
3301
3302END
3303 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3304 echo 'Configuration will proceed anyway, since you have set the' >&2
3305 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3306 echo >&2
3307 else
3308 cat >&2 <<'END'
3309Aborting the configuration process, to ensure you take notice of the issue.
3310
3311You can download and install GNU coreutils to get an 'rm' implementation
3312that behaves properly: <http://www.gnu.org/software/coreutils/>.
3313
3314If you want to complete the configuration process using your problematic
3315'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3316to "yes", and re-run configure.
3317
3318END
3319 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3320 fi
3321fi
Jeff Thompson39128c62013-06-19 14:08:51 -07003322
Jeff Thompson93a24162013-09-27 13:28:13 -07003323
Jeff Thompson23cb7422013-10-09 16:11:47 -07003324
Jeff Thompson6e229042013-10-10 11:09:49 -07003325# Create config.h without prefixes. Put it in the include directory so CFLAGS will have -I./include .
3326ac_config_headers="$ac_config_headers include/config.h"
Jeff Thompsonb7523002013-10-09 10:25:00 -07003327
Jeff Thompson6e229042013-10-10 11:09:49 -07003328# Add prefixes and output to a unique file name which will go into the ndn-cpp include install directory.
Jeff Thompsonb7523002013-10-09 10:25:00 -07003329
Jeff Thompson6e229042013-10-10 11:09:49 -07003330ac_config_commands="$ac_config_commands include/ndn-cpp/ndn-cpp-config.h"
Jeff Thompson39128c62013-06-19 14:08:51 -07003331
Jeff Thompson47053ad2013-08-05 10:36:53 -07003332
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3334$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3335 # Check whether --enable-maintainer-mode was given.
3336if test "${enable_maintainer_mode+set}" = set; then :
3337 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3338else
3339 USE_MAINTAINER_MODE=no
3340fi
3341
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3343$as_echo "$USE_MAINTAINER_MODE" >&6; }
3344 if test $USE_MAINTAINER_MODE = yes; then
3345 MAINTAINER_MODE_TRUE=
3346 MAINTAINER_MODE_FALSE='#'
3347else
3348 MAINTAINER_MODE_TRUE='#'
3349 MAINTAINER_MODE_FALSE=
3350fi
3351
3352 MAINT=$MAINTAINER_MODE_TRUE
3353
3354
Jeff Thompson39128c62013-06-19 14:08:51 -07003355DEPDIR="${am__leading_dot}deps"
3356
3357ac_config_commands="$ac_config_commands depfiles"
3358
3359
3360am_make=${MAKE-make}
3361cat > confinc << 'END'
3362am__doit:
3363 @echo this is the am__doit target
3364.PHONY: am__doit
3365END
3366# If we don't find an include directive, just comment out the code.
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3368$as_echo_n "checking for style of include used by $am_make... " >&6; }
3369am__include="#"
3370am__quote=
3371_am_result=none
3372# First try GNU make style include.
3373echo "include confinc" > confmf
3374# Ignore all kinds of additional output from 'make'.
3375case `$am_make -s -f confmf 2> /dev/null` in #(
3376*the\ am__doit\ target*)
3377 am__include=include
3378 am__quote=
3379 _am_result=GNU
3380 ;;
3381esac
3382# Now try BSD make style include.
3383if test "$am__include" = "#"; then
3384 echo '.include "confinc"' > confmf
3385 case `$am_make -s -f confmf 2> /dev/null` in #(
3386 *the\ am__doit\ target*)
3387 am__include=.include
3388 am__quote="\""
3389 _am_result=BSD
3390 ;;
3391 esac
3392fi
3393
3394
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3396$as_echo "$_am_result" >&6; }
3397rm -f confinc confmf
3398
3399# Check whether --enable-dependency-tracking was given.
3400if test "${enable_dependency_tracking+set}" = set; then :
3401 enableval=$enable_dependency_tracking;
3402fi
3403
3404if test "x$enable_dependency_tracking" != xno; then
3405 am_depcomp="$ac_aux_dir/depcomp"
3406 AMDEPBACKSLASH='\'
3407 am__nodep='_no'
3408fi
3409 if test "x$enable_dependency_tracking" != xno; then
3410 AMDEP_TRUE=
3411 AMDEP_FALSE='#'
3412else
3413 AMDEP_TRUE='#'
3414 AMDEP_FALSE=
3415fi
3416
3417
Jeff Thompson36174062013-06-21 16:03:44 -07003418ac_ext=c
3419ac_cpp='$CPP $CPPFLAGS'
3420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3422ac_compiler_gnu=$ac_cv_c_compiler_gnu
3423if test -n "$ac_tool_prefix"; then
3424 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3425set dummy ${ac_tool_prefix}gcc; ac_word=$2
3426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3427$as_echo_n "checking for $ac_word... " >&6; }
3428if ${ac_cv_prog_CC+:} false; then :
3429 $as_echo_n "(cached) " >&6
3430else
3431 if test -n "$CC"; then
3432 ac_cv_prog_CC="$CC" # Let the user override the test.
3433else
3434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435for as_dir in $PATH
3436do
3437 IFS=$as_save_IFS
3438 test -z "$as_dir" && as_dir=.
3439 for ac_exec_ext in '' $ac_executable_extensions; do
3440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3441 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3443 break 2
3444 fi
3445done
3446 done
3447IFS=$as_save_IFS
3448
3449fi
3450fi
3451CC=$ac_cv_prog_CC
3452if test -n "$CC"; then
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3454$as_echo "$CC" >&6; }
3455else
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3457$as_echo "no" >&6; }
3458fi
3459
3460
3461fi
3462if test -z "$ac_cv_prog_CC"; then
3463 ac_ct_CC=$CC
3464 # Extract the first word of "gcc", so it can be a program name with args.
3465set dummy gcc; ac_word=$2
3466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3467$as_echo_n "checking for $ac_word... " >&6; }
3468if ${ac_cv_prog_ac_ct_CC+:} false; then :
3469 $as_echo_n "(cached) " >&6
3470else
3471 if test -n "$ac_ct_CC"; then
3472 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3473else
3474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475for as_dir in $PATH
3476do
3477 IFS=$as_save_IFS
3478 test -z "$as_dir" && as_dir=.
3479 for ac_exec_ext in '' $ac_executable_extensions; do
3480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3481 ac_cv_prog_ac_ct_CC="gcc"
3482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3483 break 2
3484 fi
3485done
3486 done
3487IFS=$as_save_IFS
3488
3489fi
3490fi
3491ac_ct_CC=$ac_cv_prog_ac_ct_CC
3492if test -n "$ac_ct_CC"; then
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3494$as_echo "$ac_ct_CC" >&6; }
3495else
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497$as_echo "no" >&6; }
3498fi
3499
3500 if test "x$ac_ct_CC" = x; then
3501 CC=""
3502 else
3503 case $cross_compiling:$ac_tool_warned in
3504yes:)
3505{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3506$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3507ac_tool_warned=yes ;;
3508esac
3509 CC=$ac_ct_CC
3510 fi
3511else
3512 CC="$ac_cv_prog_CC"
3513fi
3514
3515if test -z "$CC"; then
3516 if test -n "$ac_tool_prefix"; then
3517 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3518set dummy ${ac_tool_prefix}cc; ac_word=$2
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3520$as_echo_n "checking for $ac_word... " >&6; }
3521if ${ac_cv_prog_CC+:} false; then :
3522 $as_echo_n "(cached) " >&6
3523else
3524 if test -n "$CC"; then
3525 ac_cv_prog_CC="$CC" # Let the user override the test.
3526else
3527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528for as_dir in $PATH
3529do
3530 IFS=$as_save_IFS
3531 test -z "$as_dir" && as_dir=.
3532 for ac_exec_ext in '' $ac_executable_extensions; do
3533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3534 ac_cv_prog_CC="${ac_tool_prefix}cc"
3535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3536 break 2
3537 fi
3538done
3539 done
3540IFS=$as_save_IFS
3541
3542fi
3543fi
3544CC=$ac_cv_prog_CC
3545if test -n "$CC"; then
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3547$as_echo "$CC" >&6; }
3548else
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3550$as_echo "no" >&6; }
3551fi
3552
3553
3554 fi
3555fi
3556if test -z "$CC"; then
3557 # Extract the first word of "cc", so it can be a program name with args.
3558set dummy cc; ac_word=$2
3559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3560$as_echo_n "checking for $ac_word... " >&6; }
3561if ${ac_cv_prog_CC+:} false; then :
3562 $as_echo_n "(cached) " >&6
3563else
3564 if test -n "$CC"; then
3565 ac_cv_prog_CC="$CC" # Let the user override the test.
3566else
3567 ac_prog_rejected=no
3568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569for as_dir in $PATH
3570do
3571 IFS=$as_save_IFS
3572 test -z "$as_dir" && as_dir=.
3573 for ac_exec_ext in '' $ac_executable_extensions; do
3574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3575 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3576 ac_prog_rejected=yes
3577 continue
3578 fi
3579 ac_cv_prog_CC="cc"
3580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3581 break 2
3582 fi
3583done
3584 done
3585IFS=$as_save_IFS
3586
3587if test $ac_prog_rejected = yes; then
3588 # We found a bogon in the path, so make sure we never use it.
3589 set dummy $ac_cv_prog_CC
3590 shift
3591 if test $# != 0; then
3592 # We chose a different compiler from the bogus one.
3593 # However, it has the same basename, so the bogon will be chosen
3594 # first if we set CC to just the basename; use the full file name.
3595 shift
3596 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3597 fi
3598fi
3599fi
3600fi
3601CC=$ac_cv_prog_CC
3602if test -n "$CC"; then
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3604$as_echo "$CC" >&6; }
3605else
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607$as_echo "no" >&6; }
3608fi
3609
3610
3611fi
3612if test -z "$CC"; then
3613 if test -n "$ac_tool_prefix"; then
3614 for ac_prog in cl.exe
3615 do
3616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3617set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3619$as_echo_n "checking for $ac_word... " >&6; }
3620if ${ac_cv_prog_CC+:} false; then :
3621 $as_echo_n "(cached) " >&6
3622else
3623 if test -n "$CC"; then
3624 ac_cv_prog_CC="$CC" # Let the user override the test.
3625else
3626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627for as_dir in $PATH
3628do
3629 IFS=$as_save_IFS
3630 test -z "$as_dir" && as_dir=.
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3635 break 2
3636 fi
3637done
3638 done
3639IFS=$as_save_IFS
3640
3641fi
3642fi
3643CC=$ac_cv_prog_CC
3644if test -n "$CC"; then
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3646$as_echo "$CC" >&6; }
3647else
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3649$as_echo "no" >&6; }
3650fi
3651
3652
3653 test -n "$CC" && break
3654 done
3655fi
3656if test -z "$CC"; then
3657 ac_ct_CC=$CC
3658 for ac_prog in cl.exe
3659do
3660 # Extract the first word of "$ac_prog", so it can be a program name with args.
3661set dummy $ac_prog; ac_word=$2
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3663$as_echo_n "checking for $ac_word... " >&6; }
3664if ${ac_cv_prog_ac_ct_CC+:} false; then :
3665 $as_echo_n "(cached) " >&6
3666else
3667 if test -n "$ac_ct_CC"; then
3668 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3669else
3670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671for as_dir in $PATH
3672do
3673 IFS=$as_save_IFS
3674 test -z "$as_dir" && as_dir=.
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677 ac_cv_prog_ac_ct_CC="$ac_prog"
3678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3679 break 2
3680 fi
3681done
3682 done
3683IFS=$as_save_IFS
3684
3685fi
3686fi
3687ac_ct_CC=$ac_cv_prog_ac_ct_CC
3688if test -n "$ac_ct_CC"; then
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3690$as_echo "$ac_ct_CC" >&6; }
3691else
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693$as_echo "no" >&6; }
3694fi
3695
3696
3697 test -n "$ac_ct_CC" && break
3698done
3699
3700 if test "x$ac_ct_CC" = x; then
3701 CC=""
3702 else
3703 case $cross_compiling:$ac_tool_warned in
3704yes:)
3705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3707ac_tool_warned=yes ;;
3708esac
3709 CC=$ac_ct_CC
3710 fi
3711fi
3712
3713fi
3714
3715
3716test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3717$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3718as_fn_error $? "no acceptable C compiler found in \$PATH
3719See \`config.log' for more details" "$LINENO" 5; }
3720
3721# Provide some information about the compiler.
3722$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3723set X $ac_compile
3724ac_compiler=$2
3725for ac_option in --version -v -V -qversion; do
3726 { { ac_try="$ac_compiler $ac_option >&5"
3727case "(($ac_try" in
3728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729 *) ac_try_echo=$ac_try;;
3730esac
3731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3732$as_echo "$ac_try_echo"; } >&5
3733 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3734 ac_status=$?
3735 if test -s conftest.err; then
3736 sed '10a\
3737... rest of stderr output deleted ...
3738 10q' conftest.err >conftest.er1
3739 cat conftest.er1 >&5
3740 fi
3741 rm -f conftest.er1 conftest.err
3742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3743 test $ac_status = 0; }
3744done
3745
Jeff Thompson4f031642013-08-05 11:03:16 -07003746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747/* end confdefs.h. */
3748
3749int
3750main ()
3751{
3752
3753 ;
3754 return 0;
3755}
3756_ACEOF
3757ac_clean_files_save=$ac_clean_files
3758ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3759# Try to create an executable without -o first, disregard a.out.
3760# It will help us diagnose broken compilers, and finding out an intuition
3761# of exeext.
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3763$as_echo_n "checking whether the C compiler works... " >&6; }
3764ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3765
3766# The possible output files:
3767ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3768
3769ac_rmfiles=
3770for ac_file in $ac_files
3771do
3772 case $ac_file in
3773 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3774 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3775 esac
3776done
3777rm -f $ac_rmfiles
3778
3779if { { ac_try="$ac_link_default"
3780case "(($ac_try" in
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3783esac
3784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3785$as_echo "$ac_try_echo"; } >&5
3786 (eval "$ac_link_default") 2>&5
3787 ac_status=$?
3788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3789 test $ac_status = 0; }; then :
3790 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3791# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3792# in a Makefile. We should not override ac_cv_exeext if it was cached,
3793# so that the user can short-circuit this test for compilers unknown to
3794# Autoconf.
3795for ac_file in $ac_files ''
3796do
3797 test -f "$ac_file" || continue
3798 case $ac_file in
3799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3800 ;;
3801 [ab].out )
3802 # We found the default executable, but exeext='' is most
3803 # certainly right.
3804 break;;
3805 *.* )
3806 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3807 then :; else
3808 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3809 fi
3810 # We set ac_cv_exeext here because the later test for it is not
3811 # safe: cross compilers may not add the suffix if given an `-o'
3812 # argument, so we may need to know it at that point already.
3813 # Even if this section looks crufty: it has the advantage of
3814 # actually working.
3815 break;;
3816 * )
3817 break;;
3818 esac
3819done
3820test "$ac_cv_exeext" = no && ac_cv_exeext=
3821
3822else
3823 ac_file=''
3824fi
3825if test -z "$ac_file"; then :
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827$as_echo "no" >&6; }
3828$as_echo "$as_me: failed program was:" >&5
3829sed 's/^/| /' conftest.$ac_ext >&5
3830
3831{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3832$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3833as_fn_error 77 "C compiler cannot create executables
3834See \`config.log' for more details" "$LINENO" 5; }
3835else
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3837$as_echo "yes" >&6; }
3838fi
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3840$as_echo_n "checking for C compiler default output file name... " >&6; }
3841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3842$as_echo "$ac_file" >&6; }
3843ac_exeext=$ac_cv_exeext
3844
3845rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3846ac_clean_files=$ac_clean_files_save
3847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3848$as_echo_n "checking for suffix of executables... " >&6; }
3849if { { ac_try="$ac_link"
3850case "(($ac_try" in
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3853esac
3854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855$as_echo "$ac_try_echo"; } >&5
3856 (eval "$ac_link") 2>&5
3857 ac_status=$?
3858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859 test $ac_status = 0; }; then :
3860 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3861# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3862# work properly (i.e., refer to `conftest.exe'), while it won't with
3863# `rm'.
3864for ac_file in conftest.exe conftest conftest.*; do
3865 test -f "$ac_file" || continue
3866 case $ac_file in
3867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3868 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3869 break;;
3870 * ) break;;
3871 esac
3872done
3873else
3874 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3875$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3876as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3877See \`config.log' for more details" "$LINENO" 5; }
3878fi
3879rm -f conftest conftest$ac_cv_exeext
3880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3881$as_echo "$ac_cv_exeext" >&6; }
3882
3883rm -f conftest.$ac_ext
3884EXEEXT=$ac_cv_exeext
3885ac_exeext=$EXEEXT
3886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887/* end confdefs.h. */
3888#include <stdio.h>
3889int
3890main ()
3891{
3892FILE *f = fopen ("conftest.out", "w");
3893 return ferror (f) || fclose (f) != 0;
3894
3895 ;
3896 return 0;
3897}
3898_ACEOF
3899ac_clean_files="$ac_clean_files conftest.out"
3900# Check that the compiler produces executables we can run. If not, either
3901# the compiler is broken, or we cross compile.
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3903$as_echo_n "checking whether we are cross compiling... " >&6; }
3904if test "$cross_compiling" != yes; then
3905 { { ac_try="$ac_link"
3906case "(($ac_try" in
3907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908 *) ac_try_echo=$ac_try;;
3909esac
3910eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3911$as_echo "$ac_try_echo"; } >&5
3912 (eval "$ac_link") 2>&5
3913 ac_status=$?
3914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3915 test $ac_status = 0; }
3916 if { ac_try='./conftest$ac_cv_exeext'
3917 { { case "(($ac_try" in
3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3920esac
3921eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3922$as_echo "$ac_try_echo"; } >&5
3923 (eval "$ac_try") 2>&5
3924 ac_status=$?
3925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3926 test $ac_status = 0; }; }; then
3927 cross_compiling=no
3928 else
3929 if test "$cross_compiling" = maybe; then
3930 cross_compiling=yes
3931 else
3932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3933$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3934as_fn_error $? "cannot run C compiled programs.
3935If you meant to cross compile, use \`--host'.
3936See \`config.log' for more details" "$LINENO" 5; }
3937 fi
3938 fi
3939fi
3940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3941$as_echo "$cross_compiling" >&6; }
3942
3943rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3944ac_clean_files=$ac_clean_files_save
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3946$as_echo_n "checking for suffix of object files... " >&6; }
3947if ${ac_cv_objext+:} false; then :
3948 $as_echo_n "(cached) " >&6
3949else
3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951/* end confdefs.h. */
3952
3953int
3954main ()
3955{
3956
3957 ;
3958 return 0;
3959}
3960_ACEOF
3961rm -f conftest.o conftest.obj
3962if { { ac_try="$ac_compile"
3963case "(($ac_try" in
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3966esac
3967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3968$as_echo "$ac_try_echo"; } >&5
3969 (eval "$ac_compile") 2>&5
3970 ac_status=$?
3971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3972 test $ac_status = 0; }; then :
3973 for ac_file in conftest.o conftest.obj conftest.*; do
3974 test -f "$ac_file" || continue;
3975 case $ac_file in
3976 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3977 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3978 break;;
3979 esac
3980done
3981else
3982 $as_echo "$as_me: failed program was:" >&5
3983sed 's/^/| /' conftest.$ac_ext >&5
3984
3985{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3986$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3987as_fn_error $? "cannot compute suffix of object files: cannot compile
3988See \`config.log' for more details" "$LINENO" 5; }
3989fi
3990rm -f conftest.$ac_cv_objext conftest.$ac_ext
3991fi
3992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3993$as_echo "$ac_cv_objext" >&6; }
3994OBJEXT=$ac_cv_objext
3995ac_objext=$OBJEXT
Jeff Thompson36174062013-06-21 16:03:44 -07003996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3997$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3998if ${ac_cv_c_compiler_gnu+:} false; then :
3999 $as_echo_n "(cached) " >&6
4000else
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002/* end confdefs.h. */
4003
4004int
4005main ()
4006{
4007#ifndef __GNUC__
4008 choke me
4009#endif
4010
4011 ;
4012 return 0;
4013}
4014_ACEOF
4015if ac_fn_c_try_compile "$LINENO"; then :
4016 ac_compiler_gnu=yes
4017else
4018 ac_compiler_gnu=no
4019fi
4020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4021ac_cv_c_compiler_gnu=$ac_compiler_gnu
4022
4023fi
4024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4025$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4026if test $ac_compiler_gnu = yes; then
4027 GCC=yes
4028else
4029 GCC=
4030fi
4031ac_test_CFLAGS=${CFLAGS+set}
4032ac_save_CFLAGS=$CFLAGS
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4034$as_echo_n "checking whether $CC accepts -g... " >&6; }
4035if ${ac_cv_prog_cc_g+:} false; then :
4036 $as_echo_n "(cached) " >&6
4037else
4038 ac_save_c_werror_flag=$ac_c_werror_flag
4039 ac_c_werror_flag=yes
4040 ac_cv_prog_cc_g=no
4041 CFLAGS="-g"
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043/* end confdefs.h. */
4044
4045int
4046main ()
4047{
4048
4049 ;
4050 return 0;
4051}
4052_ACEOF
4053if ac_fn_c_try_compile "$LINENO"; then :
4054 ac_cv_prog_cc_g=yes
4055else
4056 CFLAGS=""
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058/* end confdefs.h. */
4059
4060int
4061main ()
4062{
4063
4064 ;
4065 return 0;
4066}
4067_ACEOF
4068if ac_fn_c_try_compile "$LINENO"; then :
4069
4070else
4071 ac_c_werror_flag=$ac_save_c_werror_flag
4072 CFLAGS="-g"
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074/* end confdefs.h. */
4075
4076int
4077main ()
4078{
4079
4080 ;
4081 return 0;
4082}
4083_ACEOF
4084if ac_fn_c_try_compile "$LINENO"; then :
4085 ac_cv_prog_cc_g=yes
4086fi
4087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088fi
4089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090fi
4091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092 ac_c_werror_flag=$ac_save_c_werror_flag
4093fi
4094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4095$as_echo "$ac_cv_prog_cc_g" >&6; }
4096if test "$ac_test_CFLAGS" = set; then
4097 CFLAGS=$ac_save_CFLAGS
4098elif test $ac_cv_prog_cc_g = yes; then
4099 if test "$GCC" = yes; then
4100 CFLAGS="-g -O2"
4101 else
4102 CFLAGS="-g"
4103 fi
4104else
4105 if test "$GCC" = yes; then
4106 CFLAGS="-O2"
4107 else
4108 CFLAGS=
4109 fi
4110fi
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4112$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4113if ${ac_cv_prog_cc_c89+:} false; then :
4114 $as_echo_n "(cached) " >&6
4115else
4116 ac_cv_prog_cc_c89=no
4117ac_save_CC=$CC
4118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119/* end confdefs.h. */
4120#include <stdarg.h>
4121#include <stdio.h>
4122struct stat;
4123/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4124struct buf { int x; };
4125FILE * (*rcsopen) (struct buf *, struct stat *, int);
4126static char *e (p, i)
4127 char **p;
4128 int i;
4129{
4130 return p[i];
4131}
4132static char *f (char * (*g) (char **, int), char **p, ...)
4133{
4134 char *s;
4135 va_list v;
4136 va_start (v,p);
4137 s = g (p, va_arg (v,int));
4138 va_end (v);
4139 return s;
4140}
4141
4142/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4143 function prototypes and stuff, but not '\xHH' hex character constants.
4144 These don't provoke an error unfortunately, instead are silently treated
4145 as 'x'. The following induces an error, until -std is added to get
4146 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4147 array size at least. It's necessary to write '\x00'==0 to get something
4148 that's true only with -std. */
4149int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4150
4151/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4152 inside strings and character constants. */
4153#define FOO(x) 'x'
4154int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4155
4156int test (int i, double x);
4157struct s1 {int (*f) (int a);};
4158struct s2 {int (*f) (double a);};
4159int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4160int argc;
4161char **argv;
4162int
4163main ()
4164{
4165return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4166 ;
4167 return 0;
4168}
4169_ACEOF
4170for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4171 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4172do
4173 CC="$ac_save_CC $ac_arg"
4174 if ac_fn_c_try_compile "$LINENO"; then :
4175 ac_cv_prog_cc_c89=$ac_arg
4176fi
4177rm -f core conftest.err conftest.$ac_objext
4178 test "x$ac_cv_prog_cc_c89" != "xno" && break
4179done
4180rm -f conftest.$ac_ext
4181CC=$ac_save_CC
4182
4183fi
4184# AC_CACHE_VAL
4185case "x$ac_cv_prog_cc_c89" in
4186 x)
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4188$as_echo "none needed" >&6; } ;;
4189 xno)
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4191$as_echo "unsupported" >&6; } ;;
4192 *)
4193 CC="$CC $ac_cv_prog_cc_c89"
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4195$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4196esac
4197if test "x$ac_cv_prog_cc_c89" != xno; then :
4198
4199fi
4200
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004201ac_ext=c
4202ac_cpp='$CPP $CPPFLAGS'
4203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4205ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeff Thompson36174062013-06-21 16:03:44 -07004206
Jeff Thompsona04f23c2013-09-16 17:48:38 -07004207ac_ext=c
4208ac_cpp='$CPP $CPPFLAGS'
4209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4211ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4213$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4214if ${am_cv_prog_cc_c_o+:} false; then :
4215 $as_echo_n "(cached) " >&6
4216else
4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218/* end confdefs.h. */
4219
4220int
4221main ()
4222{
4223
4224 ;
4225 return 0;
4226}
4227_ACEOF
4228 # Make sure it works both with $CC and with simple cc.
4229 # Following AC_PROG_CC_C_O, we do the test twice because some
4230 # compilers refuse to overwrite an existing .o file with -o,
4231 # though they will create one.
4232 am_cv_prog_cc_c_o=yes
4233 for am_i in 1 2; do
4234 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4235 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4236 ac_status=$?
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); } \
4239 && test -f conftest2.$ac_objext; then
4240 : OK
4241 else
4242 am_cv_prog_cc_c_o=no
4243 break
4244 fi
4245 done
4246 rm -f core conftest*
4247 unset am_i
4248fi
4249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4250$as_echo "$am_cv_prog_cc_c_o" >&6; }
4251if test "$am_cv_prog_cc_c_o" != yes; then
4252 # Losing compiler, so override with the script.
4253 # FIXME: It is wrong to rewrite CC.
4254 # But if we don't then we get into trouble of one sort or another.
4255 # A longer-term fix would be to have automake use am__CC in this case,
4256 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4257 CC="$am_aux_dir/compile $CC"
4258fi
4259ac_ext=c
4260ac_cpp='$CPP $CPPFLAGS'
4261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4263ac_compiler_gnu=$ac_cv_c_compiler_gnu
4264
4265
Jeff Thompson36174062013-06-21 16:03:44 -07004266depcc="$CC" am_compiler_list=
4267
4268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4269$as_echo_n "checking dependency style of $depcc... " >&6; }
4270if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4271 $as_echo_n "(cached) " >&6
4272else
4273 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4274 # We make a subdir and do the tests there. Otherwise we can end up
4275 # making bogus files that we don't know about and never remove. For
4276 # instance it was reported that on HP-UX the gcc test will end up
4277 # making a dummy file named 'D' -- because '-MD' means "put the output
4278 # in D".
4279 rm -rf conftest.dir
4280 mkdir conftest.dir
4281 # Copy depcomp to subdir because otherwise we won't find it if we're
4282 # using a relative directory.
4283 cp "$am_depcomp" conftest.dir
4284 cd conftest.dir
4285 # We will build objects and dependencies in a subdirectory because
4286 # it helps to detect inapplicable dependency modes. For instance
4287 # both Tru64's cc and ICC support -MD to output dependencies as a
4288 # side effect of compilation, but ICC will put the dependencies in
4289 # the current directory while Tru64 will put them in the object
4290 # directory.
4291 mkdir sub
4292
4293 am_cv_CC_dependencies_compiler_type=none
4294 if test "$am_compiler_list" = ""; then
4295 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4296 fi
4297 am__universal=false
4298 case " $depcc " in #(
4299 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4300 esac
4301
4302 for depmode in $am_compiler_list; do
4303 # Setup a source with many dependencies, because some compilers
4304 # like to wrap large dependency lists on column 80 (with \), and
4305 # we should not choose a depcomp mode which is confused by this.
4306 #
4307 # We need to recreate these files for each test, as the compiler may
4308 # overwrite some of them when testing with obscure command lines.
4309 # This happens at least with the AIX C compiler.
4310 : > sub/conftest.c
4311 for i in 1 2 3 4 5 6; do
4312 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4313 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4314 # Solaris 10 /bin/sh.
4315 echo '/* dummy */' > sub/conftst$i.h
4316 done
4317 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4318
4319 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4320 # mode. It turns out that the SunPro C++ compiler does not properly
4321 # handle '-M -o', and we need to detect this. Also, some Intel
4322 # versions had trouble with output in subdirs.
4323 am__obj=sub/conftest.${OBJEXT-o}
4324 am__minus_obj="-o $am__obj"
4325 case $depmode in
4326 gcc)
4327 # This depmode causes a compiler race in universal mode.
4328 test "$am__universal" = false || continue
4329 ;;
4330 nosideeffect)
4331 # After this tag, mechanisms are not by side-effect, so they'll
4332 # only be used when explicitly requested.
4333 if test "x$enable_dependency_tracking" = xyes; then
4334 continue
4335 else
4336 break
4337 fi
4338 ;;
4339 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4340 # This compiler won't grok '-c -o', but also, the minuso test has
4341 # not run yet. These depmodes are late enough in the game, and
4342 # so weak that their functioning should not be impacted.
4343 am__obj=conftest.${OBJEXT-o}
4344 am__minus_obj=
4345 ;;
4346 none) break ;;
4347 esac
4348 if depmode=$depmode \
4349 source=sub/conftest.c object=$am__obj \
4350 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4351 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4352 >/dev/null 2>conftest.err &&
4353 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4354 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4355 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4356 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4357 # icc doesn't choke on unknown options, it will just issue warnings
4358 # or remarks (even with -Werror). So we grep stderr for any message
4359 # that says an option was ignored or not supported.
4360 # When given -MP, icc 7.0 and 7.1 complain thusly:
4361 # icc: Command line warning: ignoring option '-M'; no argument required
4362 # The diagnosis changed in icc 8.0:
4363 # icc: Command line remark: option '-MP' not supported
4364 if (grep 'ignoring option' conftest.err ||
4365 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4366 am_cv_CC_dependencies_compiler_type=$depmode
4367 break
4368 fi
4369 fi
4370 done
4371
4372 cd ..
4373 rm -rf conftest.dir
4374else
4375 am_cv_CC_dependencies_compiler_type=none
4376fi
4377
4378fi
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4380$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4381CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4382
4383 if
4384 test "x$enable_dependency_tracking" != xno \
4385 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4386 am__fastdepCC_TRUE=
4387 am__fastdepCC_FALSE='#'
4388else
4389 am__fastdepCC_TRUE='#'
4390 am__fastdepCC_FALSE=
4391fi
4392
4393
Jeff Thompson36174062013-06-21 16:03:44 -07004394
4395if test -n "$ac_tool_prefix"; then
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004396 for ac_prog in ar lib "link -lib"
Jeff Thompson36174062013-06-21 16:03:44 -07004397 do
4398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4399set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401$as_echo_n "checking for $ac_word... " >&6; }
4402if ${ac_cv_prog_AR+:} false; then :
4403 $as_echo_n "(cached) " >&6
4404else
4405 if test -n "$AR"; then
4406 ac_cv_prog_AR="$AR" # Let the user override the test.
4407else
4408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409for as_dir in $PATH
4410do
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4415 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 break 2
4418 fi
4419done
4420 done
4421IFS=$as_save_IFS
4422
4423fi
4424fi
4425AR=$ac_cv_prog_AR
4426if test -n "$AR"; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4428$as_echo "$AR" >&6; }
4429else
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431$as_echo "no" >&6; }
4432fi
4433
4434
4435 test -n "$AR" && break
4436 done
4437fi
4438if test -z "$AR"; then
4439 ac_ct_AR=$AR
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004440 for ac_prog in ar lib "link -lib"
Jeff Thompson36174062013-06-21 16:03:44 -07004441do
4442 # Extract the first word of "$ac_prog", so it can be a program name with args.
4443set dummy $ac_prog; ac_word=$2
4444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4445$as_echo_n "checking for $ac_word... " >&6; }
4446if ${ac_cv_prog_ac_ct_AR+:} false; then :
4447 $as_echo_n "(cached) " >&6
4448else
4449 if test -n "$ac_ct_AR"; then
4450 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4451else
4452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453for as_dir in $PATH
4454do
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4459 ac_cv_prog_ac_ct_AR="$ac_prog"
4460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 break 2
4462 fi
4463done
4464 done
4465IFS=$as_save_IFS
4466
4467fi
4468fi
4469ac_ct_AR=$ac_cv_prog_ac_ct_AR
4470if test -n "$ac_ct_AR"; then
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4472$as_echo "$ac_ct_AR" >&6; }
4473else
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475$as_echo "no" >&6; }
4476fi
4477
4478
4479 test -n "$ac_ct_AR" && break
4480done
4481
4482 if test "x$ac_ct_AR" = x; then
4483 AR="false"
4484 else
4485 case $cross_compiling:$ac_tool_warned in
4486yes:)
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4488$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4489ac_tool_warned=yes ;;
4490esac
4491 AR=$ac_ct_AR
4492 fi
4493fi
4494
4495: ${AR=ar}
Jeff Thompson36174062013-06-21 16:03:44 -07004496
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4498$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4499if ${am_cv_ar_interface+:} false; then :
Jeff Thompson36174062013-06-21 16:03:44 -07004500 $as_echo_n "(cached) " >&6
4501else
Jeff Thompsona04f23c2013-09-16 17:48:38 -07004502 ac_ext=c
4503ac_cpp='$CPP $CPPFLAGS'
4504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4506ac_compiler_gnu=$ac_cv_c_compiler_gnu
4507
4508 am_cv_ar_interface=ar
Jeff Thompson36174062013-06-21 16:03:44 -07004509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510/* end confdefs.h. */
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004511int some_variable = 0;
Jeff Thompson36174062013-06-21 16:03:44 -07004512_ACEOF
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004513if ac_fn_c_try_compile "$LINENO"; then :
4514 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4516 (eval $am_ar_try) 2>&5
Jeff Thompson36174062013-06-21 16:03:44 -07004517 ac_status=$?
4518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4519 test $ac_status = 0; }
4520 if test "$ac_status" -eq 0; then
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004521 am_cv_ar_interface=ar
4522 else
4523 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4525 (eval $am_ar_try) 2>&5
Jeff Thompson36174062013-06-21 16:03:44 -07004526 ac_status=$?
4527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4528 test $ac_status = 0; }
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004529 if test "$ac_status" -eq 0; then
4530 am_cv_ar_interface=lib
4531 else
4532 am_cv_ar_interface=unknown
Jeff Thompson36174062013-06-21 16:03:44 -07004533 fi
4534 fi
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004535 rm -f conftest.lib libconftest.a
Jeff Thompson36174062013-06-21 16:03:44 -07004536
4537fi
4538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jeff Thompsona04f23c2013-09-16 17:48:38 -07004539 ac_ext=c
4540ac_cpp='$CPP $CPPFLAGS'
4541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4543ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeff Thompson36174062013-06-21 16:03:44 -07004544
4545fi
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4547$as_echo "$am_cv_ar_interface" >&6; }
Jeff Thompson36174062013-06-21 16:03:44 -07004548
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004549case $am_cv_ar_interface in
4550ar)
Jeff Thompson36174062013-06-21 16:03:44 -07004551 ;;
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004552lib)
4553 # Microsoft lib, so override with the ar-lib wrapper script.
4554 # FIXME: It is wrong to rewrite AR.
4555 # But if we don't then we get into trouble of one sort or another.
4556 # A longer-term fix would be to have automake use am__AR in this case,
4557 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4558 # similar.
4559 AR="$am_aux_dir/ar-lib $AR"
Jeff Thompson36174062013-06-21 16:03:44 -07004560 ;;
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004561unknown)
4562 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
Jeff Thompson36174062013-06-21 16:03:44 -07004563 ;;
4564esac
4565
Jeff Thompson4f031642013-08-05 11:03:16 -07004566case `pwd` in
4567 *\ * | *\ *)
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4569$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4570esac
4571
4572
4573
4574macro_version='2.4.2'
4575macro_revision='1.3337'
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589ltmain="$ac_aux_dir/ltmain.sh"
4590
4591# Make sure we can run config.sub.
4592$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4593 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4594
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4596$as_echo_n "checking build system type... " >&6; }
4597if ${ac_cv_build+:} false; then :
4598 $as_echo_n "(cached) " >&6
4599else
4600 ac_build_alias=$build_alias
4601test "x$ac_build_alias" = x &&
4602 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4603test "x$ac_build_alias" = x &&
4604 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4605ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4606 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4607
4608fi
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4610$as_echo "$ac_cv_build" >&6; }
4611case $ac_cv_build in
4612*-*-*) ;;
4613*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4614esac
4615build=$ac_cv_build
4616ac_save_IFS=$IFS; IFS='-'
4617set x $ac_cv_build
4618shift
4619build_cpu=$1
4620build_vendor=$2
4621shift; shift
4622# Remember, the first character of IFS is used to create $*,
4623# except with old shells:
4624build_os=$*
4625IFS=$ac_save_IFS
4626case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4627
4628
4629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4630$as_echo_n "checking host system type... " >&6; }
4631if ${ac_cv_host+:} false; then :
4632 $as_echo_n "(cached) " >&6
4633else
4634 if test "x$host_alias" = x; then
4635 ac_cv_host=$ac_cv_build
4636else
4637 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4638 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4639fi
4640
4641fi
4642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4643$as_echo "$ac_cv_host" >&6; }
4644case $ac_cv_host in
4645*-*-*) ;;
4646*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4647esac
4648host=$ac_cv_host
4649ac_save_IFS=$IFS; IFS='-'
4650set x $ac_cv_host
4651shift
4652host_cpu=$1
4653host_vendor=$2
4654shift; shift
4655# Remember, the first character of IFS is used to create $*,
4656# except with old shells:
4657host_os=$*
4658IFS=$ac_save_IFS
4659case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4660
4661
4662# Backslashify metacharacters that are still active within
4663# double-quoted strings.
4664sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4665
4666# Same as above, but do not quote variable references.
4667double_quote_subst='s/\(["`\\]\)/\\\1/g'
4668
4669# Sed substitution to delay expansion of an escaped shell variable in a
4670# double_quote_subst'ed string.
4671delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4672
4673# Sed substitution to delay expansion of an escaped single quote.
4674delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4675
4676# Sed substitution to avoid accidental globbing in evaled expressions
4677no_glob_subst='s/\*/\\\*/g'
4678
4679ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4680ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4681ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4682
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4684$as_echo_n "checking how to print strings... " >&6; }
4685# Test print first, because it will be a builtin if present.
4686if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4687 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4688 ECHO='print -r --'
4689elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4690 ECHO='printf %s\n'
4691else
4692 # Use this function as a fallback that always works.
4693 func_fallback_echo ()
4694 {
4695 eval 'cat <<_LTECHO_EOF
4696$1
4697_LTECHO_EOF'
4698 }
4699 ECHO='func_fallback_echo'
4700fi
4701
4702# func_echo_all arg...
4703# Invoke $ECHO with all args, space-separated.
4704func_echo_all ()
4705{
4706 $ECHO ""
4707}
4708
4709case "$ECHO" in
4710 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4711$as_echo "printf" >&6; } ;;
4712 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4713$as_echo "print -r" >&6; } ;;
4714 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4715$as_echo "cat" >&6; } ;;
4716esac
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4732$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4733if ${ac_cv_path_SED+:} false; then :
4734 $as_echo_n "(cached) " >&6
4735else
4736 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4737 for ac_i in 1 2 3 4 5 6 7; do
4738 ac_script="$ac_script$as_nl$ac_script"
4739 done
4740 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4741 { ac_script=; unset ac_script;}
4742 if test -z "$SED"; then
4743 ac_path_SED_found=false
4744 # Loop through the user's path and test for each of PROGNAME-LIST
4745 as_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_prog in sed gsed; do
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4753 as_fn_executable_p "$ac_path_SED" || continue
4754# Check for GNU ac_path_SED and select it if it is found.
4755 # Check for GNU $ac_path_SED
4756case `"$ac_path_SED" --version 2>&1` in
4757*GNU*)
4758 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4759*)
4760 ac_count=0
4761 $as_echo_n 0123456789 >"conftest.in"
4762 while :
4763 do
4764 cat "conftest.in" "conftest.in" >"conftest.tmp"
4765 mv "conftest.tmp" "conftest.in"
4766 cp "conftest.in" "conftest.nl"
4767 $as_echo '' >> "conftest.nl"
4768 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4769 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4770 as_fn_arith $ac_count + 1 && ac_count=$as_val
4771 if test $ac_count -gt ${ac_path_SED_max-0}; then
4772 # Best one so far, save it but keep looking for a better one
4773 ac_cv_path_SED="$ac_path_SED"
4774 ac_path_SED_max=$ac_count
4775 fi
4776 # 10*(2^10) chars as input seems more than enough
4777 test $ac_count -gt 10 && break
4778 done
4779 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4780esac
4781
4782 $ac_path_SED_found && break 3
4783 done
4784 done
4785 done
4786IFS=$as_save_IFS
4787 if test -z "$ac_cv_path_SED"; then
4788 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4789 fi
4790else
4791 ac_cv_path_SED=$SED
4792fi
4793
4794fi
4795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4796$as_echo "$ac_cv_path_SED" >&6; }
4797 SED="$ac_cv_path_SED"
4798 rm -f conftest.sed
4799
4800test -z "$SED" && SED=sed
4801Xsed="$SED -e 1s/^X//"
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4814$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4815if ${ac_cv_path_GREP+:} false; then :
4816 $as_echo_n "(cached) " >&6
4817else
4818 if test -z "$GREP"; then
4819 ac_path_GREP_found=false
4820 # Loop through the user's path and test for each of PROGNAME-LIST
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4823do
4824 IFS=$as_save_IFS
4825 test -z "$as_dir" && as_dir=.
4826 for ac_prog in grep ggrep; do
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4829 as_fn_executable_p "$ac_path_GREP" || continue
4830# Check for GNU ac_path_GREP and select it if it is found.
4831 # Check for GNU $ac_path_GREP
4832case `"$ac_path_GREP" --version 2>&1` in
4833*GNU*)
4834 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4835*)
4836 ac_count=0
4837 $as_echo_n 0123456789 >"conftest.in"
4838 while :
4839 do
4840 cat "conftest.in" "conftest.in" >"conftest.tmp"
4841 mv "conftest.tmp" "conftest.in"
4842 cp "conftest.in" "conftest.nl"
4843 $as_echo 'GREP' >> "conftest.nl"
4844 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4845 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4846 as_fn_arith $ac_count + 1 && ac_count=$as_val
4847 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4848 # Best one so far, save it but keep looking for a better one
4849 ac_cv_path_GREP="$ac_path_GREP"
4850 ac_path_GREP_max=$ac_count
4851 fi
4852 # 10*(2^10) chars as input seems more than enough
4853 test $ac_count -gt 10 && break
4854 done
4855 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4856esac
4857
4858 $ac_path_GREP_found && break 3
4859 done
4860 done
4861 done
4862IFS=$as_save_IFS
4863 if test -z "$ac_cv_path_GREP"; then
4864 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4865 fi
4866else
4867 ac_cv_path_GREP=$GREP
4868fi
4869
4870fi
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4872$as_echo "$ac_cv_path_GREP" >&6; }
4873 GREP="$ac_cv_path_GREP"
4874
4875
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4877$as_echo_n "checking for egrep... " >&6; }
4878if ${ac_cv_path_EGREP+:} false; then :
4879 $as_echo_n "(cached) " >&6
4880else
4881 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4882 then ac_cv_path_EGREP="$GREP -E"
4883 else
4884 if test -z "$EGREP"; then
4885 ac_path_EGREP_found=false
4886 # Loop through the user's path and test for each of PROGNAME-LIST
4887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4889do
4890 IFS=$as_save_IFS
4891 test -z "$as_dir" && as_dir=.
4892 for ac_prog in egrep; do
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4895 as_fn_executable_p "$ac_path_EGREP" || continue
4896# Check for GNU ac_path_EGREP and select it if it is found.
4897 # Check for GNU $ac_path_EGREP
4898case `"$ac_path_EGREP" --version 2>&1` in
4899*GNU*)
4900 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4901*)
4902 ac_count=0
4903 $as_echo_n 0123456789 >"conftest.in"
4904 while :
4905 do
4906 cat "conftest.in" "conftest.in" >"conftest.tmp"
4907 mv "conftest.tmp" "conftest.in"
4908 cp "conftest.in" "conftest.nl"
4909 $as_echo 'EGREP' >> "conftest.nl"
4910 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4911 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4912 as_fn_arith $ac_count + 1 && ac_count=$as_val
4913 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4914 # Best one so far, save it but keep looking for a better one
4915 ac_cv_path_EGREP="$ac_path_EGREP"
4916 ac_path_EGREP_max=$ac_count
4917 fi
4918 # 10*(2^10) chars as input seems more than enough
4919 test $ac_count -gt 10 && break
4920 done
4921 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4922esac
4923
4924 $ac_path_EGREP_found && break 3
4925 done
4926 done
4927 done
4928IFS=$as_save_IFS
4929 if test -z "$ac_cv_path_EGREP"; then
4930 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4931 fi
4932else
4933 ac_cv_path_EGREP=$EGREP
4934fi
4935
4936 fi
4937fi
4938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4939$as_echo "$ac_cv_path_EGREP" >&6; }
4940 EGREP="$ac_cv_path_EGREP"
4941
4942
4943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4944$as_echo_n "checking for fgrep... " >&6; }
4945if ${ac_cv_path_FGREP+:} false; then :
4946 $as_echo_n "(cached) " >&6
4947else
4948 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4949 then ac_cv_path_FGREP="$GREP -F"
4950 else
4951 if test -z "$FGREP"; then
4952 ac_path_FGREP_found=false
4953 # Loop through the user's path and test for each of PROGNAME-LIST
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4956do
4957 IFS=$as_save_IFS
4958 test -z "$as_dir" && as_dir=.
4959 for ac_prog in fgrep; do
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4962 as_fn_executable_p "$ac_path_FGREP" || continue
4963# Check for GNU ac_path_FGREP and select it if it is found.
4964 # Check for GNU $ac_path_FGREP
4965case `"$ac_path_FGREP" --version 2>&1` in
4966*GNU*)
4967 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4968*)
4969 ac_count=0
4970 $as_echo_n 0123456789 >"conftest.in"
4971 while :
4972 do
4973 cat "conftest.in" "conftest.in" >"conftest.tmp"
4974 mv "conftest.tmp" "conftest.in"
4975 cp "conftest.in" "conftest.nl"
4976 $as_echo 'FGREP' >> "conftest.nl"
4977 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4978 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4979 as_fn_arith $ac_count + 1 && ac_count=$as_val
4980 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4981 # Best one so far, save it but keep looking for a better one
4982 ac_cv_path_FGREP="$ac_path_FGREP"
4983 ac_path_FGREP_max=$ac_count
4984 fi
4985 # 10*(2^10) chars as input seems more than enough
4986 test $ac_count -gt 10 && break
4987 done
4988 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4989esac
4990
4991 $ac_path_FGREP_found && break 3
4992 done
4993 done
4994 done
4995IFS=$as_save_IFS
4996 if test -z "$ac_cv_path_FGREP"; then
4997 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4998 fi
4999else
5000 ac_cv_path_FGREP=$FGREP
5001fi
5002
5003 fi
5004fi
5005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5006$as_echo "$ac_cv_path_FGREP" >&6; }
5007 FGREP="$ac_cv_path_FGREP"
5008
5009
5010test -z "$GREP" && GREP=grep
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030# Check whether --with-gnu-ld was given.
5031if test "${with_gnu_ld+set}" = set; then :
5032 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5033else
5034 with_gnu_ld=no
5035fi
5036
5037ac_prog=ld
5038if test "$GCC" = yes; then
5039 # Check if gcc -print-prog-name=ld gives a path.
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5041$as_echo_n "checking for ld used by $CC... " >&6; }
5042 case $host in
5043 *-*-mingw*)
5044 # gcc leaves a trailing carriage return which upsets mingw
5045 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5046 *)
5047 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5048 esac
5049 case $ac_prog in
5050 # Accept absolute paths.
5051 [\\/]* | ?:[\\/]*)
5052 re_direlt='/[^/][^/]*/\.\./'
5053 # Canonicalize the pathname of ld
5054 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5055 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5056 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5057 done
5058 test -z "$LD" && LD="$ac_prog"
5059 ;;
5060 "")
5061 # If it fails, then pretend we aren't using GCC.
5062 ac_prog=ld
5063 ;;
5064 *)
5065 # If it is relative, then search for the first ld in PATH.
5066 with_gnu_ld=unknown
5067 ;;
5068 esac
5069elif test "$with_gnu_ld" = yes; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5071$as_echo_n "checking for GNU ld... " >&6; }
5072else
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5074$as_echo_n "checking for non-GNU ld... " >&6; }
5075fi
5076if ${lt_cv_path_LD+:} false; then :
5077 $as_echo_n "(cached) " >&6
5078else
5079 if test -z "$LD"; then
5080 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5081 for ac_dir in $PATH; do
5082 IFS="$lt_save_ifs"
5083 test -z "$ac_dir" && ac_dir=.
5084 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5085 lt_cv_path_LD="$ac_dir/$ac_prog"
5086 # Check to see if the program is GNU ld. I'd rather use --version,
5087 # but apparently some variants of GNU ld only accept -v.
5088 # Break only if it was the GNU/non-GNU ld that we prefer.
5089 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5090 *GNU* | *'with BFD'*)
5091 test "$with_gnu_ld" != no && break
5092 ;;
5093 *)
5094 test "$with_gnu_ld" != yes && break
5095 ;;
5096 esac
5097 fi
5098 done
5099 IFS="$lt_save_ifs"
5100else
5101 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5102fi
5103fi
5104
5105LD="$lt_cv_path_LD"
5106if test -n "$LD"; then
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5108$as_echo "$LD" >&6; }
5109else
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111$as_echo "no" >&6; }
5112fi
5113test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5115$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5116if ${lt_cv_prog_gnu_ld+:} false; then :
5117 $as_echo_n "(cached) " >&6
5118else
5119 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5120case `$LD -v 2>&1 </dev/null` in
5121*GNU* | *'with BFD'*)
5122 lt_cv_prog_gnu_ld=yes
5123 ;;
5124*)
5125 lt_cv_prog_gnu_ld=no
5126 ;;
5127esac
5128fi
5129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5130$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5131with_gnu_ld=$lt_cv_prog_gnu_ld
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5142$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5143if ${lt_cv_path_NM+:} false; then :
5144 $as_echo_n "(cached) " >&6
5145else
5146 if test -n "$NM"; then
5147 # Let the user override the test.
5148 lt_cv_path_NM="$NM"
5149else
5150 lt_nm_to_check="${ac_tool_prefix}nm"
5151 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5152 lt_nm_to_check="$lt_nm_to_check nm"
5153 fi
5154 for lt_tmp_nm in $lt_nm_to_check; do
5155 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5156 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5157 IFS="$lt_save_ifs"
5158 test -z "$ac_dir" && ac_dir=.
5159 tmp_nm="$ac_dir/$lt_tmp_nm"
5160 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5161 # Check to see if the nm accepts a BSD-compat flag.
5162 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5163 # nm: unknown option "B" ignored
5164 # Tru64's nm complains that /dev/null is an invalid object file
5165 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5166 */dev/null* | *'Invalid file or object type'*)
5167 lt_cv_path_NM="$tmp_nm -B"
5168 break
5169 ;;
5170 *)
5171 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5172 */dev/null*)
5173 lt_cv_path_NM="$tmp_nm -p"
5174 break
5175 ;;
5176 *)
5177 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5178 continue # so that we can try to find one that supports BSD flags
5179 ;;
5180 esac
5181 ;;
5182 esac
5183 fi
5184 done
5185 IFS="$lt_save_ifs"
5186 done
5187 : ${lt_cv_path_NM=no}
5188fi
5189fi
5190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5191$as_echo "$lt_cv_path_NM" >&6; }
5192if test "$lt_cv_path_NM" != "no"; then
5193 NM="$lt_cv_path_NM"
5194else
5195 # Didn't find any BSD compatible name lister, look for dumpbin.
5196 if test -n "$DUMPBIN"; then :
5197 # Let the user override the test.
5198 else
5199 if test -n "$ac_tool_prefix"; then
5200 for ac_prog in dumpbin "link -dump"
5201 do
5202 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5203set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5205$as_echo_n "checking for $ac_word... " >&6; }
5206if ${ac_cv_prog_DUMPBIN+:} false; then :
5207 $as_echo_n "(cached) " >&6
5208else
5209 if test -n "$DUMPBIN"; then
5210 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5211else
5212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213for as_dir in $PATH
5214do
5215 IFS=$as_save_IFS
5216 test -z "$as_dir" && as_dir=.
5217 for ac_exec_ext in '' $ac_executable_extensions; do
5218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5219 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5221 break 2
5222 fi
5223done
5224 done
5225IFS=$as_save_IFS
5226
5227fi
5228fi
5229DUMPBIN=$ac_cv_prog_DUMPBIN
5230if test -n "$DUMPBIN"; then
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5232$as_echo "$DUMPBIN" >&6; }
5233else
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5235$as_echo "no" >&6; }
5236fi
5237
5238
5239 test -n "$DUMPBIN" && break
5240 done
5241fi
5242if test -z "$DUMPBIN"; then
5243 ac_ct_DUMPBIN=$DUMPBIN
5244 for ac_prog in dumpbin "link -dump"
5245do
5246 # Extract the first word of "$ac_prog", so it can be a program name with args.
5247set dummy $ac_prog; ac_word=$2
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249$as_echo_n "checking for $ac_word... " >&6; }
5250if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5251 $as_echo_n "(cached) " >&6
5252else
5253 if test -n "$ac_ct_DUMPBIN"; then
5254 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5255else
5256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257for as_dir in $PATH
5258do
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5263 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 break 2
5266 fi
5267done
5268 done
5269IFS=$as_save_IFS
5270
5271fi
5272fi
5273ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5274if test -n "$ac_ct_DUMPBIN"; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5276$as_echo "$ac_ct_DUMPBIN" >&6; }
5277else
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279$as_echo "no" >&6; }
5280fi
5281
5282
5283 test -n "$ac_ct_DUMPBIN" && break
5284done
5285
5286 if test "x$ac_ct_DUMPBIN" = x; then
5287 DUMPBIN=":"
5288 else
5289 case $cross_compiling:$ac_tool_warned in
5290yes:)
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5293ac_tool_warned=yes ;;
5294esac
5295 DUMPBIN=$ac_ct_DUMPBIN
5296 fi
5297fi
5298
5299 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5300 *COFF*)
5301 DUMPBIN="$DUMPBIN -symbols"
5302 ;;
5303 *)
5304 DUMPBIN=:
5305 ;;
5306 esac
5307 fi
5308
5309 if test "$DUMPBIN" != ":"; then
5310 NM="$DUMPBIN"
5311 fi
5312fi
5313test -z "$NM" && NM=nm
5314
5315
5316
5317
5318
5319
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5321$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5322if ${lt_cv_nm_interface+:} false; then :
5323 $as_echo_n "(cached) " >&6
5324else
5325 lt_cv_nm_interface="BSD nm"
5326 echo "int some_variable = 0;" > conftest.$ac_ext
5327 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5328 (eval "$ac_compile" 2>conftest.err)
5329 cat conftest.err >&5
5330 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5331 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5332 cat conftest.err >&5
5333 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5334 cat conftest.out >&5
5335 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5336 lt_cv_nm_interface="MS dumpbin"
5337 fi
5338 rm -f conftest*
5339fi
5340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5341$as_echo "$lt_cv_nm_interface" >&6; }
5342
5343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5344$as_echo_n "checking whether ln -s works... " >&6; }
5345LN_S=$as_ln_s
5346if test "$LN_S" = "ln -s"; then
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5348$as_echo "yes" >&6; }
5349else
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5351$as_echo "no, using $LN_S" >&6; }
5352fi
5353
5354# find the maximum length of command line arguments
5355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5356$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5357if ${lt_cv_sys_max_cmd_len+:} false; then :
5358 $as_echo_n "(cached) " >&6
5359else
5360 i=0
5361 teststring="ABCD"
5362
5363 case $build_os in
5364 msdosdjgpp*)
5365 # On DJGPP, this test can blow up pretty badly due to problems in libc
5366 # (any single argument exceeding 2000 bytes causes a buffer overrun
5367 # during glob expansion). Even if it were fixed, the result of this
5368 # check would be larger than it should be.
5369 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5370 ;;
5371
5372 gnu*)
5373 # Under GNU Hurd, this test is not required because there is
5374 # no limit to the length of command line arguments.
5375 # Libtool will interpret -1 as no limit whatsoever
5376 lt_cv_sys_max_cmd_len=-1;
5377 ;;
5378
5379 cygwin* | mingw* | cegcc*)
5380 # On Win9x/ME, this test blows up -- it succeeds, but takes
5381 # about 5 minutes as the teststring grows exponentially.
5382 # Worse, since 9x/ME are not pre-emptively multitasking,
5383 # you end up with a "frozen" computer, even though with patience
5384 # the test eventually succeeds (with a max line length of 256k).
5385 # Instead, let's just punt: use the minimum linelength reported by
5386 # all of the supported platforms: 8192 (on NT/2K/XP).
5387 lt_cv_sys_max_cmd_len=8192;
5388 ;;
5389
5390 mint*)
5391 # On MiNT this can take a long time and run out of memory.
5392 lt_cv_sys_max_cmd_len=8192;
5393 ;;
5394
5395 amigaos*)
5396 # On AmigaOS with pdksh, this test takes hours, literally.
5397 # So we just punt and use a minimum line length of 8192.
5398 lt_cv_sys_max_cmd_len=8192;
5399 ;;
5400
5401 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5402 # This has been around since 386BSD, at least. Likely further.
5403 if test -x /sbin/sysctl; then
5404 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5405 elif test -x /usr/sbin/sysctl; then
5406 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5407 else
5408 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5409 fi
5410 # And add a safety zone
5411 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5412 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5413 ;;
5414
5415 interix*)
5416 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5417 lt_cv_sys_max_cmd_len=196608
5418 ;;
5419
5420 os2*)
5421 # The test takes a long time on OS/2.
5422 lt_cv_sys_max_cmd_len=8192
5423 ;;
5424
5425 osf*)
5426 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5427 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5428 # nice to cause kernel panics so lets avoid the loop below.
5429 # First set a reasonable default.
5430 lt_cv_sys_max_cmd_len=16384
5431 #
5432 if test -x /sbin/sysconfig; then
5433 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5434 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5435 esac
5436 fi
5437 ;;
5438 sco3.2v5*)
5439 lt_cv_sys_max_cmd_len=102400
5440 ;;
5441 sysv5* | sco5v6* | sysv4.2uw2*)
5442 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5443 if test -n "$kargmax"; then
5444 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5445 else
5446 lt_cv_sys_max_cmd_len=32768
5447 fi
5448 ;;
5449 *)
5450 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5451 if test -n "$lt_cv_sys_max_cmd_len"; then
5452 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5453 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5454 else
5455 # Make teststring a little bigger before we do anything with it.
5456 # a 1K string should be a reasonable start.
5457 for i in 1 2 3 4 5 6 7 8 ; do
5458 teststring=$teststring$teststring
5459 done
5460 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5461 # If test is not a shell built-in, we'll probably end up computing a
5462 # maximum length that is only half of the actual maximum length, but
5463 # we can't tell.
5464 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5465 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5466 test $i != 17 # 1/2 MB should be enough
5467 do
5468 i=`expr $i + 1`
5469 teststring=$teststring$teststring
5470 done
5471 # Only check the string length outside the loop.
5472 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5473 teststring=
5474 # Add a significant safety factor because C++ compilers can tack on
5475 # massive amounts of additional arguments before passing them to the
5476 # linker. It appears as though 1/2 is a usable value.
5477 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5478 fi
5479 ;;
5480 esac
5481
5482fi
5483
5484if test -n $lt_cv_sys_max_cmd_len ; then
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5486$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5487else
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5489$as_echo "none" >&6; }
5490fi
5491max_cmd_len=$lt_cv_sys_max_cmd_len
5492
5493
5494
5495
5496
5497
5498: ${CP="cp -f"}
5499: ${MV="mv -f"}
5500: ${RM="rm -f"}
5501
5502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5503$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5504# Try some XSI features
5505xsi_shell=no
5506( _lt_dummy="a/b/c"
5507 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5508 = c,a/b,b/c, \
5509 && eval 'test $(( 1 + 1 )) -eq 2 \
5510 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5511 && xsi_shell=yes
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5513$as_echo "$xsi_shell" >&6; }
5514
5515
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5517$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5518lt_shell_append=no
5519( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5520 >/dev/null 2>&1 \
5521 && lt_shell_append=yes
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5523$as_echo "$lt_shell_append" >&6; }
5524
5525
5526if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5527 lt_unset=unset
5528else
5529 lt_unset=false
5530fi
5531
5532
5533
5534
5535
5536# test EBCDIC or ASCII
5537case `echo X|tr X '\101'` in
5538 A) # ASCII based system
5539 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5540 lt_SP2NL='tr \040 \012'
5541 lt_NL2SP='tr \015\012 \040\040'
5542 ;;
5543 *) # EBCDIC based system
5544 lt_SP2NL='tr \100 \n'
5545 lt_NL2SP='tr \r\n \100\100'
5546 ;;
5547esac
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5558$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5559if ${lt_cv_to_host_file_cmd+:} false; then :
5560 $as_echo_n "(cached) " >&6
5561else
5562 case $host in
5563 *-*-mingw* )
5564 case $build in
5565 *-*-mingw* ) # actually msys
5566 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5567 ;;
5568 *-*-cygwin* )
5569 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5570 ;;
5571 * ) # otherwise, assume *nix
5572 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5573 ;;
5574 esac
5575 ;;
5576 *-*-cygwin* )
5577 case $build in
5578 *-*-mingw* ) # actually msys
5579 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5580 ;;
5581 *-*-cygwin* )
5582 lt_cv_to_host_file_cmd=func_convert_file_noop
5583 ;;
5584 * ) # otherwise, assume *nix
5585 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5586 ;;
5587 esac
5588 ;;
5589 * ) # unhandled hosts (and "normal" native builds)
5590 lt_cv_to_host_file_cmd=func_convert_file_noop
5591 ;;
5592esac
5593
5594fi
5595
5596to_host_file_cmd=$lt_cv_to_host_file_cmd
5597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5598$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5599
5600
5601
5602
5603
5604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5605$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5606if ${lt_cv_to_tool_file_cmd+:} false; then :
5607 $as_echo_n "(cached) " >&6
5608else
5609 #assume ordinary cross tools, or native build.
5610lt_cv_to_tool_file_cmd=func_convert_file_noop
5611case $host in
5612 *-*-mingw* )
5613 case $build in
5614 *-*-mingw* ) # actually msys
5615 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5616 ;;
5617 esac
5618 ;;
5619esac
5620
5621fi
5622
5623to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5625$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5626
5627
5628
5629
5630
5631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5632$as_echo_n "checking for $LD option to reload object files... " >&6; }
5633if ${lt_cv_ld_reload_flag+:} false; then :
5634 $as_echo_n "(cached) " >&6
5635else
5636 lt_cv_ld_reload_flag='-r'
5637fi
5638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5639$as_echo "$lt_cv_ld_reload_flag" >&6; }
5640reload_flag=$lt_cv_ld_reload_flag
5641case $reload_flag in
5642"" | " "*) ;;
5643*) reload_flag=" $reload_flag" ;;
5644esac
5645reload_cmds='$LD$reload_flag -o $output$reload_objs'
5646case $host_os in
5647 cygwin* | mingw* | pw32* | cegcc*)
5648 if test "$GCC" != yes; then
5649 reload_cmds=false
5650 fi
5651 ;;
5652 darwin*)
5653 if test "$GCC" = yes; then
5654 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5655 else
5656 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5657 fi
5658 ;;
5659esac
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669if test -n "$ac_tool_prefix"; then
5670 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5671set dummy ${ac_tool_prefix}objdump; ac_word=$2
5672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5673$as_echo_n "checking for $ac_word... " >&6; }
5674if ${ac_cv_prog_OBJDUMP+:} false; then :
5675 $as_echo_n "(cached) " >&6
5676else
5677 if test -n "$OBJDUMP"; then
5678 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5679else
5680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681for as_dir in $PATH
5682do
5683 IFS=$as_save_IFS
5684 test -z "$as_dir" && as_dir=.
5685 for ac_exec_ext in '' $ac_executable_extensions; do
5686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5687 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5689 break 2
5690 fi
5691done
5692 done
5693IFS=$as_save_IFS
5694
5695fi
5696fi
5697OBJDUMP=$ac_cv_prog_OBJDUMP
5698if test -n "$OBJDUMP"; then
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5700$as_echo "$OBJDUMP" >&6; }
5701else
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5703$as_echo "no" >&6; }
5704fi
5705
5706
5707fi
5708if test -z "$ac_cv_prog_OBJDUMP"; then
5709 ac_ct_OBJDUMP=$OBJDUMP
5710 # Extract the first word of "objdump", so it can be a program name with args.
5711set dummy objdump; ac_word=$2
5712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5713$as_echo_n "checking for $ac_word... " >&6; }
5714if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5715 $as_echo_n "(cached) " >&6
5716else
5717 if test -n "$ac_ct_OBJDUMP"; then
5718 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5719else
5720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721for as_dir in $PATH
5722do
5723 IFS=$as_save_IFS
5724 test -z "$as_dir" && as_dir=.
5725 for ac_exec_ext in '' $ac_executable_extensions; do
5726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5727 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5729 break 2
5730 fi
5731done
5732 done
5733IFS=$as_save_IFS
5734
5735fi
5736fi
5737ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5738if test -n "$ac_ct_OBJDUMP"; then
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5740$as_echo "$ac_ct_OBJDUMP" >&6; }
5741else
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743$as_echo "no" >&6; }
5744fi
5745
5746 if test "x$ac_ct_OBJDUMP" = x; then
5747 OBJDUMP="false"
5748 else
5749 case $cross_compiling:$ac_tool_warned in
5750yes:)
5751{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5752$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5753ac_tool_warned=yes ;;
5754esac
5755 OBJDUMP=$ac_ct_OBJDUMP
5756 fi
5757else
5758 OBJDUMP="$ac_cv_prog_OBJDUMP"
5759fi
5760
5761test -z "$OBJDUMP" && OBJDUMP=objdump
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5772$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5773if ${lt_cv_deplibs_check_method+:} false; then :
5774 $as_echo_n "(cached) " >&6
5775else
5776 lt_cv_file_magic_cmd='$MAGIC_CMD'
5777lt_cv_file_magic_test_file=
5778lt_cv_deplibs_check_method='unknown'
5779# Need to set the preceding variable on all platforms that support
5780# interlibrary dependencies.
5781# 'none' -- dependencies not supported.
5782# `unknown' -- same as none, but documents that we really don't know.
5783# 'pass_all' -- all dependencies passed with no checks.
5784# 'test_compile' -- check by making test program.
5785# 'file_magic [[regex]]' -- check by looking for files in library path
5786# which responds to the $file_magic_cmd with a given extended regex.
5787# If you have `file' or equivalent on your system and you're not sure
5788# whether `pass_all' will *always* work, you probably want this one.
5789
5790case $host_os in
5791aix[4-9]*)
5792 lt_cv_deplibs_check_method=pass_all
5793 ;;
5794
5795beos*)
5796 lt_cv_deplibs_check_method=pass_all
5797 ;;
5798
5799bsdi[45]*)
5800 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5801 lt_cv_file_magic_cmd='/usr/bin/file -L'
5802 lt_cv_file_magic_test_file=/shlib/libc.so
5803 ;;
5804
5805cygwin*)
5806 # func_win32_libid is a shell function defined in ltmain.sh
5807 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5808 lt_cv_file_magic_cmd='func_win32_libid'
5809 ;;
5810
5811mingw* | pw32*)
5812 # Base MSYS/MinGW do not provide the 'file' command needed by
5813 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5814 # unless we find 'file', for example because we are cross-compiling.
5815 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5816 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5817 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5818 lt_cv_file_magic_cmd='func_win32_libid'
5819 else
5820 # Keep this pattern in sync with the one in func_win32_libid.
5821 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5822 lt_cv_file_magic_cmd='$OBJDUMP -f'
5823 fi
5824 ;;
5825
5826cegcc*)
5827 # use the weaker test based on 'objdump'. See mingw*.
5828 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5829 lt_cv_file_magic_cmd='$OBJDUMP -f'
5830 ;;
5831
5832darwin* | rhapsody*)
5833 lt_cv_deplibs_check_method=pass_all
5834 ;;
5835
5836freebsd* | dragonfly*)
5837 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5838 case $host_cpu in
5839 i*86 )
5840 # Not sure whether the presence of OpenBSD here was a mistake.
5841 # Let's accept both of them until this is cleared up.
5842 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5843 lt_cv_file_magic_cmd=/usr/bin/file
5844 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5845 ;;
5846 esac
5847 else
5848 lt_cv_deplibs_check_method=pass_all
5849 fi
5850 ;;
5851
5852gnu*)
5853 lt_cv_deplibs_check_method=pass_all
5854 ;;
5855
5856haiku*)
5857 lt_cv_deplibs_check_method=pass_all
5858 ;;
5859
5860hpux10.20* | hpux11*)
5861 lt_cv_file_magic_cmd=/usr/bin/file
5862 case $host_cpu in
5863 ia64*)
5864 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5865 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5866 ;;
5867 hppa*64*)
5868 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]'
5869 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5870 ;;
5871 *)
5872 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5873 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5874 ;;
5875 esac
5876 ;;
5877
5878interix[3-9]*)
5879 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5880 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5881 ;;
5882
5883irix5* | irix6* | nonstopux*)
5884 case $LD in
5885 *-32|*"-32 ") libmagic=32-bit;;
5886 *-n32|*"-n32 ") libmagic=N32;;
5887 *-64|*"-64 ") libmagic=64-bit;;
5888 *) libmagic=never-match;;
5889 esac
5890 lt_cv_deplibs_check_method=pass_all
5891 ;;
5892
5893# This must be glibc/ELF.
5894linux* | k*bsd*-gnu | kopensolaris*-gnu)
5895 lt_cv_deplibs_check_method=pass_all
5896 ;;
5897
5898netbsd*)
5899 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5900 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5901 else
5902 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5903 fi
5904 ;;
5905
5906newos6*)
5907 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5908 lt_cv_file_magic_cmd=/usr/bin/file
5909 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5910 ;;
5911
5912*nto* | *qnx*)
5913 lt_cv_deplibs_check_method=pass_all
5914 ;;
5915
5916openbsd*)
5917 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5918 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5919 else
5920 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5921 fi
5922 ;;
5923
5924osf3* | osf4* | osf5*)
5925 lt_cv_deplibs_check_method=pass_all
5926 ;;
5927
5928rdos*)
5929 lt_cv_deplibs_check_method=pass_all
5930 ;;
5931
5932solaris*)
5933 lt_cv_deplibs_check_method=pass_all
5934 ;;
5935
5936sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5937 lt_cv_deplibs_check_method=pass_all
5938 ;;
5939
5940sysv4 | sysv4.3*)
5941 case $host_vendor in
5942 motorola)
5943 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]'
5944 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5945 ;;
5946 ncr)
5947 lt_cv_deplibs_check_method=pass_all
5948 ;;
5949 sequent)
5950 lt_cv_file_magic_cmd='/bin/file'
5951 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5952 ;;
5953 sni)
5954 lt_cv_file_magic_cmd='/bin/file'
5955 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5956 lt_cv_file_magic_test_file=/lib/libc.so
5957 ;;
5958 siemens)
5959 lt_cv_deplibs_check_method=pass_all
5960 ;;
5961 pc)
5962 lt_cv_deplibs_check_method=pass_all
5963 ;;
5964 esac
5965 ;;
5966
5967tpf*)
5968 lt_cv_deplibs_check_method=pass_all
5969 ;;
5970esac
5971
5972fi
5973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5974$as_echo "$lt_cv_deplibs_check_method" >&6; }
5975
5976file_magic_glob=
5977want_nocaseglob=no
5978if test "$build" = "$host"; then
5979 case $host_os in
5980 mingw* | pw32*)
5981 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5982 want_nocaseglob=yes
5983 else
5984 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5985 fi
5986 ;;
5987 esac
5988fi
5989
5990file_magic_cmd=$lt_cv_file_magic_cmd
5991deplibs_check_method=$lt_cv_deplibs_check_method
5992test -z "$deplibs_check_method" && deplibs_check_method=unknown
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015if test -n "$ac_tool_prefix"; then
6016 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6017set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6019$as_echo_n "checking for $ac_word... " >&6; }
6020if ${ac_cv_prog_DLLTOOL+:} false; then :
6021 $as_echo_n "(cached) " >&6
6022else
6023 if test -n "$DLLTOOL"; then
6024 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6025else
6026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027for as_dir in $PATH
6028do
6029 IFS=$as_save_IFS
6030 test -z "$as_dir" && as_dir=.
6031 for ac_exec_ext in '' $ac_executable_extensions; do
6032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6033 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6035 break 2
6036 fi
6037done
6038 done
6039IFS=$as_save_IFS
6040
6041fi
6042fi
6043DLLTOOL=$ac_cv_prog_DLLTOOL
6044if test -n "$DLLTOOL"; then
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6046$as_echo "$DLLTOOL" >&6; }
6047else
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6049$as_echo "no" >&6; }
6050fi
6051
6052
6053fi
6054if test -z "$ac_cv_prog_DLLTOOL"; then
6055 ac_ct_DLLTOOL=$DLLTOOL
6056 # Extract the first word of "dlltool", so it can be a program name with args.
6057set dummy dlltool; ac_word=$2
6058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6059$as_echo_n "checking for $ac_word... " >&6; }
6060if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6061 $as_echo_n "(cached) " >&6
6062else
6063 if test -n "$ac_ct_DLLTOOL"; then
6064 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6065else
6066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067for as_dir in $PATH
6068do
6069 IFS=$as_save_IFS
6070 test -z "$as_dir" && as_dir=.
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6073 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6075 break 2
6076 fi
6077done
6078 done
6079IFS=$as_save_IFS
6080
6081fi
6082fi
6083ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6084if test -n "$ac_ct_DLLTOOL"; then
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6086$as_echo "$ac_ct_DLLTOOL" >&6; }
6087else
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089$as_echo "no" >&6; }
6090fi
6091
6092 if test "x$ac_ct_DLLTOOL" = x; then
6093 DLLTOOL="false"
6094 else
6095 case $cross_compiling:$ac_tool_warned in
6096yes:)
6097{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6098$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6099ac_tool_warned=yes ;;
6100esac
6101 DLLTOOL=$ac_ct_DLLTOOL
6102 fi
6103else
6104 DLLTOOL="$ac_cv_prog_DLLTOOL"
6105fi
6106
6107test -z "$DLLTOOL" && DLLTOOL=dlltool
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6119$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6120if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6121 $as_echo_n "(cached) " >&6
6122else
6123 lt_cv_sharedlib_from_linklib_cmd='unknown'
6124
6125case $host_os in
6126cygwin* | mingw* | pw32* | cegcc*)
6127 # two different shell functions defined in ltmain.sh
6128 # decide which to use based on capabilities of $DLLTOOL
6129 case `$DLLTOOL --help 2>&1` in
6130 *--identify-strict*)
6131 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6132 ;;
6133 *)
6134 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6135 ;;
6136 esac
6137 ;;
6138*)
6139 # fallback: assume linklib IS sharedlib
6140 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6141 ;;
6142esac
6143
6144fi
6145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6146$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6147sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6148test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6149
6150
6151
6152
6153
6154
6155
6156if test -n "$ac_tool_prefix"; then
6157 for ac_prog in ar
6158 do
6159 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6160set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6162$as_echo_n "checking for $ac_word... " >&6; }
6163if ${ac_cv_prog_AR+:} false; then :
6164 $as_echo_n "(cached) " >&6
6165else
6166 if test -n "$AR"; then
6167 ac_cv_prog_AR="$AR" # Let the user override the test.
6168else
6169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170for as_dir in $PATH
6171do
6172 IFS=$as_save_IFS
6173 test -z "$as_dir" && as_dir=.
6174 for ac_exec_ext in '' $ac_executable_extensions; do
6175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6176 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6178 break 2
6179 fi
6180done
6181 done
6182IFS=$as_save_IFS
6183
6184fi
6185fi
6186AR=$ac_cv_prog_AR
6187if test -n "$AR"; then
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6189$as_echo "$AR" >&6; }
6190else
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6192$as_echo "no" >&6; }
6193fi
6194
6195
6196 test -n "$AR" && break
6197 done
6198fi
6199if test -z "$AR"; then
6200 ac_ct_AR=$AR
6201 for ac_prog in ar
6202do
6203 # Extract the first word of "$ac_prog", so it can be a program name with args.
6204set dummy $ac_prog; ac_word=$2
6205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6206$as_echo_n "checking for $ac_word... " >&6; }
6207if ${ac_cv_prog_ac_ct_AR+:} false; then :
6208 $as_echo_n "(cached) " >&6
6209else
6210 if test -n "$ac_ct_AR"; then
6211 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6212else
6213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214for as_dir in $PATH
6215do
6216 IFS=$as_save_IFS
6217 test -z "$as_dir" && as_dir=.
6218 for ac_exec_ext in '' $ac_executable_extensions; do
6219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6220 ac_cv_prog_ac_ct_AR="$ac_prog"
6221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6222 break 2
6223 fi
6224done
6225 done
6226IFS=$as_save_IFS
6227
6228fi
6229fi
6230ac_ct_AR=$ac_cv_prog_ac_ct_AR
6231if test -n "$ac_ct_AR"; then
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6233$as_echo "$ac_ct_AR" >&6; }
6234else
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6236$as_echo "no" >&6; }
6237fi
6238
6239
6240 test -n "$ac_ct_AR" && break
6241done
6242
6243 if test "x$ac_ct_AR" = x; then
6244 AR="false"
6245 else
6246 case $cross_compiling:$ac_tool_warned in
6247yes:)
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6249$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6250ac_tool_warned=yes ;;
6251esac
6252 AR=$ac_ct_AR
6253 fi
6254fi
6255
6256: ${AR=ar}
6257: ${AR_FLAGS=cru}
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6270$as_echo_n "checking for archiver @FILE support... " >&6; }
6271if ${lt_cv_ar_at_file+:} false; then :
6272 $as_echo_n "(cached) " >&6
6273else
6274 lt_cv_ar_at_file=no
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276/* end confdefs.h. */
6277
6278int
6279main ()
6280{
6281
6282 ;
6283 return 0;
6284}
6285_ACEOF
6286if ac_fn_c_try_compile "$LINENO"; then :
6287 echo conftest.$ac_objext > conftest.lst
6288 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6290 (eval $lt_ar_try) 2>&5
6291 ac_status=$?
6292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6293 test $ac_status = 0; }
6294 if test "$ac_status" -eq 0; then
6295 # Ensure the archiver fails upon bogus file names.
6296 rm -f conftest.$ac_objext libconftest.a
6297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6298 (eval $lt_ar_try) 2>&5
6299 ac_status=$?
6300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6301 test $ac_status = 0; }
6302 if test "$ac_status" -ne 0; then
6303 lt_cv_ar_at_file=@
6304 fi
6305 fi
6306 rm -f conftest.* libconftest.a
6307
6308fi
6309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6310
6311fi
6312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6313$as_echo "$lt_cv_ar_at_file" >&6; }
6314
6315if test "x$lt_cv_ar_at_file" = xno; then
6316 archiver_list_spec=
6317else
6318 archiver_list_spec=$lt_cv_ar_at_file
6319fi
6320
6321
6322
6323
6324
6325
6326
6327if test -n "$ac_tool_prefix"; then
6328 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6329set dummy ${ac_tool_prefix}strip; ac_word=$2
6330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6331$as_echo_n "checking for $ac_word... " >&6; }
6332if ${ac_cv_prog_STRIP+:} false; then :
6333 $as_echo_n "(cached) " >&6
6334else
6335 if test -n "$STRIP"; then
6336 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6337else
6338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339for as_dir in $PATH
6340do
6341 IFS=$as_save_IFS
6342 test -z "$as_dir" && as_dir=.
6343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6345 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6347 break 2
6348 fi
6349done
6350 done
6351IFS=$as_save_IFS
6352
6353fi
6354fi
6355STRIP=$ac_cv_prog_STRIP
6356if test -n "$STRIP"; then
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6358$as_echo "$STRIP" >&6; }
6359else
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6361$as_echo "no" >&6; }
6362fi
6363
6364
6365fi
6366if test -z "$ac_cv_prog_STRIP"; then
6367 ac_ct_STRIP=$STRIP
6368 # Extract the first word of "strip", so it can be a program name with args.
6369set dummy strip; ac_word=$2
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6371$as_echo_n "checking for $ac_word... " >&6; }
6372if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6373 $as_echo_n "(cached) " >&6
6374else
6375 if test -n "$ac_ct_STRIP"; then
6376 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6377else
6378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379for as_dir in $PATH
6380do
6381 IFS=$as_save_IFS
6382 test -z "$as_dir" && as_dir=.
6383 for ac_exec_ext in '' $ac_executable_extensions; do
6384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6385 ac_cv_prog_ac_ct_STRIP="strip"
6386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6387 break 2
6388 fi
6389done
6390 done
6391IFS=$as_save_IFS
6392
6393fi
6394fi
6395ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6396if test -n "$ac_ct_STRIP"; then
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6398$as_echo "$ac_ct_STRIP" >&6; }
6399else
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401$as_echo "no" >&6; }
6402fi
6403
6404 if test "x$ac_ct_STRIP" = x; then
6405 STRIP=":"
6406 else
6407 case $cross_compiling:$ac_tool_warned in
6408yes:)
6409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6411ac_tool_warned=yes ;;
6412esac
6413 STRIP=$ac_ct_STRIP
6414 fi
6415else
6416 STRIP="$ac_cv_prog_STRIP"
6417fi
6418
6419test -z "$STRIP" && STRIP=:
6420
6421
6422
6423
6424
6425
6426if test -n "$ac_tool_prefix"; then
6427 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6428set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6430$as_echo_n "checking for $ac_word... " >&6; }
6431if ${ac_cv_prog_RANLIB+:} false; then :
6432 $as_echo_n "(cached) " >&6
6433else
6434 if test -n "$RANLIB"; then
6435 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6436else
6437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438for as_dir in $PATH
6439do
6440 IFS=$as_save_IFS
6441 test -z "$as_dir" && as_dir=.
6442 for ac_exec_ext in '' $ac_executable_extensions; do
6443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6444 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 break 2
6447 fi
6448done
6449 done
6450IFS=$as_save_IFS
6451
6452fi
6453fi
6454RANLIB=$ac_cv_prog_RANLIB
6455if test -n "$RANLIB"; then
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6457$as_echo "$RANLIB" >&6; }
6458else
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460$as_echo "no" >&6; }
6461fi
6462
6463
6464fi
6465if test -z "$ac_cv_prog_RANLIB"; then
6466 ac_ct_RANLIB=$RANLIB
6467 # Extract the first word of "ranlib", so it can be a program name with args.
6468set dummy ranlib; ac_word=$2
6469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470$as_echo_n "checking for $ac_word... " >&6; }
6471if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6472 $as_echo_n "(cached) " >&6
6473else
6474 if test -n "$ac_ct_RANLIB"; then
6475 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6476else
6477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478for as_dir in $PATH
6479do
6480 IFS=$as_save_IFS
6481 test -z "$as_dir" && as_dir=.
6482 for ac_exec_ext in '' $ac_executable_extensions; do
6483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6484 ac_cv_prog_ac_ct_RANLIB="ranlib"
6485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 break 2
6487 fi
6488done
6489 done
6490IFS=$as_save_IFS
6491
6492fi
6493fi
6494ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6495if test -n "$ac_ct_RANLIB"; then
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6497$as_echo "$ac_ct_RANLIB" >&6; }
6498else
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500$as_echo "no" >&6; }
6501fi
6502
6503 if test "x$ac_ct_RANLIB" = x; then
6504 RANLIB=":"
6505 else
6506 case $cross_compiling:$ac_tool_warned in
6507yes:)
6508{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6509$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6510ac_tool_warned=yes ;;
6511esac
6512 RANLIB=$ac_ct_RANLIB
6513 fi
6514else
6515 RANLIB="$ac_cv_prog_RANLIB"
6516fi
6517
6518test -z "$RANLIB" && RANLIB=:
6519
6520
6521
6522
6523
6524
6525# Determine commands to create old-style static archives.
6526old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6527old_postinstall_cmds='chmod 644 $oldlib'
6528old_postuninstall_cmds=
6529
6530if test -n "$RANLIB"; then
6531 case $host_os in
6532 openbsd*)
6533 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6534 ;;
6535 *)
6536 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6537 ;;
6538 esac
6539 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6540fi
6541
6542case $host_os in
6543 darwin*)
6544 lock_old_archive_extraction=yes ;;
6545 *)
6546 lock_old_archive_extraction=no ;;
6547esac
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587# If no C compiler was specified, use CC.
6588LTCC=${LTCC-"$CC"}
6589
6590# If no C compiler flags were specified, use CFLAGS.
6591LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6592
6593# Allow CC to be a program name with arguments.
6594compiler=$CC
6595
6596
6597# Check for command to grab the raw symbol name followed by C symbol from nm.
6598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6599$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6600if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6601 $as_echo_n "(cached) " >&6
6602else
6603
6604# These are sane defaults that work on at least a few old systems.
6605# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6606
6607# Character class describing NM global symbol codes.
6608symcode='[BCDEGRST]'
6609
6610# Regexp to match symbols that can be accessed directly from C.
6611sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6612
6613# Define system-specific variables.
6614case $host_os in
6615aix*)
6616 symcode='[BCDT]'
6617 ;;
6618cygwin* | mingw* | pw32* | cegcc*)
6619 symcode='[ABCDGISTW]'
6620 ;;
6621hpux*)
6622 if test "$host_cpu" = ia64; then
6623 symcode='[ABCDEGRST]'
6624 fi
6625 ;;
6626irix* | nonstopux*)
6627 symcode='[BCDEGRST]'
6628 ;;
6629osf*)
6630 symcode='[BCDEGQRST]'
6631 ;;
6632solaris*)
6633 symcode='[BDRT]'
6634 ;;
6635sco3.2v5*)
6636 symcode='[DT]'
6637 ;;
6638sysv4.2uw2*)
6639 symcode='[DT]'
6640 ;;
6641sysv5* | sco5v6* | unixware* | OpenUNIX*)
6642 symcode='[ABDT]'
6643 ;;
6644sysv4)
6645 symcode='[DFNSTU]'
6646 ;;
6647esac
6648
6649# If we're using GNU nm, then use its standard symbol codes.
6650case `$NM -V 2>&1` in
6651*GNU* | *'with BFD'*)
6652 symcode='[ABCDGIRSTW]' ;;
6653esac
6654
6655# Transform an extracted symbol line into a proper C declaration.
6656# Some systems (esp. on ia64) link data and code symbols differently,
6657# so use this general approach.
6658lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6659
6660# Transform an extracted symbol line into symbol name and symbol address
6661lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6662lt_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'"
6663
6664# Handle CRLF in mingw tool chain
6665opt_cr=
6666case $build_os in
6667mingw*)
6668 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6669 ;;
6670esac
6671
6672# Try without a prefix underscore, then with it.
6673for ac_symprfx in "" "_"; do
6674
6675 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6676 symxfrm="\\1 $ac_symprfx\\2 \\2"
6677
6678 # Write the raw and C identifiers.
6679 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6680 # Fake it for dumpbin and say T for any non-static function
6681 # and D for any global variable.
6682 # Also find C++ and __fastcall symbols from MSVC++,
6683 # which start with @ or ?.
6684 lt_cv_sys_global_symbol_pipe="$AWK '"\
6685" {last_section=section; section=\$ 3};"\
6686" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6687" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6688" \$ 0!~/External *\|/{next};"\
6689" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6690" {if(hide[section]) next};"\
6691" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6692" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6693" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6694" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6695" ' prfx=^$ac_symprfx"
6696 else
6697 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6698 fi
6699 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6700
6701 # Check to see that the pipe works correctly.
6702 pipe_works=no
6703
6704 rm -f conftest*
6705 cat > conftest.$ac_ext <<_LT_EOF
6706#ifdef __cplusplus
6707extern "C" {
6708#endif
6709char nm_test_var;
6710void nm_test_func(void);
6711void nm_test_func(void){}
6712#ifdef __cplusplus
6713}
6714#endif
6715int main(){nm_test_var='a';nm_test_func();return(0);}
6716_LT_EOF
6717
6718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6719 (eval $ac_compile) 2>&5
6720 ac_status=$?
6721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6722 test $ac_status = 0; }; then
6723 # Now try to grab the symbols.
6724 nlist=conftest.nm
6725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6726 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6727 ac_status=$?
6728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6729 test $ac_status = 0; } && test -s "$nlist"; then
6730 # Try sorting and uniquifying the output.
6731 if sort "$nlist" | uniq > "$nlist"T; then
6732 mv -f "$nlist"T "$nlist"
6733 else
6734 rm -f "$nlist"T
6735 fi
6736
6737 # Make sure that we snagged all the symbols we need.
6738 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6739 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6740 cat <<_LT_EOF > conftest.$ac_ext
6741/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6742#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6743/* DATA imports from DLLs on WIN32 con't be const, because runtime
6744 relocations are performed -- see ld's documentation on pseudo-relocs. */
6745# define LT_DLSYM_CONST
6746#elif defined(__osf__)
6747/* This system does not cope well with relocations in const data. */
6748# define LT_DLSYM_CONST
6749#else
6750# define LT_DLSYM_CONST const
6751#endif
6752
6753#ifdef __cplusplus
6754extern "C" {
6755#endif
6756
6757_LT_EOF
6758 # Now generate the symbol file.
6759 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6760
6761 cat <<_LT_EOF >> conftest.$ac_ext
6762
6763/* The mapping between symbol names and symbols. */
6764LT_DLSYM_CONST struct {
6765 const char *name;
6766 void *address;
6767}
6768lt__PROGRAM__LTX_preloaded_symbols[] =
6769{
6770 { "@PROGRAM@", (void *) 0 },
6771_LT_EOF
6772 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6773 cat <<\_LT_EOF >> conftest.$ac_ext
6774 {0, (void *) 0}
6775};
6776
6777/* This works around a problem in FreeBSD linker */
6778#ifdef FREEBSD_WORKAROUND
6779static const void *lt_preloaded_setup() {
6780 return lt__PROGRAM__LTX_preloaded_symbols;
6781}
6782#endif
6783
6784#ifdef __cplusplus
6785}
6786#endif
6787_LT_EOF
6788 # Now try linking the two files.
6789 mv conftest.$ac_objext conftstm.$ac_objext
6790 lt_globsym_save_LIBS=$LIBS
6791 lt_globsym_save_CFLAGS=$CFLAGS
6792 LIBS="conftstm.$ac_objext"
6793 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6795 (eval $ac_link) 2>&5
6796 ac_status=$?
6797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6798 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6799 pipe_works=yes
6800 fi
6801 LIBS=$lt_globsym_save_LIBS
6802 CFLAGS=$lt_globsym_save_CFLAGS
6803 else
6804 echo "cannot find nm_test_func in $nlist" >&5
6805 fi
6806 else
6807 echo "cannot find nm_test_var in $nlist" >&5
6808 fi
6809 else
6810 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6811 fi
6812 else
6813 echo "$progname: failed program was:" >&5
6814 cat conftest.$ac_ext >&5
6815 fi
6816 rm -rf conftest* conftst*
6817
6818 # Do not use the global_symbol_pipe unless it works.
6819 if test "$pipe_works" = yes; then
6820 break
6821 else
6822 lt_cv_sys_global_symbol_pipe=
6823 fi
6824done
6825
6826fi
6827
6828if test -z "$lt_cv_sys_global_symbol_pipe"; then
6829 lt_cv_sys_global_symbol_to_cdecl=
6830fi
6831if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6833$as_echo "failed" >&6; }
6834else
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6836$as_echo "ok" >&6; }
6837fi
6838
6839# Response file support.
6840if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6841 nm_file_list_spec='@'
6842elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6843 nm_file_list_spec='@'
6844fi
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6873$as_echo_n "checking for sysroot... " >&6; }
6874
6875# Check whether --with-sysroot was given.
6876if test "${with_sysroot+set}" = set; then :
6877 withval=$with_sysroot;
6878else
6879 with_sysroot=no
6880fi
6881
6882
6883lt_sysroot=
6884case ${with_sysroot} in #(
6885 yes)
6886 if test "$GCC" = yes; then
6887 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6888 fi
6889 ;; #(
6890 /*)
6891 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6892 ;; #(
6893 no|'')
6894 ;; #(
6895 *)
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6897$as_echo "${with_sysroot}" >&6; }
6898 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6899 ;;
6900esac
6901
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6903$as_echo "${lt_sysroot:-no}" >&6; }
6904
6905
6906
6907
6908
6909# Check whether --enable-libtool-lock was given.
6910if test "${enable_libtool_lock+set}" = set; then :
6911 enableval=$enable_libtool_lock;
6912fi
6913
6914test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6915
6916# Some flags need to be propagated to the compiler or linker for good
6917# libtool support.
6918case $host in
6919ia64-*-hpux*)
6920 # Find out which ABI we are using.
6921 echo 'int i;' > conftest.$ac_ext
6922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6923 (eval $ac_compile) 2>&5
6924 ac_status=$?
6925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6926 test $ac_status = 0; }; then
6927 case `/usr/bin/file conftest.$ac_objext` in
6928 *ELF-32*)
6929 HPUX_IA64_MODE="32"
6930 ;;
6931 *ELF-64*)
6932 HPUX_IA64_MODE="64"
6933 ;;
6934 esac
6935 fi
6936 rm -rf conftest*
6937 ;;
6938*-*-irix6*)
6939 # Find out which ABI we are using.
6940 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6942 (eval $ac_compile) 2>&5
6943 ac_status=$?
6944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6945 test $ac_status = 0; }; then
6946 if test "$lt_cv_prog_gnu_ld" = yes; then
6947 case `/usr/bin/file conftest.$ac_objext` in
6948 *32-bit*)
6949 LD="${LD-ld} -melf32bsmip"
6950 ;;
6951 *N32*)
6952 LD="${LD-ld} -melf32bmipn32"
6953 ;;
6954 *64-bit*)
6955 LD="${LD-ld} -melf64bmip"
6956 ;;
6957 esac
6958 else
6959 case `/usr/bin/file conftest.$ac_objext` in
6960 *32-bit*)
6961 LD="${LD-ld} -32"
6962 ;;
6963 *N32*)
6964 LD="${LD-ld} -n32"
6965 ;;
6966 *64-bit*)
6967 LD="${LD-ld} -64"
6968 ;;
6969 esac
6970 fi
6971 fi
6972 rm -rf conftest*
6973 ;;
6974
6975x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6976s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6977 # Find out which ABI we are using.
6978 echo 'int i;' > conftest.$ac_ext
6979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6980 (eval $ac_compile) 2>&5
6981 ac_status=$?
6982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6983 test $ac_status = 0; }; then
6984 case `/usr/bin/file conftest.o` in
6985 *32-bit*)
6986 case $host in
6987 x86_64-*kfreebsd*-gnu)
6988 LD="${LD-ld} -m elf_i386_fbsd"
6989 ;;
6990 x86_64-*linux*)
6991 LD="${LD-ld} -m elf_i386"
6992 ;;
6993 ppc64-*linux*|powerpc64-*linux*)
6994 LD="${LD-ld} -m elf32ppclinux"
6995 ;;
6996 s390x-*linux*)
6997 LD="${LD-ld} -m elf_s390"
6998 ;;
6999 sparc64-*linux*)
7000 LD="${LD-ld} -m elf32_sparc"
7001 ;;
7002 esac
7003 ;;
7004 *64-bit*)
7005 case $host in
7006 x86_64-*kfreebsd*-gnu)
7007 LD="${LD-ld} -m elf_x86_64_fbsd"
7008 ;;
7009 x86_64-*linux*)
7010 LD="${LD-ld} -m elf_x86_64"
7011 ;;
7012 ppc*-*linux*|powerpc*-*linux*)
7013 LD="${LD-ld} -m elf64ppc"
7014 ;;
7015 s390*-*linux*|s390*-*tpf*)
7016 LD="${LD-ld} -m elf64_s390"
7017 ;;
7018 sparc*-*linux*)
7019 LD="${LD-ld} -m elf64_sparc"
7020 ;;
7021 esac
7022 ;;
7023 esac
7024 fi
7025 rm -rf conftest*
7026 ;;
7027
7028*-*-sco3.2v5*)
7029 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7030 SAVE_CFLAGS="$CFLAGS"
7031 CFLAGS="$CFLAGS -belf"
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7033$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7034if ${lt_cv_cc_needs_belf+:} false; then :
7035 $as_echo_n "(cached) " >&6
7036else
7037 ac_ext=c
7038ac_cpp='$CPP $CPPFLAGS'
7039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7041ac_compiler_gnu=$ac_cv_c_compiler_gnu
7042
7043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044/* end confdefs.h. */
7045
7046int
7047main ()
7048{
7049
7050 ;
7051 return 0;
7052}
7053_ACEOF
7054if ac_fn_c_try_link "$LINENO"; then :
7055 lt_cv_cc_needs_belf=yes
7056else
7057 lt_cv_cc_needs_belf=no
7058fi
7059rm -f core conftest.err conftest.$ac_objext \
7060 conftest$ac_exeext conftest.$ac_ext
7061 ac_ext=c
7062ac_cpp='$CPP $CPPFLAGS'
7063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7065ac_compiler_gnu=$ac_cv_c_compiler_gnu
7066
7067fi
7068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7069$as_echo "$lt_cv_cc_needs_belf" >&6; }
7070 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7071 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7072 CFLAGS="$SAVE_CFLAGS"
7073 fi
7074 ;;
7075*-*solaris*)
7076 # Find out which ABI we are using.
7077 echo 'int i;' > conftest.$ac_ext
7078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7079 (eval $ac_compile) 2>&5
7080 ac_status=$?
7081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7082 test $ac_status = 0; }; then
7083 case `/usr/bin/file conftest.o` in
7084 *64-bit*)
7085 case $lt_cv_prog_gnu_ld in
7086 yes*)
7087 case $host in
7088 i?86-*-solaris*)
7089 LD="${LD-ld} -m elf_x86_64"
7090 ;;
7091 sparc*-*-solaris*)
7092 LD="${LD-ld} -m elf64_sparc"
7093 ;;
7094 esac
7095 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7096 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7097 LD="${LD-ld}_sol2"
7098 fi
7099 ;;
7100 *)
7101 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7102 LD="${LD-ld} -64"
7103 fi
7104 ;;
7105 esac
7106 ;;
7107 esac
7108 fi
7109 rm -rf conftest*
7110 ;;
7111esac
7112
7113need_locks="$enable_libtool_lock"
7114
7115if test -n "$ac_tool_prefix"; then
7116 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7117set dummy ${ac_tool_prefix}mt; ac_word=$2
7118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119$as_echo_n "checking for $ac_word... " >&6; }
7120if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7121 $as_echo_n "(cached) " >&6
7122else
7123 if test -n "$MANIFEST_TOOL"; then
7124 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7125else
7126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127for as_dir in $PATH
7128do
7129 IFS=$as_save_IFS
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7133 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7135 break 2
7136 fi
7137done
7138 done
7139IFS=$as_save_IFS
7140
7141fi
7142fi
7143MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7144if test -n "$MANIFEST_TOOL"; then
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7146$as_echo "$MANIFEST_TOOL" >&6; }
7147else
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149$as_echo "no" >&6; }
7150fi
7151
7152
7153fi
7154if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7155 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7156 # Extract the first word of "mt", so it can be a program name with args.
7157set dummy mt; ac_word=$2
7158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7159$as_echo_n "checking for $ac_word... " >&6; }
7160if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7161 $as_echo_n "(cached) " >&6
7162else
7163 if test -n "$ac_ct_MANIFEST_TOOL"; then
7164 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7165else
7166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167for as_dir in $PATH
7168do
7169 IFS=$as_save_IFS
7170 test -z "$as_dir" && as_dir=.
7171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7173 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7175 break 2
7176 fi
7177done
7178 done
7179IFS=$as_save_IFS
7180
7181fi
7182fi
7183ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7184if test -n "$ac_ct_MANIFEST_TOOL"; then
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7186$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7187else
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7189$as_echo "no" >&6; }
7190fi
7191
7192 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7193 MANIFEST_TOOL=":"
7194 else
7195 case $cross_compiling:$ac_tool_warned in
7196yes:)
7197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7199ac_tool_warned=yes ;;
7200esac
7201 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7202 fi
7203else
7204 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7205fi
7206
7207test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7209$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7210if ${lt_cv_path_mainfest_tool+:} false; then :
7211 $as_echo_n "(cached) " >&6
7212else
7213 lt_cv_path_mainfest_tool=no
7214 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7215 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7216 cat conftest.err >&5
7217 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7218 lt_cv_path_mainfest_tool=yes
7219 fi
7220 rm -f conftest*
7221fi
7222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7223$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7224if test "x$lt_cv_path_mainfest_tool" != xyes; then
7225 MANIFEST_TOOL=:
7226fi
7227
7228
7229
7230
7231
7232
7233 case $host_os in
7234 rhapsody* | darwin*)
7235 if test -n "$ac_tool_prefix"; then
7236 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7237set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7239$as_echo_n "checking for $ac_word... " >&6; }
7240if ${ac_cv_prog_DSYMUTIL+:} false; then :
7241 $as_echo_n "(cached) " >&6
7242else
7243 if test -n "$DSYMUTIL"; then
7244 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7245else
7246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247for as_dir in $PATH
7248do
7249 IFS=$as_save_IFS
7250 test -z "$as_dir" && as_dir=.
7251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7253 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7255 break 2
7256 fi
7257done
7258 done
7259IFS=$as_save_IFS
7260
7261fi
7262fi
7263DSYMUTIL=$ac_cv_prog_DSYMUTIL
7264if test -n "$DSYMUTIL"; then
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7266$as_echo "$DSYMUTIL" >&6; }
7267else
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7269$as_echo "no" >&6; }
7270fi
7271
7272
7273fi
7274if test -z "$ac_cv_prog_DSYMUTIL"; then
7275 ac_ct_DSYMUTIL=$DSYMUTIL
7276 # Extract the first word of "dsymutil", so it can be a program name with args.
7277set dummy dsymutil; ac_word=$2
7278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7279$as_echo_n "checking for $ac_word... " >&6; }
7280if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7281 $as_echo_n "(cached) " >&6
7282else
7283 if test -n "$ac_ct_DSYMUTIL"; then
7284 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7285else
7286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287for as_dir in $PATH
7288do
7289 IFS=$as_save_IFS
7290 test -z "$as_dir" && as_dir=.
7291 for ac_exec_ext in '' $ac_executable_extensions; do
7292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7293 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7295 break 2
7296 fi
7297done
7298 done
7299IFS=$as_save_IFS
7300
7301fi
7302fi
7303ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7304if test -n "$ac_ct_DSYMUTIL"; then
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7306$as_echo "$ac_ct_DSYMUTIL" >&6; }
7307else
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309$as_echo "no" >&6; }
7310fi
7311
7312 if test "x$ac_ct_DSYMUTIL" = x; then
7313 DSYMUTIL=":"
7314 else
7315 case $cross_compiling:$ac_tool_warned in
7316yes:)
7317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7319ac_tool_warned=yes ;;
7320esac
7321 DSYMUTIL=$ac_ct_DSYMUTIL
7322 fi
7323else
7324 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7325fi
7326
7327 if test -n "$ac_tool_prefix"; then
7328 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7329set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331$as_echo_n "checking for $ac_word... " >&6; }
7332if ${ac_cv_prog_NMEDIT+:} false; then :
7333 $as_echo_n "(cached) " >&6
7334else
7335 if test -n "$NMEDIT"; then
7336 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7337else
7338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339for as_dir in $PATH
7340do
7341 IFS=$as_save_IFS
7342 test -z "$as_dir" && as_dir=.
7343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7345 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7347 break 2
7348 fi
7349done
7350 done
7351IFS=$as_save_IFS
7352
7353fi
7354fi
7355NMEDIT=$ac_cv_prog_NMEDIT
7356if test -n "$NMEDIT"; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7358$as_echo "$NMEDIT" >&6; }
7359else
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361$as_echo "no" >&6; }
7362fi
7363
7364
7365fi
7366if test -z "$ac_cv_prog_NMEDIT"; then
7367 ac_ct_NMEDIT=$NMEDIT
7368 # Extract the first word of "nmedit", so it can be a program name with args.
7369set dummy nmedit; ac_word=$2
7370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371$as_echo_n "checking for $ac_word... " >&6; }
7372if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7373 $as_echo_n "(cached) " >&6
7374else
7375 if test -n "$ac_ct_NMEDIT"; then
7376 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7377else
7378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379for as_dir in $PATH
7380do
7381 IFS=$as_save_IFS
7382 test -z "$as_dir" && as_dir=.
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7385 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 break 2
7388 fi
7389done
7390 done
7391IFS=$as_save_IFS
7392
7393fi
7394fi
7395ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7396if test -n "$ac_ct_NMEDIT"; then
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7398$as_echo "$ac_ct_NMEDIT" >&6; }
7399else
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401$as_echo "no" >&6; }
7402fi
7403
7404 if test "x$ac_ct_NMEDIT" = x; then
7405 NMEDIT=":"
7406 else
7407 case $cross_compiling:$ac_tool_warned in
7408yes:)
7409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7411ac_tool_warned=yes ;;
7412esac
7413 NMEDIT=$ac_ct_NMEDIT
7414 fi
7415else
7416 NMEDIT="$ac_cv_prog_NMEDIT"
7417fi
7418
7419 if test -n "$ac_tool_prefix"; then
7420 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7421set dummy ${ac_tool_prefix}lipo; ac_word=$2
7422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423$as_echo_n "checking for $ac_word... " >&6; }
7424if ${ac_cv_prog_LIPO+:} false; then :
7425 $as_echo_n "(cached) " >&6
7426else
7427 if test -n "$LIPO"; then
7428 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7429else
7430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431for as_dir in $PATH
7432do
7433 IFS=$as_save_IFS
7434 test -z "$as_dir" && as_dir=.
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7437 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 break 2
7440 fi
7441done
7442 done
7443IFS=$as_save_IFS
7444
7445fi
7446fi
7447LIPO=$ac_cv_prog_LIPO
7448if test -n "$LIPO"; then
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7450$as_echo "$LIPO" >&6; }
7451else
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453$as_echo "no" >&6; }
7454fi
7455
7456
7457fi
7458if test -z "$ac_cv_prog_LIPO"; then
7459 ac_ct_LIPO=$LIPO
7460 # Extract the first word of "lipo", so it can be a program name with args.
7461set dummy lipo; ac_word=$2
7462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463$as_echo_n "checking for $ac_word... " >&6; }
7464if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7465 $as_echo_n "(cached) " >&6
7466else
7467 if test -n "$ac_ct_LIPO"; then
7468 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7469else
7470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471for as_dir in $PATH
7472do
7473 IFS=$as_save_IFS
7474 test -z "$as_dir" && as_dir=.
7475 for ac_exec_ext in '' $ac_executable_extensions; do
7476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7477 ac_cv_prog_ac_ct_LIPO="lipo"
7478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7479 break 2
7480 fi
7481done
7482 done
7483IFS=$as_save_IFS
7484
7485fi
7486fi
7487ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7488if test -n "$ac_ct_LIPO"; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7490$as_echo "$ac_ct_LIPO" >&6; }
7491else
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493$as_echo "no" >&6; }
7494fi
7495
7496 if test "x$ac_ct_LIPO" = x; then
7497 LIPO=":"
7498 else
7499 case $cross_compiling:$ac_tool_warned in
7500yes:)
7501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7503ac_tool_warned=yes ;;
7504esac
7505 LIPO=$ac_ct_LIPO
7506 fi
7507else
7508 LIPO="$ac_cv_prog_LIPO"
7509fi
7510
7511 if test -n "$ac_tool_prefix"; then
7512 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7513set dummy ${ac_tool_prefix}otool; ac_word=$2
7514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515$as_echo_n "checking for $ac_word... " >&6; }
7516if ${ac_cv_prog_OTOOL+:} false; then :
7517 $as_echo_n "(cached) " >&6
7518else
7519 if test -n "$OTOOL"; then
7520 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7521else
7522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523for as_dir in $PATH
7524do
7525 IFS=$as_save_IFS
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7529 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7531 break 2
7532 fi
7533done
7534 done
7535IFS=$as_save_IFS
7536
7537fi
7538fi
7539OTOOL=$ac_cv_prog_OTOOL
7540if test -n "$OTOOL"; then
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7542$as_echo "$OTOOL" >&6; }
7543else
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545$as_echo "no" >&6; }
7546fi
7547
7548
7549fi
7550if test -z "$ac_cv_prog_OTOOL"; then
7551 ac_ct_OTOOL=$OTOOL
7552 # Extract the first word of "otool", so it can be a program name with args.
7553set dummy otool; ac_word=$2
7554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7555$as_echo_n "checking for $ac_word... " >&6; }
7556if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7557 $as_echo_n "(cached) " >&6
7558else
7559 if test -n "$ac_ct_OTOOL"; then
7560 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7561else
7562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563for as_dir in $PATH
7564do
7565 IFS=$as_save_IFS
7566 test -z "$as_dir" && as_dir=.
7567 for ac_exec_ext in '' $ac_executable_extensions; do
7568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7569 ac_cv_prog_ac_ct_OTOOL="otool"
7570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 break 2
7572 fi
7573done
7574 done
7575IFS=$as_save_IFS
7576
7577fi
7578fi
7579ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7580if test -n "$ac_ct_OTOOL"; then
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7582$as_echo "$ac_ct_OTOOL" >&6; }
7583else
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585$as_echo "no" >&6; }
7586fi
7587
7588 if test "x$ac_ct_OTOOL" = x; then
7589 OTOOL=":"
7590 else
7591 case $cross_compiling:$ac_tool_warned in
7592yes:)
7593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7595ac_tool_warned=yes ;;
7596esac
7597 OTOOL=$ac_ct_OTOOL
7598 fi
7599else
7600 OTOOL="$ac_cv_prog_OTOOL"
7601fi
7602
7603 if test -n "$ac_tool_prefix"; then
7604 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7605set dummy ${ac_tool_prefix}otool64; ac_word=$2
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7607$as_echo_n "checking for $ac_word... " >&6; }
7608if ${ac_cv_prog_OTOOL64+:} false; then :
7609 $as_echo_n "(cached) " >&6
7610else
7611 if test -n "$OTOOL64"; then
7612 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7613else
7614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615for as_dir in $PATH
7616do
7617 IFS=$as_save_IFS
7618 test -z "$as_dir" && as_dir=.
7619 for ac_exec_ext in '' $ac_executable_extensions; do
7620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7621 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7623 break 2
7624 fi
7625done
7626 done
7627IFS=$as_save_IFS
7628
7629fi
7630fi
7631OTOOL64=$ac_cv_prog_OTOOL64
7632if test -n "$OTOOL64"; then
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7634$as_echo "$OTOOL64" >&6; }
7635else
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637$as_echo "no" >&6; }
7638fi
7639
7640
7641fi
7642if test -z "$ac_cv_prog_OTOOL64"; then
7643 ac_ct_OTOOL64=$OTOOL64
7644 # Extract the first word of "otool64", so it can be a program name with args.
7645set dummy otool64; ac_word=$2
7646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7647$as_echo_n "checking for $ac_word... " >&6; }
7648if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7649 $as_echo_n "(cached) " >&6
7650else
7651 if test -n "$ac_ct_OTOOL64"; then
7652 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7653else
7654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655for as_dir in $PATH
7656do
7657 IFS=$as_save_IFS
7658 test -z "$as_dir" && as_dir=.
7659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7661 ac_cv_prog_ac_ct_OTOOL64="otool64"
7662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7663 break 2
7664 fi
7665done
7666 done
7667IFS=$as_save_IFS
7668
7669fi
7670fi
7671ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7672if test -n "$ac_ct_OTOOL64"; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7674$as_echo "$ac_ct_OTOOL64" >&6; }
7675else
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677$as_echo "no" >&6; }
7678fi
7679
7680 if test "x$ac_ct_OTOOL64" = x; then
7681 OTOOL64=":"
7682 else
7683 case $cross_compiling:$ac_tool_warned in
7684yes:)
7685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7687ac_tool_warned=yes ;;
7688esac
7689 OTOOL64=$ac_ct_OTOOL64
7690 fi
7691else
7692 OTOOL64="$ac_cv_prog_OTOOL64"
7693fi
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7722$as_echo_n "checking for -single_module linker flag... " >&6; }
7723if ${lt_cv_apple_cc_single_mod+:} false; then :
7724 $as_echo_n "(cached) " >&6
7725else
7726 lt_cv_apple_cc_single_mod=no
7727 if test -z "${LT_MULTI_MODULE}"; then
7728 # By default we will add the -single_module flag. You can override
7729 # by either setting the environment variable LT_MULTI_MODULE
7730 # non-empty at configure time, or by adding -multi_module to the
7731 # link flags.
7732 rm -rf libconftest.dylib*
7733 echo "int foo(void){return 1;}" > conftest.c
7734 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7735-dynamiclib -Wl,-single_module conftest.c" >&5
7736 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7737 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7738 _lt_result=$?
7739 # If there is a non-empty error log, and "single_module"
7740 # appears in it, assume the flag caused a linker warning
7741 if test -s conftest.err && $GREP single_module conftest.err; then
7742 cat conftest.err >&5
7743 # Otherwise, if the output was created with a 0 exit code from
7744 # the compiler, it worked.
7745 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7746 lt_cv_apple_cc_single_mod=yes
7747 else
7748 cat conftest.err >&5
7749 fi
7750 rm -rf libconftest.dylib*
7751 rm -f conftest.*
7752 fi
7753fi
7754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7755$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7756
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7758$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7759if ${lt_cv_ld_exported_symbols_list+:} false; then :
7760 $as_echo_n "(cached) " >&6
7761else
7762 lt_cv_ld_exported_symbols_list=no
7763 save_LDFLAGS=$LDFLAGS
7764 echo "_main" > conftest.sym
7765 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7767/* end confdefs.h. */
7768
7769int
7770main ()
7771{
7772
7773 ;
7774 return 0;
7775}
7776_ACEOF
7777if ac_fn_c_try_link "$LINENO"; then :
7778 lt_cv_ld_exported_symbols_list=yes
7779else
7780 lt_cv_ld_exported_symbols_list=no
7781fi
7782rm -f core conftest.err conftest.$ac_objext \
7783 conftest$ac_exeext conftest.$ac_ext
7784 LDFLAGS="$save_LDFLAGS"
7785
7786fi
7787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7788$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7789
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7791$as_echo_n "checking for -force_load linker flag... " >&6; }
7792if ${lt_cv_ld_force_load+:} false; then :
7793 $as_echo_n "(cached) " >&6
7794else
7795 lt_cv_ld_force_load=no
7796 cat > conftest.c << _LT_EOF
7797int forced_loaded() { return 2;}
7798_LT_EOF
7799 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7800 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7801 echo "$AR cru libconftest.a conftest.o" >&5
7802 $AR cru libconftest.a conftest.o 2>&5
7803 echo "$RANLIB libconftest.a" >&5
7804 $RANLIB libconftest.a 2>&5
7805 cat > conftest.c << _LT_EOF
7806int main() { return 0;}
7807_LT_EOF
7808 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7809 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7810 _lt_result=$?
7811 if test -s conftest.err && $GREP force_load conftest.err; then
7812 cat conftest.err >&5
7813 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7814 lt_cv_ld_force_load=yes
7815 else
7816 cat conftest.err >&5
7817 fi
7818 rm -f conftest.err libconftest.a conftest conftest.c
7819 rm -rf conftest.dSYM
7820
7821fi
7822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7823$as_echo "$lt_cv_ld_force_load" >&6; }
7824 case $host_os in
7825 rhapsody* | darwin1.[012])
7826 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7827 darwin1.*)
7828 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7829 darwin*) # darwin 5.x on
7830 # if running on 10.5 or later, the deployment target defaults
7831 # to the OS version, if on x86, and 10.4, the deployment
7832 # target defaults to 10.4. Don't you love it?
7833 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7834 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7835 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7836 10.[012]*)
7837 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7838 10.*)
7839 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7840 esac
7841 ;;
7842 esac
7843 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7844 _lt_dar_single_mod='$single_module'
7845 fi
7846 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7847 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7848 else
7849 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7850 fi
7851 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7852 _lt_dsymutil='~$DSYMUTIL $lib || :'
7853 else
7854 _lt_dsymutil=
7855 fi
7856 ;;
7857 esac
7858
7859ac_ext=c
7860ac_cpp='$CPP $CPPFLAGS'
7861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7863ac_compiler_gnu=$ac_cv_c_compiler_gnu
7864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7865$as_echo_n "checking how to run the C preprocessor... " >&6; }
7866# On Suns, sometimes $CPP names a directory.
7867if test -n "$CPP" && test -d "$CPP"; then
7868 CPP=
7869fi
7870if test -z "$CPP"; then
7871 if ${ac_cv_prog_CPP+:} false; then :
7872 $as_echo_n "(cached) " >&6
7873else
7874 # Double quotes because CPP needs to be expanded
7875 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7876 do
7877 ac_preproc_ok=false
7878for ac_c_preproc_warn_flag in '' yes
7879do
7880 # Use a header file that comes with gcc, so configuring glibc
7881 # with a fresh cross-compiler works.
7882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7883 # <limits.h> exists even on freestanding compilers.
7884 # On the NeXT, cc -E runs the code through the compiler's parser,
7885 # not just through cpp. "Syntax error" is here to catch this case.
7886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887/* end confdefs.h. */
7888#ifdef __STDC__
7889# include <limits.h>
7890#else
7891# include <assert.h>
7892#endif
7893 Syntax error
7894_ACEOF
7895if ac_fn_c_try_cpp "$LINENO"; then :
7896
7897else
7898 # Broken: fails on valid input.
7899continue
7900fi
7901rm -f conftest.err conftest.i conftest.$ac_ext
7902
7903 # OK, works on sane cases. Now check whether nonexistent headers
7904 # can be detected and how.
7905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7906/* end confdefs.h. */
7907#include <ac_nonexistent.h>
7908_ACEOF
7909if ac_fn_c_try_cpp "$LINENO"; then :
7910 # Broken: success on invalid input.
7911continue
7912else
7913 # Passes both tests.
7914ac_preproc_ok=:
7915break
7916fi
7917rm -f conftest.err conftest.i conftest.$ac_ext
7918
7919done
7920# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7921rm -f conftest.i conftest.err conftest.$ac_ext
7922if $ac_preproc_ok; then :
7923 break
7924fi
7925
7926 done
7927 ac_cv_prog_CPP=$CPP
7928
7929fi
7930 CPP=$ac_cv_prog_CPP
7931else
7932 ac_cv_prog_CPP=$CPP
7933fi
7934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7935$as_echo "$CPP" >&6; }
7936ac_preproc_ok=false
7937for ac_c_preproc_warn_flag in '' yes
7938do
7939 # Use a header file that comes with gcc, so configuring glibc
7940 # with a fresh cross-compiler works.
7941 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7942 # <limits.h> exists even on freestanding compilers.
7943 # On the NeXT, cc -E runs the code through the compiler's parser,
7944 # not just through cpp. "Syntax error" is here to catch this case.
7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946/* end confdefs.h. */
7947#ifdef __STDC__
7948# include <limits.h>
7949#else
7950# include <assert.h>
7951#endif
7952 Syntax error
7953_ACEOF
7954if ac_fn_c_try_cpp "$LINENO"; then :
7955
7956else
7957 # Broken: fails on valid input.
7958continue
7959fi
7960rm -f conftest.err conftest.i conftest.$ac_ext
7961
7962 # OK, works on sane cases. Now check whether nonexistent headers
7963 # can be detected and how.
7964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965/* end confdefs.h. */
7966#include <ac_nonexistent.h>
7967_ACEOF
7968if ac_fn_c_try_cpp "$LINENO"; then :
7969 # Broken: success on invalid input.
7970continue
7971else
7972 # Passes both tests.
7973ac_preproc_ok=:
7974break
7975fi
7976rm -f conftest.err conftest.i conftest.$ac_ext
7977
7978done
7979# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7980rm -f conftest.i conftest.err conftest.$ac_ext
7981if $ac_preproc_ok; then :
7982
7983else
7984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7985$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7986as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7987See \`config.log' for more details" "$LINENO" 5; }
7988fi
7989
7990ac_ext=c
7991ac_cpp='$CPP $CPPFLAGS'
7992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7994ac_compiler_gnu=$ac_cv_c_compiler_gnu
7995
7996
7997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7998$as_echo_n "checking for ANSI C header files... " >&6; }
7999if ${ac_cv_header_stdc+:} false; then :
8000 $as_echo_n "(cached) " >&6
8001else
8002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8003/* end confdefs.h. */
8004#include <stdlib.h>
8005#include <stdarg.h>
8006#include <string.h>
8007#include <float.h>
8008
8009int
8010main ()
8011{
8012
8013 ;
8014 return 0;
8015}
8016_ACEOF
8017if ac_fn_c_try_compile "$LINENO"; then :
8018 ac_cv_header_stdc=yes
8019else
8020 ac_cv_header_stdc=no
8021fi
8022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8023
8024if test $ac_cv_header_stdc = yes; then
8025 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8027/* end confdefs.h. */
8028#include <string.h>
8029
8030_ACEOF
8031if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8032 $EGREP "memchr" >/dev/null 2>&1; then :
8033
8034else
8035 ac_cv_header_stdc=no
8036fi
8037rm -f conftest*
8038
8039fi
8040
8041if test $ac_cv_header_stdc = yes; then
8042 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044/* end confdefs.h. */
8045#include <stdlib.h>
8046
8047_ACEOF
8048if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8049 $EGREP "free" >/dev/null 2>&1; then :
8050
8051else
8052 ac_cv_header_stdc=no
8053fi
8054rm -f conftest*
8055
8056fi
8057
8058if test $ac_cv_header_stdc = yes; then
8059 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8060 if test "$cross_compiling" = yes; then :
8061 :
8062else
8063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8064/* end confdefs.h. */
8065#include <ctype.h>
8066#include <stdlib.h>
8067#if ((' ' & 0x0FF) == 0x020)
8068# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8069# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8070#else
8071# define ISLOWER(c) \
8072 (('a' <= (c) && (c) <= 'i') \
8073 || ('j' <= (c) && (c) <= 'r') \
8074 || ('s' <= (c) && (c) <= 'z'))
8075# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8076#endif
8077
8078#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8079int
8080main ()
8081{
8082 int i;
8083 for (i = 0; i < 256; i++)
8084 if (XOR (islower (i), ISLOWER (i))
8085 || toupper (i) != TOUPPER (i))
8086 return 2;
8087 return 0;
8088}
8089_ACEOF
8090if ac_fn_c_try_run "$LINENO"; then :
8091
8092else
8093 ac_cv_header_stdc=no
8094fi
8095rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8096 conftest.$ac_objext conftest.beam conftest.$ac_ext
8097fi
8098
8099fi
8100fi
8101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8102$as_echo "$ac_cv_header_stdc" >&6; }
8103if test $ac_cv_header_stdc = yes; then
8104
8105$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8106
8107fi
8108
8109# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8110for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8111 inttypes.h stdint.h unistd.h
8112do :
8113 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8114ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8115"
8116if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8117 cat >>confdefs.h <<_ACEOF
8118#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8119_ACEOF
8120
8121fi
8122
8123done
8124
8125
8126for ac_header in dlfcn.h
8127do :
8128 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8129"
8130if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8131 cat >>confdefs.h <<_ACEOF
8132#define HAVE_DLFCN_H 1
8133_ACEOF
8134
8135fi
8136
8137done
8138
8139
8140
8141
8142
8143# Set options
8144
8145
8146
8147 enable_dlopen=no
8148
8149
8150 enable_win32_dll=no
8151
8152
8153 # Check whether --enable-shared was given.
8154if test "${enable_shared+set}" = set; then :
8155 enableval=$enable_shared; p=${PACKAGE-default}
8156 case $enableval in
8157 yes) enable_shared=yes ;;
8158 no) enable_shared=no ;;
8159 *)
8160 enable_shared=no
8161 # Look at the argument we got. We use all the common list separators.
8162 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8163 for pkg in $enableval; do
8164 IFS="$lt_save_ifs"
8165 if test "X$pkg" = "X$p"; then
8166 enable_shared=yes
8167 fi
8168 done
8169 IFS="$lt_save_ifs"
8170 ;;
8171 esac
8172else
8173 enable_shared=yes
8174fi
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184 # Check whether --enable-static was given.
8185if test "${enable_static+set}" = set; then :
8186 enableval=$enable_static; p=${PACKAGE-default}
8187 case $enableval in
8188 yes) enable_static=yes ;;
8189 no) enable_static=no ;;
8190 *)
8191 enable_static=no
8192 # Look at the argument we got. We use all the common list separators.
8193 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8194 for pkg in $enableval; do
8195 IFS="$lt_save_ifs"
8196 if test "X$pkg" = "X$p"; then
8197 enable_static=yes
8198 fi
8199 done
8200 IFS="$lt_save_ifs"
8201 ;;
8202 esac
8203else
8204 enable_static=yes
8205fi
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216# Check whether --with-pic was given.
8217if test "${with_pic+set}" = set; then :
8218 withval=$with_pic; lt_p=${PACKAGE-default}
8219 case $withval in
8220 yes|no) pic_mode=$withval ;;
8221 *)
8222 pic_mode=default
8223 # Look at the argument we got. We use all the common list separators.
8224 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8225 for lt_pkg in $withval; do
8226 IFS="$lt_save_ifs"
8227 if test "X$lt_pkg" = "X$lt_p"; then
8228 pic_mode=yes
8229 fi
8230 done
8231 IFS="$lt_save_ifs"
8232 ;;
8233 esac
8234else
8235 pic_mode=default
8236fi
8237
8238
8239test -z "$pic_mode" && pic_mode=default
8240
8241
8242
8243
8244
8245
8246
8247 # Check whether --enable-fast-install was given.
8248if test "${enable_fast_install+set}" = set; then :
8249 enableval=$enable_fast_install; p=${PACKAGE-default}
8250 case $enableval in
8251 yes) enable_fast_install=yes ;;
8252 no) enable_fast_install=no ;;
8253 *)
8254 enable_fast_install=no
8255 # Look at the argument we got. We use all the common list separators.
8256 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8257 for pkg in $enableval; do
8258 IFS="$lt_save_ifs"
8259 if test "X$pkg" = "X$p"; then
8260 enable_fast_install=yes
8261 fi
8262 done
8263 IFS="$lt_save_ifs"
8264 ;;
8265 esac
8266else
8267 enable_fast_install=yes
8268fi
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280# This can be used to rebuild libtool when needed
8281LIBTOOL_DEPS="$ltmain"
8282
8283# Always use our own libtool.
8284LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315test -z "$LN_S" && LN_S="ln -s"
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330if test -n "${ZSH_VERSION+set}" ; then
8331 setopt NO_GLOB_SUBST
8332fi
8333
8334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8335$as_echo_n "checking for objdir... " >&6; }
8336if ${lt_cv_objdir+:} false; then :
8337 $as_echo_n "(cached) " >&6
8338else
8339 rm -f .libs 2>/dev/null
8340mkdir .libs 2>/dev/null
8341if test -d .libs; then
8342 lt_cv_objdir=.libs
8343else
8344 # MS-DOS does not allow filenames that begin with a dot.
8345 lt_cv_objdir=_libs
8346fi
8347rmdir .libs 2>/dev/null
8348fi
8349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8350$as_echo "$lt_cv_objdir" >&6; }
8351objdir=$lt_cv_objdir
8352
8353
8354
8355
8356
8357cat >>confdefs.h <<_ACEOF
8358#define LT_OBJDIR "$lt_cv_objdir/"
8359_ACEOF
8360
8361
8362
8363
8364case $host_os in
8365aix3*)
8366 # AIX sometimes has problems with the GCC collect2 program. For some
8367 # reason, if we set the COLLECT_NAMES environment variable, the problems
8368 # vanish in a puff of smoke.
8369 if test "X${COLLECT_NAMES+set}" != Xset; then
8370 COLLECT_NAMES=
8371 export COLLECT_NAMES
8372 fi
8373 ;;
8374esac
8375
8376# Global variables:
8377ofile=libtool
8378can_build_shared=yes
8379
8380# All known linkers require a `.a' archive for static linking (except MSVC,
8381# which needs '.lib').
8382libext=a
8383
8384with_gnu_ld="$lt_cv_prog_gnu_ld"
8385
8386old_CC="$CC"
8387old_CFLAGS="$CFLAGS"
8388
8389# Set sane defaults for various variables
8390test -z "$CC" && CC=cc
8391test -z "$LTCC" && LTCC=$CC
8392test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8393test -z "$LD" && LD=ld
8394test -z "$ac_objext" && ac_objext=o
8395
8396for cc_temp in $compiler""; do
8397 case $cc_temp in
8398 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8399 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8400 \-*) ;;
8401 *) break;;
8402 esac
8403done
8404cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8405
8406
8407# Only perform the check for file, if the check method requires it
8408test -z "$MAGIC_CMD" && MAGIC_CMD=file
8409case $deplibs_check_method in
8410file_magic*)
8411 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8413$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8414if ${lt_cv_path_MAGIC_CMD+:} false; then :
8415 $as_echo_n "(cached) " >&6
8416else
8417 case $MAGIC_CMD in
8418[\\/*] | ?:[\\/]*)
8419 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8420 ;;
8421*)
8422 lt_save_MAGIC_CMD="$MAGIC_CMD"
8423 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8424 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8425 for ac_dir in $ac_dummy; do
8426 IFS="$lt_save_ifs"
8427 test -z "$ac_dir" && ac_dir=.
8428 if test -f $ac_dir/${ac_tool_prefix}file; then
8429 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8430 if test -n "$file_magic_test_file"; then
8431 case $deplibs_check_method in
8432 "file_magic "*)
8433 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8434 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8435 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8436 $EGREP "$file_magic_regex" > /dev/null; then
8437 :
8438 else
8439 cat <<_LT_EOF 1>&2
8440
8441*** Warning: the command libtool uses to detect shared libraries,
8442*** $file_magic_cmd, produces output that libtool cannot recognize.
8443*** The result is that libtool may fail to recognize shared libraries
8444*** as such. This will affect the creation of libtool libraries that
8445*** depend on shared libraries, but programs linked with such libtool
8446*** libraries will work regardless of this problem. Nevertheless, you
8447*** may want to report the problem to your system manager and/or to
8448*** bug-libtool@gnu.org
8449
8450_LT_EOF
8451 fi ;;
8452 esac
8453 fi
8454 break
8455 fi
8456 done
8457 IFS="$lt_save_ifs"
8458 MAGIC_CMD="$lt_save_MAGIC_CMD"
8459 ;;
8460esac
8461fi
8462
8463MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8464if test -n "$MAGIC_CMD"; then
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8466$as_echo "$MAGIC_CMD" >&6; }
8467else
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8469$as_echo "no" >&6; }
8470fi
8471
8472
8473
8474
8475
8476if test -z "$lt_cv_path_MAGIC_CMD"; then
8477 if test -n "$ac_tool_prefix"; then
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8479$as_echo_n "checking for file... " >&6; }
8480if ${lt_cv_path_MAGIC_CMD+:} false; then :
8481 $as_echo_n "(cached) " >&6
8482else
8483 case $MAGIC_CMD in
8484[\\/*] | ?:[\\/]*)
8485 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8486 ;;
8487*)
8488 lt_save_MAGIC_CMD="$MAGIC_CMD"
8489 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8490 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8491 for ac_dir in $ac_dummy; do
8492 IFS="$lt_save_ifs"
8493 test -z "$ac_dir" && ac_dir=.
8494 if test -f $ac_dir/file; then
8495 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8496 if test -n "$file_magic_test_file"; then
8497 case $deplibs_check_method in
8498 "file_magic "*)
8499 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8500 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8501 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8502 $EGREP "$file_magic_regex" > /dev/null; then
8503 :
8504 else
8505 cat <<_LT_EOF 1>&2
8506
8507*** Warning: the command libtool uses to detect shared libraries,
8508*** $file_magic_cmd, produces output that libtool cannot recognize.
8509*** The result is that libtool may fail to recognize shared libraries
8510*** as such. This will affect the creation of libtool libraries that
8511*** depend on shared libraries, but programs linked with such libtool
8512*** libraries will work regardless of this problem. Nevertheless, you
8513*** may want to report the problem to your system manager and/or to
8514*** bug-libtool@gnu.org
8515
8516_LT_EOF
8517 fi ;;
8518 esac
8519 fi
8520 break
8521 fi
8522 done
8523 IFS="$lt_save_ifs"
8524 MAGIC_CMD="$lt_save_MAGIC_CMD"
8525 ;;
8526esac
8527fi
8528
8529MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8530if test -n "$MAGIC_CMD"; then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8532$as_echo "$MAGIC_CMD" >&6; }
8533else
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8535$as_echo "no" >&6; }
8536fi
8537
8538
8539 else
8540 MAGIC_CMD=:
8541 fi
8542fi
8543
8544 fi
8545 ;;
8546esac
8547
8548# Use C for the default configuration in the libtool script
8549
8550lt_save_CC="$CC"
8551ac_ext=c
8552ac_cpp='$CPP $CPPFLAGS'
8553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8555ac_compiler_gnu=$ac_cv_c_compiler_gnu
8556
8557
8558# Source file extension for C test sources.
8559ac_ext=c
8560
8561# Object file extension for compiled C test sources.
8562objext=o
8563objext=$objext
8564
8565# Code to be used in simple compile tests
8566lt_simple_compile_test_code="int some_variable = 0;"
8567
8568# Code to be used in simple link tests
8569lt_simple_link_test_code='int main(){return(0);}'
8570
8571
8572
8573
8574
8575
8576
8577# If no C compiler was specified, use CC.
8578LTCC=${LTCC-"$CC"}
8579
8580# If no C compiler flags were specified, use CFLAGS.
8581LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8582
8583# Allow CC to be a program name with arguments.
8584compiler=$CC
8585
8586# Save the default compiler, since it gets overwritten when the other
8587# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8588compiler_DEFAULT=$CC
8589
8590# save warnings/boilerplate of simple test code
8591ac_outfile=conftest.$ac_objext
8592echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8593eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8594_lt_compiler_boilerplate=`cat conftest.err`
8595$RM conftest*
8596
8597ac_outfile=conftest.$ac_objext
8598echo "$lt_simple_link_test_code" >conftest.$ac_ext
8599eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8600_lt_linker_boilerplate=`cat conftest.err`
8601$RM -r conftest*
8602
8603
Jeff Thompson23cb7422013-10-09 16:11:47 -07008604## CAVEAT EMPTOR:
8605## There is no encapsulation within the following macros, do not change
8606## the running order or otherwise move them around unless you know exactly
8607## what you are doing...
Jeff Thompson4f031642013-08-05 11:03:16 -07008608if test -n "$compiler"; then
8609
8610lt_prog_compiler_no_builtin_flag=
8611
8612if test "$GCC" = yes; then
8613 case $cc_basename in
8614 nvcc*)
8615 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8616 *)
8617 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8618 esac
8619
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8621$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8622if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8623 $as_echo_n "(cached) " >&6
8624else
8625 lt_cv_prog_compiler_rtti_exceptions=no
8626 ac_outfile=conftest.$ac_objext
8627 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8628 lt_compiler_flag="-fno-rtti -fno-exceptions"
8629 # Insert the option either (1) after the last *FLAGS variable, or
8630 # (2) before a word containing "conftest.", or (3) at the end.
8631 # Note that $ac_compile itself does not contain backslashes and begins
8632 # with a dollar sign (not a hyphen), so the echo should work correctly.
8633 # The option is referenced via a variable to avoid confusing sed.
8634 lt_compile=`echo "$ac_compile" | $SED \
8635 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8636 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8637 -e 's:$: $lt_compiler_flag:'`
8638 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8639 (eval "$lt_compile" 2>conftest.err)
8640 ac_status=$?
8641 cat conftest.err >&5
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 if (exit $ac_status) && test -s "$ac_outfile"; then
8644 # The compiler can only warn and ignore the option if not recognized
8645 # So say no if there are warnings other than the usual output.
8646 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8647 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8648 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8649 lt_cv_prog_compiler_rtti_exceptions=yes
8650 fi
8651 fi
8652 $RM conftest*
8653
8654fi
8655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8656$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8657
8658if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8659 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8660else
8661 :
8662fi
8663
8664fi
8665
8666
8667
8668
8669
8670
8671 lt_prog_compiler_wl=
8672lt_prog_compiler_pic=
8673lt_prog_compiler_static=
8674
8675
8676 if test "$GCC" = yes; then
8677 lt_prog_compiler_wl='-Wl,'
8678 lt_prog_compiler_static='-static'
8679
8680 case $host_os in
8681 aix*)
8682 # All AIX code is PIC.
8683 if test "$host_cpu" = ia64; then
8684 # AIX 5 now supports IA64 processor
8685 lt_prog_compiler_static='-Bstatic'
8686 fi
8687 ;;
8688
8689 amigaos*)
8690 case $host_cpu in
8691 powerpc)
8692 # see comment about AmigaOS4 .so support
8693 lt_prog_compiler_pic='-fPIC'
8694 ;;
8695 m68k)
8696 # FIXME: we need at least 68020 code to build shared libraries, but
8697 # adding the `-m68020' flag to GCC prevents building anything better,
8698 # like `-m68040'.
8699 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8700 ;;
8701 esac
8702 ;;
8703
8704 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8705 # PIC is the default for these OSes.
8706 ;;
8707
8708 mingw* | cygwin* | pw32* | os2* | cegcc*)
8709 # This hack is so that the source file can tell whether it is being
8710 # built for inclusion in a dll (and should export symbols for example).
8711 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8712 # (--disable-auto-import) libraries
8713 lt_prog_compiler_pic='-DDLL_EXPORT'
8714 ;;
8715
8716 darwin* | rhapsody*)
8717 # PIC is the default on this platform
8718 # Common symbols not allowed in MH_DYLIB files
8719 lt_prog_compiler_pic='-fno-common'
8720 ;;
8721
8722 haiku*)
8723 # PIC is the default for Haiku.
8724 # The "-static" flag exists, but is broken.
8725 lt_prog_compiler_static=
8726 ;;
8727
8728 hpux*)
8729 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8730 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8731 # sets the default TLS model and affects inlining.
8732 case $host_cpu in
8733 hppa*64*)
8734 # +Z the default
8735 ;;
8736 *)
8737 lt_prog_compiler_pic='-fPIC'
8738 ;;
8739 esac
8740 ;;
8741
8742 interix[3-9]*)
8743 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8744 # Instead, we relocate shared libraries at runtime.
8745 ;;
8746
8747 msdosdjgpp*)
8748 # Just because we use GCC doesn't mean we suddenly get shared libraries
8749 # on systems that don't support them.
8750 lt_prog_compiler_can_build_shared=no
8751 enable_shared=no
8752 ;;
8753
8754 *nto* | *qnx*)
8755 # QNX uses GNU C++, but need to define -shared option too, otherwise
8756 # it will coredump.
8757 lt_prog_compiler_pic='-fPIC -shared'
8758 ;;
8759
8760 sysv4*MP*)
8761 if test -d /usr/nec; then
8762 lt_prog_compiler_pic=-Kconform_pic
8763 fi
8764 ;;
8765
8766 *)
8767 lt_prog_compiler_pic='-fPIC'
8768 ;;
8769 esac
8770
8771 case $cc_basename in
8772 nvcc*) # Cuda Compiler Driver 2.2
8773 lt_prog_compiler_wl='-Xlinker '
8774 if test -n "$lt_prog_compiler_pic"; then
8775 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8776 fi
8777 ;;
8778 esac
8779 else
8780 # PORTME Check for flag to pass linker flags through the system compiler.
8781 case $host_os in
8782 aix*)
8783 lt_prog_compiler_wl='-Wl,'
8784 if test "$host_cpu" = ia64; then
8785 # AIX 5 now supports IA64 processor
8786 lt_prog_compiler_static='-Bstatic'
8787 else
8788 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8789 fi
8790 ;;
8791
8792 mingw* | cygwin* | pw32* | os2* | cegcc*)
8793 # This hack is so that the source file can tell whether it is being
8794 # built for inclusion in a dll (and should export symbols for example).
8795 lt_prog_compiler_pic='-DDLL_EXPORT'
8796 ;;
8797
8798 hpux9* | hpux10* | hpux11*)
8799 lt_prog_compiler_wl='-Wl,'
8800 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8801 # not for PA HP-UX.
8802 case $host_cpu in
8803 hppa*64*|ia64*)
8804 # +Z the default
8805 ;;
8806 *)
8807 lt_prog_compiler_pic='+Z'
8808 ;;
8809 esac
8810 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8811 lt_prog_compiler_static='${wl}-a ${wl}archive'
8812 ;;
8813
8814 irix5* | irix6* | nonstopux*)
8815 lt_prog_compiler_wl='-Wl,'
8816 # PIC (with -KPIC) is the default.
8817 lt_prog_compiler_static='-non_shared'
8818 ;;
8819
8820 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8821 case $cc_basename in
8822 # old Intel for x86_64 which still supported -KPIC.
8823 ecc*)
8824 lt_prog_compiler_wl='-Wl,'
8825 lt_prog_compiler_pic='-KPIC'
8826 lt_prog_compiler_static='-static'
8827 ;;
8828 # icc used to be incompatible with GCC.
8829 # ICC 10 doesn't accept -KPIC any more.
8830 icc* | ifort*)
8831 lt_prog_compiler_wl='-Wl,'
8832 lt_prog_compiler_pic='-fPIC'
8833 lt_prog_compiler_static='-static'
8834 ;;
8835 # Lahey Fortran 8.1.
8836 lf95*)
8837 lt_prog_compiler_wl='-Wl,'
8838 lt_prog_compiler_pic='--shared'
8839 lt_prog_compiler_static='--static'
8840 ;;
8841 nagfor*)
8842 # NAG Fortran compiler
8843 lt_prog_compiler_wl='-Wl,-Wl,,'
8844 lt_prog_compiler_pic='-PIC'
8845 lt_prog_compiler_static='-Bstatic'
8846 ;;
8847 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8848 # Portland Group compilers (*not* the Pentium gcc compiler,
8849 # which looks to be a dead project)
8850 lt_prog_compiler_wl='-Wl,'
8851 lt_prog_compiler_pic='-fpic'
8852 lt_prog_compiler_static='-Bstatic'
8853 ;;
8854 ccc*)
8855 lt_prog_compiler_wl='-Wl,'
8856 # All Alpha code is PIC.
8857 lt_prog_compiler_static='-non_shared'
8858 ;;
8859 xl* | bgxl* | bgf* | mpixl*)
8860 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8861 lt_prog_compiler_wl='-Wl,'
8862 lt_prog_compiler_pic='-qpic'
8863 lt_prog_compiler_static='-qstaticlink'
8864 ;;
8865 *)
8866 case `$CC -V 2>&1 | sed 5q` in
8867 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8868 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8869 lt_prog_compiler_pic='-KPIC'
8870 lt_prog_compiler_static='-Bstatic'
8871 lt_prog_compiler_wl=''
8872 ;;
8873 *Sun\ F* | *Sun*Fortran*)
8874 lt_prog_compiler_pic='-KPIC'
8875 lt_prog_compiler_static='-Bstatic'
8876 lt_prog_compiler_wl='-Qoption ld '
8877 ;;
8878 *Sun\ C*)
8879 # Sun C 5.9
8880 lt_prog_compiler_pic='-KPIC'
8881 lt_prog_compiler_static='-Bstatic'
8882 lt_prog_compiler_wl='-Wl,'
8883 ;;
8884 *Intel*\ [CF]*Compiler*)
8885 lt_prog_compiler_wl='-Wl,'
8886 lt_prog_compiler_pic='-fPIC'
8887 lt_prog_compiler_static='-static'
8888 ;;
8889 *Portland\ Group*)
8890 lt_prog_compiler_wl='-Wl,'
8891 lt_prog_compiler_pic='-fpic'
8892 lt_prog_compiler_static='-Bstatic'
8893 ;;
8894 esac
8895 ;;
8896 esac
8897 ;;
8898
8899 newsos6)
8900 lt_prog_compiler_pic='-KPIC'
8901 lt_prog_compiler_static='-Bstatic'
8902 ;;
8903
8904 *nto* | *qnx*)
8905 # QNX uses GNU C++, but need to define -shared option too, otherwise
8906 # it will coredump.
8907 lt_prog_compiler_pic='-fPIC -shared'
8908 ;;
8909
8910 osf3* | osf4* | osf5*)
8911 lt_prog_compiler_wl='-Wl,'
8912 # All OSF/1 code is PIC.
8913 lt_prog_compiler_static='-non_shared'
8914 ;;
8915
8916 rdos*)
8917 lt_prog_compiler_static='-non_shared'
8918 ;;
8919
8920 solaris*)
8921 lt_prog_compiler_pic='-KPIC'
8922 lt_prog_compiler_static='-Bstatic'
8923 case $cc_basename in
8924 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8925 lt_prog_compiler_wl='-Qoption ld ';;
8926 *)
8927 lt_prog_compiler_wl='-Wl,';;
8928 esac
8929 ;;
8930
8931 sunos4*)
8932 lt_prog_compiler_wl='-Qoption ld '
8933 lt_prog_compiler_pic='-PIC'
8934 lt_prog_compiler_static='-Bstatic'
8935 ;;
8936
8937 sysv4 | sysv4.2uw2* | sysv4.3*)
8938 lt_prog_compiler_wl='-Wl,'
8939 lt_prog_compiler_pic='-KPIC'
8940 lt_prog_compiler_static='-Bstatic'
8941 ;;
8942
8943 sysv4*MP*)
8944 if test -d /usr/nec ;then
8945 lt_prog_compiler_pic='-Kconform_pic'
8946 lt_prog_compiler_static='-Bstatic'
8947 fi
8948 ;;
8949
8950 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8951 lt_prog_compiler_wl='-Wl,'
8952 lt_prog_compiler_pic='-KPIC'
8953 lt_prog_compiler_static='-Bstatic'
8954 ;;
8955
8956 unicos*)
8957 lt_prog_compiler_wl='-Wl,'
8958 lt_prog_compiler_can_build_shared=no
8959 ;;
8960
8961 uts4*)
8962 lt_prog_compiler_pic='-pic'
8963 lt_prog_compiler_static='-Bstatic'
8964 ;;
8965
8966 *)
8967 lt_prog_compiler_can_build_shared=no
8968 ;;
8969 esac
8970 fi
8971
8972case $host_os in
8973 # For platforms which do not support PIC, -DPIC is meaningless:
8974 *djgpp*)
8975 lt_prog_compiler_pic=
8976 ;;
8977 *)
8978 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8979 ;;
8980esac
8981
8982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8983$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8984if ${lt_cv_prog_compiler_pic+:} false; then :
8985 $as_echo_n "(cached) " >&6
8986else
8987 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8988fi
8989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8990$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8991lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8992
8993#
8994# Check to make sure the PIC flag actually works.
8995#
8996if test -n "$lt_prog_compiler_pic"; then
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8998$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8999if ${lt_cv_prog_compiler_pic_works+:} false; then :
9000 $as_echo_n "(cached) " >&6
9001else
9002 lt_cv_prog_compiler_pic_works=no
9003 ac_outfile=conftest.$ac_objext
9004 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9005 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9006 # Insert the option either (1) after the last *FLAGS variable, or
9007 # (2) before a word containing "conftest.", or (3) at the end.
9008 # Note that $ac_compile itself does not contain backslashes and begins
9009 # with a dollar sign (not a hyphen), so the echo should work correctly.
9010 # The option is referenced via a variable to avoid confusing sed.
9011 lt_compile=`echo "$ac_compile" | $SED \
9012 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9014 -e 's:$: $lt_compiler_flag:'`
9015 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9016 (eval "$lt_compile" 2>conftest.err)
9017 ac_status=$?
9018 cat conftest.err >&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 if (exit $ac_status) && test -s "$ac_outfile"; then
9021 # The compiler can only warn and ignore the option if not recognized
9022 # So say no if there are warnings other than the usual output.
9023 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9024 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9025 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9026 lt_cv_prog_compiler_pic_works=yes
9027 fi
9028 fi
9029 $RM conftest*
9030
9031fi
9032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9033$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9034
9035if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9036 case $lt_prog_compiler_pic in
9037 "" | " "*) ;;
9038 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9039 esac
9040else
9041 lt_prog_compiler_pic=
9042 lt_prog_compiler_can_build_shared=no
9043fi
9044
9045fi
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057#
9058# Check to make sure the static flag actually works.
9059#
9060wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9062$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9063if ${lt_cv_prog_compiler_static_works+:} false; then :
9064 $as_echo_n "(cached) " >&6
9065else
9066 lt_cv_prog_compiler_static_works=no
9067 save_LDFLAGS="$LDFLAGS"
9068 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9069 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9070 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9071 # The linker can only warn and ignore the option if not recognized
9072 # So say no if there are warnings
9073 if test -s conftest.err; then
9074 # Append any errors to the config.log.
9075 cat conftest.err 1>&5
9076 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9077 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9078 if diff conftest.exp conftest.er2 >/dev/null; then
9079 lt_cv_prog_compiler_static_works=yes
9080 fi
9081 else
9082 lt_cv_prog_compiler_static_works=yes
9083 fi
9084 fi
9085 $RM -r conftest*
9086 LDFLAGS="$save_LDFLAGS"
9087
9088fi
9089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9090$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9091
9092if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9093 :
9094else
9095 lt_prog_compiler_static=
9096fi
9097
9098
9099
9100
9101
9102
9103
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9105$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9106if ${lt_cv_prog_compiler_c_o+:} false; then :
9107 $as_echo_n "(cached) " >&6
9108else
9109 lt_cv_prog_compiler_c_o=no
9110 $RM -r conftest 2>/dev/null
9111 mkdir conftest
9112 cd conftest
9113 mkdir out
9114 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9115
9116 lt_compiler_flag="-o out/conftest2.$ac_objext"
9117 # Insert the option either (1) after the last *FLAGS variable, or
9118 # (2) before a word containing "conftest.", or (3) at the end.
9119 # Note that $ac_compile itself does not contain backslashes and begins
9120 # with a dollar sign (not a hyphen), so the echo should work correctly.
9121 lt_compile=`echo "$ac_compile" | $SED \
9122 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9123 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9124 -e 's:$: $lt_compiler_flag:'`
9125 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9126 (eval "$lt_compile" 2>out/conftest.err)
9127 ac_status=$?
9128 cat out/conftest.err >&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9131 then
9132 # The compiler can only warn and ignore the option if not recognized
9133 # So say no if there are warnings
9134 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9135 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9136 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9137 lt_cv_prog_compiler_c_o=yes
9138 fi
9139 fi
9140 chmod u+w . 2>&5
9141 $RM conftest*
9142 # SGI C++ compiler will create directory out/ii_files/ for
9143 # template instantiation
9144 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9145 $RM out/* && rmdir out
9146 cd ..
9147 $RM -r conftest
9148 $RM conftest*
9149
9150fi
9151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9152$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9153
9154
9155
9156
9157
9158
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9160$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9161if ${lt_cv_prog_compiler_c_o+:} false; then :
9162 $as_echo_n "(cached) " >&6
9163else
9164 lt_cv_prog_compiler_c_o=no
9165 $RM -r conftest 2>/dev/null
9166 mkdir conftest
9167 cd conftest
9168 mkdir out
9169 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9170
9171 lt_compiler_flag="-o out/conftest2.$ac_objext"
9172 # Insert the option either (1) after the last *FLAGS variable, or
9173 # (2) before a word containing "conftest.", or (3) at the end.
9174 # Note that $ac_compile itself does not contain backslashes and begins
9175 # with a dollar sign (not a hyphen), so the echo should work correctly.
9176 lt_compile=`echo "$ac_compile" | $SED \
9177 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9178 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9179 -e 's:$: $lt_compiler_flag:'`
9180 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9181 (eval "$lt_compile" 2>out/conftest.err)
9182 ac_status=$?
9183 cat out/conftest.err >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9186 then
9187 # The compiler can only warn and ignore the option if not recognized
9188 # So say no if there are warnings
9189 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9190 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9191 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9192 lt_cv_prog_compiler_c_o=yes
9193 fi
9194 fi
9195 chmod u+w . 2>&5
9196 $RM conftest*
9197 # SGI C++ compiler will create directory out/ii_files/ for
9198 # template instantiation
9199 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9200 $RM out/* && rmdir out
9201 cd ..
9202 $RM -r conftest
9203 $RM conftest*
9204
9205fi
9206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9207$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9208
9209
9210
9211
9212hard_links="nottested"
9213if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9214 # do not overwrite the value of need_locks provided by the user
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9216$as_echo_n "checking if we can lock with hard links... " >&6; }
9217 hard_links=yes
9218 $RM conftest*
9219 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9220 touch conftest.a
9221 ln conftest.a conftest.b 2>&5 || hard_links=no
9222 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9224$as_echo "$hard_links" >&6; }
9225 if test "$hard_links" = no; then
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9227$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9228 need_locks=warn
9229 fi
9230else
9231 need_locks=no
9232fi
9233
9234
9235
9236
9237
9238
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9240$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9241
9242 runpath_var=
9243 allow_undefined_flag=
9244 always_export_symbols=no
9245 archive_cmds=
9246 archive_expsym_cmds=
9247 compiler_needs_object=no
9248 enable_shared_with_static_runtimes=no
9249 export_dynamic_flag_spec=
9250 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9251 hardcode_automatic=no
9252 hardcode_direct=no
9253 hardcode_direct_absolute=no
9254 hardcode_libdir_flag_spec=
9255 hardcode_libdir_separator=
9256 hardcode_minus_L=no
9257 hardcode_shlibpath_var=unsupported
9258 inherit_rpath=no
9259 link_all_deplibs=unknown
9260 module_cmds=
9261 module_expsym_cmds=
9262 old_archive_from_new_cmds=
9263 old_archive_from_expsyms_cmds=
9264 thread_safe_flag_spec=
9265 whole_archive_flag_spec=
9266 # include_expsyms should be a list of space-separated symbols to be *always*
9267 # included in the symbol list
9268 include_expsyms=
9269 # exclude_expsyms can be an extended regexp of symbols to exclude
9270 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9271 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9272 # as well as any symbol that contains `d'.
9273 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9274 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9275 # platforms (ab)use it in PIC code, but their linkers get confused if
9276 # the symbol is explicitly referenced. Since portable code cannot
9277 # rely on this symbol name, it's probably fine to never include it in
9278 # preloaded symbol tables.
9279 # Exclude shared library initialization/finalization symbols.
9280 extract_expsyms_cmds=
9281
9282 case $host_os in
9283 cygwin* | mingw* | pw32* | cegcc*)
9284 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9285 # When not using gcc, we currently assume that we are using
9286 # Microsoft Visual C++.
9287 if test "$GCC" != yes; then
9288 with_gnu_ld=no
9289 fi
9290 ;;
9291 interix*)
9292 # we just hope/assume this is gcc and not c89 (= MSVC++)
9293 with_gnu_ld=yes
9294 ;;
9295 openbsd*)
9296 with_gnu_ld=no
9297 ;;
9298 esac
9299
9300 ld_shlibs=yes
9301
9302 # On some targets, GNU ld is compatible enough with the native linker
9303 # that we're better off using the native interface for both.
9304 lt_use_gnu_ld_interface=no
9305 if test "$with_gnu_ld" = yes; then
9306 case $host_os in
9307 aix*)
9308 # The AIX port of GNU ld has always aspired to compatibility
9309 # with the native linker. However, as the warning in the GNU ld
9310 # block says, versions before 2.19.5* couldn't really create working
9311 # shared libraries, regardless of the interface used.
9312 case `$LD -v 2>&1` in
9313 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9314 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9315 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9316 *)
9317 lt_use_gnu_ld_interface=yes
9318 ;;
9319 esac
9320 ;;
9321 *)
9322 lt_use_gnu_ld_interface=yes
9323 ;;
9324 esac
9325 fi
9326
9327 if test "$lt_use_gnu_ld_interface" = yes; then
9328 # If archive_cmds runs LD, not CC, wlarc should be empty
9329 wlarc='${wl}'
9330
9331 # Set some defaults for GNU ld with shared library support. These
9332 # are reset later if shared libraries are not supported. Putting them
9333 # here allows them to be overridden if necessary.
9334 runpath_var=LD_RUN_PATH
9335 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9336 export_dynamic_flag_spec='${wl}--export-dynamic'
9337 # ancient GNU ld didn't support --whole-archive et. al.
9338 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9339 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9340 else
9341 whole_archive_flag_spec=
9342 fi
9343 supports_anon_versioning=no
9344 case `$LD -v 2>&1` in
9345 *GNU\ gold*) supports_anon_versioning=yes ;;
9346 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9347 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9348 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9349 *\ 2.11.*) ;; # other 2.11 versions
9350 *) supports_anon_versioning=yes ;;
9351 esac
9352
9353 # See if GNU ld supports shared libraries.
9354 case $host_os in
9355 aix[3-9]*)
9356 # On AIX/PPC, the GNU linker is very broken
9357 if test "$host_cpu" != ia64; then
9358 ld_shlibs=no
9359 cat <<_LT_EOF 1>&2
9360
9361*** Warning: the GNU linker, at least up to release 2.19, is reported
9362*** to be unable to reliably create shared libraries on AIX.
9363*** Therefore, libtool is disabling shared libraries support. If you
9364*** really care for shared libraries, you may want to install binutils
9365*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9366*** You will then need to restart the configuration process.
9367
9368_LT_EOF
9369 fi
9370 ;;
9371
9372 amigaos*)
9373 case $host_cpu in
9374 powerpc)
9375 # see comment about AmigaOS4 .so support
9376 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9377 archive_expsym_cmds=''
9378 ;;
9379 m68k)
9380 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)'
9381 hardcode_libdir_flag_spec='-L$libdir'
9382 hardcode_minus_L=yes
9383 ;;
9384 esac
9385 ;;
9386
9387 beos*)
9388 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9389 allow_undefined_flag=unsupported
9390 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9391 # support --undefined. This deserves some investigation. FIXME
9392 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9393 else
9394 ld_shlibs=no
9395 fi
9396 ;;
9397
9398 cygwin* | mingw* | pw32* | cegcc*)
9399 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9400 # as there is no search path for DLLs.
9401 hardcode_libdir_flag_spec='-L$libdir'
9402 export_dynamic_flag_spec='${wl}--export-all-symbols'
9403 allow_undefined_flag=unsupported
9404 always_export_symbols=no
9405 enable_shared_with_static_runtimes=yes
9406 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'
9407 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9408
9409 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9410 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9411 # If the export-symbols file already is a .def file (1st line
9412 # is EXPORTS), use it as is; otherwise, prepend...
9413 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9414 cp $export_symbols $output_objdir/$soname.def;
9415 else
9416 echo EXPORTS > $output_objdir/$soname.def;
9417 cat $export_symbols >> $output_objdir/$soname.def;
9418 fi~
9419 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9420 else
9421 ld_shlibs=no
9422 fi
9423 ;;
9424
9425 haiku*)
9426 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9427 link_all_deplibs=yes
9428 ;;
9429
9430 interix[3-9]*)
9431 hardcode_direct=no
9432 hardcode_shlibpath_var=no
9433 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9434 export_dynamic_flag_spec='${wl}-E'
9435 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9436 # Instead, shared libraries are loaded at an image base (0x10000000 by
9437 # default) and relocated if they conflict, which is a slow very memory
9438 # consuming and fragmenting process. To avoid this, we pick a random,
9439 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9440 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9441 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9442 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'
9443 ;;
9444
9445 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9446 tmp_diet=no
9447 if test "$host_os" = linux-dietlibc; then
9448 case $cc_basename in
9449 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9450 esac
9451 fi
9452 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9453 && test "$tmp_diet" = no
9454 then
9455 tmp_addflag=' $pic_flag'
9456 tmp_sharedflag='-shared'
9457 case $cc_basename,$host_cpu in
9458 pgcc*) # Portland Group C compiler
9459 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'
9460 tmp_addflag=' $pic_flag'
9461 ;;
9462 pgf77* | pgf90* | pgf95* | pgfortran*)
9463 # Portland Group f77 and f90 compilers
9464 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'
9465 tmp_addflag=' $pic_flag -Mnomain' ;;
9466 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9467 tmp_addflag=' -i_dynamic' ;;
9468 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9469 tmp_addflag=' -i_dynamic -nofor_main' ;;
9470 ifc* | ifort*) # Intel Fortran compiler
9471 tmp_addflag=' -nofor_main' ;;
9472 lf95*) # Lahey Fortran 8.1
9473 whole_archive_flag_spec=
9474 tmp_sharedflag='--shared' ;;
9475 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9476 tmp_sharedflag='-qmkshrobj'
9477 tmp_addflag= ;;
9478 nvcc*) # Cuda Compiler Driver 2.2
9479 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'
9480 compiler_needs_object=yes
9481 ;;
9482 esac
9483 case `$CC -V 2>&1 | sed 5q` in
9484 *Sun\ C*) # Sun C 5.9
9485 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'
9486 compiler_needs_object=yes
9487 tmp_sharedflag='-G' ;;
9488 *Sun\ F*) # Sun Fortran 8.3
9489 tmp_sharedflag='-G' ;;
9490 esac
9491 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9492
9493 if test "x$supports_anon_versioning" = xyes; then
9494 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9495 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9496 echo "local: *; };" >> $output_objdir/$libname.ver~
9497 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9498 fi
9499
9500 case $cc_basename in
9501 xlf* | bgf* | bgxlf* | mpixlf*)
9502 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9503 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9504 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9505 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9506 if test "x$supports_anon_versioning" = xyes; then
9507 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9508 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9509 echo "local: *; };" >> $output_objdir/$libname.ver~
9510 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9511 fi
9512 ;;
9513 esac
9514 else
9515 ld_shlibs=no
9516 fi
9517 ;;
9518
9519 netbsd*)
9520 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9521 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9522 wlarc=
9523 else
9524 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9525 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9526 fi
9527 ;;
9528
9529 solaris*)
9530 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9531 ld_shlibs=no
9532 cat <<_LT_EOF 1>&2
9533
9534*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9535*** create shared libraries on Solaris systems. Therefore, libtool
9536*** is disabling shared libraries support. We urge you to upgrade GNU
9537*** binutils to release 2.9.1 or newer. Another option is to modify
9538*** your PATH or compiler configuration so that the native linker is
9539*** used, and then restart.
9540
9541_LT_EOF
9542 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9543 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9544 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9545 else
9546 ld_shlibs=no
9547 fi
9548 ;;
9549
9550 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9551 case `$LD -v 2>&1` in
9552 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9553 ld_shlibs=no
9554 cat <<_LT_EOF 1>&2
9555
9556*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9557*** reliably create shared libraries on SCO systems. Therefore, libtool
9558*** is disabling shared libraries support. We urge you to upgrade GNU
9559*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9560*** your PATH or compiler configuration so that the native linker is
9561*** used, and then restart.
9562
9563_LT_EOF
9564 ;;
9565 *)
9566 # For security reasons, it is highly recommended that you always
9567 # use absolute paths for naming shared libraries, and exclude the
9568 # DT_RUNPATH tag from executables and libraries. But doing so
9569 # requires that you compile everything twice, which is a pain.
9570 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9571 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9572 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9573 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9574 else
9575 ld_shlibs=no
9576 fi
9577 ;;
9578 esac
9579 ;;
9580
9581 sunos4*)
9582 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9583 wlarc=
9584 hardcode_direct=yes
9585 hardcode_shlibpath_var=no
9586 ;;
9587
9588 *)
9589 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9590 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9591 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9592 else
9593 ld_shlibs=no
9594 fi
9595 ;;
9596 esac
9597
9598 if test "$ld_shlibs" = no; then
9599 runpath_var=
9600 hardcode_libdir_flag_spec=
9601 export_dynamic_flag_spec=
9602 whole_archive_flag_spec=
9603 fi
9604 else
9605 # PORTME fill in a description of your system's linker (not GNU ld)
9606 case $host_os in
9607 aix3*)
9608 allow_undefined_flag=unsupported
9609 always_export_symbols=yes
9610 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'
9611 # Note: this linker hardcodes the directories in LIBPATH if there
9612 # are no directories specified by -L.
9613 hardcode_minus_L=yes
9614 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9615 # Neither direct hardcoding nor static linking is supported with a
9616 # broken collect2.
9617 hardcode_direct=unsupported
9618 fi
9619 ;;
9620
9621 aix[4-9]*)
9622 if test "$host_cpu" = ia64; then
9623 # On IA64, the linker does run time linking by default, so we don't
9624 # have to do anything special.
9625 aix_use_runtimelinking=no
9626 exp_sym_flag='-Bexport'
9627 no_entry_flag=""
9628 else
9629 # If we're using GNU nm, then we don't want the "-C" option.
9630 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9631 # Also, AIX nm treats weak defined symbols like other global
9632 # defined symbols, whereas GNU nm marks them as "W".
9633 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9634 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'
9635 else
9636 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'
9637 fi
9638 aix_use_runtimelinking=no
9639
9640 # Test if we are trying to use run time linking or normal
9641 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9642 # need to do runtime linking.
9643 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9644 for ld_flag in $LDFLAGS; do
9645 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9646 aix_use_runtimelinking=yes
9647 break
9648 fi
9649 done
9650 ;;
9651 esac
9652
9653 exp_sym_flag='-bexport'
9654 no_entry_flag='-bnoentry'
9655 fi
9656
9657 # When large executables or shared objects are built, AIX ld can
9658 # have problems creating the table of contents. If linking a library
9659 # or program results in "error TOC overflow" add -mminimal-toc to
9660 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9661 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9662
9663 archive_cmds=''
9664 hardcode_direct=yes
9665 hardcode_direct_absolute=yes
9666 hardcode_libdir_separator=':'
9667 link_all_deplibs=yes
9668 file_list_spec='${wl}-f,'
9669
9670 if test "$GCC" = yes; then
9671 case $host_os in aix4.[012]|aix4.[012].*)
9672 # We only want to do this on AIX 4.2 and lower, the check
9673 # below for broken collect2 doesn't work under 4.3+
9674 collect2name=`${CC} -print-prog-name=collect2`
9675 if test -f "$collect2name" &&
9676 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9677 then
9678 # We have reworked collect2
9679 :
9680 else
9681 # We have old collect2
9682 hardcode_direct=unsupported
9683 # It fails to find uninstalled libraries when the uninstalled
9684 # path is not listed in the libpath. Setting hardcode_minus_L
9685 # to unsupported forces relinking
9686 hardcode_minus_L=yes
9687 hardcode_libdir_flag_spec='-L$libdir'
9688 hardcode_libdir_separator=
9689 fi
9690 ;;
9691 esac
9692 shared_flag='-shared'
9693 if test "$aix_use_runtimelinking" = yes; then
9694 shared_flag="$shared_flag "'${wl}-G'
9695 fi
9696 else
9697 # not using gcc
9698 if test "$host_cpu" = ia64; then
9699 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9700 # chokes on -Wl,-G. The following line is correct:
9701 shared_flag='-G'
9702 else
9703 if test "$aix_use_runtimelinking" = yes; then
9704 shared_flag='${wl}-G'
9705 else
9706 shared_flag='${wl}-bM:SRE'
9707 fi
9708 fi
9709 fi
9710
9711 export_dynamic_flag_spec='${wl}-bexpall'
9712 # It seems that -bexpall does not export symbols beginning with
9713 # underscore (_), so it is better to generate a list of symbols to export.
9714 always_export_symbols=yes
9715 if test "$aix_use_runtimelinking" = yes; then
9716 # Warning - without using the other runtime loading flags (-brtl),
9717 # -berok will link without error, but may produce a broken library.
9718 allow_undefined_flag='-berok'
9719 # Determine the default libpath from the value encoded in an
9720 # empty executable.
9721 if test "${lt_cv_aix_libpath+set}" = set; then
9722 aix_libpath=$lt_cv_aix_libpath
9723else
9724 if ${lt_cv_aix_libpath_+:} false; then :
9725 $as_echo_n "(cached) " >&6
9726else
9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728/* end confdefs.h. */
9729
9730int
9731main ()
9732{
9733
9734 ;
9735 return 0;
9736}
9737_ACEOF
9738if ac_fn_c_try_link "$LINENO"; then :
9739
9740 lt_aix_libpath_sed='
9741 /Import File Strings/,/^$/ {
9742 /^0/ {
9743 s/^0 *\([^ ]*\) *$/\1/
9744 p
9745 }
9746 }'
9747 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9748 # Check for a 64-bit object if we didn't find anything.
9749 if test -z "$lt_cv_aix_libpath_"; then
9750 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9751 fi
9752fi
9753rm -f core conftest.err conftest.$ac_objext \
9754 conftest$ac_exeext conftest.$ac_ext
9755 if test -z "$lt_cv_aix_libpath_"; then
9756 lt_cv_aix_libpath_="/usr/lib:/lib"
9757 fi
9758
9759fi
9760
9761 aix_libpath=$lt_cv_aix_libpath_
9762fi
9763
9764 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9765 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"
9766 else
9767 if test "$host_cpu" = ia64; then
9768 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9769 allow_undefined_flag="-z nodefs"
9770 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"
9771 else
9772 # Determine the default libpath from the value encoded in an
9773 # empty executable.
9774 if test "${lt_cv_aix_libpath+set}" = set; then
9775 aix_libpath=$lt_cv_aix_libpath
9776else
9777 if ${lt_cv_aix_libpath_+:} false; then :
9778 $as_echo_n "(cached) " >&6
9779else
9780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9781/* end confdefs.h. */
9782
9783int
9784main ()
9785{
9786
9787 ;
9788 return 0;
9789}
9790_ACEOF
9791if ac_fn_c_try_link "$LINENO"; then :
9792
9793 lt_aix_libpath_sed='
9794 /Import File Strings/,/^$/ {
9795 /^0/ {
9796 s/^0 *\([^ ]*\) *$/\1/
9797 p
9798 }
9799 }'
9800 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9801 # Check for a 64-bit object if we didn't find anything.
9802 if test -z "$lt_cv_aix_libpath_"; then
9803 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9804 fi
9805fi
9806rm -f core conftest.err conftest.$ac_objext \
9807 conftest$ac_exeext conftest.$ac_ext
9808 if test -z "$lt_cv_aix_libpath_"; then
9809 lt_cv_aix_libpath_="/usr/lib:/lib"
9810 fi
9811
9812fi
9813
9814 aix_libpath=$lt_cv_aix_libpath_
9815fi
9816
9817 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9818 # Warning - without using the other run time loading flags,
9819 # -berok will link without error, but may produce a broken library.
9820 no_undefined_flag=' ${wl}-bernotok'
9821 allow_undefined_flag=' ${wl}-berok'
9822 if test "$with_gnu_ld" = yes; then
9823 # We only use this code for GNU lds that support --whole-archive.
9824 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9825 else
9826 # Exported symbols can be pulled into shared objects from archives
9827 whole_archive_flag_spec='$convenience'
9828 fi
9829 archive_cmds_need_lc=yes
9830 # This is similar to how AIX traditionally builds its shared libraries.
9831 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'
9832 fi
9833 fi
9834 ;;
9835
9836 amigaos*)
9837 case $host_cpu in
9838 powerpc)
9839 # see comment about AmigaOS4 .so support
9840 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9841 archive_expsym_cmds=''
9842 ;;
9843 m68k)
9844 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)'
9845 hardcode_libdir_flag_spec='-L$libdir'
9846 hardcode_minus_L=yes
9847 ;;
9848 esac
9849 ;;
9850
9851 bsdi[45]*)
9852 export_dynamic_flag_spec=-rdynamic
9853 ;;
9854
9855 cygwin* | mingw* | pw32* | cegcc*)
9856 # When not using gcc, we currently assume that we are using
9857 # Microsoft Visual C++.
9858 # hardcode_libdir_flag_spec is actually meaningless, as there is
9859 # no search path for DLLs.
9860 case $cc_basename in
9861 cl*)
9862 # Native MSVC
9863 hardcode_libdir_flag_spec=' '
9864 allow_undefined_flag=unsupported
9865 always_export_symbols=yes
9866 file_list_spec='@'
9867 # Tell ltmain to make .lib files, not .a files.
9868 libext=lib
9869 # Tell ltmain to make .dll files, not .so files.
9870 shrext_cmds=".dll"
9871 # FIXME: Setting linknames here is a bad hack.
9872 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9873 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9874 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9875 else
9876 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9877 fi~
9878 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9879 linknames='
9880 # The linker will not automatically build a static lib if we build a DLL.
9881 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9882 enable_shared_with_static_runtimes=yes
9883 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9884 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9885 # Don't use ranlib
9886 old_postinstall_cmds='chmod 644 $oldlib'
9887 postlink_cmds='lt_outputfile="@OUTPUT@"~
9888 lt_tool_outputfile="@TOOL_OUTPUT@"~
9889 case $lt_outputfile in
9890 *.exe|*.EXE) ;;
9891 *)
9892 lt_outputfile="$lt_outputfile.exe"
9893 lt_tool_outputfile="$lt_tool_outputfile.exe"
9894 ;;
9895 esac~
9896 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9897 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9898 $RM "$lt_outputfile.manifest";
9899 fi'
9900 ;;
9901 *)
9902 # Assume MSVC wrapper
9903 hardcode_libdir_flag_spec=' '
9904 allow_undefined_flag=unsupported
9905 # Tell ltmain to make .lib files, not .a files.
9906 libext=lib
9907 # Tell ltmain to make .dll files, not .so files.
9908 shrext_cmds=".dll"
9909 # FIXME: Setting linknames here is a bad hack.
9910 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9911 # The linker will automatically build a .lib file if we build a DLL.
9912 old_archive_from_new_cmds='true'
9913 # FIXME: Should let the user specify the lib program.
9914 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9915 enable_shared_with_static_runtimes=yes
9916 ;;
9917 esac
9918 ;;
9919
9920 darwin* | rhapsody*)
9921
9922
9923 archive_cmds_need_lc=no
9924 hardcode_direct=no
9925 hardcode_automatic=yes
9926 hardcode_shlibpath_var=unsupported
9927 if test "$lt_cv_ld_force_load" = "yes"; then
9928 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\"`'
9929
9930 else
9931 whole_archive_flag_spec=''
9932 fi
9933 link_all_deplibs=yes
9934 allow_undefined_flag="$_lt_dar_allow_undefined"
9935 case $cc_basename in
9936 ifort*) _lt_dar_can_shared=yes ;;
9937 *) _lt_dar_can_shared=$GCC ;;
9938 esac
9939 if test "$_lt_dar_can_shared" = "yes"; then
9940 output_verbose_link_cmd=func_echo_all
9941 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9942 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9943 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}"
9944 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}"
9945
9946 else
9947 ld_shlibs=no
9948 fi
9949
9950 ;;
9951
9952 dgux*)
9953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9954 hardcode_libdir_flag_spec='-L$libdir'
9955 hardcode_shlibpath_var=no
9956 ;;
9957
9958 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9959 # support. Future versions do this automatically, but an explicit c++rt0.o
9960 # does not break anything, and helps significantly (at the cost of a little
9961 # extra space).
9962 freebsd2.2*)
9963 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9964 hardcode_libdir_flag_spec='-R$libdir'
9965 hardcode_direct=yes
9966 hardcode_shlibpath_var=no
9967 ;;
9968
9969 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9970 freebsd2.*)
9971 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9972 hardcode_direct=yes
9973 hardcode_minus_L=yes
9974 hardcode_shlibpath_var=no
9975 ;;
9976
9977 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9978 freebsd* | dragonfly*)
9979 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9980 hardcode_libdir_flag_spec='-R$libdir'
9981 hardcode_direct=yes
9982 hardcode_shlibpath_var=no
9983 ;;
9984
9985 hpux9*)
9986 if test "$GCC" = yes; then
9987 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'
9988 else
9989 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'
9990 fi
9991 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9992 hardcode_libdir_separator=:
9993 hardcode_direct=yes
9994
9995 # hardcode_minus_L: Not really in the search PATH,
9996 # but as the default location of the library.
9997 hardcode_minus_L=yes
9998 export_dynamic_flag_spec='${wl}-E'
9999 ;;
10000
10001 hpux10*)
10002 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10003 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10004 else
10005 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10006 fi
10007 if test "$with_gnu_ld" = no; then
10008 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10009 hardcode_libdir_separator=:
10010 hardcode_direct=yes
10011 hardcode_direct_absolute=yes
10012 export_dynamic_flag_spec='${wl}-E'
10013 # hardcode_minus_L: Not really in the search PATH,
10014 # but as the default location of the library.
10015 hardcode_minus_L=yes
10016 fi
10017 ;;
10018
10019 hpux11*)
10020 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10021 case $host_cpu in
10022 hppa*64*)
10023 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10024 ;;
10025 ia64*)
10026 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10027 ;;
10028 *)
10029 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10030 ;;
10031 esac
10032 else
10033 case $host_cpu in
10034 hppa*64*)
10035 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10036 ;;
10037 ia64*)
10038 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10039 ;;
10040 *)
10041
10042 # Older versions of the 11.00 compiler do not understand -b yet
10043 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10045$as_echo_n "checking if $CC understands -b... " >&6; }
10046if ${lt_cv_prog_compiler__b+:} false; then :
10047 $as_echo_n "(cached) " >&6
10048else
10049 lt_cv_prog_compiler__b=no
10050 save_LDFLAGS="$LDFLAGS"
10051 LDFLAGS="$LDFLAGS -b"
10052 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10053 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10054 # The linker can only warn and ignore the option if not recognized
10055 # So say no if there are warnings
10056 if test -s conftest.err; then
10057 # Append any errors to the config.log.
10058 cat conftest.err 1>&5
10059 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10060 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10061 if diff conftest.exp conftest.er2 >/dev/null; then
10062 lt_cv_prog_compiler__b=yes
10063 fi
10064 else
10065 lt_cv_prog_compiler__b=yes
10066 fi
10067 fi
10068 $RM -r conftest*
10069 LDFLAGS="$save_LDFLAGS"
10070
10071fi
10072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10073$as_echo "$lt_cv_prog_compiler__b" >&6; }
10074
10075if test x"$lt_cv_prog_compiler__b" = xyes; then
10076 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10077else
10078 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10079fi
10080
10081 ;;
10082 esac
10083 fi
10084 if test "$with_gnu_ld" = no; then
10085 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10086 hardcode_libdir_separator=:
10087
10088 case $host_cpu in
10089 hppa*64*|ia64*)
10090 hardcode_direct=no
10091 hardcode_shlibpath_var=no
10092 ;;
10093 *)
10094 hardcode_direct=yes
10095 hardcode_direct_absolute=yes
10096 export_dynamic_flag_spec='${wl}-E'
10097
10098 # hardcode_minus_L: Not really in the search PATH,
10099 # but as the default location of the library.
10100 hardcode_minus_L=yes
10101 ;;
10102 esac
10103 fi
10104 ;;
10105
10106 irix5* | irix6* | nonstopux*)
10107 if test "$GCC" = yes; then
10108 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'
10109 # Try to use the -exported_symbol ld option, if it does not
10110 # work, assume that -exports_file does not work either and
10111 # implicitly export all symbols.
10112 # This should be the same for all languages, so no per-tag cache variable.
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10114$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10115if ${lt_cv_irix_exported_symbol+:} false; then :
10116 $as_echo_n "(cached) " >&6
10117else
10118 save_LDFLAGS="$LDFLAGS"
10119 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121/* end confdefs.h. */
10122int foo (void) { return 0; }
10123_ACEOF
10124if ac_fn_c_try_link "$LINENO"; then :
10125 lt_cv_irix_exported_symbol=yes
10126else
10127 lt_cv_irix_exported_symbol=no
10128fi
10129rm -f core conftest.err conftest.$ac_objext \
10130 conftest$ac_exeext conftest.$ac_ext
10131 LDFLAGS="$save_LDFLAGS"
10132fi
10133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10134$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10135 if test "$lt_cv_irix_exported_symbol" = yes; then
10136 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'
10137 fi
10138 else
10139 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'
10140 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'
10141 fi
10142 archive_cmds_need_lc='no'
10143 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10144 hardcode_libdir_separator=:
10145 inherit_rpath=yes
10146 link_all_deplibs=yes
10147 ;;
10148
10149 netbsd*)
10150 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10151 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10152 else
10153 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10154 fi
10155 hardcode_libdir_flag_spec='-R$libdir'
10156 hardcode_direct=yes
10157 hardcode_shlibpath_var=no
10158 ;;
10159
10160 newsos6)
10161 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10162 hardcode_direct=yes
10163 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10164 hardcode_libdir_separator=:
10165 hardcode_shlibpath_var=no
10166 ;;
10167
10168 *nto* | *qnx*)
10169 ;;
10170
10171 openbsd*)
10172 if test -f /usr/libexec/ld.so; then
10173 hardcode_direct=yes
10174 hardcode_shlibpath_var=no
10175 hardcode_direct_absolute=yes
10176 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10177 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10178 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10179 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10180 export_dynamic_flag_spec='${wl}-E'
10181 else
10182 case $host_os in
10183 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10184 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10185 hardcode_libdir_flag_spec='-R$libdir'
10186 ;;
10187 *)
10188 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10189 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10190 ;;
10191 esac
10192 fi
10193 else
10194 ld_shlibs=no
10195 fi
10196 ;;
10197
10198 os2*)
10199 hardcode_libdir_flag_spec='-L$libdir'
10200 hardcode_minus_L=yes
10201 allow_undefined_flag=unsupported
10202 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'
10203 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10204 ;;
10205
10206 osf3*)
10207 if test "$GCC" = yes; then
10208 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10209 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'
10210 else
10211 allow_undefined_flag=' -expect_unresolved \*'
10212 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'
10213 fi
10214 archive_cmds_need_lc='no'
10215 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10216 hardcode_libdir_separator=:
10217 ;;
10218
10219 osf4* | osf5*) # as osf3* with the addition of -msym flag
10220 if test "$GCC" = yes; then
10221 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10222 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'
10223 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10224 else
10225 allow_undefined_flag=' -expect_unresolved \*'
10226 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'
10227 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~
10228 $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'
10229
10230 # Both c and cxx compiler support -rpath directly
10231 hardcode_libdir_flag_spec='-rpath $libdir'
10232 fi
10233 archive_cmds_need_lc='no'
10234 hardcode_libdir_separator=:
10235 ;;
10236
10237 solaris*)
10238 no_undefined_flag=' -z defs'
10239 if test "$GCC" = yes; then
10240 wlarc='${wl}'
10241 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10242 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10243 $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'
10244 else
10245 case `$CC -V 2>&1` in
10246 *"Compilers 5.0"*)
10247 wlarc=''
10248 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10249 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10250 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10251 ;;
10252 *)
10253 wlarc='${wl}'
10254 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10255 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10256 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10257 ;;
10258 esac
10259 fi
10260 hardcode_libdir_flag_spec='-R$libdir'
10261 hardcode_shlibpath_var=no
10262 case $host_os in
10263 solaris2.[0-5] | solaris2.[0-5].*) ;;
10264 *)
10265 # The compiler driver will combine and reorder linker options,
10266 # but understands `-z linker_flag'. GCC discards it without `$wl',
10267 # but is careful enough not to reorder.
10268 # Supported since Solaris 2.6 (maybe 2.5.1?)
10269 if test "$GCC" = yes; then
10270 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10271 else
10272 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10273 fi
10274 ;;
10275 esac
10276 link_all_deplibs=yes
10277 ;;
10278
10279 sunos4*)
10280 if test "x$host_vendor" = xsequent; then
10281 # Use $CC to link under sequent, because it throws in some extra .o
10282 # files that make .init and .fini sections work.
10283 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10284 else
10285 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10286 fi
10287 hardcode_libdir_flag_spec='-L$libdir'
10288 hardcode_direct=yes
10289 hardcode_minus_L=yes
10290 hardcode_shlibpath_var=no
10291 ;;
10292
10293 sysv4)
10294 case $host_vendor in
10295 sni)
10296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10297 hardcode_direct=yes # is this really true???
10298 ;;
10299 siemens)
10300 ## LD is ld it makes a PLAMLIB
10301 ## CC just makes a GrossModule.
10302 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10303 reload_cmds='$CC -r -o $output$reload_objs'
10304 hardcode_direct=no
10305 ;;
10306 motorola)
10307 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10308 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10309 ;;
10310 esac
10311 runpath_var='LD_RUN_PATH'
10312 hardcode_shlibpath_var=no
10313 ;;
10314
10315 sysv4.3*)
10316 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10317 hardcode_shlibpath_var=no
10318 export_dynamic_flag_spec='-Bexport'
10319 ;;
10320
10321 sysv4*MP*)
10322 if test -d /usr/nec; then
10323 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10324 hardcode_shlibpath_var=no
10325 runpath_var=LD_RUN_PATH
10326 hardcode_runpath_var=yes
10327 ld_shlibs=yes
10328 fi
10329 ;;
10330
10331 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10332 no_undefined_flag='${wl}-z,text'
10333 archive_cmds_need_lc=no
10334 hardcode_shlibpath_var=no
10335 runpath_var='LD_RUN_PATH'
10336
10337 if test "$GCC" = yes; then
10338 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10339 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10340 else
10341 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10342 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10343 fi
10344 ;;
10345
10346 sysv5* | sco3.2v5* | sco5v6*)
10347 # Note: We can NOT use -z defs as we might desire, because we do not
10348 # link with -lc, and that would cause any symbols used from libc to
10349 # always be unresolved, which means just about no library would
10350 # ever link correctly. If we're not using GNU ld we use -z text
10351 # though, which does catch some bad symbols but isn't as heavy-handed
10352 # as -z defs.
10353 no_undefined_flag='${wl}-z,text'
10354 allow_undefined_flag='${wl}-z,nodefs'
10355 archive_cmds_need_lc=no
10356 hardcode_shlibpath_var=no
10357 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10358 hardcode_libdir_separator=':'
10359 link_all_deplibs=yes
10360 export_dynamic_flag_spec='${wl}-Bexport'
10361 runpath_var='LD_RUN_PATH'
10362
10363 if test "$GCC" = yes; then
10364 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10365 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10366 else
10367 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10368 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10369 fi
10370 ;;
10371
10372 uts4*)
10373 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10374 hardcode_libdir_flag_spec='-L$libdir'
10375 hardcode_shlibpath_var=no
10376 ;;
10377
10378 *)
10379 ld_shlibs=no
10380 ;;
10381 esac
10382
10383 if test x$host_vendor = xsni; then
10384 case $host in
10385 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10386 export_dynamic_flag_spec='${wl}-Blargedynsym'
10387 ;;
10388 esac
10389 fi
10390 fi
10391
10392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10393$as_echo "$ld_shlibs" >&6; }
10394test "$ld_shlibs" = no && can_build_shared=no
10395
10396with_gnu_ld=$with_gnu_ld
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412#
10413# Do we need to explicitly link libc?
10414#
10415case "x$archive_cmds_need_lc" in
10416x|xyes)
10417 # Assume -lc should be added
10418 archive_cmds_need_lc=yes
10419
10420 if test "$enable_shared" = yes && test "$GCC" = yes; then
10421 case $archive_cmds in
10422 *'~'*)
10423 # FIXME: we may have to deal with multi-command sequences.
10424 ;;
10425 '$CC '*)
10426 # Test whether the compiler implicitly links with -lc since on some
10427 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10428 # to ld, don't add -lc before -lgcc.
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10430$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10431if ${lt_cv_archive_cmds_need_lc+:} false; then :
10432 $as_echo_n "(cached) " >&6
10433else
10434 $RM conftest*
10435 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10436
10437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10438 (eval $ac_compile) 2>&5
10439 ac_status=$?
10440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10441 test $ac_status = 0; } 2>conftest.err; then
10442 soname=conftest
10443 lib=conftest
10444 libobjs=conftest.$ac_objext
10445 deplibs=
10446 wl=$lt_prog_compiler_wl
10447 pic_flag=$lt_prog_compiler_pic
10448 compiler_flags=-v
10449 linker_flags=-v
10450 verstring=
10451 output_objdir=.
10452 libname=conftest
10453 lt_save_allow_undefined_flag=$allow_undefined_flag
10454 allow_undefined_flag=
10455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10456 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10457 ac_status=$?
10458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10459 test $ac_status = 0; }
10460 then
10461 lt_cv_archive_cmds_need_lc=no
10462 else
10463 lt_cv_archive_cmds_need_lc=yes
10464 fi
10465 allow_undefined_flag=$lt_save_allow_undefined_flag
10466 else
10467 cat conftest.err 1>&5
10468 fi
10469 $RM conftest*
10470
10471fi
10472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10473$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10474 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10475 ;;
10476 esac
10477 fi
10478 ;;
10479esac
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10633$as_echo_n "checking dynamic linker characteristics... " >&6; }
10634
10635if test "$GCC" = yes; then
10636 case $host_os in
10637 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10638 *) lt_awk_arg="/^libraries:/" ;;
10639 esac
10640 case $host_os in
10641 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10642 *) lt_sed_strip_eq="s,=/,/,g" ;;
10643 esac
10644 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10645 case $lt_search_path_spec in
10646 *\;*)
10647 # if the path contains ";" then we assume it to be the separator
10648 # otherwise default to the standard path separator (i.e. ":") - it is
10649 # assumed that no part of a normal pathname contains ";" but that should
10650 # okay in the real world where ";" in dirpaths is itself problematic.
10651 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10652 ;;
10653 *)
10654 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10655 ;;
10656 esac
10657 # Ok, now we have the path, separated by spaces, we can step through it
10658 # and add multilib dir if necessary.
10659 lt_tmp_lt_search_path_spec=
10660 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10661 for lt_sys_path in $lt_search_path_spec; do
10662 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10663 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10664 else
10665 test -d "$lt_sys_path" && \
10666 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10667 fi
10668 done
10669 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10670BEGIN {RS=" "; FS="/|\n";} {
10671 lt_foo="";
10672 lt_count=0;
10673 for (lt_i = NF; lt_i > 0; lt_i--) {
10674 if ($lt_i != "" && $lt_i != ".") {
10675 if ($lt_i == "..") {
10676 lt_count++;
10677 } else {
10678 if (lt_count == 0) {
10679 lt_foo="/" $lt_i lt_foo;
10680 } else {
10681 lt_count--;
10682 }
10683 }
10684 }
10685 }
10686 if (lt_foo != "") { lt_freq[lt_foo]++; }
10687 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10688}'`
10689 # AWK program above erroneously prepends '/' to C:/dos/paths
10690 # for these hosts.
10691 case $host_os in
10692 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10693 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10694 esac
10695 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10696else
10697 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10698fi
10699library_names_spec=
10700libname_spec='lib$name'
10701soname_spec=
10702shrext_cmds=".so"
10703postinstall_cmds=
10704postuninstall_cmds=
10705finish_cmds=
10706finish_eval=
10707shlibpath_var=
10708shlibpath_overrides_runpath=unknown
10709version_type=none
10710dynamic_linker="$host_os ld.so"
10711sys_lib_dlsearch_path_spec="/lib /usr/lib"
10712need_lib_prefix=unknown
10713hardcode_into_libs=no
10714
10715# when you set need_version to no, make sure it does not cause -set_version
10716# flags to be left without arguments
10717need_version=unknown
10718
10719case $host_os in
10720aix3*)
10721 version_type=linux # correct to gnu/linux during the next big refactor
10722 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10723 shlibpath_var=LIBPATH
10724
10725 # AIX 3 has no versioning support, so we append a major version to the name.
10726 soname_spec='${libname}${release}${shared_ext}$major'
10727 ;;
10728
10729aix[4-9]*)
10730 version_type=linux # correct to gnu/linux during the next big refactor
10731 need_lib_prefix=no
10732 need_version=no
10733 hardcode_into_libs=yes
10734 if test "$host_cpu" = ia64; then
10735 # AIX 5 supports IA64
10736 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10737 shlibpath_var=LD_LIBRARY_PATH
10738 else
10739 # With GCC up to 2.95.x, collect2 would create an import file
10740 # for dependence libraries. The import file would start with
10741 # the line `#! .'. This would cause the generated library to
10742 # depend on `.', always an invalid library. This was fixed in
10743 # development snapshots of GCC prior to 3.0.
10744 case $host_os in
10745 aix4 | aix4.[01] | aix4.[01].*)
10746 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10747 echo ' yes '
10748 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10749 :
10750 else
10751 can_build_shared=no
10752 fi
10753 ;;
10754 esac
10755 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10756 # soname into executable. Probably we can add versioning support to
10757 # collect2, so additional links can be useful in future.
10758 if test "$aix_use_runtimelinking" = yes; then
10759 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10760 # instead of lib<name>.a to let people know that these are not
10761 # typical AIX shared libraries.
10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10763 else
10764 # We preserve .a as extension for shared libraries through AIX4.2
10765 # and later when we are not doing run time linking.
10766 library_names_spec='${libname}${release}.a $libname.a'
10767 soname_spec='${libname}${release}${shared_ext}$major'
10768 fi
10769 shlibpath_var=LIBPATH
10770 fi
10771 ;;
10772
10773amigaos*)
10774 case $host_cpu in
10775 powerpc)
10776 # Since July 2007 AmigaOS4 officially supports .so libraries.
10777 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10779 ;;
10780 m68k)
10781 library_names_spec='$libname.ixlibrary $libname.a'
10782 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10783 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'
10784 ;;
10785 esac
10786 ;;
10787
10788beos*)
10789 library_names_spec='${libname}${shared_ext}'
10790 dynamic_linker="$host_os ld.so"
10791 shlibpath_var=LIBRARY_PATH
10792 ;;
10793
10794bsdi[45]*)
10795 version_type=linux # correct to gnu/linux during the next big refactor
10796 need_version=no
10797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10798 soname_spec='${libname}${release}${shared_ext}$major'
10799 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10800 shlibpath_var=LD_LIBRARY_PATH
10801 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10802 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10803 # the default ld.so.conf also contains /usr/contrib/lib and
10804 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10805 # libtool to hard-code these into programs
10806 ;;
10807
10808cygwin* | mingw* | pw32* | cegcc*)
10809 version_type=windows
10810 shrext_cmds=".dll"
10811 need_version=no
10812 need_lib_prefix=no
10813
10814 case $GCC,$cc_basename in
10815 yes,*)
10816 # gcc
10817 library_names_spec='$libname.dll.a'
10818 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10819 postinstall_cmds='base_file=`basename \${file}`~
10820 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10821 dldir=$destdir/`dirname \$dlpath`~
10822 test -d \$dldir || mkdir -p \$dldir~
10823 $install_prog $dir/$dlname \$dldir/$dlname~
10824 chmod a+x \$dldir/$dlname~
10825 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10826 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10827 fi'
10828 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10829 dlpath=$dir/\$dldll~
10830 $RM \$dlpath'
10831 shlibpath_overrides_runpath=yes
10832
10833 case $host_os in
10834 cygwin*)
10835 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10836 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10837
10838 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10839 ;;
10840 mingw* | cegcc*)
10841 # MinGW DLLs use traditional 'lib' prefix
10842 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10843 ;;
10844 pw32*)
10845 # pw32 DLLs use 'pw' prefix rather than 'lib'
10846 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10847 ;;
10848 esac
10849 dynamic_linker='Win32 ld.exe'
10850 ;;
10851
10852 *,cl*)
10853 # Native MSVC
10854 libname_spec='$name'
10855 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10856 library_names_spec='${libname}.dll.lib'
10857
10858 case $build_os in
10859 mingw*)
10860 sys_lib_search_path_spec=
10861 lt_save_ifs=$IFS
10862 IFS=';'
10863 for lt_path in $LIB
10864 do
10865 IFS=$lt_save_ifs
10866 # Let DOS variable expansion print the short 8.3 style file name.
10867 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10868 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10869 done
10870 IFS=$lt_save_ifs
10871 # Convert to MSYS style.
10872 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10873 ;;
10874 cygwin*)
10875 # Convert to unix form, then to dos form, then back to unix form
10876 # but this time dos style (no spaces!) so that the unix form looks
10877 # like /cygdrive/c/PROGRA~1:/cygdr...
10878 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10879 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10880 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10881 ;;
10882 *)
10883 sys_lib_search_path_spec="$LIB"
10884 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10885 # It is most probably a Windows format PATH.
10886 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10887 else
10888 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10889 fi
10890 # FIXME: find the short name or the path components, as spaces are
10891 # common. (e.g. "Program Files" -> "PROGRA~1")
10892 ;;
10893 esac
10894
10895 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10896 postinstall_cmds='base_file=`basename \${file}`~
10897 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10898 dldir=$destdir/`dirname \$dlpath`~
10899 test -d \$dldir || mkdir -p \$dldir~
10900 $install_prog $dir/$dlname \$dldir/$dlname'
10901 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10902 dlpath=$dir/\$dldll~
10903 $RM \$dlpath'
10904 shlibpath_overrides_runpath=yes
10905 dynamic_linker='Win32 link.exe'
10906 ;;
10907
10908 *)
10909 # Assume MSVC wrapper
10910 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10911 dynamic_linker='Win32 ld.exe'
10912 ;;
10913 esac
10914 # FIXME: first we should search . and the directory the executable is in
10915 shlibpath_var=PATH
10916 ;;
10917
10918darwin* | rhapsody*)
10919 dynamic_linker="$host_os dyld"
10920 version_type=darwin
10921 need_lib_prefix=no
10922 need_version=no
10923 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10924 soname_spec='${libname}${release}${major}$shared_ext'
10925 shlibpath_overrides_runpath=yes
10926 shlibpath_var=DYLD_LIBRARY_PATH
10927 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10928
10929 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10930 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10931 ;;
10932
10933dgux*)
10934 version_type=linux # correct to gnu/linux during the next big refactor
10935 need_lib_prefix=no
10936 need_version=no
10937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10938 soname_spec='${libname}${release}${shared_ext}$major'
10939 shlibpath_var=LD_LIBRARY_PATH
10940 ;;
10941
10942freebsd* | dragonfly*)
10943 # DragonFly does not have aout. When/if they implement a new
10944 # versioning mechanism, adjust this.
10945 if test -x /usr/bin/objformat; then
10946 objformat=`/usr/bin/objformat`
10947 else
10948 case $host_os in
10949 freebsd[23].*) objformat=aout ;;
10950 *) objformat=elf ;;
10951 esac
10952 fi
10953 version_type=freebsd-$objformat
10954 case $version_type in
10955 freebsd-elf*)
10956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10957 need_version=no
10958 need_lib_prefix=no
10959 ;;
10960 freebsd-*)
10961 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10962 need_version=yes
10963 ;;
10964 esac
10965 shlibpath_var=LD_LIBRARY_PATH
10966 case $host_os in
10967 freebsd2.*)
10968 shlibpath_overrides_runpath=yes
10969 ;;
10970 freebsd3.[01]* | freebsdelf3.[01]*)
10971 shlibpath_overrides_runpath=yes
10972 hardcode_into_libs=yes
10973 ;;
10974 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10975 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10976 shlibpath_overrides_runpath=no
10977 hardcode_into_libs=yes
10978 ;;
10979 *) # from 4.6 on, and DragonFly
10980 shlibpath_overrides_runpath=yes
10981 hardcode_into_libs=yes
10982 ;;
10983 esac
10984 ;;
10985
10986gnu*)
10987 version_type=linux # correct to gnu/linux during the next big refactor
10988 need_lib_prefix=no
10989 need_version=no
10990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10991 soname_spec='${libname}${release}${shared_ext}$major'
10992 shlibpath_var=LD_LIBRARY_PATH
10993 shlibpath_overrides_runpath=no
10994 hardcode_into_libs=yes
10995 ;;
10996
10997haiku*)
10998 version_type=linux # correct to gnu/linux during the next big refactor
10999 need_lib_prefix=no
11000 need_version=no
11001 dynamic_linker="$host_os runtime_loader"
11002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11003 soname_spec='${libname}${release}${shared_ext}$major'
11004 shlibpath_var=LIBRARY_PATH
11005 shlibpath_overrides_runpath=yes
11006 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11007 hardcode_into_libs=yes
11008 ;;
11009
11010hpux9* | hpux10* | hpux11*)
11011 # Give a soname corresponding to the major version so that dld.sl refuses to
11012 # link against other versions.
11013 version_type=sunos
11014 need_lib_prefix=no
11015 need_version=no
11016 case $host_cpu in
11017 ia64*)
11018 shrext_cmds='.so'
11019 hardcode_into_libs=yes
11020 dynamic_linker="$host_os dld.so"
11021 shlibpath_var=LD_LIBRARY_PATH
11022 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11024 soname_spec='${libname}${release}${shared_ext}$major'
11025 if test "X$HPUX_IA64_MODE" = X32; then
11026 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11027 else
11028 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11029 fi
11030 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11031 ;;
11032 hppa*64*)
11033 shrext_cmds='.sl'
11034 hardcode_into_libs=yes
11035 dynamic_linker="$host_os dld.sl"
11036 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11037 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11039 soname_spec='${libname}${release}${shared_ext}$major'
11040 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11041 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11042 ;;
11043 *)
11044 shrext_cmds='.sl'
11045 dynamic_linker="$host_os dld.sl"
11046 shlibpath_var=SHLIB_PATH
11047 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11049 soname_spec='${libname}${release}${shared_ext}$major'
11050 ;;
11051 esac
11052 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11053 postinstall_cmds='chmod 555 $lib'
11054 # or fails outright, so override atomically:
11055 install_override_mode=555
11056 ;;
11057
11058interix[3-9]*)
11059 version_type=linux # correct to gnu/linux during the next big refactor
11060 need_lib_prefix=no
11061 need_version=no
11062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11063 soname_spec='${libname}${release}${shared_ext}$major'
11064 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11065 shlibpath_var=LD_LIBRARY_PATH
11066 shlibpath_overrides_runpath=no
11067 hardcode_into_libs=yes
11068 ;;
11069
11070irix5* | irix6* | nonstopux*)
11071 case $host_os in
11072 nonstopux*) version_type=nonstopux ;;
11073 *)
11074 if test "$lt_cv_prog_gnu_ld" = yes; then
11075 version_type=linux # correct to gnu/linux during the next big refactor
11076 else
11077 version_type=irix
11078 fi ;;
11079 esac
11080 need_lib_prefix=no
11081 need_version=no
11082 soname_spec='${libname}${release}${shared_ext}$major'
11083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11084 case $host_os in
11085 irix5* | nonstopux*)
11086 libsuff= shlibsuff=
11087 ;;
11088 *)
11089 case $LD in # libtool.m4 will add one of these switches to LD
11090 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11091 libsuff= shlibsuff= libmagic=32-bit;;
11092 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11093 libsuff=32 shlibsuff=N32 libmagic=N32;;
11094 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11095 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11096 *) libsuff= shlibsuff= libmagic=never-match;;
11097 esac
11098 ;;
11099 esac
11100 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11101 shlibpath_overrides_runpath=no
11102 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11103 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11104 hardcode_into_libs=yes
11105 ;;
11106
11107# No shared lib support for Linux oldld, aout, or coff.
11108linux*oldld* | linux*aout* | linux*coff*)
11109 dynamic_linker=no
11110 ;;
11111
11112# This must be glibc/ELF.
11113linux* | k*bsd*-gnu | kopensolaris*-gnu)
11114 version_type=linux # correct to gnu/linux during the next big refactor
11115 need_lib_prefix=no
11116 need_version=no
11117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11118 soname_spec='${libname}${release}${shared_ext}$major'
11119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11120 shlibpath_var=LD_LIBRARY_PATH
11121 shlibpath_overrides_runpath=no
11122
11123 # Some binutils ld are patched to set DT_RUNPATH
11124 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11125 $as_echo_n "(cached) " >&6
11126else
11127 lt_cv_shlibpath_overrides_runpath=no
11128 save_LDFLAGS=$LDFLAGS
11129 save_libdir=$libdir
11130 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11131 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11133/* end confdefs.h. */
11134
11135int
11136main ()
11137{
11138
11139 ;
11140 return 0;
11141}
11142_ACEOF
11143if ac_fn_c_try_link "$LINENO"; then :
11144 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11145 lt_cv_shlibpath_overrides_runpath=yes
11146fi
11147fi
11148rm -f core conftest.err conftest.$ac_objext \
11149 conftest$ac_exeext conftest.$ac_ext
11150 LDFLAGS=$save_LDFLAGS
11151 libdir=$save_libdir
11152
11153fi
11154
11155 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11156
11157 # This implies no fast_install, which is unacceptable.
11158 # Some rework will be needed to allow for fast_install
11159 # before this can be enabled.
11160 hardcode_into_libs=yes
11161
11162 # Append ld.so.conf contents to the search path
11163 if test -f /etc/ld.so.conf; then
11164 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' ' '`
11165 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11166 fi
11167
11168 # We used to test for /lib/ld.so.1 and disable shared libraries on
11169 # powerpc, because MkLinux only supported shared libraries with the
11170 # GNU dynamic linker. Since this was broken with cross compilers,
11171 # most powerpc-linux boxes support dynamic linking these days and
11172 # people can always --disable-shared, the test was removed, and we
11173 # assume the GNU/Linux dynamic linker is in use.
11174 dynamic_linker='GNU/Linux ld.so'
11175 ;;
11176
11177netbsd*)
11178 version_type=sunos
11179 need_lib_prefix=no
11180 need_version=no
11181 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11183 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11184 dynamic_linker='NetBSD (a.out) ld.so'
11185 else
11186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11187 soname_spec='${libname}${release}${shared_ext}$major'
11188 dynamic_linker='NetBSD ld.elf_so'
11189 fi
11190 shlibpath_var=LD_LIBRARY_PATH
11191 shlibpath_overrides_runpath=yes
11192 hardcode_into_libs=yes
11193 ;;
11194
11195newsos6)
11196 version_type=linux # correct to gnu/linux during the next big refactor
11197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11198 shlibpath_var=LD_LIBRARY_PATH
11199 shlibpath_overrides_runpath=yes
11200 ;;
11201
11202*nto* | *qnx*)
11203 version_type=qnx
11204 need_lib_prefix=no
11205 need_version=no
11206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11207 soname_spec='${libname}${release}${shared_ext}$major'
11208 shlibpath_var=LD_LIBRARY_PATH
11209 shlibpath_overrides_runpath=no
11210 hardcode_into_libs=yes
11211 dynamic_linker='ldqnx.so'
11212 ;;
11213
11214openbsd*)
11215 version_type=sunos
11216 sys_lib_dlsearch_path_spec="/usr/lib"
11217 need_lib_prefix=no
11218 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11219 case $host_os in
11220 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11221 *) need_version=no ;;
11222 esac
11223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11224 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11225 shlibpath_var=LD_LIBRARY_PATH
11226 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11227 case $host_os in
11228 openbsd2.[89] | openbsd2.[89].*)
11229 shlibpath_overrides_runpath=no
11230 ;;
11231 *)
11232 shlibpath_overrides_runpath=yes
11233 ;;
11234 esac
11235 else
11236 shlibpath_overrides_runpath=yes
11237 fi
11238 ;;
11239
11240os2*)
11241 libname_spec='$name'
11242 shrext_cmds=".dll"
11243 need_lib_prefix=no
11244 library_names_spec='$libname${shared_ext} $libname.a'
11245 dynamic_linker='OS/2 ld.exe'
11246 shlibpath_var=LIBPATH
11247 ;;
11248
11249osf3* | osf4* | osf5*)
11250 version_type=osf
11251 need_lib_prefix=no
11252 need_version=no
11253 soname_spec='${libname}${release}${shared_ext}$major'
11254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11255 shlibpath_var=LD_LIBRARY_PATH
11256 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11257 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11258 ;;
11259
11260rdos*)
11261 dynamic_linker=no
11262 ;;
11263
11264solaris*)
11265 version_type=linux # correct to gnu/linux during the next big refactor
11266 need_lib_prefix=no
11267 need_version=no
11268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11269 soname_spec='${libname}${release}${shared_ext}$major'
11270 shlibpath_var=LD_LIBRARY_PATH
11271 shlibpath_overrides_runpath=yes
11272 hardcode_into_libs=yes
11273 # ldd complains unless libraries are executable
11274 postinstall_cmds='chmod +x $lib'
11275 ;;
11276
11277sunos4*)
11278 version_type=sunos
11279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11280 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11281 shlibpath_var=LD_LIBRARY_PATH
11282 shlibpath_overrides_runpath=yes
11283 if test "$with_gnu_ld" = yes; then
11284 need_lib_prefix=no
11285 fi
11286 need_version=yes
11287 ;;
11288
11289sysv4 | sysv4.3*)
11290 version_type=linux # correct to gnu/linux during the next big refactor
11291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11292 soname_spec='${libname}${release}${shared_ext}$major'
11293 shlibpath_var=LD_LIBRARY_PATH
11294 case $host_vendor in
11295 sni)
11296 shlibpath_overrides_runpath=no
11297 need_lib_prefix=no
11298 runpath_var=LD_RUN_PATH
11299 ;;
11300 siemens)
11301 need_lib_prefix=no
11302 ;;
11303 motorola)
11304 need_lib_prefix=no
11305 need_version=no
11306 shlibpath_overrides_runpath=no
11307 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11308 ;;
11309 esac
11310 ;;
11311
11312sysv4*MP*)
11313 if test -d /usr/nec ;then
11314 version_type=linux # correct to gnu/linux during the next big refactor
11315 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11316 soname_spec='$libname${shared_ext}.$major'
11317 shlibpath_var=LD_LIBRARY_PATH
11318 fi
11319 ;;
11320
11321sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11322 version_type=freebsd-elf
11323 need_lib_prefix=no
11324 need_version=no
11325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11326 soname_spec='${libname}${release}${shared_ext}$major'
11327 shlibpath_var=LD_LIBRARY_PATH
11328 shlibpath_overrides_runpath=yes
11329 hardcode_into_libs=yes
11330 if test "$with_gnu_ld" = yes; then
11331 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11332 else
11333 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11334 case $host_os in
11335 sco3.2v5*)
11336 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11337 ;;
11338 esac
11339 fi
11340 sys_lib_dlsearch_path_spec='/usr/lib'
11341 ;;
11342
11343tpf*)
11344 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11345 version_type=linux # correct to gnu/linux during the next big refactor
11346 need_lib_prefix=no
11347 need_version=no
11348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11349 shlibpath_var=LD_LIBRARY_PATH
11350 shlibpath_overrides_runpath=no
11351 hardcode_into_libs=yes
11352 ;;
11353
11354uts4*)
11355 version_type=linux # correct to gnu/linux during the next big refactor
11356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11357 soname_spec='${libname}${release}${shared_ext}$major'
11358 shlibpath_var=LD_LIBRARY_PATH
11359 ;;
11360
11361*)
11362 dynamic_linker=no
11363 ;;
11364esac
11365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11366$as_echo "$dynamic_linker" >&6; }
11367test "$dynamic_linker" = no && can_build_shared=no
11368
11369variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11370if test "$GCC" = yes; then
11371 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11372fi
11373
11374if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11375 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11376fi
11377if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11378 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11379fi
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11473$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11474hardcode_action=
11475if test -n "$hardcode_libdir_flag_spec" ||
11476 test -n "$runpath_var" ||
11477 test "X$hardcode_automatic" = "Xyes" ; then
11478
11479 # We can hardcode non-existent directories.
11480 if test "$hardcode_direct" != no &&
11481 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11482 # have to relink, otherwise we might link with an installed library
11483 # when we should be linking with a yet-to-be-installed one
11484 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11485 test "$hardcode_minus_L" != no; then
11486 # Linking always hardcodes the temporary library directory.
11487 hardcode_action=relink
11488 else
11489 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11490 hardcode_action=immediate
11491 fi
11492else
11493 # We cannot hardcode anything, or else we can only hardcode existing
11494 # directories.
11495 hardcode_action=unsupported
11496fi
11497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11498$as_echo "$hardcode_action" >&6; }
11499
11500if test "$hardcode_action" = relink ||
11501 test "$inherit_rpath" = yes; then
11502 # Fast installation is not supported
11503 enable_fast_install=no
11504elif test "$shlibpath_overrides_runpath" = yes ||
11505 test "$enable_shared" = no; then
11506 # Fast installation is not necessary
11507 enable_fast_install=needless
11508fi
11509
11510
11511
11512
11513
11514
11515 if test "x$enable_dlopen" != xyes; then
11516 enable_dlopen=unknown
11517 enable_dlopen_self=unknown
11518 enable_dlopen_self_static=unknown
11519else
11520 lt_cv_dlopen=no
11521 lt_cv_dlopen_libs=
11522
11523 case $host_os in
11524 beos*)
11525 lt_cv_dlopen="load_add_on"
11526 lt_cv_dlopen_libs=
11527 lt_cv_dlopen_self=yes
11528 ;;
11529
11530 mingw* | pw32* | cegcc*)
11531 lt_cv_dlopen="LoadLibrary"
11532 lt_cv_dlopen_libs=
11533 ;;
11534
11535 cygwin*)
11536 lt_cv_dlopen="dlopen"
11537 lt_cv_dlopen_libs=
11538 ;;
11539
11540 darwin*)
11541 # if libdl is installed we need to link against it
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11543$as_echo_n "checking for dlopen in -ldl... " >&6; }
11544if ${ac_cv_lib_dl_dlopen+:} false; then :
11545 $as_echo_n "(cached) " >&6
11546else
11547 ac_check_lib_save_LIBS=$LIBS
11548LIBS="-ldl $LIBS"
11549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11550/* end confdefs.h. */
11551
11552/* Override any GCC internal prototype to avoid an error.
11553 Use char because int might match the return type of a GCC
11554 builtin and then its argument prototype would still apply. */
11555#ifdef __cplusplus
11556extern "C"
11557#endif
11558char dlopen ();
11559int
11560main ()
11561{
11562return dlopen ();
11563 ;
11564 return 0;
11565}
11566_ACEOF
11567if ac_fn_c_try_link "$LINENO"; then :
11568 ac_cv_lib_dl_dlopen=yes
11569else
11570 ac_cv_lib_dl_dlopen=no
11571fi
11572rm -f core conftest.err conftest.$ac_objext \
11573 conftest$ac_exeext conftest.$ac_ext
11574LIBS=$ac_check_lib_save_LIBS
11575fi
11576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11577$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11578if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11579 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11580else
11581
11582 lt_cv_dlopen="dyld"
11583 lt_cv_dlopen_libs=
11584 lt_cv_dlopen_self=yes
11585
11586fi
11587
11588 ;;
11589
11590 *)
11591 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11592if test "x$ac_cv_func_shl_load" = xyes; then :
11593 lt_cv_dlopen="shl_load"
11594else
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11596$as_echo_n "checking for shl_load in -ldld... " >&6; }
11597if ${ac_cv_lib_dld_shl_load+:} false; then :
11598 $as_echo_n "(cached) " >&6
11599else
11600 ac_check_lib_save_LIBS=$LIBS
11601LIBS="-ldld $LIBS"
11602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11603/* end confdefs.h. */
11604
11605/* Override any GCC internal prototype to avoid an error.
11606 Use char because int might match the return type of a GCC
11607 builtin and then its argument prototype would still apply. */
11608#ifdef __cplusplus
11609extern "C"
11610#endif
11611char shl_load ();
11612int
11613main ()
11614{
11615return shl_load ();
11616 ;
11617 return 0;
11618}
11619_ACEOF
11620if ac_fn_c_try_link "$LINENO"; then :
11621 ac_cv_lib_dld_shl_load=yes
11622else
11623 ac_cv_lib_dld_shl_load=no
11624fi
11625rm -f core conftest.err conftest.$ac_objext \
11626 conftest$ac_exeext conftest.$ac_ext
11627LIBS=$ac_check_lib_save_LIBS
11628fi
11629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11630$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11631if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11632 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11633else
11634 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11635if test "x$ac_cv_func_dlopen" = xyes; then :
11636 lt_cv_dlopen="dlopen"
11637else
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11639$as_echo_n "checking for dlopen in -ldl... " >&6; }
11640if ${ac_cv_lib_dl_dlopen+:} false; then :
11641 $as_echo_n "(cached) " >&6
11642else
11643 ac_check_lib_save_LIBS=$LIBS
11644LIBS="-ldl $LIBS"
11645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11646/* end confdefs.h. */
11647
11648/* Override any GCC internal prototype to avoid an error.
11649 Use char because int might match the return type of a GCC
11650 builtin and then its argument prototype would still apply. */
11651#ifdef __cplusplus
11652extern "C"
11653#endif
11654char dlopen ();
11655int
11656main ()
11657{
11658return dlopen ();
11659 ;
11660 return 0;
11661}
11662_ACEOF
11663if ac_fn_c_try_link "$LINENO"; then :
11664 ac_cv_lib_dl_dlopen=yes
11665else
11666 ac_cv_lib_dl_dlopen=no
11667fi
11668rm -f core conftest.err conftest.$ac_objext \
11669 conftest$ac_exeext conftest.$ac_ext
11670LIBS=$ac_check_lib_save_LIBS
11671fi
11672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11673$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11674if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11675 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11676else
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11678$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11679if ${ac_cv_lib_svld_dlopen+:} false; then :
11680 $as_echo_n "(cached) " >&6
11681else
11682 ac_check_lib_save_LIBS=$LIBS
11683LIBS="-lsvld $LIBS"
11684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11685/* end confdefs.h. */
11686
11687/* Override any GCC internal prototype to avoid an error.
11688 Use char because int might match the return type of a GCC
11689 builtin and then its argument prototype would still apply. */
11690#ifdef __cplusplus
11691extern "C"
11692#endif
11693char dlopen ();
11694int
11695main ()
11696{
11697return dlopen ();
11698 ;
11699 return 0;
11700}
11701_ACEOF
11702if ac_fn_c_try_link "$LINENO"; then :
11703 ac_cv_lib_svld_dlopen=yes
11704else
11705 ac_cv_lib_svld_dlopen=no
11706fi
11707rm -f core conftest.err conftest.$ac_objext \
11708 conftest$ac_exeext conftest.$ac_ext
11709LIBS=$ac_check_lib_save_LIBS
11710fi
11711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11712$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11713if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11714 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11715else
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11717$as_echo_n "checking for dld_link in -ldld... " >&6; }
11718if ${ac_cv_lib_dld_dld_link+:} false; then :
11719 $as_echo_n "(cached) " >&6
11720else
11721 ac_check_lib_save_LIBS=$LIBS
11722LIBS="-ldld $LIBS"
11723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11724/* end confdefs.h. */
11725
11726/* Override any GCC internal prototype to avoid an error.
11727 Use char because int might match the return type of a GCC
11728 builtin and then its argument prototype would still apply. */
11729#ifdef __cplusplus
11730extern "C"
11731#endif
11732char dld_link ();
11733int
11734main ()
11735{
11736return dld_link ();
11737 ;
11738 return 0;
11739}
11740_ACEOF
11741if ac_fn_c_try_link "$LINENO"; then :
11742 ac_cv_lib_dld_dld_link=yes
11743else
11744 ac_cv_lib_dld_dld_link=no
11745fi
11746rm -f core conftest.err conftest.$ac_objext \
11747 conftest$ac_exeext conftest.$ac_ext
11748LIBS=$ac_check_lib_save_LIBS
11749fi
11750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11751$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11752if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11753 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11754fi
11755
11756
11757fi
11758
11759
11760fi
11761
11762
11763fi
11764
11765
11766fi
11767
11768
11769fi
11770
11771 ;;
11772 esac
11773
11774 if test "x$lt_cv_dlopen" != xno; then
11775 enable_dlopen=yes
11776 else
11777 enable_dlopen=no
11778 fi
11779
11780 case $lt_cv_dlopen in
11781 dlopen)
11782 save_CPPFLAGS="$CPPFLAGS"
11783 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11784
11785 save_LDFLAGS="$LDFLAGS"
11786 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11787
11788 save_LIBS="$LIBS"
11789 LIBS="$lt_cv_dlopen_libs $LIBS"
11790
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11792$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11793if ${lt_cv_dlopen_self+:} false; then :
11794 $as_echo_n "(cached) " >&6
11795else
11796 if test "$cross_compiling" = yes; then :
11797 lt_cv_dlopen_self=cross
11798else
11799 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11800 lt_status=$lt_dlunknown
11801 cat > conftest.$ac_ext <<_LT_EOF
11802#line $LINENO "configure"
11803#include "confdefs.h"
11804
11805#if HAVE_DLFCN_H
11806#include <dlfcn.h>
11807#endif
11808
11809#include <stdio.h>
11810
11811#ifdef RTLD_GLOBAL
11812# define LT_DLGLOBAL RTLD_GLOBAL
11813#else
11814# ifdef DL_GLOBAL
11815# define LT_DLGLOBAL DL_GLOBAL
11816# else
11817# define LT_DLGLOBAL 0
11818# endif
11819#endif
11820
11821/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11822 find out it does not work in some platform. */
11823#ifndef LT_DLLAZY_OR_NOW
11824# ifdef RTLD_LAZY
11825# define LT_DLLAZY_OR_NOW RTLD_LAZY
11826# else
11827# ifdef DL_LAZY
11828# define LT_DLLAZY_OR_NOW DL_LAZY
11829# else
11830# ifdef RTLD_NOW
11831# define LT_DLLAZY_OR_NOW RTLD_NOW
11832# else
11833# ifdef DL_NOW
11834# define LT_DLLAZY_OR_NOW DL_NOW
11835# else
11836# define LT_DLLAZY_OR_NOW 0
11837# endif
11838# endif
11839# endif
11840# endif
11841#endif
11842
11843/* When -fvisbility=hidden is used, assume the code has been annotated
11844 correspondingly for the symbols needed. */
11845#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11846int fnord () __attribute__((visibility("default")));
11847#endif
11848
11849int fnord () { return 42; }
11850int main ()
11851{
11852 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11853 int status = $lt_dlunknown;
11854
11855 if (self)
11856 {
11857 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11858 else
11859 {
11860 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11861 else puts (dlerror ());
11862 }
11863 /* dlclose (self); */
11864 }
11865 else
11866 puts (dlerror ());
11867
11868 return status;
11869}
11870_LT_EOF
11871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11872 (eval $ac_link) 2>&5
11873 ac_status=$?
11874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11875 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11876 (./conftest; exit; ) >&5 2>/dev/null
11877 lt_status=$?
11878 case x$lt_status in
11879 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11880 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11881 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11882 esac
11883 else :
11884 # compilation failed
11885 lt_cv_dlopen_self=no
11886 fi
11887fi
11888rm -fr conftest*
11889
11890
11891fi
11892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11893$as_echo "$lt_cv_dlopen_self" >&6; }
11894
11895 if test "x$lt_cv_dlopen_self" = xyes; then
11896 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11898$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11899if ${lt_cv_dlopen_self_static+:} false; then :
11900 $as_echo_n "(cached) " >&6
11901else
11902 if test "$cross_compiling" = yes; then :
11903 lt_cv_dlopen_self_static=cross
11904else
11905 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11906 lt_status=$lt_dlunknown
11907 cat > conftest.$ac_ext <<_LT_EOF
11908#line $LINENO "configure"
11909#include "confdefs.h"
11910
11911#if HAVE_DLFCN_H
11912#include <dlfcn.h>
11913#endif
11914
11915#include <stdio.h>
11916
11917#ifdef RTLD_GLOBAL
11918# define LT_DLGLOBAL RTLD_GLOBAL
11919#else
11920# ifdef DL_GLOBAL
11921# define LT_DLGLOBAL DL_GLOBAL
11922# else
11923# define LT_DLGLOBAL 0
11924# endif
11925#endif
11926
11927/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11928 find out it does not work in some platform. */
11929#ifndef LT_DLLAZY_OR_NOW
11930# ifdef RTLD_LAZY
11931# define LT_DLLAZY_OR_NOW RTLD_LAZY
11932# else
11933# ifdef DL_LAZY
11934# define LT_DLLAZY_OR_NOW DL_LAZY
11935# else
11936# ifdef RTLD_NOW
11937# define LT_DLLAZY_OR_NOW RTLD_NOW
11938# else
11939# ifdef DL_NOW
11940# define LT_DLLAZY_OR_NOW DL_NOW
11941# else
11942# define LT_DLLAZY_OR_NOW 0
11943# endif
11944# endif
11945# endif
11946# endif
11947#endif
11948
11949/* When -fvisbility=hidden is used, assume the code has been annotated
11950 correspondingly for the symbols needed. */
11951#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11952int fnord () __attribute__((visibility("default")));
11953#endif
11954
11955int fnord () { return 42; }
11956int main ()
11957{
11958 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11959 int status = $lt_dlunknown;
11960
11961 if (self)
11962 {
11963 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11964 else
11965 {
11966 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11967 else puts (dlerror ());
11968 }
11969 /* dlclose (self); */
11970 }
11971 else
11972 puts (dlerror ());
11973
11974 return status;
11975}
11976_LT_EOF
11977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11978 (eval $ac_link) 2>&5
11979 ac_status=$?
11980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11981 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11982 (./conftest; exit; ) >&5 2>/dev/null
11983 lt_status=$?
11984 case x$lt_status in
11985 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11986 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11987 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11988 esac
11989 else :
11990 # compilation failed
11991 lt_cv_dlopen_self_static=no
11992 fi
11993fi
11994rm -fr conftest*
11995
11996
11997fi
11998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11999$as_echo "$lt_cv_dlopen_self_static" >&6; }
12000 fi
12001
12002 CPPFLAGS="$save_CPPFLAGS"
12003 LDFLAGS="$save_LDFLAGS"
12004 LIBS="$save_LIBS"
12005 ;;
12006 esac
12007
12008 case $lt_cv_dlopen_self in
12009 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12010 *) enable_dlopen_self=unknown ;;
12011 esac
12012
12013 case $lt_cv_dlopen_self_static in
12014 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12015 *) enable_dlopen_self_static=unknown ;;
12016 esac
12017fi
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035striplib=
12036old_striplib=
12037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12038$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12039if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12040 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12041 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12043$as_echo "yes" >&6; }
12044else
12045# FIXME - insert some real tests, host_os isn't really good enough
12046 case $host_os in
12047 darwin*)
12048 if test -n "$STRIP" ; then
12049 striplib="$STRIP -x"
12050 old_striplib="$STRIP -S"
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12052$as_echo "yes" >&6; }
12053 else
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055$as_echo "no" >&6; }
12056 fi
12057 ;;
12058 *)
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12060$as_echo "no" >&6; }
12061 ;;
12062 esac
12063fi
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076 # Report which library types will actually be built
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12078$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12080$as_echo "$can_build_shared" >&6; }
12081
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12083$as_echo_n "checking whether to build shared libraries... " >&6; }
12084 test "$can_build_shared" = "no" && enable_shared=no
12085
12086 # On AIX, shared libraries and static libraries use the same namespace, and
12087 # are all built from PIC.
12088 case $host_os in
12089 aix3*)
12090 test "$enable_shared" = yes && enable_static=no
12091 if test -n "$RANLIB"; then
12092 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12093 postinstall_cmds='$RANLIB $lib'
12094 fi
12095 ;;
12096
12097 aix[4-9]*)
12098 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12099 test "$enable_shared" = yes && enable_static=no
12100 fi
12101 ;;
12102 esac
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12104$as_echo "$enable_shared" >&6; }
12105
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12107$as_echo_n "checking whether to build static libraries... " >&6; }
12108 # Make sure either enable_shared or enable_static is yes.
12109 test "$enable_shared" = yes || enable_static=yes
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12111$as_echo "$enable_static" >&6; }
12112
12113
12114
12115
12116fi
12117ac_ext=c
12118ac_cpp='$CPP $CPPFLAGS'
12119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12121ac_compiler_gnu=$ac_cv_c_compiler_gnu
12122
12123CC="$lt_save_CC"
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139 ac_config_commands="$ac_config_commands libtool"
12140
12141
12142
12143
12144# Only expand once:
12145
12146
Jeff Thompson23cb7422013-10-09 16:11:47 -070012147
12148
Jeff Thompson4f031642013-08-05 11:03:16 -070012149ac_ext=cpp
12150ac_cpp='$CXXCPP $CPPFLAGS'
12151ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12152ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12153ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12154if test -z "$CXX"; then
12155 if test -n "$CCC"; then
12156 CXX=$CCC
12157 else
12158 if test -n "$ac_tool_prefix"; then
12159 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12160 do
12161 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12162set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12164$as_echo_n "checking for $ac_word... " >&6; }
12165if ${ac_cv_prog_CXX+:} false; then :
12166 $as_echo_n "(cached) " >&6
12167else
12168 if test -n "$CXX"; then
12169 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12170else
12171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12172for as_dir in $PATH
12173do
12174 IFS=$as_save_IFS
12175 test -z "$as_dir" && as_dir=.
12176 for ac_exec_ext in '' $ac_executable_extensions; do
12177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12178 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12180 break 2
12181 fi
12182done
12183 done
12184IFS=$as_save_IFS
12185
12186fi
12187fi
12188CXX=$ac_cv_prog_CXX
12189if test -n "$CXX"; then
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12191$as_echo "$CXX" >&6; }
12192else
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12194$as_echo "no" >&6; }
12195fi
12196
12197
12198 test -n "$CXX" && break
12199 done
12200fi
12201if test -z "$CXX"; then
12202 ac_ct_CXX=$CXX
12203 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12204do
12205 # Extract the first word of "$ac_prog", so it can be a program name with args.
12206set dummy $ac_prog; ac_word=$2
12207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12208$as_echo_n "checking for $ac_word... " >&6; }
12209if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12210 $as_echo_n "(cached) " >&6
12211else
12212 if test -n "$ac_ct_CXX"; then
12213 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12214else
12215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12216for as_dir in $PATH
12217do
12218 IFS=$as_save_IFS
12219 test -z "$as_dir" && as_dir=.
12220 for ac_exec_ext in '' $ac_executable_extensions; do
12221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12222 ac_cv_prog_ac_ct_CXX="$ac_prog"
12223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12224 break 2
12225 fi
12226done
12227 done
12228IFS=$as_save_IFS
12229
12230fi
12231fi
12232ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12233if test -n "$ac_ct_CXX"; then
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12235$as_echo "$ac_ct_CXX" >&6; }
12236else
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12238$as_echo "no" >&6; }
12239fi
12240
12241
12242 test -n "$ac_ct_CXX" && break
12243done
12244
12245 if test "x$ac_ct_CXX" = x; then
12246 CXX="g++"
12247 else
12248 case $cross_compiling:$ac_tool_warned in
12249yes:)
12250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12252ac_tool_warned=yes ;;
12253esac
12254 CXX=$ac_ct_CXX
12255 fi
12256fi
12257
12258 fi
12259fi
12260# Provide some information about the compiler.
12261$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12262set X $ac_compile
12263ac_compiler=$2
12264for ac_option in --version -v -V -qversion; do
12265 { { ac_try="$ac_compiler $ac_option >&5"
12266case "(($ac_try" in
12267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12268 *) ac_try_echo=$ac_try;;
12269esac
12270eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12271$as_echo "$ac_try_echo"; } >&5
12272 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12273 ac_status=$?
12274 if test -s conftest.err; then
12275 sed '10a\
12276... rest of stderr output deleted ...
12277 10q' conftest.err >conftest.er1
12278 cat conftest.er1 >&5
12279 fi
12280 rm -f conftest.er1 conftest.err
12281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12282 test $ac_status = 0; }
12283done
12284
12285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12286$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12287if ${ac_cv_cxx_compiler_gnu+:} false; then :
12288 $as_echo_n "(cached) " >&6
12289else
12290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12291/* end confdefs.h. */
12292
12293int
12294main ()
12295{
12296#ifndef __GNUC__
12297 choke me
12298#endif
12299
12300 ;
12301 return 0;
12302}
12303_ACEOF
12304if ac_fn_cxx_try_compile "$LINENO"; then :
12305 ac_compiler_gnu=yes
12306else
12307 ac_compiler_gnu=no
12308fi
12309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12310ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12311
12312fi
12313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12314$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12315if test $ac_compiler_gnu = yes; then
12316 GXX=yes
12317else
12318 GXX=
12319fi
12320ac_test_CXXFLAGS=${CXXFLAGS+set}
12321ac_save_CXXFLAGS=$CXXFLAGS
12322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12323$as_echo_n "checking whether $CXX accepts -g... " >&6; }
12324if ${ac_cv_prog_cxx_g+:} false; then :
12325 $as_echo_n "(cached) " >&6
12326else
12327 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12328 ac_cxx_werror_flag=yes
12329 ac_cv_prog_cxx_g=no
12330 CXXFLAGS="-g"
12331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332/* end confdefs.h. */
12333
12334int
12335main ()
12336{
12337
12338 ;
12339 return 0;
12340}
12341_ACEOF
12342if ac_fn_cxx_try_compile "$LINENO"; then :
12343 ac_cv_prog_cxx_g=yes
12344else
12345 CXXFLAGS=""
12346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12347/* end confdefs.h. */
12348
12349int
12350main ()
12351{
12352
12353 ;
12354 return 0;
12355}
12356_ACEOF
12357if ac_fn_cxx_try_compile "$LINENO"; then :
12358
12359else
12360 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12361 CXXFLAGS="-g"
12362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12363/* end confdefs.h. */
12364
12365int
12366main ()
12367{
12368
12369 ;
12370 return 0;
12371}
12372_ACEOF
12373if ac_fn_cxx_try_compile "$LINENO"; then :
12374 ac_cv_prog_cxx_g=yes
12375fi
12376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12377fi
12378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12379fi
12380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12381 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12382fi
12383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12384$as_echo "$ac_cv_prog_cxx_g" >&6; }
12385if test "$ac_test_CXXFLAGS" = set; then
12386 CXXFLAGS=$ac_save_CXXFLAGS
12387elif test $ac_cv_prog_cxx_g = yes; then
12388 if test "$GXX" = yes; then
12389 CXXFLAGS="-g -O2"
12390 else
12391 CXXFLAGS="-g"
12392 fi
12393else
12394 if test "$GXX" = yes; then
12395 CXXFLAGS="-O2"
12396 else
12397 CXXFLAGS=
12398 fi
12399fi
12400ac_ext=c
12401ac_cpp='$CPP $CPPFLAGS'
12402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12404ac_compiler_gnu=$ac_cv_c_compiler_gnu
12405
12406depcc="$CXX" am_compiler_list=
12407
12408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12409$as_echo_n "checking dependency style of $depcc... " >&6; }
12410if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12411 $as_echo_n "(cached) " >&6
12412else
12413 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12414 # We make a subdir and do the tests there. Otherwise we can end up
12415 # making bogus files that we don't know about and never remove. For
12416 # instance it was reported that on HP-UX the gcc test will end up
12417 # making a dummy file named 'D' -- because '-MD' means "put the output
12418 # in D".
12419 rm -rf conftest.dir
12420 mkdir conftest.dir
12421 # Copy depcomp to subdir because otherwise we won't find it if we're
12422 # using a relative directory.
12423 cp "$am_depcomp" conftest.dir
12424 cd conftest.dir
12425 # We will build objects and dependencies in a subdirectory because
12426 # it helps to detect inapplicable dependency modes. For instance
12427 # both Tru64's cc and ICC support -MD to output dependencies as a
12428 # side effect of compilation, but ICC will put the dependencies in
12429 # the current directory while Tru64 will put them in the object
12430 # directory.
12431 mkdir sub
12432
12433 am_cv_CXX_dependencies_compiler_type=none
12434 if test "$am_compiler_list" = ""; then
12435 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12436 fi
12437 am__universal=false
12438 case " $depcc " in #(
12439 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12440 esac
12441
12442 for depmode in $am_compiler_list; do
12443 # Setup a source with many dependencies, because some compilers
12444 # like to wrap large dependency lists on column 80 (with \), and
12445 # we should not choose a depcomp mode which is confused by this.
12446 #
12447 # We need to recreate these files for each test, as the compiler may
12448 # overwrite some of them when testing with obscure command lines.
12449 # This happens at least with the AIX C compiler.
12450 : > sub/conftest.c
12451 for i in 1 2 3 4 5 6; do
12452 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12453 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12454 # Solaris 10 /bin/sh.
12455 echo '/* dummy */' > sub/conftst$i.h
12456 done
12457 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12458
12459 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12460 # mode. It turns out that the SunPro C++ compiler does not properly
12461 # handle '-M -o', and we need to detect this. Also, some Intel
12462 # versions had trouble with output in subdirs.
12463 am__obj=sub/conftest.${OBJEXT-o}
12464 am__minus_obj="-o $am__obj"
12465 case $depmode in
12466 gcc)
12467 # This depmode causes a compiler race in universal mode.
12468 test "$am__universal" = false || continue
12469 ;;
12470 nosideeffect)
12471 # After this tag, mechanisms are not by side-effect, so they'll
12472 # only be used when explicitly requested.
12473 if test "x$enable_dependency_tracking" = xyes; then
12474 continue
12475 else
12476 break
12477 fi
12478 ;;
12479 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12480 # This compiler won't grok '-c -o', but also, the minuso test has
12481 # not run yet. These depmodes are late enough in the game, and
12482 # so weak that their functioning should not be impacted.
12483 am__obj=conftest.${OBJEXT-o}
12484 am__minus_obj=
12485 ;;
12486 none) break ;;
12487 esac
12488 if depmode=$depmode \
12489 source=sub/conftest.c object=$am__obj \
12490 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12491 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12492 >/dev/null 2>conftest.err &&
12493 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12494 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12495 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12496 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12497 # icc doesn't choke on unknown options, it will just issue warnings
12498 # or remarks (even with -Werror). So we grep stderr for any message
12499 # that says an option was ignored or not supported.
12500 # When given -MP, icc 7.0 and 7.1 complain thusly:
12501 # icc: Command line warning: ignoring option '-M'; no argument required
12502 # The diagnosis changed in icc 8.0:
12503 # icc: Command line remark: option '-MP' not supported
12504 if (grep 'ignoring option' conftest.err ||
12505 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12506 am_cv_CXX_dependencies_compiler_type=$depmode
12507 break
12508 fi
12509 fi
12510 done
12511
12512 cd ..
12513 rm -rf conftest.dir
12514else
12515 am_cv_CXX_dependencies_compiler_type=none
12516fi
12517
12518fi
12519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12520$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12521CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12522
12523 if
12524 test "x$enable_dependency_tracking" != xno \
12525 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12526 am__fastdepCXX_TRUE=
12527 am__fastdepCXX_FALSE='#'
12528else
12529 am__fastdepCXX_TRUE='#'
12530 am__fastdepCXX_FALSE=
12531fi
12532
12533
12534
12535
12536func_stripname_cnf ()
12537{
12538 case ${2} in
12539 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12540 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12541 esac
12542} # func_stripname_cnf
12543
12544 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12545 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12546 (test "X$CXX" != "Xg++"))) ; then
12547 ac_ext=cpp
12548ac_cpp='$CXXCPP $CPPFLAGS'
12549ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12550ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12551ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12553$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12554if test -z "$CXXCPP"; then
12555 if ${ac_cv_prog_CXXCPP+:} false; then :
12556 $as_echo_n "(cached) " >&6
12557else
12558 # Double quotes because CXXCPP needs to be expanded
12559 for CXXCPP in "$CXX -E" "/lib/cpp"
12560 do
12561 ac_preproc_ok=false
12562for ac_cxx_preproc_warn_flag in '' yes
12563do
12564 # Use a header file that comes with gcc, so configuring glibc
12565 # with a fresh cross-compiler works.
12566 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12567 # <limits.h> exists even on freestanding compilers.
12568 # On the NeXT, cc -E runs the code through the compiler's parser,
12569 # not just through cpp. "Syntax error" is here to catch this case.
12570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12571/* end confdefs.h. */
12572#ifdef __STDC__
12573# include <limits.h>
12574#else
12575# include <assert.h>
12576#endif
12577 Syntax error
12578_ACEOF
12579if ac_fn_cxx_try_cpp "$LINENO"; then :
12580
12581else
12582 # Broken: fails on valid input.
12583continue
12584fi
12585rm -f conftest.err conftest.i conftest.$ac_ext
12586
12587 # OK, works on sane cases. Now check whether nonexistent headers
12588 # can be detected and how.
12589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12590/* end confdefs.h. */
12591#include <ac_nonexistent.h>
12592_ACEOF
12593if ac_fn_cxx_try_cpp "$LINENO"; then :
12594 # Broken: success on invalid input.
12595continue
12596else
12597 # Passes both tests.
12598ac_preproc_ok=:
12599break
12600fi
12601rm -f conftest.err conftest.i conftest.$ac_ext
12602
12603done
12604# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12605rm -f conftest.i conftest.err conftest.$ac_ext
12606if $ac_preproc_ok; then :
12607 break
12608fi
12609
12610 done
12611 ac_cv_prog_CXXCPP=$CXXCPP
12612
12613fi
12614 CXXCPP=$ac_cv_prog_CXXCPP
12615else
12616 ac_cv_prog_CXXCPP=$CXXCPP
12617fi
12618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12619$as_echo "$CXXCPP" >&6; }
12620ac_preproc_ok=false
12621for ac_cxx_preproc_warn_flag in '' yes
12622do
12623 # Use a header file that comes with gcc, so configuring glibc
12624 # with a fresh cross-compiler works.
12625 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12626 # <limits.h> exists even on freestanding compilers.
12627 # On the NeXT, cc -E runs the code through the compiler's parser,
12628 # not just through cpp. "Syntax error" is here to catch this case.
12629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12630/* end confdefs.h. */
12631#ifdef __STDC__
12632# include <limits.h>
12633#else
12634# include <assert.h>
12635#endif
12636 Syntax error
12637_ACEOF
12638if ac_fn_cxx_try_cpp "$LINENO"; then :
12639
12640else
12641 # Broken: fails on valid input.
12642continue
12643fi
12644rm -f conftest.err conftest.i conftest.$ac_ext
12645
12646 # OK, works on sane cases. Now check whether nonexistent headers
12647 # can be detected and how.
12648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12649/* end confdefs.h. */
12650#include <ac_nonexistent.h>
12651_ACEOF
12652if ac_fn_cxx_try_cpp "$LINENO"; then :
12653 # Broken: success on invalid input.
12654continue
12655else
12656 # Passes both tests.
12657ac_preproc_ok=:
12658break
12659fi
12660rm -f conftest.err conftest.i conftest.$ac_ext
12661
12662done
12663# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12664rm -f conftest.i conftest.err conftest.$ac_ext
12665if $ac_preproc_ok; then :
12666
12667else
12668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12669$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12670as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12671See \`config.log' for more details" "$LINENO" 5; }
12672fi
12673
12674ac_ext=c
12675ac_cpp='$CPP $CPPFLAGS'
12676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12678ac_compiler_gnu=$ac_cv_c_compiler_gnu
12679
12680else
12681 _lt_caught_CXX_error=yes
12682fi
12683
12684ac_ext=cpp
12685ac_cpp='$CXXCPP $CPPFLAGS'
12686ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12687ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12688ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12689
12690archive_cmds_need_lc_CXX=no
12691allow_undefined_flag_CXX=
12692always_export_symbols_CXX=no
12693archive_expsym_cmds_CXX=
12694compiler_needs_object_CXX=no
12695export_dynamic_flag_spec_CXX=
12696hardcode_direct_CXX=no
12697hardcode_direct_absolute_CXX=no
12698hardcode_libdir_flag_spec_CXX=
12699hardcode_libdir_separator_CXX=
12700hardcode_minus_L_CXX=no
12701hardcode_shlibpath_var_CXX=unsupported
12702hardcode_automatic_CXX=no
12703inherit_rpath_CXX=no
12704module_cmds_CXX=
12705module_expsym_cmds_CXX=
12706link_all_deplibs_CXX=unknown
12707old_archive_cmds_CXX=$old_archive_cmds
12708reload_flag_CXX=$reload_flag
12709reload_cmds_CXX=$reload_cmds
12710no_undefined_flag_CXX=
12711whole_archive_flag_spec_CXX=
12712enable_shared_with_static_runtimes_CXX=no
12713
12714# Source file extension for C++ test sources.
12715ac_ext=cpp
12716
12717# Object file extension for compiled C++ test sources.
12718objext=o
12719objext_CXX=$objext
12720
12721# No sense in running all these tests if we already determined that
12722# the CXX compiler isn't working. Some variables (like enable_shared)
12723# are currently assumed to apply to all compilers on this platform,
12724# and will be corrupted by setting them based on a non-working compiler.
12725if test "$_lt_caught_CXX_error" != yes; then
12726 # Code to be used in simple compile tests
12727 lt_simple_compile_test_code="int some_variable = 0;"
12728
12729 # Code to be used in simple link tests
12730 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12731
12732 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12733
12734
12735
12736
12737
12738
12739# If no C compiler was specified, use CC.
12740LTCC=${LTCC-"$CC"}
12741
12742# If no C compiler flags were specified, use CFLAGS.
12743LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12744
12745# Allow CC to be a program name with arguments.
12746compiler=$CC
12747
12748
12749 # save warnings/boilerplate of simple test code
12750 ac_outfile=conftest.$ac_objext
12751echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12752eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12753_lt_compiler_boilerplate=`cat conftest.err`
12754$RM conftest*
12755
12756 ac_outfile=conftest.$ac_objext
12757echo "$lt_simple_link_test_code" >conftest.$ac_ext
12758eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12759_lt_linker_boilerplate=`cat conftest.err`
12760$RM -r conftest*
12761
12762
12763 # Allow CC to be a program name with arguments.
12764 lt_save_CC=$CC
12765 lt_save_CFLAGS=$CFLAGS
12766 lt_save_LD=$LD
12767 lt_save_GCC=$GCC
12768 GCC=$GXX
12769 lt_save_with_gnu_ld=$with_gnu_ld
12770 lt_save_path_LD=$lt_cv_path_LD
12771 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12772 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12773 else
12774 $as_unset lt_cv_prog_gnu_ld
12775 fi
12776 if test -n "${lt_cv_path_LDCXX+set}"; then
12777 lt_cv_path_LD=$lt_cv_path_LDCXX
12778 else
12779 $as_unset lt_cv_path_LD
12780 fi
12781 test -z "${LDCXX+set}" || LD=$LDCXX
12782 CC=${CXX-"c++"}
12783 CFLAGS=$CXXFLAGS
12784 compiler=$CC
12785 compiler_CXX=$CC
12786 for cc_temp in $compiler""; do
12787 case $cc_temp in
12788 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12789 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12790 \-*) ;;
12791 *) break;;
12792 esac
12793done
12794cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12795
12796
12797 if test -n "$compiler"; then
12798 # We don't want -fno-exception when compiling C++ code, so set the
12799 # no_builtin_flag separately
12800 if test "$GXX" = yes; then
12801 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12802 else
12803 lt_prog_compiler_no_builtin_flag_CXX=
12804 fi
12805
12806 if test "$GXX" = yes; then
12807 # Set up default GNU C++ configuration
12808
12809
12810
12811# Check whether --with-gnu-ld was given.
12812if test "${with_gnu_ld+set}" = set; then :
12813 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12814else
12815 with_gnu_ld=no
12816fi
12817
12818ac_prog=ld
12819if test "$GCC" = yes; then
12820 # Check if gcc -print-prog-name=ld gives a path.
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12822$as_echo_n "checking for ld used by $CC... " >&6; }
12823 case $host in
12824 *-*-mingw*)
12825 # gcc leaves a trailing carriage return which upsets mingw
12826 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12827 *)
12828 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12829 esac
12830 case $ac_prog in
12831 # Accept absolute paths.
12832 [\\/]* | ?:[\\/]*)
12833 re_direlt='/[^/][^/]*/\.\./'
12834 # Canonicalize the pathname of ld
12835 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12836 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12837 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12838 done
12839 test -z "$LD" && LD="$ac_prog"
12840 ;;
12841 "")
12842 # If it fails, then pretend we aren't using GCC.
12843 ac_prog=ld
12844 ;;
12845 *)
12846 # If it is relative, then search for the first ld in PATH.
12847 with_gnu_ld=unknown
12848 ;;
12849 esac
12850elif test "$with_gnu_ld" = yes; then
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12852$as_echo_n "checking for GNU ld... " >&6; }
12853else
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12855$as_echo_n "checking for non-GNU ld... " >&6; }
12856fi
12857if ${lt_cv_path_LD+:} false; then :
12858 $as_echo_n "(cached) " >&6
12859else
12860 if test -z "$LD"; then
12861 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12862 for ac_dir in $PATH; do
12863 IFS="$lt_save_ifs"
12864 test -z "$ac_dir" && ac_dir=.
12865 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12866 lt_cv_path_LD="$ac_dir/$ac_prog"
12867 # Check to see if the program is GNU ld. I'd rather use --version,
12868 # but apparently some variants of GNU ld only accept -v.
12869 # Break only if it was the GNU/non-GNU ld that we prefer.
12870 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12871 *GNU* | *'with BFD'*)
12872 test "$with_gnu_ld" != no && break
12873 ;;
12874 *)
12875 test "$with_gnu_ld" != yes && break
12876 ;;
12877 esac
12878 fi
12879 done
12880 IFS="$lt_save_ifs"
12881else
12882 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12883fi
12884fi
12885
12886LD="$lt_cv_path_LD"
12887if test -n "$LD"; then
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12889$as_echo "$LD" >&6; }
12890else
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12892$as_echo "no" >&6; }
12893fi
12894test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12896$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12897if ${lt_cv_prog_gnu_ld+:} false; then :
12898 $as_echo_n "(cached) " >&6
12899else
12900 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12901case `$LD -v 2>&1 </dev/null` in
12902*GNU* | *'with BFD'*)
12903 lt_cv_prog_gnu_ld=yes
12904 ;;
12905*)
12906 lt_cv_prog_gnu_ld=no
12907 ;;
12908esac
12909fi
12910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12911$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12912with_gnu_ld=$lt_cv_prog_gnu_ld
12913
12914
12915
12916
12917
12918
12919
12920 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12921 # archiving commands below assume that GNU ld is being used.
12922 if test "$with_gnu_ld" = yes; then
12923 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12924 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'
12925
12926 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12927 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12928
12929 # If archive_cmds runs LD, not CC, wlarc should be empty
12930 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12931 # investigate it a little bit more. (MM)
12932 wlarc='${wl}'
12933
12934 # ancient GNU ld didn't support --whole-archive et. al.
12935 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12936 $GREP 'no-whole-archive' > /dev/null; then
12937 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12938 else
12939 whole_archive_flag_spec_CXX=
12940 fi
12941 else
12942 with_gnu_ld=no
12943 wlarc=
12944
12945 # A generic and very simple default shared library creation
12946 # command for GNU C++ for the case where it uses the native
12947 # linker, instead of GNU ld. If possible, this setting should
12948 # overridden to take advantage of the native linker features on
12949 # the platform it is being used on.
12950 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12951 fi
12952
12953 # Commands to make compiler produce verbose output that lists
12954 # what "hidden" libraries, object files and flags are used when
12955 # linking a shared library.
12956 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12957
12958 else
12959 GXX=no
12960 with_gnu_ld=no
12961 wlarc=
12962 fi
12963
12964 # PORTME: fill in a description of your system's C++ link characteristics
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12966$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12967 ld_shlibs_CXX=yes
12968 case $host_os in
12969 aix3*)
12970 # FIXME: insert proper C++ library support
12971 ld_shlibs_CXX=no
12972 ;;
12973 aix[4-9]*)
12974 if test "$host_cpu" = ia64; then
12975 # On IA64, the linker does run time linking by default, so we don't
12976 # have to do anything special.
12977 aix_use_runtimelinking=no
12978 exp_sym_flag='-Bexport'
12979 no_entry_flag=""
12980 else
12981 aix_use_runtimelinking=no
12982
12983 # Test if we are trying to use run time linking or normal
12984 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12985 # need to do runtime linking.
12986 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12987 for ld_flag in $LDFLAGS; do
12988 case $ld_flag in
12989 *-brtl*)
12990 aix_use_runtimelinking=yes
12991 break
12992 ;;
12993 esac
12994 done
12995 ;;
12996 esac
12997
12998 exp_sym_flag='-bexport'
12999 no_entry_flag='-bnoentry'
13000 fi
13001
13002 # When large executables or shared objects are built, AIX ld can
13003 # have problems creating the table of contents. If linking a library
13004 # or program results in "error TOC overflow" add -mminimal-toc to
13005 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13006 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13007
13008 archive_cmds_CXX=''
13009 hardcode_direct_CXX=yes
13010 hardcode_direct_absolute_CXX=yes
13011 hardcode_libdir_separator_CXX=':'
13012 link_all_deplibs_CXX=yes
13013 file_list_spec_CXX='${wl}-f,'
13014
13015 if test "$GXX" = yes; then
13016 case $host_os in aix4.[012]|aix4.[012].*)
13017 # We only want to do this on AIX 4.2 and lower, the check
13018 # below for broken collect2 doesn't work under 4.3+
13019 collect2name=`${CC} -print-prog-name=collect2`
13020 if test -f "$collect2name" &&
13021 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13022 then
13023 # We have reworked collect2
13024 :
13025 else
13026 # We have old collect2
13027 hardcode_direct_CXX=unsupported
13028 # It fails to find uninstalled libraries when the uninstalled
13029 # path is not listed in the libpath. Setting hardcode_minus_L
13030 # to unsupported forces relinking
13031 hardcode_minus_L_CXX=yes
13032 hardcode_libdir_flag_spec_CXX='-L$libdir'
13033 hardcode_libdir_separator_CXX=
13034 fi
13035 esac
13036 shared_flag='-shared'
13037 if test "$aix_use_runtimelinking" = yes; then
13038 shared_flag="$shared_flag "'${wl}-G'
13039 fi
13040 else
13041 # not using gcc
13042 if test "$host_cpu" = ia64; then
13043 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13044 # chokes on -Wl,-G. The following line is correct:
13045 shared_flag='-G'
13046 else
13047 if test "$aix_use_runtimelinking" = yes; then
13048 shared_flag='${wl}-G'
13049 else
13050 shared_flag='${wl}-bM:SRE'
13051 fi
13052 fi
13053 fi
13054
13055 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13056 # It seems that -bexpall does not export symbols beginning with
13057 # underscore (_), so it is better to generate a list of symbols to
13058 # export.
13059 always_export_symbols_CXX=yes
13060 if test "$aix_use_runtimelinking" = yes; then
13061 # Warning - without using the other runtime loading flags (-brtl),
13062 # -berok will link without error, but may produce a broken library.
13063 allow_undefined_flag_CXX='-berok'
13064 # Determine the default libpath from the value encoded in an empty
13065 # executable.
13066 if test "${lt_cv_aix_libpath+set}" = set; then
13067 aix_libpath=$lt_cv_aix_libpath
13068else
13069 if ${lt_cv_aix_libpath__CXX+:} false; then :
13070 $as_echo_n "(cached) " >&6
13071else
13072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13073/* end confdefs.h. */
13074
13075int
13076main ()
13077{
13078
13079 ;
13080 return 0;
13081}
13082_ACEOF
13083if ac_fn_cxx_try_link "$LINENO"; then :
13084
13085 lt_aix_libpath_sed='
13086 /Import File Strings/,/^$/ {
13087 /^0/ {
13088 s/^0 *\([^ ]*\) *$/\1/
13089 p
13090 }
13091 }'
13092 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13093 # Check for a 64-bit object if we didn't find anything.
13094 if test -z "$lt_cv_aix_libpath__CXX"; then
13095 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13096 fi
13097fi
13098rm -f core conftest.err conftest.$ac_objext \
13099 conftest$ac_exeext conftest.$ac_ext
13100 if test -z "$lt_cv_aix_libpath__CXX"; then
13101 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13102 fi
13103
13104fi
13105
13106 aix_libpath=$lt_cv_aix_libpath__CXX
13107fi
13108
13109 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13110
13111 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"
13112 else
13113 if test "$host_cpu" = ia64; then
13114 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13115 allow_undefined_flag_CXX="-z nodefs"
13116 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"
13117 else
13118 # Determine the default libpath from the value encoded in an
13119 # empty executable.
13120 if test "${lt_cv_aix_libpath+set}" = set; then
13121 aix_libpath=$lt_cv_aix_libpath
13122else
13123 if ${lt_cv_aix_libpath__CXX+:} false; then :
13124 $as_echo_n "(cached) " >&6
13125else
13126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13127/* end confdefs.h. */
13128
13129int
13130main ()
13131{
13132
13133 ;
13134 return 0;
13135}
13136_ACEOF
13137if ac_fn_cxx_try_link "$LINENO"; then :
13138
13139 lt_aix_libpath_sed='
13140 /Import File Strings/,/^$/ {
13141 /^0/ {
13142 s/^0 *\([^ ]*\) *$/\1/
13143 p
13144 }
13145 }'
13146 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13147 # Check for a 64-bit object if we didn't find anything.
13148 if test -z "$lt_cv_aix_libpath__CXX"; then
13149 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13150 fi
13151fi
13152rm -f core conftest.err conftest.$ac_objext \
13153 conftest$ac_exeext conftest.$ac_ext
13154 if test -z "$lt_cv_aix_libpath__CXX"; then
13155 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13156 fi
13157
13158fi
13159
13160 aix_libpath=$lt_cv_aix_libpath__CXX
13161fi
13162
13163 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13164 # Warning - without using the other run time loading flags,
13165 # -berok will link without error, but may produce a broken library.
13166 no_undefined_flag_CXX=' ${wl}-bernotok'
13167 allow_undefined_flag_CXX=' ${wl}-berok'
13168 if test "$with_gnu_ld" = yes; then
13169 # We only use this code for GNU lds that support --whole-archive.
13170 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13171 else
13172 # Exported symbols can be pulled into shared objects from archives
13173 whole_archive_flag_spec_CXX='$convenience'
13174 fi
13175 archive_cmds_need_lc_CXX=yes
13176 # This is similar to how AIX traditionally builds its shared
13177 # libraries.
13178 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'
13179 fi
13180 fi
13181 ;;
13182
13183 beos*)
13184 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13185 allow_undefined_flag_CXX=unsupported
13186 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13187 # support --undefined. This deserves some investigation. FIXME
13188 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13189 else
13190 ld_shlibs_CXX=no
13191 fi
13192 ;;
13193
13194 chorus*)
13195 case $cc_basename in
13196 *)
13197 # FIXME: insert proper C++ library support
13198 ld_shlibs_CXX=no
13199 ;;
13200 esac
13201 ;;
13202
13203 cygwin* | mingw* | pw32* | cegcc*)
13204 case $GXX,$cc_basename in
13205 ,cl* | no,cl*)
13206 # Native MSVC
13207 # hardcode_libdir_flag_spec is actually meaningless, as there is
13208 # no search path for DLLs.
13209 hardcode_libdir_flag_spec_CXX=' '
13210 allow_undefined_flag_CXX=unsupported
13211 always_export_symbols_CXX=yes
13212 file_list_spec_CXX='@'
13213 # Tell ltmain to make .lib files, not .a files.
13214 libext=lib
13215 # Tell ltmain to make .dll files, not .so files.
13216 shrext_cmds=".dll"
13217 # FIXME: Setting linknames here is a bad hack.
13218 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13219 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13220 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13221 else
13222 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13223 fi~
13224 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13225 linknames='
13226 # The linker will not automatically build a static lib if we build a DLL.
13227 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13228 enable_shared_with_static_runtimes_CXX=yes
13229 # Don't use ranlib
13230 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13231 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13232 lt_tool_outputfile="@TOOL_OUTPUT@"~
13233 case $lt_outputfile in
13234 *.exe|*.EXE) ;;
13235 *)
13236 lt_outputfile="$lt_outputfile.exe"
13237 lt_tool_outputfile="$lt_tool_outputfile.exe"
13238 ;;
13239 esac~
13240 func_to_tool_file "$lt_outputfile"~
13241 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13242 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13243 $RM "$lt_outputfile.manifest";
13244 fi'
13245 ;;
13246 *)
13247 # g++
13248 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13249 # as there is no search path for DLLs.
13250 hardcode_libdir_flag_spec_CXX='-L$libdir'
13251 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13252 allow_undefined_flag_CXX=unsupported
13253 always_export_symbols_CXX=no
13254 enable_shared_with_static_runtimes_CXX=yes
13255
13256 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13257 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'
13258 # If the export-symbols file already is a .def file (1st line
13259 # is EXPORTS), use it as is; otherwise, prepend...
13260 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13261 cp $export_symbols $output_objdir/$soname.def;
13262 else
13263 echo EXPORTS > $output_objdir/$soname.def;
13264 cat $export_symbols >> $output_objdir/$soname.def;
13265 fi~
13266 $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'
13267 else
13268 ld_shlibs_CXX=no
13269 fi
13270 ;;
13271 esac
13272 ;;
13273 darwin* | rhapsody*)
13274
13275
13276 archive_cmds_need_lc_CXX=no
13277 hardcode_direct_CXX=no
13278 hardcode_automatic_CXX=yes
13279 hardcode_shlibpath_var_CXX=unsupported
13280 if test "$lt_cv_ld_force_load" = "yes"; then
13281 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\"`'
13282
13283 else
13284 whole_archive_flag_spec_CXX=''
13285 fi
13286 link_all_deplibs_CXX=yes
13287 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13288 case $cc_basename in
13289 ifort*) _lt_dar_can_shared=yes ;;
13290 *) _lt_dar_can_shared=$GCC ;;
13291 esac
13292 if test "$_lt_dar_can_shared" = "yes"; then
13293 output_verbose_link_cmd=func_echo_all
13294 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}"
13295 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13296 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}"
13297 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}"
13298 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13299 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}"
13300 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}"
13301 fi
13302
13303 else
13304 ld_shlibs_CXX=no
13305 fi
13306
13307 ;;
13308
13309 dgux*)
13310 case $cc_basename in
13311 ec++*)
13312 # FIXME: insert proper C++ library support
13313 ld_shlibs_CXX=no
13314 ;;
13315 ghcx*)
13316 # Green Hills C++ Compiler
13317 # FIXME: insert proper C++ library support
13318 ld_shlibs_CXX=no
13319 ;;
13320 *)
13321 # FIXME: insert proper C++ library support
13322 ld_shlibs_CXX=no
13323 ;;
13324 esac
13325 ;;
13326
13327 freebsd2.*)
13328 # C++ shared libraries reported to be fairly broken before
13329 # switch to ELF
13330 ld_shlibs_CXX=no
13331 ;;
13332
13333 freebsd-elf*)
13334 archive_cmds_need_lc_CXX=no
13335 ;;
13336
13337 freebsd* | dragonfly*)
13338 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13339 # conventions
13340 ld_shlibs_CXX=yes
13341 ;;
13342
13343 gnu*)
13344 ;;
13345
13346 haiku*)
13347 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13348 link_all_deplibs_CXX=yes
13349 ;;
13350
13351 hpux9*)
13352 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13353 hardcode_libdir_separator_CXX=:
13354 export_dynamic_flag_spec_CXX='${wl}-E'
13355 hardcode_direct_CXX=yes
13356 hardcode_minus_L_CXX=yes # Not in the search PATH,
13357 # but as the default
13358 # location of the library.
13359
13360 case $cc_basename in
13361 CC*)
13362 # FIXME: insert proper C++ library support
13363 ld_shlibs_CXX=no
13364 ;;
13365 aCC*)
13366 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'
13367 # Commands to make compiler produce verbose output that lists
13368 # what "hidden" libraries, object files and flags are used when
13369 # linking a shared library.
13370 #
13371 # There doesn't appear to be a way to prevent this compiler from
13372 # explicitly linking system object files so we need to strip them
13373 # from the output so that they don't get included in the library
13374 # dependencies.
13375 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"'
13376 ;;
13377 *)
13378 if test "$GXX" = yes; then
13379 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'
13380 else
13381 # FIXME: insert proper C++ library support
13382 ld_shlibs_CXX=no
13383 fi
13384 ;;
13385 esac
13386 ;;
13387
13388 hpux10*|hpux11*)
13389 if test $with_gnu_ld = no; then
13390 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13391 hardcode_libdir_separator_CXX=:
13392
13393 case $host_cpu in
13394 hppa*64*|ia64*)
13395 ;;
13396 *)
13397 export_dynamic_flag_spec_CXX='${wl}-E'
13398 ;;
13399 esac
13400 fi
13401 case $host_cpu in
13402 hppa*64*|ia64*)
13403 hardcode_direct_CXX=no
13404 hardcode_shlibpath_var_CXX=no
13405 ;;
13406 *)
13407 hardcode_direct_CXX=yes
13408 hardcode_direct_absolute_CXX=yes
13409 hardcode_minus_L_CXX=yes # Not in the search PATH,
13410 # but as the default
13411 # location of the library.
13412 ;;
13413 esac
13414
13415 case $cc_basename in
13416 CC*)
13417 # FIXME: insert proper C++ library support
13418 ld_shlibs_CXX=no
13419 ;;
13420 aCC*)
13421 case $host_cpu in
13422 hppa*64*)
13423 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13424 ;;
13425 ia64*)
13426 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13427 ;;
13428 *)
13429 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13430 ;;
13431 esac
13432 # Commands to make compiler produce verbose output that lists
13433 # what "hidden" libraries, object files and flags are used when
13434 # linking a shared library.
13435 #
13436 # There doesn't appear to be a way to prevent this compiler from
13437 # explicitly linking system object files so we need to strip them
13438 # from the output so that they don't get included in the library
13439 # dependencies.
13440 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"'
13441 ;;
13442 *)
13443 if test "$GXX" = yes; then
13444 if test $with_gnu_ld = no; then
13445 case $host_cpu in
13446 hppa*64*)
13447 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13448 ;;
13449 ia64*)
13450 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13451 ;;
13452 *)
13453 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'
13454 ;;
13455 esac
13456 fi
13457 else
13458 # FIXME: insert proper C++ library support
13459 ld_shlibs_CXX=no
13460 fi
13461 ;;
13462 esac
13463 ;;
13464
13465 interix[3-9]*)
13466 hardcode_direct_CXX=no
13467 hardcode_shlibpath_var_CXX=no
13468 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13469 export_dynamic_flag_spec_CXX='${wl}-E'
13470 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13471 # Instead, shared libraries are loaded at an image base (0x10000000 by
13472 # default) and relocated if they conflict, which is a slow very memory
13473 # consuming and fragmenting process. To avoid this, we pick a random,
13474 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13475 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13476 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'
13477 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'
13478 ;;
13479 irix5* | irix6*)
13480 case $cc_basename in
13481 CC*)
13482 # SGI C++
13483 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'
13484
13485 # Archives containing C++ object files must be created using
13486 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13487 # necessary to make sure instantiated templates are included
13488 # in the archive.
13489 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13490 ;;
13491 *)
13492 if test "$GXX" = yes; then
13493 if test "$with_gnu_ld" = no; then
13494 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'
13495 else
13496 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'
13497 fi
13498 fi
13499 link_all_deplibs_CXX=yes
13500 ;;
13501 esac
13502 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13503 hardcode_libdir_separator_CXX=:
13504 inherit_rpath_CXX=yes
13505 ;;
13506
13507 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13508 case $cc_basename in
13509 KCC*)
13510 # Kuck and Associates, Inc. (KAI) C++ Compiler
13511
13512 # KCC will only create a shared library if the output file
13513 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13514 # to its proper name (with version) after linking.
13515 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'
13516 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'
13517 # Commands to make compiler produce verbose output that lists
13518 # what "hidden" libraries, object files and flags are used when
13519 # linking a shared library.
13520 #
13521 # There doesn't appear to be a way to prevent this compiler from
13522 # explicitly linking system object files so we need to strip them
13523 # from the output so that they don't get included in the library
13524 # dependencies.
13525 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"'
13526
13527 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13528 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13529
13530 # Archives containing C++ object files must be created using
13531 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13532 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13533 ;;
13534 icpc* | ecpc* )
13535 # Intel C++
13536 with_gnu_ld=yes
13537 # version 8.0 and above of icpc choke on multiply defined symbols
13538 # if we add $predep_objects and $postdep_objects, however 7.1 and
13539 # earlier do not add the objects themselves.
13540 case `$CC -V 2>&1` in
13541 *"Version 7."*)
13542 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13543 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'
13544 ;;
13545 *) # Version 8.0 or newer
13546 tmp_idyn=
13547 case $host_cpu in
13548 ia64*) tmp_idyn=' -i_dynamic';;
13549 esac
13550 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13551 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'
13552 ;;
13553 esac
13554 archive_cmds_need_lc_CXX=no
13555 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13556 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13557 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13558 ;;
13559 pgCC* | pgcpp*)
13560 # Portland Group C++ compiler
13561 case `$CC -V` in
13562 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13563 prelink_cmds_CXX='tpldir=Template.dir~
13564 rm -rf $tpldir~
13565 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13566 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13567 old_archive_cmds_CXX='tpldir=Template.dir~
13568 rm -rf $tpldir~
13569 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13570 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13571 $RANLIB $oldlib'
13572 archive_cmds_CXX='tpldir=Template.dir~
13573 rm -rf $tpldir~
13574 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13575 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13576 archive_expsym_cmds_CXX='tpldir=Template.dir~
13577 rm -rf $tpldir~
13578 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13579 $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'
13580 ;;
13581 *) # Version 6 and above use weak symbols
13582 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13583 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'
13584 ;;
13585 esac
13586
13587 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13588 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13589 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'
13590 ;;
13591 cxx*)
13592 # Compaq C++
13593 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13594 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'
13595
13596 runpath_var=LD_RUN_PATH
13597 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13598 hardcode_libdir_separator_CXX=:
13599
13600 # Commands to make compiler produce verbose output that lists
13601 # what "hidden" libraries, object files and flags are used when
13602 # linking a shared library.
13603 #
13604 # There doesn't appear to be a way to prevent this compiler from
13605 # explicitly linking system object files so we need to strip them
13606 # from the output so that they don't get included in the library
13607 # dependencies.
13608 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'
13609 ;;
13610 xl* | mpixl* | bgxl*)
13611 # IBM XL 8.0 on PPC, with GNU ld
13612 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13613 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13614 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13615 if test "x$supports_anon_versioning" = xyes; then
13616 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13617 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13618 echo "local: *; };" >> $output_objdir/$libname.ver~
13619 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13620 fi
13621 ;;
13622 *)
13623 case `$CC -V 2>&1 | sed 5q` in
13624 *Sun\ C*)
13625 # Sun C++ 5.9
13626 no_undefined_flag_CXX=' -zdefs'
13627 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13628 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'
13629 hardcode_libdir_flag_spec_CXX='-R$libdir'
13630 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'
13631 compiler_needs_object_CXX=yes
13632
13633 # Not sure whether something based on
13634 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13635 # would be better.
13636 output_verbose_link_cmd='func_echo_all'
13637
13638 # Archives containing C++ object files must be created using
13639 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13640 # necessary to make sure instantiated templates are included
13641 # in the archive.
13642 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13643 ;;
13644 esac
13645 ;;
13646 esac
13647 ;;
13648
13649 lynxos*)
13650 # FIXME: insert proper C++ library support
13651 ld_shlibs_CXX=no
13652 ;;
13653
13654 m88k*)
13655 # FIXME: insert proper C++ library support
13656 ld_shlibs_CXX=no
13657 ;;
13658
13659 mvs*)
13660 case $cc_basename in
13661 cxx*)
13662 # FIXME: insert proper C++ library support
13663 ld_shlibs_CXX=no
13664 ;;
13665 *)
13666 # FIXME: insert proper C++ library support
13667 ld_shlibs_CXX=no
13668 ;;
13669 esac
13670 ;;
13671
13672 netbsd*)
13673 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13674 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13675 wlarc=
13676 hardcode_libdir_flag_spec_CXX='-R$libdir'
13677 hardcode_direct_CXX=yes
13678 hardcode_shlibpath_var_CXX=no
13679 fi
13680 # Workaround some broken pre-1.5 toolchains
13681 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13682 ;;
13683
13684 *nto* | *qnx*)
13685 ld_shlibs_CXX=yes
13686 ;;
13687
13688 openbsd2*)
13689 # C++ shared libraries are fairly broken
13690 ld_shlibs_CXX=no
13691 ;;
13692
13693 openbsd*)
13694 if test -f /usr/libexec/ld.so; then
13695 hardcode_direct_CXX=yes
13696 hardcode_shlibpath_var_CXX=no
13697 hardcode_direct_absolute_CXX=yes
13698 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13699 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13700 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13701 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13702 export_dynamic_flag_spec_CXX='${wl}-E'
13703 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13704 fi
13705 output_verbose_link_cmd=func_echo_all
13706 else
13707 ld_shlibs_CXX=no
13708 fi
13709 ;;
13710
13711 osf3* | osf4* | osf5*)
13712 case $cc_basename in
13713 KCC*)
13714 # Kuck and Associates, Inc. (KAI) C++ Compiler
13715
13716 # KCC will only create a shared library if the output file
13717 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13718 # to its proper name (with version) after linking.
13719 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'
13720
13721 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13722 hardcode_libdir_separator_CXX=:
13723
13724 # Archives containing C++ object files must be created using
13725 # the KAI C++ compiler.
13726 case $host in
13727 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13728 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13729 esac
13730 ;;
13731 RCC*)
13732 # Rational C++ 2.4.1
13733 # FIXME: insert proper C++ library support
13734 ld_shlibs_CXX=no
13735 ;;
13736 cxx*)
13737 case $host in
13738 osf3*)
13739 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13740 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'
13741 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13742 ;;
13743 *)
13744 allow_undefined_flag_CXX=' -expect_unresolved \*'
13745 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'
13746 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13747 echo "-hidden">> $lib.exp~
13748 $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~
13749 $RM $lib.exp'
13750 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13751 ;;
13752 esac
13753
13754 hardcode_libdir_separator_CXX=:
13755
13756 # Commands to make compiler produce verbose output that lists
13757 # what "hidden" libraries, object files and flags are used when
13758 # linking a shared library.
13759 #
13760 # There doesn't appear to be a way to prevent this compiler from
13761 # explicitly linking system object files so we need to strip them
13762 # from the output so that they don't get included in the library
13763 # dependencies.
13764 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"'
13765 ;;
13766 *)
13767 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13768 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13769 case $host in
13770 osf3*)
13771 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'
13772 ;;
13773 *)
13774 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'
13775 ;;
13776 esac
13777
13778 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13779 hardcode_libdir_separator_CXX=:
13780
13781 # Commands to make compiler produce verbose output that lists
13782 # what "hidden" libraries, object files and flags are used when
13783 # linking a shared library.
13784 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13785
13786 else
13787 # FIXME: insert proper C++ library support
13788 ld_shlibs_CXX=no
13789 fi
13790 ;;
13791 esac
13792 ;;
13793
13794 psos*)
13795 # FIXME: insert proper C++ library support
13796 ld_shlibs_CXX=no
13797 ;;
13798
13799 sunos4*)
13800 case $cc_basename in
13801 CC*)
13802 # Sun C++ 4.x
13803 # FIXME: insert proper C++ library support
13804 ld_shlibs_CXX=no
13805 ;;
13806 lcc*)
13807 # Lucid
13808 # FIXME: insert proper C++ library support
13809 ld_shlibs_CXX=no
13810 ;;
13811 *)
13812 # FIXME: insert proper C++ library support
13813 ld_shlibs_CXX=no
13814 ;;
13815 esac
13816 ;;
13817
13818 solaris*)
13819 case $cc_basename in
13820 CC* | sunCC*)
13821 # Sun C++ 4.2, 5.x and Centerline C++
13822 archive_cmds_need_lc_CXX=yes
13823 no_undefined_flag_CXX=' -zdefs'
13824 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13825 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13826 $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'
13827
13828 hardcode_libdir_flag_spec_CXX='-R$libdir'
13829 hardcode_shlibpath_var_CXX=no
13830 case $host_os in
13831 solaris2.[0-5] | solaris2.[0-5].*) ;;
13832 *)
13833 # The compiler driver will combine and reorder linker options,
13834 # but understands `-z linker_flag'.
13835 # Supported since Solaris 2.6 (maybe 2.5.1?)
13836 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13837 ;;
13838 esac
13839 link_all_deplibs_CXX=yes
13840
13841 output_verbose_link_cmd='func_echo_all'
13842
13843 # Archives containing C++ object files must be created using
13844 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13845 # necessary to make sure instantiated templates are included
13846 # in the archive.
13847 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13848 ;;
13849 gcx*)
13850 # Green Hills C++ Compiler
13851 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13852
13853 # The C++ compiler must be used to create the archive.
13854 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13855 ;;
13856 *)
13857 # GNU C++ compiler with Solaris linker
13858 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13859 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13860 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13861 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13862 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13863 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13864
13865 # Commands to make compiler produce verbose output that lists
13866 # what "hidden" libraries, object files and flags are used when
13867 # linking a shared library.
13868 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13869 else
13870 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13871 # platform.
13872 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13873 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13874 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13875
13876 # Commands to make compiler produce verbose output that lists
13877 # what "hidden" libraries, object files and flags are used when
13878 # linking a shared library.
13879 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13880 fi
13881
13882 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13883 case $host_os in
13884 solaris2.[0-5] | solaris2.[0-5].*) ;;
13885 *)
13886 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13887 ;;
13888 esac
13889 fi
13890 ;;
13891 esac
13892 ;;
13893
13894 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13895 no_undefined_flag_CXX='${wl}-z,text'
13896 archive_cmds_need_lc_CXX=no
13897 hardcode_shlibpath_var_CXX=no
13898 runpath_var='LD_RUN_PATH'
13899
13900 case $cc_basename in
13901 CC*)
13902 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13903 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13904 ;;
13905 *)
13906 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13907 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13908 ;;
13909 esac
13910 ;;
13911
13912 sysv5* | sco3.2v5* | sco5v6*)
13913 # Note: We can NOT use -z defs as we might desire, because we do not
13914 # link with -lc, and that would cause any symbols used from libc to
13915 # always be unresolved, which means just about no library would
13916 # ever link correctly. If we're not using GNU ld we use -z text
13917 # though, which does catch some bad symbols but isn't as heavy-handed
13918 # as -z defs.
13919 no_undefined_flag_CXX='${wl}-z,text'
13920 allow_undefined_flag_CXX='${wl}-z,nodefs'
13921 archive_cmds_need_lc_CXX=no
13922 hardcode_shlibpath_var_CXX=no
13923 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13924 hardcode_libdir_separator_CXX=':'
13925 link_all_deplibs_CXX=yes
13926 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13927 runpath_var='LD_RUN_PATH'
13928
13929 case $cc_basename in
13930 CC*)
13931 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13932 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13933 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13934 '"$old_archive_cmds_CXX"
13935 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13936 '"$reload_cmds_CXX"
13937 ;;
13938 *)
13939 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13940 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13941 ;;
13942 esac
13943 ;;
13944
13945 tandem*)
13946 case $cc_basename in
13947 NCC*)
13948 # NonStop-UX NCC 3.20
13949 # FIXME: insert proper C++ library support
13950 ld_shlibs_CXX=no
13951 ;;
13952 *)
13953 # FIXME: insert proper C++ library support
13954 ld_shlibs_CXX=no
13955 ;;
13956 esac
13957 ;;
13958
13959 vxworks*)
13960 # FIXME: insert proper C++ library support
13961 ld_shlibs_CXX=no
13962 ;;
13963
13964 *)
13965 # FIXME: insert proper C++ library support
13966 ld_shlibs_CXX=no
13967 ;;
13968 esac
13969
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13971$as_echo "$ld_shlibs_CXX" >&6; }
13972 test "$ld_shlibs_CXX" = no && can_build_shared=no
13973
13974 GCC_CXX="$GXX"
13975 LD_CXX="$LD"
13976
13977 ## CAVEAT EMPTOR:
13978 ## There is no encapsulation within the following macros, do not change
13979 ## the running order or otherwise move them around unless you know exactly
13980 ## what you are doing...
13981 # Dependencies to place before and after the object being linked:
13982predep_objects_CXX=
13983postdep_objects_CXX=
13984predeps_CXX=
13985postdeps_CXX=
13986compiler_lib_search_path_CXX=
13987
13988cat > conftest.$ac_ext <<_LT_EOF
13989class Foo
13990{
13991public:
13992 Foo (void) { a = 0; }
13993private:
13994 int a;
13995};
13996_LT_EOF
13997
13998
13999_lt_libdeps_save_CFLAGS=$CFLAGS
14000case "$CC $CFLAGS " in #(
14001*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14002*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14003*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14004esac
14005
14006if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14007 (eval $ac_compile) 2>&5
14008 ac_status=$?
14009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14010 test $ac_status = 0; }; then
14011 # Parse the compiler output and extract the necessary
14012 # objects, libraries and library flags.
14013
14014 # Sentinel used to keep track of whether or not we are before
14015 # the conftest object file.
14016 pre_test_object_deps_done=no
14017
14018 for p in `eval "$output_verbose_link_cmd"`; do
14019 case ${prev}${p} in
14020
14021 -L* | -R* | -l*)
14022 # Some compilers place space between "-{L,R}" and the path.
14023 # Remove the space.
14024 if test $p = "-L" ||
14025 test $p = "-R"; then
14026 prev=$p
14027 continue
14028 fi
14029
14030 # Expand the sysroot to ease extracting the directories later.
14031 if test -z "$prev"; then
14032 case $p in
14033 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14034 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14035 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14036 esac
14037 fi
14038 case $p in
14039 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14040 esac
14041 if test "$pre_test_object_deps_done" = no; then
14042 case ${prev} in
14043 -L | -R)
14044 # Internal compiler library paths should come after those
14045 # provided the user. The postdeps already come after the
14046 # user supplied libs so there is no need to process them.
14047 if test -z "$compiler_lib_search_path_CXX"; then
14048 compiler_lib_search_path_CXX="${prev}${p}"
14049 else
14050 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14051 fi
14052 ;;
14053 # The "-l" case would never come before the object being
14054 # linked, so don't bother handling this case.
14055 esac
14056 else
14057 if test -z "$postdeps_CXX"; then
14058 postdeps_CXX="${prev}${p}"
14059 else
14060 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14061 fi
14062 fi
14063 prev=
14064 ;;
14065
14066 *.lto.$objext) ;; # Ignore GCC LTO objects
14067 *.$objext)
14068 # This assumes that the test object file only shows up
14069 # once in the compiler output.
14070 if test "$p" = "conftest.$objext"; then
14071 pre_test_object_deps_done=yes
14072 continue
14073 fi
14074
14075 if test "$pre_test_object_deps_done" = no; then
14076 if test -z "$predep_objects_CXX"; then
14077 predep_objects_CXX="$p"
14078 else
14079 predep_objects_CXX="$predep_objects_CXX $p"
14080 fi
14081 else
14082 if test -z "$postdep_objects_CXX"; then
14083 postdep_objects_CXX="$p"
14084 else
14085 postdep_objects_CXX="$postdep_objects_CXX $p"
14086 fi
14087 fi
14088 ;;
14089
14090 *) ;; # Ignore the rest.
14091
14092 esac
14093 done
14094
14095 # Clean up.
14096 rm -f a.out a.exe
14097else
14098 echo "libtool.m4: error: problem compiling CXX test program"
14099fi
14100
14101$RM -f confest.$objext
14102CFLAGS=$_lt_libdeps_save_CFLAGS
14103
14104# PORTME: override above test on systems where it is broken
14105case $host_os in
14106interix[3-9]*)
14107 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14108 # hack all around it, let's just trust "g++" to DTRT.
14109 predep_objects_CXX=
14110 postdep_objects_CXX=
14111 postdeps_CXX=
14112 ;;
14113
14114linux*)
14115 case `$CC -V 2>&1 | sed 5q` in
14116 *Sun\ C*)
14117 # Sun C++ 5.9
14118
14119 # The more standards-conforming stlport4 library is
14120 # incompatible with the Cstd library. Avoid specifying
14121 # it if it's in CXXFLAGS. Ignore libCrun as
14122 # -library=stlport4 depends on it.
14123 case " $CXX $CXXFLAGS " in
14124 *" -library=stlport4 "*)
14125 solaris_use_stlport4=yes
14126 ;;
14127 esac
14128
14129 if test "$solaris_use_stlport4" != yes; then
14130 postdeps_CXX='-library=Cstd -library=Crun'
14131 fi
14132 ;;
14133 esac
14134 ;;
14135
14136solaris*)
14137 case $cc_basename in
14138 CC* | sunCC*)
14139 # The more standards-conforming stlport4 library is
14140 # incompatible with the Cstd library. Avoid specifying
14141 # it if it's in CXXFLAGS. Ignore libCrun as
14142 # -library=stlport4 depends on it.
14143 case " $CXX $CXXFLAGS " in
14144 *" -library=stlport4 "*)
14145 solaris_use_stlport4=yes
14146 ;;
14147 esac
14148
14149 # Adding this requires a known-good setup of shared libraries for
14150 # Sun compiler versions before 5.6, else PIC objects from an old
14151 # archive will be linked into the output, leading to subtle bugs.
14152 if test "$solaris_use_stlport4" != yes; then
14153 postdeps_CXX='-library=Cstd -library=Crun'
14154 fi
14155 ;;
14156 esac
14157 ;;
14158esac
14159
14160
14161case " $postdeps_CXX " in
14162*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14163esac
14164 compiler_lib_search_dirs_CXX=
14165if test -n "${compiler_lib_search_path_CXX}"; then
14166 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14167fi
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199 lt_prog_compiler_wl_CXX=
14200lt_prog_compiler_pic_CXX=
14201lt_prog_compiler_static_CXX=
14202
14203
14204 # C++ specific cases for pic, static, wl, etc.
14205 if test "$GXX" = yes; then
14206 lt_prog_compiler_wl_CXX='-Wl,'
14207 lt_prog_compiler_static_CXX='-static'
14208
14209 case $host_os in
14210 aix*)
14211 # All AIX code is PIC.
14212 if test "$host_cpu" = ia64; then
14213 # AIX 5 now supports IA64 processor
14214 lt_prog_compiler_static_CXX='-Bstatic'
14215 fi
14216 ;;
14217
14218 amigaos*)
14219 case $host_cpu in
14220 powerpc)
14221 # see comment about AmigaOS4 .so support
14222 lt_prog_compiler_pic_CXX='-fPIC'
14223 ;;
14224 m68k)
14225 # FIXME: we need at least 68020 code to build shared libraries, but
14226 # adding the `-m68020' flag to GCC prevents building anything better,
14227 # like `-m68040'.
14228 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14229 ;;
14230 esac
14231 ;;
14232
14233 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14234 # PIC is the default for these OSes.
14235 ;;
14236 mingw* | cygwin* | os2* | pw32* | cegcc*)
14237 # This hack is so that the source file can tell whether it is being
14238 # built for inclusion in a dll (and should export symbols for example).
14239 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14240 # (--disable-auto-import) libraries
14241 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14242 ;;
14243 darwin* | rhapsody*)
14244 # PIC is the default on this platform
14245 # Common symbols not allowed in MH_DYLIB files
14246 lt_prog_compiler_pic_CXX='-fno-common'
14247 ;;
14248 *djgpp*)
14249 # DJGPP does not support shared libraries at all
14250 lt_prog_compiler_pic_CXX=
14251 ;;
14252 haiku*)
14253 # PIC is the default for Haiku.
14254 # The "-static" flag exists, but is broken.
14255 lt_prog_compiler_static_CXX=
14256 ;;
14257 interix[3-9]*)
14258 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14259 # Instead, we relocate shared libraries at runtime.
14260 ;;
14261 sysv4*MP*)
14262 if test -d /usr/nec; then
14263 lt_prog_compiler_pic_CXX=-Kconform_pic
14264 fi
14265 ;;
14266 hpux*)
14267 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14268 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14269 # sets the default TLS model and affects inlining.
14270 case $host_cpu in
14271 hppa*64*)
14272 ;;
14273 *)
14274 lt_prog_compiler_pic_CXX='-fPIC'
14275 ;;
14276 esac
14277 ;;
14278 *qnx* | *nto*)
14279 # QNX uses GNU C++, but need to define -shared option too, otherwise
14280 # it will coredump.
14281 lt_prog_compiler_pic_CXX='-fPIC -shared'
14282 ;;
14283 *)
14284 lt_prog_compiler_pic_CXX='-fPIC'
14285 ;;
14286 esac
14287 else
14288 case $host_os in
14289 aix[4-9]*)
14290 # All AIX code is PIC.
14291 if test "$host_cpu" = ia64; then
14292 # AIX 5 now supports IA64 processor
14293 lt_prog_compiler_static_CXX='-Bstatic'
14294 else
14295 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14296 fi
14297 ;;
14298 chorus*)
14299 case $cc_basename in
14300 cxch68*)
14301 # Green Hills C++ Compiler
14302 # _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"
14303 ;;
14304 esac
14305 ;;
14306 mingw* | cygwin* | os2* | pw32* | cegcc*)
14307 # This hack is so that the source file can tell whether it is being
14308 # built for inclusion in a dll (and should export symbols for example).
14309 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14310 ;;
14311 dgux*)
14312 case $cc_basename in
14313 ec++*)
14314 lt_prog_compiler_pic_CXX='-KPIC'
14315 ;;
14316 ghcx*)
14317 # Green Hills C++ Compiler
14318 lt_prog_compiler_pic_CXX='-pic'
14319 ;;
14320 *)
14321 ;;
14322 esac
14323 ;;
14324 freebsd* | dragonfly*)
14325 # FreeBSD uses GNU C++
14326 ;;
14327 hpux9* | hpux10* | hpux11*)
14328 case $cc_basename in
14329 CC*)
14330 lt_prog_compiler_wl_CXX='-Wl,'
14331 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14332 if test "$host_cpu" != ia64; then
14333 lt_prog_compiler_pic_CXX='+Z'
14334 fi
14335 ;;
14336 aCC*)
14337 lt_prog_compiler_wl_CXX='-Wl,'
14338 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14339 case $host_cpu in
14340 hppa*64*|ia64*)
14341 # +Z the default
14342 ;;
14343 *)
14344 lt_prog_compiler_pic_CXX='+Z'
14345 ;;
14346 esac
14347 ;;
14348 *)
14349 ;;
14350 esac
14351 ;;
14352 interix*)
14353 # This is c89, which is MS Visual C++ (no shared libs)
14354 # Anyone wants to do a port?
14355 ;;
14356 irix5* | irix6* | nonstopux*)
14357 case $cc_basename in
14358 CC*)
14359 lt_prog_compiler_wl_CXX='-Wl,'
14360 lt_prog_compiler_static_CXX='-non_shared'
14361 # CC pic flag -KPIC is the default.
14362 ;;
14363 *)
14364 ;;
14365 esac
14366 ;;
14367 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14368 case $cc_basename in
14369 KCC*)
14370 # KAI C++ Compiler
14371 lt_prog_compiler_wl_CXX='--backend -Wl,'
14372 lt_prog_compiler_pic_CXX='-fPIC'
14373 ;;
14374 ecpc* )
14375 # old Intel C++ for x86_64 which still supported -KPIC.
14376 lt_prog_compiler_wl_CXX='-Wl,'
14377 lt_prog_compiler_pic_CXX='-KPIC'
14378 lt_prog_compiler_static_CXX='-static'
14379 ;;
14380 icpc* )
14381 # Intel C++, used to be incompatible with GCC.
14382 # ICC 10 doesn't accept -KPIC any more.
14383 lt_prog_compiler_wl_CXX='-Wl,'
14384 lt_prog_compiler_pic_CXX='-fPIC'
14385 lt_prog_compiler_static_CXX='-static'
14386 ;;
14387 pgCC* | pgcpp*)
14388 # Portland Group C++ compiler
14389 lt_prog_compiler_wl_CXX='-Wl,'
14390 lt_prog_compiler_pic_CXX='-fpic'
14391 lt_prog_compiler_static_CXX='-Bstatic'
14392 ;;
14393 cxx*)
14394 # Compaq C++
14395 # Make sure the PIC flag is empty. It appears that all Alpha
14396 # Linux and Compaq Tru64 Unix objects are PIC.
14397 lt_prog_compiler_pic_CXX=
14398 lt_prog_compiler_static_CXX='-non_shared'
14399 ;;
14400 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14401 # IBM XL 8.0, 9.0 on PPC and BlueGene
14402 lt_prog_compiler_wl_CXX='-Wl,'
14403 lt_prog_compiler_pic_CXX='-qpic'
14404 lt_prog_compiler_static_CXX='-qstaticlink'
14405 ;;
14406 *)
14407 case `$CC -V 2>&1 | sed 5q` in
14408 *Sun\ C*)
14409 # Sun C++ 5.9
14410 lt_prog_compiler_pic_CXX='-KPIC'
14411 lt_prog_compiler_static_CXX='-Bstatic'
14412 lt_prog_compiler_wl_CXX='-Qoption ld '
14413 ;;
14414 esac
14415 ;;
14416 esac
14417 ;;
14418 lynxos*)
14419 ;;
14420 m88k*)
14421 ;;
14422 mvs*)
14423 case $cc_basename in
14424 cxx*)
14425 lt_prog_compiler_pic_CXX='-W c,exportall'
14426 ;;
14427 *)
14428 ;;
14429 esac
14430 ;;
14431 netbsd*)
14432 ;;
14433 *qnx* | *nto*)
14434 # QNX uses GNU C++, but need to define -shared option too, otherwise
14435 # it will coredump.
14436 lt_prog_compiler_pic_CXX='-fPIC -shared'
14437 ;;
14438 osf3* | osf4* | osf5*)
14439 case $cc_basename in
14440 KCC*)
14441 lt_prog_compiler_wl_CXX='--backend -Wl,'
14442 ;;
14443 RCC*)
14444 # Rational C++ 2.4.1
14445 lt_prog_compiler_pic_CXX='-pic'
14446 ;;
14447 cxx*)
14448 # Digital/Compaq C++
14449 lt_prog_compiler_wl_CXX='-Wl,'
14450 # Make sure the PIC flag is empty. It appears that all Alpha
14451 # Linux and Compaq Tru64 Unix objects are PIC.
14452 lt_prog_compiler_pic_CXX=
14453 lt_prog_compiler_static_CXX='-non_shared'
14454 ;;
14455 *)
14456 ;;
14457 esac
14458 ;;
14459 psos*)
14460 ;;
14461 solaris*)
14462 case $cc_basename in
14463 CC* | sunCC*)
14464 # Sun C++ 4.2, 5.x and Centerline C++
14465 lt_prog_compiler_pic_CXX='-KPIC'
14466 lt_prog_compiler_static_CXX='-Bstatic'
14467 lt_prog_compiler_wl_CXX='-Qoption ld '
14468 ;;
14469 gcx*)
14470 # Green Hills C++ Compiler
14471 lt_prog_compiler_pic_CXX='-PIC'
14472 ;;
14473 *)
14474 ;;
14475 esac
14476 ;;
14477 sunos4*)
14478 case $cc_basename in
14479 CC*)
14480 # Sun C++ 4.x
14481 lt_prog_compiler_pic_CXX='-pic'
14482 lt_prog_compiler_static_CXX='-Bstatic'
14483 ;;
14484 lcc*)
14485 # Lucid
14486 lt_prog_compiler_pic_CXX='-pic'
14487 ;;
14488 *)
14489 ;;
14490 esac
14491 ;;
14492 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14493 case $cc_basename in
14494 CC*)
14495 lt_prog_compiler_wl_CXX='-Wl,'
14496 lt_prog_compiler_pic_CXX='-KPIC'
14497 lt_prog_compiler_static_CXX='-Bstatic'
14498 ;;
14499 esac
14500 ;;
14501 tandem*)
14502 case $cc_basename in
14503 NCC*)
14504 # NonStop-UX NCC 3.20
14505 lt_prog_compiler_pic_CXX='-KPIC'
14506 ;;
14507 *)
14508 ;;
14509 esac
14510 ;;
14511 vxworks*)
14512 ;;
14513 *)
14514 lt_prog_compiler_can_build_shared_CXX=no
14515 ;;
14516 esac
14517 fi
14518
14519case $host_os in
14520 # For platforms which do not support PIC, -DPIC is meaningless:
14521 *djgpp*)
14522 lt_prog_compiler_pic_CXX=
14523 ;;
14524 *)
14525 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14526 ;;
14527esac
14528
14529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14530$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14531if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14532 $as_echo_n "(cached) " >&6
14533else
14534 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14535fi
14536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14537$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14538lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14539
14540#
14541# Check to make sure the PIC flag actually works.
14542#
14543if test -n "$lt_prog_compiler_pic_CXX"; then
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14545$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14546if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14547 $as_echo_n "(cached) " >&6
14548else
14549 lt_cv_prog_compiler_pic_works_CXX=no
14550 ac_outfile=conftest.$ac_objext
14551 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14552 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14553 # Insert the option either (1) after the last *FLAGS variable, or
14554 # (2) before a word containing "conftest.", or (3) at the end.
14555 # Note that $ac_compile itself does not contain backslashes and begins
14556 # with a dollar sign (not a hyphen), so the echo should work correctly.
14557 # The option is referenced via a variable to avoid confusing sed.
14558 lt_compile=`echo "$ac_compile" | $SED \
14559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14561 -e 's:$: $lt_compiler_flag:'`
14562 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14563 (eval "$lt_compile" 2>conftest.err)
14564 ac_status=$?
14565 cat conftest.err >&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 if (exit $ac_status) && test -s "$ac_outfile"; then
14568 # The compiler can only warn and ignore the option if not recognized
14569 # So say no if there are warnings other than the usual output.
14570 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14571 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14572 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14573 lt_cv_prog_compiler_pic_works_CXX=yes
14574 fi
14575 fi
14576 $RM conftest*
14577
14578fi
14579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14580$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14581
14582if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14583 case $lt_prog_compiler_pic_CXX in
14584 "" | " "*) ;;
14585 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14586 esac
14587else
14588 lt_prog_compiler_pic_CXX=
14589 lt_prog_compiler_can_build_shared_CXX=no
14590fi
14591
14592fi
14593
14594
14595
14596
14597
14598#
14599# Check to make sure the static flag actually works.
14600#
14601wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14603$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14604if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14605 $as_echo_n "(cached) " >&6
14606else
14607 lt_cv_prog_compiler_static_works_CXX=no
14608 save_LDFLAGS="$LDFLAGS"
14609 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14610 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14611 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14612 # The linker can only warn and ignore the option if not recognized
14613 # So say no if there are warnings
14614 if test -s conftest.err; then
14615 # Append any errors to the config.log.
14616 cat conftest.err 1>&5
14617 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14618 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14619 if diff conftest.exp conftest.er2 >/dev/null; then
14620 lt_cv_prog_compiler_static_works_CXX=yes
14621 fi
14622 else
14623 lt_cv_prog_compiler_static_works_CXX=yes
14624 fi
14625 fi
14626 $RM -r conftest*
14627 LDFLAGS="$save_LDFLAGS"
14628
14629fi
14630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14631$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14632
14633if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14634 :
14635else
14636 lt_prog_compiler_static_CXX=
14637fi
14638
14639
14640
14641
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14643$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14644if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14645 $as_echo_n "(cached) " >&6
14646else
14647 lt_cv_prog_compiler_c_o_CXX=no
14648 $RM -r conftest 2>/dev/null
14649 mkdir conftest
14650 cd conftest
14651 mkdir out
14652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14653
14654 lt_compiler_flag="-o out/conftest2.$ac_objext"
14655 # Insert the option either (1) after the last *FLAGS variable, or
14656 # (2) before a word containing "conftest.", or (3) at the end.
14657 # Note that $ac_compile itself does not contain backslashes and begins
14658 # with a dollar sign (not a hyphen), so the echo should work correctly.
14659 lt_compile=`echo "$ac_compile" | $SED \
14660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14662 -e 's:$: $lt_compiler_flag:'`
14663 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14664 (eval "$lt_compile" 2>out/conftest.err)
14665 ac_status=$?
14666 cat out/conftest.err >&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14669 then
14670 # The compiler can only warn and ignore the option if not recognized
14671 # So say no if there are warnings
14672 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14673 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14674 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14675 lt_cv_prog_compiler_c_o_CXX=yes
14676 fi
14677 fi
14678 chmod u+w . 2>&5
14679 $RM conftest*
14680 # SGI C++ compiler will create directory out/ii_files/ for
14681 # template instantiation
14682 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14683 $RM out/* && rmdir out
14684 cd ..
14685 $RM -r conftest
14686 $RM conftest*
14687
14688fi
14689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14690$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14691
14692
14693
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14695$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14696if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14697 $as_echo_n "(cached) " >&6
14698else
14699 lt_cv_prog_compiler_c_o_CXX=no
14700 $RM -r conftest 2>/dev/null
14701 mkdir conftest
14702 cd conftest
14703 mkdir out
14704 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14705
14706 lt_compiler_flag="-o out/conftest2.$ac_objext"
14707 # Insert the option either (1) after the last *FLAGS variable, or
14708 # (2) before a word containing "conftest.", or (3) at the end.
14709 # Note that $ac_compile itself does not contain backslashes and begins
14710 # with a dollar sign (not a hyphen), so the echo should work correctly.
14711 lt_compile=`echo "$ac_compile" | $SED \
14712 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14714 -e 's:$: $lt_compiler_flag:'`
14715 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14716 (eval "$lt_compile" 2>out/conftest.err)
14717 ac_status=$?
14718 cat out/conftest.err >&5
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14721 then
14722 # The compiler can only warn and ignore the option if not recognized
14723 # So say no if there are warnings
14724 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14725 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14726 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14727 lt_cv_prog_compiler_c_o_CXX=yes
14728 fi
14729 fi
14730 chmod u+w . 2>&5
14731 $RM conftest*
14732 # SGI C++ compiler will create directory out/ii_files/ for
14733 # template instantiation
14734 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14735 $RM out/* && rmdir out
14736 cd ..
14737 $RM -r conftest
14738 $RM conftest*
14739
14740fi
14741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14742$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14743
14744
14745
14746
14747hard_links="nottested"
14748if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14749 # do not overwrite the value of need_locks provided by the user
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14751$as_echo_n "checking if we can lock with hard links... " >&6; }
14752 hard_links=yes
14753 $RM conftest*
14754 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14755 touch conftest.a
14756 ln conftest.a conftest.b 2>&5 || hard_links=no
14757 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14759$as_echo "$hard_links" >&6; }
14760 if test "$hard_links" = no; then
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14762$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14763 need_locks=warn
14764 fi
14765else
14766 need_locks=no
14767fi
14768
14769
14770
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14772$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14773
14774 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14775 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14776 case $host_os in
14777 aix[4-9]*)
14778 # If we're using GNU nm, then we don't want the "-C" option.
14779 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14780 # Also, AIX nm treats weak defined symbols like other global defined
14781 # symbols, whereas GNU nm marks them as "W".
14782 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14783 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'
14784 else
14785 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'
14786 fi
14787 ;;
14788 pw32*)
14789 export_symbols_cmds_CXX="$ltdll_cmds"
14790 ;;
14791 cygwin* | mingw* | cegcc*)
14792 case $cc_basename in
14793 cl*)
14794 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14795 ;;
14796 *)
14797 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'
14798 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14799 ;;
14800 esac
14801 ;;
14802 *)
14803 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14804 ;;
14805 esac
14806
14807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14808$as_echo "$ld_shlibs_CXX" >&6; }
14809test "$ld_shlibs_CXX" = no && can_build_shared=no
14810
14811with_gnu_ld_CXX=$with_gnu_ld
14812
14813
14814
14815
14816
14817
14818#
14819# Do we need to explicitly link libc?
14820#
14821case "x$archive_cmds_need_lc_CXX" in
14822x|xyes)
14823 # Assume -lc should be added
14824 archive_cmds_need_lc_CXX=yes
14825
14826 if test "$enable_shared" = yes && test "$GCC" = yes; then
14827 case $archive_cmds_CXX in
14828 *'~'*)
14829 # FIXME: we may have to deal with multi-command sequences.
14830 ;;
14831 '$CC '*)
14832 # Test whether the compiler implicitly links with -lc since on some
14833 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14834 # to ld, don't add -lc before -lgcc.
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14836$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14837if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14838 $as_echo_n "(cached) " >&6
14839else
14840 $RM conftest*
14841 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14842
14843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14844 (eval $ac_compile) 2>&5
14845 ac_status=$?
14846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14847 test $ac_status = 0; } 2>conftest.err; then
14848 soname=conftest
14849 lib=conftest
14850 libobjs=conftest.$ac_objext
14851 deplibs=
14852 wl=$lt_prog_compiler_wl_CXX
14853 pic_flag=$lt_prog_compiler_pic_CXX
14854 compiler_flags=-v
14855 linker_flags=-v
14856 verstring=
14857 output_objdir=.
14858 libname=conftest
14859 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14860 allow_undefined_flag_CXX=
14861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14862 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14863 ac_status=$?
14864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14865 test $ac_status = 0; }
14866 then
14867 lt_cv_archive_cmds_need_lc_CXX=no
14868 else
14869 lt_cv_archive_cmds_need_lc_CXX=yes
14870 fi
14871 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14872 else
14873 cat conftest.err 1>&5
14874 fi
14875 $RM conftest*
14876
14877fi
14878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14879$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14880 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14881 ;;
14882 esac
14883 fi
14884 ;;
14885esac
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14949$as_echo_n "checking dynamic linker characteristics... " >&6; }
14950
14951library_names_spec=
14952libname_spec='lib$name'
14953soname_spec=
14954shrext_cmds=".so"
14955postinstall_cmds=
14956postuninstall_cmds=
14957finish_cmds=
14958finish_eval=
14959shlibpath_var=
14960shlibpath_overrides_runpath=unknown
14961version_type=none
14962dynamic_linker="$host_os ld.so"
14963sys_lib_dlsearch_path_spec="/lib /usr/lib"
14964need_lib_prefix=unknown
14965hardcode_into_libs=no
14966
14967# when you set need_version to no, make sure it does not cause -set_version
14968# flags to be left without arguments
14969need_version=unknown
14970
14971case $host_os in
14972aix3*)
14973 version_type=linux # correct to gnu/linux during the next big refactor
14974 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14975 shlibpath_var=LIBPATH
14976
14977 # AIX 3 has no versioning support, so we append a major version to the name.
14978 soname_spec='${libname}${release}${shared_ext}$major'
14979 ;;
14980
14981aix[4-9]*)
14982 version_type=linux # correct to gnu/linux during the next big refactor
14983 need_lib_prefix=no
14984 need_version=no
14985 hardcode_into_libs=yes
14986 if test "$host_cpu" = ia64; then
14987 # AIX 5 supports IA64
14988 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14989 shlibpath_var=LD_LIBRARY_PATH
14990 else
14991 # With GCC up to 2.95.x, collect2 would create an import file
14992 # for dependence libraries. The import file would start with
14993 # the line `#! .'. This would cause the generated library to
14994 # depend on `.', always an invalid library. This was fixed in
14995 # development snapshots of GCC prior to 3.0.
14996 case $host_os in
14997 aix4 | aix4.[01] | aix4.[01].*)
14998 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14999 echo ' yes '
15000 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15001 :
15002 else
15003 can_build_shared=no
15004 fi
15005 ;;
15006 esac
15007 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15008 # soname into executable. Probably we can add versioning support to
15009 # collect2, so additional links can be useful in future.
15010 if test "$aix_use_runtimelinking" = yes; then
15011 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15012 # instead of lib<name>.a to let people know that these are not
15013 # typical AIX shared libraries.
15014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15015 else
15016 # We preserve .a as extension for shared libraries through AIX4.2
15017 # and later when we are not doing run time linking.
15018 library_names_spec='${libname}${release}.a $libname.a'
15019 soname_spec='${libname}${release}${shared_ext}$major'
15020 fi
15021 shlibpath_var=LIBPATH
15022 fi
15023 ;;
15024
15025amigaos*)
15026 case $host_cpu in
15027 powerpc)
15028 # Since July 2007 AmigaOS4 officially supports .so libraries.
15029 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15031 ;;
15032 m68k)
15033 library_names_spec='$libname.ixlibrary $libname.a'
15034 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15035 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'
15036 ;;
15037 esac
15038 ;;
15039
15040beos*)
15041 library_names_spec='${libname}${shared_ext}'
15042 dynamic_linker="$host_os ld.so"
15043 shlibpath_var=LIBRARY_PATH
15044 ;;
15045
15046bsdi[45]*)
15047 version_type=linux # correct to gnu/linux during the next big refactor
15048 need_version=no
15049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15050 soname_spec='${libname}${release}${shared_ext}$major'
15051 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15052 shlibpath_var=LD_LIBRARY_PATH
15053 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15054 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15055 # the default ld.so.conf also contains /usr/contrib/lib and
15056 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15057 # libtool to hard-code these into programs
15058 ;;
15059
15060cygwin* | mingw* | pw32* | cegcc*)
15061 version_type=windows
15062 shrext_cmds=".dll"
15063 need_version=no
15064 need_lib_prefix=no
15065
15066 case $GCC,$cc_basename in
15067 yes,*)
15068 # gcc
15069 library_names_spec='$libname.dll.a'
15070 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15071 postinstall_cmds='base_file=`basename \${file}`~
15072 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15073 dldir=$destdir/`dirname \$dlpath`~
15074 test -d \$dldir || mkdir -p \$dldir~
15075 $install_prog $dir/$dlname \$dldir/$dlname~
15076 chmod a+x \$dldir/$dlname~
15077 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15078 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15079 fi'
15080 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15081 dlpath=$dir/\$dldll~
15082 $RM \$dlpath'
15083 shlibpath_overrides_runpath=yes
15084
15085 case $host_os in
15086 cygwin*)
15087 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15088 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15089
15090 ;;
15091 mingw* | cegcc*)
15092 # MinGW DLLs use traditional 'lib' prefix
15093 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15094 ;;
15095 pw32*)
15096 # pw32 DLLs use 'pw' prefix rather than 'lib'
15097 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15098 ;;
15099 esac
15100 dynamic_linker='Win32 ld.exe'
15101 ;;
15102
15103 *,cl*)
15104 # Native MSVC
15105 libname_spec='$name'
15106 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15107 library_names_spec='${libname}.dll.lib'
15108
15109 case $build_os in
15110 mingw*)
15111 sys_lib_search_path_spec=
15112 lt_save_ifs=$IFS
15113 IFS=';'
15114 for lt_path in $LIB
15115 do
15116 IFS=$lt_save_ifs
15117 # Let DOS variable expansion print the short 8.3 style file name.
15118 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15119 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15120 done
15121 IFS=$lt_save_ifs
15122 # Convert to MSYS style.
15123 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15124 ;;
15125 cygwin*)
15126 # Convert to unix form, then to dos form, then back to unix form
15127 # but this time dos style (no spaces!) so that the unix form looks
15128 # like /cygdrive/c/PROGRA~1:/cygdr...
15129 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15130 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15131 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15132 ;;
15133 *)
15134 sys_lib_search_path_spec="$LIB"
15135 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15136 # It is most probably a Windows format PATH.
15137 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15138 else
15139 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15140 fi
15141 # FIXME: find the short name or the path components, as spaces are
15142 # common. (e.g. "Program Files" -> "PROGRA~1")
15143 ;;
15144 esac
15145
15146 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15147 postinstall_cmds='base_file=`basename \${file}`~
15148 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15149 dldir=$destdir/`dirname \$dlpath`~
15150 test -d \$dldir || mkdir -p \$dldir~
15151 $install_prog $dir/$dlname \$dldir/$dlname'
15152 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15153 dlpath=$dir/\$dldll~
15154 $RM \$dlpath'
15155 shlibpath_overrides_runpath=yes
15156 dynamic_linker='Win32 link.exe'
15157 ;;
15158
15159 *)
15160 # Assume MSVC wrapper
15161 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15162 dynamic_linker='Win32 ld.exe'
15163 ;;
15164 esac
15165 # FIXME: first we should search . and the directory the executable is in
15166 shlibpath_var=PATH
15167 ;;
15168
15169darwin* | rhapsody*)
15170 dynamic_linker="$host_os dyld"
15171 version_type=darwin
15172 need_lib_prefix=no
15173 need_version=no
15174 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15175 soname_spec='${libname}${release}${major}$shared_ext'
15176 shlibpath_overrides_runpath=yes
15177 shlibpath_var=DYLD_LIBRARY_PATH
15178 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15179
15180 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15181 ;;
15182
15183dgux*)
15184 version_type=linux # correct to gnu/linux during the next big refactor
15185 need_lib_prefix=no
15186 need_version=no
15187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15188 soname_spec='${libname}${release}${shared_ext}$major'
15189 shlibpath_var=LD_LIBRARY_PATH
15190 ;;
15191
15192freebsd* | dragonfly*)
15193 # DragonFly does not have aout. When/if they implement a new
15194 # versioning mechanism, adjust this.
15195 if test -x /usr/bin/objformat; then
15196 objformat=`/usr/bin/objformat`
15197 else
15198 case $host_os in
15199 freebsd[23].*) objformat=aout ;;
15200 *) objformat=elf ;;
15201 esac
15202 fi
15203 version_type=freebsd-$objformat
15204 case $version_type in
15205 freebsd-elf*)
15206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15207 need_version=no
15208 need_lib_prefix=no
15209 ;;
15210 freebsd-*)
15211 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15212 need_version=yes
15213 ;;
15214 esac
15215 shlibpath_var=LD_LIBRARY_PATH
15216 case $host_os in
15217 freebsd2.*)
15218 shlibpath_overrides_runpath=yes
15219 ;;
15220 freebsd3.[01]* | freebsdelf3.[01]*)
15221 shlibpath_overrides_runpath=yes
15222 hardcode_into_libs=yes
15223 ;;
15224 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15225 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15226 shlibpath_overrides_runpath=no
15227 hardcode_into_libs=yes
15228 ;;
15229 *) # from 4.6 on, and DragonFly
15230 shlibpath_overrides_runpath=yes
15231 hardcode_into_libs=yes
15232 ;;
15233 esac
15234 ;;
15235
15236gnu*)
15237 version_type=linux # correct to gnu/linux during the next big refactor
15238 need_lib_prefix=no
15239 need_version=no
15240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15241 soname_spec='${libname}${release}${shared_ext}$major'
15242 shlibpath_var=LD_LIBRARY_PATH
15243 shlibpath_overrides_runpath=no
15244 hardcode_into_libs=yes
15245 ;;
15246
15247haiku*)
15248 version_type=linux # correct to gnu/linux during the next big refactor
15249 need_lib_prefix=no
15250 need_version=no
15251 dynamic_linker="$host_os runtime_loader"
15252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15253 soname_spec='${libname}${release}${shared_ext}$major'
15254 shlibpath_var=LIBRARY_PATH
15255 shlibpath_overrides_runpath=yes
15256 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15257 hardcode_into_libs=yes
15258 ;;
15259
15260hpux9* | hpux10* | hpux11*)
15261 # Give a soname corresponding to the major version so that dld.sl refuses to
15262 # link against other versions.
15263 version_type=sunos
15264 need_lib_prefix=no
15265 need_version=no
15266 case $host_cpu in
15267 ia64*)
15268 shrext_cmds='.so'
15269 hardcode_into_libs=yes
15270 dynamic_linker="$host_os dld.so"
15271 shlibpath_var=LD_LIBRARY_PATH
15272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15274 soname_spec='${libname}${release}${shared_ext}$major'
15275 if test "X$HPUX_IA64_MODE" = X32; then
15276 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15277 else
15278 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15279 fi
15280 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15281 ;;
15282 hppa*64*)
15283 shrext_cmds='.sl'
15284 hardcode_into_libs=yes
15285 dynamic_linker="$host_os dld.sl"
15286 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15287 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15289 soname_spec='${libname}${release}${shared_ext}$major'
15290 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15291 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15292 ;;
15293 *)
15294 shrext_cmds='.sl'
15295 dynamic_linker="$host_os dld.sl"
15296 shlibpath_var=SHLIB_PATH
15297 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15299 soname_spec='${libname}${release}${shared_ext}$major'
15300 ;;
15301 esac
15302 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15303 postinstall_cmds='chmod 555 $lib'
15304 # or fails outright, so override atomically:
15305 install_override_mode=555
15306 ;;
15307
15308interix[3-9]*)
15309 version_type=linux # correct to gnu/linux during the next big refactor
15310 need_lib_prefix=no
15311 need_version=no
15312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15313 soname_spec='${libname}${release}${shared_ext}$major'
15314 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15315 shlibpath_var=LD_LIBRARY_PATH
15316 shlibpath_overrides_runpath=no
15317 hardcode_into_libs=yes
15318 ;;
15319
15320irix5* | irix6* | nonstopux*)
15321 case $host_os in
15322 nonstopux*) version_type=nonstopux ;;
15323 *)
15324 if test "$lt_cv_prog_gnu_ld" = yes; then
15325 version_type=linux # correct to gnu/linux during the next big refactor
15326 else
15327 version_type=irix
15328 fi ;;
15329 esac
15330 need_lib_prefix=no
15331 need_version=no
15332 soname_spec='${libname}${release}${shared_ext}$major'
15333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15334 case $host_os in
15335 irix5* | nonstopux*)
15336 libsuff= shlibsuff=
15337 ;;
15338 *)
15339 case $LD in # libtool.m4 will add one of these switches to LD
15340 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15341 libsuff= shlibsuff= libmagic=32-bit;;
15342 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15343 libsuff=32 shlibsuff=N32 libmagic=N32;;
15344 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15345 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15346 *) libsuff= shlibsuff= libmagic=never-match;;
15347 esac
15348 ;;
15349 esac
15350 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15351 shlibpath_overrides_runpath=no
15352 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15353 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15354 hardcode_into_libs=yes
15355 ;;
15356
15357# No shared lib support for Linux oldld, aout, or coff.
15358linux*oldld* | linux*aout* | linux*coff*)
15359 dynamic_linker=no
15360 ;;
15361
15362# This must be glibc/ELF.
15363linux* | k*bsd*-gnu | kopensolaris*-gnu)
15364 version_type=linux # correct to gnu/linux during the next big refactor
15365 need_lib_prefix=no
15366 need_version=no
15367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15368 soname_spec='${libname}${release}${shared_ext}$major'
15369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15370 shlibpath_var=LD_LIBRARY_PATH
15371 shlibpath_overrides_runpath=no
15372
15373 # Some binutils ld are patched to set DT_RUNPATH
15374 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15375 $as_echo_n "(cached) " >&6
15376else
15377 lt_cv_shlibpath_overrides_runpath=no
15378 save_LDFLAGS=$LDFLAGS
15379 save_libdir=$libdir
15380 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15381 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15383/* end confdefs.h. */
15384
15385int
15386main ()
15387{
15388
15389 ;
15390 return 0;
15391}
15392_ACEOF
15393if ac_fn_cxx_try_link "$LINENO"; then :
15394 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15395 lt_cv_shlibpath_overrides_runpath=yes
15396fi
15397fi
15398rm -f core conftest.err conftest.$ac_objext \
15399 conftest$ac_exeext conftest.$ac_ext
15400 LDFLAGS=$save_LDFLAGS
15401 libdir=$save_libdir
15402
15403fi
15404
15405 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15406
15407 # This implies no fast_install, which is unacceptable.
15408 # Some rework will be needed to allow for fast_install
15409 # before this can be enabled.
15410 hardcode_into_libs=yes
15411
15412 # Append ld.so.conf contents to the search path
15413 if test -f /etc/ld.so.conf; then
15414 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' ' '`
15415 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15416 fi
15417
15418 # We used to test for /lib/ld.so.1 and disable shared libraries on
15419 # powerpc, because MkLinux only supported shared libraries with the
15420 # GNU dynamic linker. Since this was broken with cross compilers,
15421 # most powerpc-linux boxes support dynamic linking these days and
15422 # people can always --disable-shared, the test was removed, and we
15423 # assume the GNU/Linux dynamic linker is in use.
15424 dynamic_linker='GNU/Linux ld.so'
15425 ;;
15426
15427netbsd*)
15428 version_type=sunos
15429 need_lib_prefix=no
15430 need_version=no
15431 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15434 dynamic_linker='NetBSD (a.out) ld.so'
15435 else
15436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15437 soname_spec='${libname}${release}${shared_ext}$major'
15438 dynamic_linker='NetBSD ld.elf_so'
15439 fi
15440 shlibpath_var=LD_LIBRARY_PATH
15441 shlibpath_overrides_runpath=yes
15442 hardcode_into_libs=yes
15443 ;;
15444
15445newsos6)
15446 version_type=linux # correct to gnu/linux during the next big refactor
15447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15448 shlibpath_var=LD_LIBRARY_PATH
15449 shlibpath_overrides_runpath=yes
15450 ;;
15451
15452*nto* | *qnx*)
15453 version_type=qnx
15454 need_lib_prefix=no
15455 need_version=no
15456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15457 soname_spec='${libname}${release}${shared_ext}$major'
15458 shlibpath_var=LD_LIBRARY_PATH
15459 shlibpath_overrides_runpath=no
15460 hardcode_into_libs=yes
15461 dynamic_linker='ldqnx.so'
15462 ;;
15463
15464openbsd*)
15465 version_type=sunos
15466 sys_lib_dlsearch_path_spec="/usr/lib"
15467 need_lib_prefix=no
15468 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15469 case $host_os in
15470 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15471 *) need_version=no ;;
15472 esac
15473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15475 shlibpath_var=LD_LIBRARY_PATH
15476 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15477 case $host_os in
15478 openbsd2.[89] | openbsd2.[89].*)
15479 shlibpath_overrides_runpath=no
15480 ;;
15481 *)
15482 shlibpath_overrides_runpath=yes
15483 ;;
15484 esac
15485 else
15486 shlibpath_overrides_runpath=yes
15487 fi
15488 ;;
15489
15490os2*)
15491 libname_spec='$name'
15492 shrext_cmds=".dll"
15493 need_lib_prefix=no
15494 library_names_spec='$libname${shared_ext} $libname.a'
15495 dynamic_linker='OS/2 ld.exe'
15496 shlibpath_var=LIBPATH
15497 ;;
15498
15499osf3* | osf4* | osf5*)
15500 version_type=osf
15501 need_lib_prefix=no
15502 need_version=no
15503 soname_spec='${libname}${release}${shared_ext}$major'
15504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15505 shlibpath_var=LD_LIBRARY_PATH
15506 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15507 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15508 ;;
15509
15510rdos*)
15511 dynamic_linker=no
15512 ;;
15513
15514solaris*)
15515 version_type=linux # correct to gnu/linux during the next big refactor
15516 need_lib_prefix=no
15517 need_version=no
15518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15519 soname_spec='${libname}${release}${shared_ext}$major'
15520 shlibpath_var=LD_LIBRARY_PATH
15521 shlibpath_overrides_runpath=yes
15522 hardcode_into_libs=yes
15523 # ldd complains unless libraries are executable
15524 postinstall_cmds='chmod +x $lib'
15525 ;;
15526
15527sunos4*)
15528 version_type=sunos
15529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15530 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15531 shlibpath_var=LD_LIBRARY_PATH
15532 shlibpath_overrides_runpath=yes
15533 if test "$with_gnu_ld" = yes; then
15534 need_lib_prefix=no
15535 fi
15536 need_version=yes
15537 ;;
15538
15539sysv4 | sysv4.3*)
15540 version_type=linux # correct to gnu/linux during the next big refactor
15541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15542 soname_spec='${libname}${release}${shared_ext}$major'
15543 shlibpath_var=LD_LIBRARY_PATH
15544 case $host_vendor in
15545 sni)
15546 shlibpath_overrides_runpath=no
15547 need_lib_prefix=no
15548 runpath_var=LD_RUN_PATH
15549 ;;
15550 siemens)
15551 need_lib_prefix=no
15552 ;;
15553 motorola)
15554 need_lib_prefix=no
15555 need_version=no
15556 shlibpath_overrides_runpath=no
15557 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15558 ;;
15559 esac
15560 ;;
15561
15562sysv4*MP*)
15563 if test -d /usr/nec ;then
15564 version_type=linux # correct to gnu/linux during the next big refactor
15565 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15566 soname_spec='$libname${shared_ext}.$major'
15567 shlibpath_var=LD_LIBRARY_PATH
15568 fi
15569 ;;
15570
15571sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15572 version_type=freebsd-elf
15573 need_lib_prefix=no
15574 need_version=no
15575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15576 soname_spec='${libname}${release}${shared_ext}$major'
15577 shlibpath_var=LD_LIBRARY_PATH
15578 shlibpath_overrides_runpath=yes
15579 hardcode_into_libs=yes
15580 if test "$with_gnu_ld" = yes; then
15581 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15582 else
15583 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15584 case $host_os in
15585 sco3.2v5*)
15586 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15587 ;;
15588 esac
15589 fi
15590 sys_lib_dlsearch_path_spec='/usr/lib'
15591 ;;
15592
15593tpf*)
15594 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15595 version_type=linux # correct to gnu/linux during the next big refactor
15596 need_lib_prefix=no
15597 need_version=no
15598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15599 shlibpath_var=LD_LIBRARY_PATH
15600 shlibpath_overrides_runpath=no
15601 hardcode_into_libs=yes
15602 ;;
15603
15604uts4*)
15605 version_type=linux # correct to gnu/linux during the next big refactor
15606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15607 soname_spec='${libname}${release}${shared_ext}$major'
15608 shlibpath_var=LD_LIBRARY_PATH
15609 ;;
15610
15611*)
15612 dynamic_linker=no
15613 ;;
15614esac
15615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15616$as_echo "$dynamic_linker" >&6; }
15617test "$dynamic_linker" = no && can_build_shared=no
15618
15619variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15620if test "$GCC" = yes; then
15621 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15622fi
15623
15624if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15625 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15626fi
15627if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15628 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15629fi
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15669$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15670hardcode_action_CXX=
15671if test -n "$hardcode_libdir_flag_spec_CXX" ||
15672 test -n "$runpath_var_CXX" ||
15673 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15674
15675 # We can hardcode non-existent directories.
15676 if test "$hardcode_direct_CXX" != no &&
15677 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15678 # have to relink, otherwise we might link with an installed library
15679 # when we should be linking with a yet-to-be-installed one
15680 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15681 test "$hardcode_minus_L_CXX" != no; then
15682 # Linking always hardcodes the temporary library directory.
15683 hardcode_action_CXX=relink
15684 else
15685 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15686 hardcode_action_CXX=immediate
15687 fi
15688else
15689 # We cannot hardcode anything, or else we can only hardcode existing
15690 # directories.
15691 hardcode_action_CXX=unsupported
15692fi
15693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15694$as_echo "$hardcode_action_CXX" >&6; }
15695
15696if test "$hardcode_action_CXX" = relink ||
15697 test "$inherit_rpath_CXX" = yes; then
15698 # Fast installation is not supported
15699 enable_fast_install=no
15700elif test "$shlibpath_overrides_runpath" = yes ||
15701 test "$enable_shared" = no; then
15702 # Fast installation is not necessary
15703 enable_fast_install=needless
15704fi
15705
15706
15707
15708
15709
15710
15711
15712 fi # test -n "$compiler"
15713
15714 CC=$lt_save_CC
15715 CFLAGS=$lt_save_CFLAGS
15716 LDCXX=$LD
15717 LD=$lt_save_LD
15718 GCC=$lt_save_GCC
15719 with_gnu_ld=$lt_save_with_gnu_ld
15720 lt_cv_path_LDCXX=$lt_cv_path_LD
15721 lt_cv_path_LD=$lt_save_path_LD
15722 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15723 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15724fi # test "$_lt_caught_CXX_error" != yes
15725
15726ac_ext=c
15727ac_cpp='$CPP $CPPFLAGS'
15728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15730ac_compiler_gnu=$ac_cv_c_compiler_gnu
15731
15732
Jeff Thompson1a1b4c02013-06-28 22:28:51 -070015733
Jeff Thompson965a3242013-10-02 09:59:35 -070015734ac_ext=mm
15735ac_cpp='$OBJCXXCPP $CPPFLAGS'
15736ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15737ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15738ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
15739if test -n "$ac_tool_prefix"; then
15740 for ac_prog in g++ objc++ objcxx c++ CXX
15741 do
15742 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15743set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15745$as_echo_n "checking for $ac_word... " >&6; }
15746if ${ac_cv_prog_OBJCXX+:} false; then :
15747 $as_echo_n "(cached) " >&6
15748else
15749 if test -n "$OBJCXX"; then
15750 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
15751else
15752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15753for as_dir in $PATH
15754do
15755 IFS=$as_save_IFS
15756 test -z "$as_dir" && as_dir=.
15757 for ac_exec_ext in '' $ac_executable_extensions; do
15758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15759 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
15760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15761 break 2
15762 fi
15763done
15764 done
15765IFS=$as_save_IFS
15766
15767fi
15768fi
15769OBJCXX=$ac_cv_prog_OBJCXX
15770if test -n "$OBJCXX"; then
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
15772$as_echo "$OBJCXX" >&6; }
15773else
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15775$as_echo "no" >&6; }
15776fi
15777
15778
15779 test -n "$OBJCXX" && break
15780 done
15781fi
15782if test -z "$OBJCXX"; then
15783 ac_ct_OBJCXX=$OBJCXX
15784 for ac_prog in g++ objc++ objcxx c++ CXX
15785do
15786 # Extract the first word of "$ac_prog", so it can be a program name with args.
15787set dummy $ac_prog; ac_word=$2
15788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15789$as_echo_n "checking for $ac_word... " >&6; }
15790if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
15791 $as_echo_n "(cached) " >&6
15792else
15793 if test -n "$ac_ct_OBJCXX"; then
15794 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
15795else
15796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15797for as_dir in $PATH
15798do
15799 IFS=$as_save_IFS
15800 test -z "$as_dir" && as_dir=.
15801 for ac_exec_ext in '' $ac_executable_extensions; do
15802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15803 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
15804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15805 break 2
15806 fi
15807done
15808 done
15809IFS=$as_save_IFS
15810
15811fi
15812fi
15813ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
15814if test -n "$ac_ct_OBJCXX"; then
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
15816$as_echo "$ac_ct_OBJCXX" >&6; }
15817else
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15819$as_echo "no" >&6; }
15820fi
15821
15822
15823 test -n "$ac_ct_OBJCXX" && break
15824done
15825
15826 if test "x$ac_ct_OBJCXX" = x; then
15827 OBJCXX="g++"
15828 else
15829 case $cross_compiling:$ac_tool_warned in
15830yes:)
15831{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15832$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15833ac_tool_warned=yes ;;
15834esac
15835 OBJCXX=$ac_ct_OBJCXX
15836 fi
15837fi
15838
15839# Provide some information about the compiler.
15840$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
15841set X $ac_compile
15842ac_compiler=$2
15843for ac_option in --version -v -V -qversion; do
15844 { { ac_try="$ac_compiler $ac_option >&5"
15845case "(($ac_try" in
15846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15847 *) ac_try_echo=$ac_try;;
15848esac
15849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15850$as_echo "$ac_try_echo"; } >&5
15851 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15852 ac_status=$?
15853 if test -s conftest.err; then
15854 sed '10a\
15855... rest of stderr output deleted ...
15856 10q' conftest.err >conftest.er1
15857 cat conftest.er1 >&5
15858 fi
15859 rm -f conftest.er1 conftest.err
15860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15861 test $ac_status = 0; }
15862done
15863
15864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
15865$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
15866if ${ac_cv_objcxx_compiler_gnu+:} false; then :
15867 $as_echo_n "(cached) " >&6
15868else
15869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15870/* end confdefs.h. */
15871
15872int
15873main ()
15874{
15875#ifndef __GNUC__
15876 choke me
15877#endif
15878
15879 ;
15880 return 0;
15881}
15882_ACEOF
15883if ac_fn_objcxx_try_compile "$LINENO"; then :
15884 ac_compiler_gnu=yes
15885else
15886 ac_compiler_gnu=no
15887fi
15888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15889ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
15890
15891fi
15892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
15893$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
15894if test $ac_compiler_gnu = yes; then
15895 GOBJCXX=yes
15896else
15897 GOBJCXX=
15898fi
15899ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
15900ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
15901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
15902$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
15903if ${ac_cv_prog_objcxx_g+:} false; then :
15904 $as_echo_n "(cached) " >&6
15905else
15906 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
15907 ac_objcxx_werror_flag=yes
15908 ac_cv_prog_objcxx_g=no
15909 OBJCXXFLAGS="-g"
15910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15911/* end confdefs.h. */
15912
15913int
15914main ()
15915{
15916
15917 ;
15918 return 0;
15919}
15920_ACEOF
15921if ac_fn_objcxx_try_compile "$LINENO"; then :
15922 ac_cv_prog_objcxx_g=yes
15923else
15924 OBJCXXFLAGS=""
15925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15926/* end confdefs.h. */
15927
15928int
15929main ()
15930{
15931
15932 ;
15933 return 0;
15934}
15935_ACEOF
15936if ac_fn_objcxx_try_compile "$LINENO"; then :
15937
15938else
15939 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
15940 OBJCXXFLAGS="-g"
15941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15942/* end confdefs.h. */
15943
15944int
15945main ()
15946{
15947
15948 ;
15949 return 0;
15950}
15951_ACEOF
15952if ac_fn_objcxx_try_compile "$LINENO"; then :
15953 ac_cv_prog_objcxx_g=yes
15954fi
15955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15956fi
15957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15958fi
15959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15960 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
15961fi
15962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
15963$as_echo "$ac_cv_prog_objcxx_g" >&6; }
15964if test "$ac_test_OBJCXXFLAGS" = set; then
15965 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
15966elif test $ac_cv_prog_objcxx_g = yes; then
15967 if test "$GOBJCXX" = yes; then
15968 OBJCXXFLAGS="-g -O2"
15969 else
15970 OBJCXXFLAGS="-g"
15971 fi
15972else
15973 if test "$GOBJCXX" = yes; then
15974 OBJCXXFLAGS="-O2"
15975 else
15976 OBJCXXFLAGS=
15977 fi
15978fi
15979ac_ext=c
15980ac_cpp='$CPP $CPPFLAGS'
15981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15983ac_compiler_gnu=$ac_cv_c_compiler_gnu
15984
15985depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
15986
15987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15988$as_echo_n "checking dependency style of $depcc... " >&6; }
15989if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
15990 $as_echo_n "(cached) " >&6
15991else
15992 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15993 # We make a subdir and do the tests there. Otherwise we can end up
15994 # making bogus files that we don't know about and never remove. For
15995 # instance it was reported that on HP-UX the gcc test will end up
15996 # making a dummy file named 'D' -- because '-MD' means "put the output
15997 # in D".
15998 rm -rf conftest.dir
15999 mkdir conftest.dir
16000 # Copy depcomp to subdir because otherwise we won't find it if we're
16001 # using a relative directory.
16002 cp "$am_depcomp" conftest.dir
16003 cd conftest.dir
16004 # We will build objects and dependencies in a subdirectory because
16005 # it helps to detect inapplicable dependency modes. For instance
16006 # both Tru64's cc and ICC support -MD to output dependencies as a
16007 # side effect of compilation, but ICC will put the dependencies in
16008 # the current directory while Tru64 will put them in the object
16009 # directory.
16010 mkdir sub
16011
16012 am_cv_OBJCXX_dependencies_compiler_type=none
16013 if test "$am_compiler_list" = ""; then
16014 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16015 fi
16016 am__universal=false
16017
16018
16019 for depmode in $am_compiler_list; do
16020 # Setup a source with many dependencies, because some compilers
16021 # like to wrap large dependency lists on column 80 (with \), and
16022 # we should not choose a depcomp mode which is confused by this.
16023 #
16024 # We need to recreate these files for each test, as the compiler may
16025 # overwrite some of them when testing with obscure command lines.
16026 # This happens at least with the AIX C compiler.
16027 : > sub/conftest.c
16028 for i in 1 2 3 4 5 6; do
16029 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16030 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
16031 # Solaris 10 /bin/sh.
16032 echo '/* dummy */' > sub/conftst$i.h
16033 done
16034 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16035
16036 # We check with '-c' and '-o' for the sake of the "dashmstdout"
16037 # mode. It turns out that the SunPro C++ compiler does not properly
16038 # handle '-M -o', and we need to detect this. Also, some Intel
16039 # versions had trouble with output in subdirs.
16040 am__obj=sub/conftest.${OBJEXT-o}
16041 am__minus_obj="-o $am__obj"
16042 case $depmode in
16043 gcc)
16044 # This depmode causes a compiler race in universal mode.
16045 test "$am__universal" = false || continue
16046 ;;
16047 nosideeffect)
16048 # After this tag, mechanisms are not by side-effect, so they'll
16049 # only be used when explicitly requested.
16050 if test "x$enable_dependency_tracking" = xyes; then
16051 continue
16052 else
16053 break
16054 fi
16055 ;;
16056 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
16057 # This compiler won't grok '-c -o', but also, the minuso test has
16058 # not run yet. These depmodes are late enough in the game, and
16059 # so weak that their functioning should not be impacted.
16060 am__obj=conftest.${OBJEXT-o}
16061 am__minus_obj=
16062 ;;
16063 none) break ;;
16064 esac
16065 if depmode=$depmode \
16066 source=sub/conftest.c object=$am__obj \
16067 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16068 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16069 >/dev/null 2>conftest.err &&
16070 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16071 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16072 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16073 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16074 # icc doesn't choke on unknown options, it will just issue warnings
16075 # or remarks (even with -Werror). So we grep stderr for any message
16076 # that says an option was ignored or not supported.
16077 # When given -MP, icc 7.0 and 7.1 complain thusly:
16078 # icc: Command line warning: ignoring option '-M'; no argument required
16079 # The diagnosis changed in icc 8.0:
16080 # icc: Command line remark: option '-MP' not supported
16081 if (grep 'ignoring option' conftest.err ||
16082 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16083 am_cv_OBJCXX_dependencies_compiler_type=$depmode
16084 break
16085 fi
16086 fi
16087 done
16088
16089 cd ..
16090 rm -rf conftest.dir
16091else
16092 am_cv_OBJCXX_dependencies_compiler_type=none
16093fi
16094
16095fi
16096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
16097$as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
16098OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
16099
16100 if
16101 test "x$enable_dependency_tracking" != xno \
16102 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
16103 am__fastdepOBJCXX_TRUE=
16104 am__fastdepOBJCXX_FALSE='#'
16105else
16106 am__fastdepOBJCXX_TRUE='#'
16107 am__fastdepOBJCXX_FALSE=
16108fi
16109
16110
Jeff Thompson36174062013-06-21 16:03:44 -070016111ac_ext=cpp
16112ac_cpp='$CXXCPP $CPPFLAGS'
16113ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16114ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16115ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16116
Jeff Thompsonb18b6eb2013-10-11 18:28:50 -070016117
16118# Special case.
16119case "$host" in
16120 *-darwin* | *-macos10*)
16121 if test -d /opt/local ; then
16122 CFLAGS="$CFLAGS -I/opt/local/include"
16123 CXXFLAGS="$CXXFLAGS -I/opt/local/include"
16124 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
16125 LDFLAGS="$LDFLAGS -L/opt/local/lib"
16126 elif test -d /sw ; then
16127 CFLAGS="$CFLAGS -I/sw/include"
16128 CXXFLAGS="$CXXFLAGS -I/sw/include"
16129 CPPFLAGS="$CPPFLAGS -I/sw/include"
16130 LDFLAGS="$LDFLAGS -L/sw/lib"
16131 fi
16132 ;;
16133esac
16134
Jeff Thompson32a23332013-10-07 18:39:00 -070016135ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16136if test "x$ac_cv_type_size_t" = xyes; then :
16137
16138else
16139
16140cat >>confdefs.h <<_ACEOF
16141#define size_t unsigned int
16142_ACEOF
16143
16144fi
16145
16146ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
16147case $ac_cv_c_int8_t in #(
16148 no|yes) ;; #(
16149 *)
16150
16151cat >>confdefs.h <<_ACEOF
16152#define int8_t $ac_cv_c_int8_t
16153_ACEOF
16154;;
16155esac
16156
16157ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
16158case $ac_cv_c_int16_t in #(
16159 no|yes) ;; #(
16160 *)
16161
16162cat >>confdefs.h <<_ACEOF
16163#define int16_t $ac_cv_c_int16_t
16164_ACEOF
16165;;
16166esac
16167
16168ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
16169case $ac_cv_c_int32_t in #(
16170 no|yes) ;; #(
16171 *)
16172
16173cat >>confdefs.h <<_ACEOF
16174#define int32_t $ac_cv_c_int32_t
16175_ACEOF
16176;;
16177esac
16178
16179ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
16180case $ac_cv_c_int64_t in #(
16181 no|yes) ;; #(
16182 *)
16183
16184cat >>confdefs.h <<_ACEOF
16185#define int64_t $ac_cv_c_int64_t
16186_ACEOF
16187;;
16188esac
16189
16190ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
16191case $ac_cv_c_uint8_t in #(
16192 no|yes) ;; #(
16193 *)
16194
16195$as_echo "#define _UINT8_T 1" >>confdefs.h
16196
16197
16198cat >>confdefs.h <<_ACEOF
16199#define uint8_t $ac_cv_c_uint8_t
16200_ACEOF
16201;;
16202 esac
16203
16204ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
16205case $ac_cv_c_uint16_t in #(
16206 no|yes) ;; #(
16207 *)
16208
16209
16210cat >>confdefs.h <<_ACEOF
16211#define uint16_t $ac_cv_c_uint16_t
16212_ACEOF
16213;;
16214 esac
16215
16216ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
16217case $ac_cv_c_uint32_t in #(
16218 no|yes) ;; #(
16219 *)
16220
16221$as_echo "#define _UINT32_T 1" >>confdefs.h
16222
16223
16224cat >>confdefs.h <<_ACEOF
16225#define uint32_t $ac_cv_c_uint32_t
16226_ACEOF
16227;;
16228 esac
16229
16230ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
16231case $ac_cv_c_uint64_t in #(
16232 no|yes) ;; #(
16233 *)
16234
16235$as_echo "#define _UINT64_T 1" >>confdefs.h
16236
16237
16238cat >>confdefs.h <<_ACEOF
16239#define uint64_t $ac_cv_c_uint64_t
16240_ACEOF
16241;;
16242 esac
16243
Jeff Thompsonea946202013-10-18 14:35:32 -070016244for ac_func in memcmp memcpy memset
Jeff Thompson32a23332013-10-07 18:39:00 -070016245do :
Jeff Thompsonea946202013-10-18 14:35:32 -070016246 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16247ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
16248if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Jeff Thompson32a23332013-10-07 18:39:00 -070016249 cat >>confdefs.h <<_ACEOF
Jeff Thompsonea946202013-10-18 14:35:32 -070016250#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeff Thompson32a23332013-10-07 18:39:00 -070016251_ACEOF
16252
16253fi
16254done
16255
Jeff Thompsonea946202013-10-18 14:35:32 -070016256for ac_func in strchr
Jeff Thompson32a23332013-10-07 18:39:00 -070016257do :
Jeff Thompsonea946202013-10-18 14:35:32 -070016258 ac_fn_cxx_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
16259if test "x$ac_cv_func_strchr" = xyes; then :
Jeff Thompson32a23332013-10-07 18:39:00 -070016260 cat >>confdefs.h <<_ACEOF
Jeff Thompsonea946202013-10-18 14:35:32 -070016261#define HAVE_STRCHR 1
Jeff Thompson32a23332013-10-07 18:39:00 -070016262_ACEOF
Jeff Thompsonea946202013-10-18 14:35:32 -070016263 :
16264else
16265 as_fn_error $? "*** strchr not found. Check 'config.log' for more details." "$LINENO" 5
Jeff Thompson32a23332013-10-07 18:39:00 -070016266fi
16267done
16268
Jeff Thompsonea946202013-10-18 14:35:32 -070016269for ac_func in sscanf
Jeff Thompson32a23332013-10-07 18:39:00 -070016270do :
Jeff Thompsonea946202013-10-18 14:35:32 -070016271 ac_fn_cxx_check_func "$LINENO" "sscanf" "ac_cv_func_sscanf"
16272if test "x$ac_cv_func_sscanf" = xyes; then :
Jeff Thompson32a23332013-10-07 18:39:00 -070016273 cat >>confdefs.h <<_ACEOF
Jeff Thompsonea946202013-10-18 14:35:32 -070016274#define HAVE_SSCANF 1
Jeff Thompson32a23332013-10-07 18:39:00 -070016275_ACEOF
Jeff Thompsonea946202013-10-18 14:35:32 -070016276 :
16277else
16278 as_fn_error $? "*** sscanf not found. Check 'config.log' for more details." "$LINENO" 5
16279fi
16280done
Jeff Thompson32a23332013-10-07 18:39:00 -070016281
Jeff Thompsonea946202013-10-18 14:35:32 -070016282
Jeff Thompsond32bab62013-10-18 14:55:26 -070016283for ac_header in time.h
16284do :
16285 ac_fn_cxx_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
16286if test "x$ac_cv_header_time_h" = xyes; then :
16287 cat >>confdefs.h <<_ACEOF
16288#define HAVE_TIME_H 1
16289_ACEOF
16290 :
16291else
16292 as_fn_error $? "*** time.h not found. Check 'config.log' for more details." "$LINENO" 5
16293fi
16294
16295done
16296
Jeff Thompsonea946202013-10-18 14:35:32 -070016297for ac_header in sys/time.h
16298do :
16299 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
16300if test "x$ac_cv_header_sys_time_h" = xyes; then :
16301 cat >>confdefs.h <<_ACEOF
16302#define HAVE_SYS_TIME_H 1
16303_ACEOF
16304 :
16305else
16306 as_fn_error $? "*** sys/time.h not found. Check 'config.log' for more details." "$LINENO" 5
16307fi
16308
16309done
16310
16311for ac_func in gettimeofday
16312do :
16313 ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16314if test "x$ac_cv_func_gettimeofday" = xyes; then :
16315 cat >>confdefs.h <<_ACEOF
16316#define HAVE_GETTIMEOFDAY 1
16317_ACEOF
16318 :
16319else
16320 as_fn_error $? "*** gettimeofday not found. processEvents requires it. Check 'config.log' for more details." "$LINENO" 5
Jeff Thompson32a23332013-10-07 18:39:00 -070016321fi
16322done
16323
Jeff Thompson1b8f4c92013-06-19 16:18:46 -070016324 ax_cxx_compile_cxx11_required=falsednl
16325 ac_ext=cpp
16326ac_cpp='$CXXCPP $CPPFLAGS'
16327ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16328ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16329ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16330 ac_success=no
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
16332$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
16333if ${ax_cv_cxx_compile_cxx11+:} false; then :
16334 $as_echo_n "(cached) " >&6
16335else
16336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16337/* end confdefs.h. */
16338
16339 template <typename T>
16340 struct check
16341 {
16342 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16343 };
16344
16345 typedef check<check<bool>> right_angle_brackets;
16346
16347 int a;
16348 decltype(a) b;
16349
16350 typedef check<int> check_type;
16351 check_type c;
16352 check_type&& cr = static_cast<check_type&&>(c);
16353
16354 auto d = a;
16355
16356_ACEOF
16357if ac_fn_cxx_try_compile "$LINENO"; then :
16358 ax_cv_cxx_compile_cxx11=yes
16359else
16360 ax_cv_cxx_compile_cxx11=no
16361fi
16362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16363fi
16364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
16365$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
16366 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
16367 ac_success=yes
16368 fi
16369
16370 if test x$ac_success = xno; then
16371 for switch in -std=gnu++11 -std=gnu++0x; do
16372 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
16374$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
16375if eval \${$cachevar+:} false; then :
16376 $as_echo_n "(cached) " >&6
16377else
16378 ac_save_CXXFLAGS="$CXXFLAGS"
16379 CXXFLAGS="$CXXFLAGS $switch"
16380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16381/* end confdefs.h. */
16382
16383 template <typename T>
16384 struct check
16385 {
16386 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16387 };
16388
16389 typedef check<check<bool>> right_angle_brackets;
16390
16391 int a;
16392 decltype(a) b;
16393
16394 typedef check<int> check_type;
16395 check_type c;
16396 check_type&& cr = static_cast<check_type&&>(c);
16397
16398 auto d = a;
16399
16400_ACEOF
16401if ac_fn_cxx_try_compile "$LINENO"; then :
16402 eval $cachevar=yes
16403else
16404 eval $cachevar=no
16405fi
16406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16407 CXXFLAGS="$ac_save_CXXFLAGS"
16408fi
16409eval ac_res=\$$cachevar
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16411$as_echo "$ac_res" >&6; }
16412 if eval test x\$$cachevar = xyes; then
16413 CXXFLAGS="$CXXFLAGS $switch"
16414 ac_success=yes
16415 break
16416 fi
16417 done
16418 fi
16419
16420 if test x$ac_success = xno; then
16421 for switch in -std=c++11 -std=c++0x; do
16422 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
16424$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
16425if eval \${$cachevar+:} false; then :
16426 $as_echo_n "(cached) " >&6
16427else
16428 ac_save_CXXFLAGS="$CXXFLAGS"
16429 CXXFLAGS="$CXXFLAGS $switch"
16430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16431/* end confdefs.h. */
16432
16433 template <typename T>
16434 struct check
16435 {
16436 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16437 };
16438
16439 typedef check<check<bool>> right_angle_brackets;
16440
16441 int a;
16442 decltype(a) b;
16443
16444 typedef check<int> check_type;
16445 check_type c;
16446 check_type&& cr = static_cast<check_type&&>(c);
16447
16448 auto d = a;
16449
16450_ACEOF
16451if ac_fn_cxx_try_compile "$LINENO"; then :
16452 eval $cachevar=yes
16453else
16454 eval $cachevar=no
16455fi
16456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16457 CXXFLAGS="$ac_save_CXXFLAGS"
16458fi
16459eval ac_res=\$$cachevar
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16461$as_echo "$ac_res" >&6; }
16462 if eval test x\$$cachevar = xyes; then
16463 CXXFLAGS="$CXXFLAGS $switch"
16464 ac_success=yes
16465 break
16466 fi
16467 done
16468 fi
16469 ac_ext=cpp
16470ac_cpp='$CXXCPP $CPPFLAGS'
16471ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16472ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16473ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16474
16475 if test x$ax_cxx_compile_cxx11_required = xtrue; then
16476 if test x$ac_success = xno; then
16477 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
16478 fi
16479 else
16480 if test x$ac_success = xno; then
16481 HAVE_CXX11=0
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
16483$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
16484 else
16485 HAVE_CXX11=1
16486
16487$as_echo "#define HAVE_CXX11 1" >>confdefs.h
16488
16489 fi
16490
16491
16492 fi
16493
Jeff Thompson6e229042013-10-10 11:09:49 -070016494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16495$as_echo_n "checking for inline... " >&6; }
16496if ${ac_cv_c_inline+:} false; then :
16497 $as_echo_n "(cached) " >&6
16498else
16499 ac_cv_c_inline=no
16500for ac_kw in inline __inline__ __inline; do
16501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16502/* end confdefs.h. */
16503#ifndef __cplusplus
16504typedef int foo_t;
16505static $ac_kw foo_t static_foo () {return 0; }
16506$ac_kw foo_t foo () {return 0; }
16507#endif
16508
16509_ACEOF
16510if ac_fn_cxx_try_compile "$LINENO"; then :
16511 ac_cv_c_inline=$ac_kw
16512fi
16513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16514 test "$ac_cv_c_inline" != no && break
16515done
16516
16517fi
16518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16519$as_echo "$ac_cv_c_inline" >&6; }
16520
16521case $ac_cv_c_inline in
16522 inline | yes) ;;
16523 *)
16524 case $ac_cv_c_inline in
16525 no) ac_val=;;
16526 *) ac_val=$ac_cv_c_inline;;
16527 esac
16528 cat >>confdefs.h <<_ACEOF
16529#ifndef __cplusplus
16530#define inline $ac_val
16531#endif
16532_ACEOF
16533 ;;
16534esac
16535
Jeff Thompsonb3768ae2013-08-08 21:22:45 -070016536
Jeff Thompson39128c62013-06-19 14:08:51 -070016537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::shared_ptr" >&5
16538$as_echo_n "checking for std::shared_ptr... " >&6; }
Jeff Thompson39128c62013-06-19 14:08:51 -070016539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16540/* end confdefs.h. */
16541#include <memory>
16542 std::shared_ptr<int> have_shared_ptr;
16543int
16544main ()
16545{
16546
16547 ;
16548 return 0;
16549}
16550
16551_ACEOF
16552if ac_fn_cxx_try_compile "$LINENO"; then :
16553
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16555$as_echo "yes" >&6; }
16556
16557cat >>confdefs.h <<_ACEOF
16558#define HAVE_STD_SHARED_PTR 1
16559_ACEOF
16560
16561
16562else
16563
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16565$as_echo "no" >&6; }
16566
16567cat >>confdefs.h <<_ACEOF
16568#define HAVE_STD_SHARED_PTR 0
16569_ACEOF
16570
16571
16572fi
16573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jeff Thompson9e9ea9f2013-06-22 10:31:18 -070016574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost::shared_ptr" >&5
16575$as_echo_n "checking for boost::shared_ptr... " >&6; }
Jeff Thompson39128c62013-06-19 14:08:51 -070016576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16577/* end confdefs.h. */
16578#include <boost/shared_ptr.hpp>
16579 boost::shared_ptr<int> have_shared_ptr;
16580int
16581main ()
16582{
16583
16584 ;
16585 return 0;
16586}
16587
16588_ACEOF
16589if ac_fn_cxx_try_compile "$LINENO"; then :
16590
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16592$as_echo "yes" >&6; }
16593
16594cat >>confdefs.h <<_ACEOF
16595#define HAVE_BOOST_SHARED_PTR 1
16596_ACEOF
16597
16598
16599else
16600
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16602$as_echo "no" >&6; }
16603
16604cat >>confdefs.h <<_ACEOF
16605#define HAVE_BOOST_SHARED_PTR 0
16606_ACEOF
16607
16608
16609fi
16610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16611
Jeff Thompsona28eed82013-08-22 16:21:10 -070016612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::function" >&5
16613$as_echo_n "checking for std::function... " >&6; }
16614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16615/* end confdefs.h. */
16616#include <functional>
16617 std::function<int> have_function();
16618int
16619main ()
16620{
16621
16622 ;
16623 return 0;
16624}
16625
16626_ACEOF
16627if ac_fn_cxx_try_compile "$LINENO"; then :
16628
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16630$as_echo "yes" >&6; }
16631
16632cat >>confdefs.h <<_ACEOF
16633#define HAVE_STD_FUNCTION 1
16634_ACEOF
16635
16636
16637else
16638
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16640$as_echo "no" >&6; }
16641
16642cat >>confdefs.h <<_ACEOF
16643#define HAVE_STD_FUNCTION 0
16644_ACEOF
16645
16646
16647fi
16648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost::function" >&5
16650$as_echo_n "checking for boost::function... " >&6; }
16651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16652/* end confdefs.h. */
16653#include <boost/function.hpp>
16654 boost::function<int> have_function();
16655int
16656main ()
16657{
16658
16659 ;
16660 return 0;
16661}
16662
16663_ACEOF
16664if ac_fn_cxx_try_compile "$LINENO"; then :
16665
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16667$as_echo "yes" >&6; }
16668
16669cat >>confdefs.h <<_ACEOF
16670#define HAVE_BOOST_FUNCTION 1
16671_ACEOF
16672
16673
16674else
16675
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16677$as_echo "no" >&6; }
16678
16679cat >>confdefs.h <<_ACEOF
16680#define HAVE_BOOST_FUNCTION 0
16681_ACEOF
16682
16683
16684fi
16685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16686
Jeff Thompsonea946202013-10-18 14:35:32 -070016687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmtime support" >&5
16688$as_echo_n "checking for gmtime support... " >&6; }
16689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16690/* end confdefs.h. */
Jeff Thompsond32bab62013-10-18 14:55:26 -070016691#include <time.h>
16692 #include <sys/time.h>
Jeff Thompsonea946202013-10-18 14:35:32 -070016693 struct timeval tv;
16694 int result1 = gettimeofday(&tv, 0);
16695 time_t time1 = time(0);
16696 struct tm* tm1 = gmtime(&time1);
16697 time_t time2 = timegm(tm1);
16698int
16699main ()
16700{
16701
16702 ;
16703 return 0;
16704}
16705
16706_ACEOF
16707if ac_fn_cxx_try_compile "$LINENO"; then :
16708
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16710$as_echo "yes" >&6; }
16711
16712cat >>confdefs.h <<_ACEOF
16713#define HAVE_GMTIME_SUPPORT 1
16714_ACEOF
16715
16716
16717else
16718
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16720$as_echo "no" >&6; }
16721
16722cat >>confdefs.h <<_ACEOF
16723#define HAVE_GMTIME_SUPPORT 0
16724_ACEOF
16725
16726
16727fi
16728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16729
Jeff Thompsond0f62e12013-10-09 17:41:25 -070016730# Require libcrypto.
16731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_EncryptInit in -lcrypto" >&5
16732$as_echo_n "checking for EVP_EncryptInit in -lcrypto... " >&6; }
16733if ${ac_cv_lib_crypto_EVP_EncryptInit+:} false; then :
16734 $as_echo_n "(cached) " >&6
16735else
16736 ac_check_lib_save_LIBS=$LIBS
16737LIBS="-lcrypto $LIBS"
16738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16739/* end confdefs.h. */
16740
16741/* Override any GCC internal prototype to avoid an error.
16742 Use char because int might match the return type of a GCC
16743 builtin and then its argument prototype would still apply. */
16744#ifdef __cplusplus
16745extern "C"
16746#endif
16747char EVP_EncryptInit ();
16748int
16749main ()
16750{
16751return EVP_EncryptInit ();
16752 ;
16753 return 0;
16754}
16755_ACEOF
16756if ac_fn_cxx_try_link "$LINENO"; then :
16757 ac_cv_lib_crypto_EVP_EncryptInit=yes
16758else
16759 ac_cv_lib_crypto_EVP_EncryptInit=no
16760fi
16761rm -f core conftest.err conftest.$ac_objext \
16762 conftest$ac_exeext conftest.$ac_ext
16763LIBS=$ac_check_lib_save_LIBS
16764fi
16765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_EncryptInit" >&5
16766$as_echo "$ac_cv_lib_crypto_EVP_EncryptInit" >&6; }
16767if test "x$ac_cv_lib_crypto_EVP_EncryptInit" = xyes; then :
16768 cat >>confdefs.h <<_ACEOF
16769#define HAVE_LIBCRYPTO 1
16770_ACEOF
16771
16772 LIBS="-lcrypto $LIBS"
16773
16774else
16775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16776$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16777as_fn_error $? "can't find openssl crypto lib
16778See \`config.log' for more details" "$LINENO" 5; }
16779fi
16780
16781
Jeff Thompsonbb6b5682013-10-09 18:22:38 -070016782# Conditionally use libsqlite3. AX_LIB_SQLITE3 defines HAVE_SQLITE3 in confdefs.h .
Jeff Thompsond0f62e12013-10-09 17:41:25 -070016783
16784
16785# Check whether --with-sqlite3 was given.
16786if test "${with_sqlite3+set}" = set; then :
16787 withval=$with_sqlite3;
16788 if test "$withval" = "no"; then
16789 WANT_SQLITE3="no"
16790 elif test "$withval" = "yes"; then
16791 WANT_SQLITE3="yes"
16792 ac_sqlite3_path=""
16793 else
16794 WANT_SQLITE3="yes"
16795 ac_sqlite3_path="$withval"
16796 fi
16797
16798else
16799 WANT_SQLITE3="yes"
16800
16801fi
16802
16803
16804 SQLITE3_CFLAGS=""
16805 SQLITE3_LDFLAGS=""
16806 SQLITE3_VERSION=""
16807
16808 if test "x$WANT_SQLITE3" = "xyes"; then
16809
16810 ac_sqlite3_header="sqlite3.h"
16811
16812 sqlite3_version_req=3.0.0
16813 sqlite3_version_req_shorten=`expr $sqlite3_version_req : '\([0-9]*\.[0-9]*\)'`
16814 sqlite3_version_req_major=`expr $sqlite3_version_req : '\([0-9]*\)'`
16815 sqlite3_version_req_minor=`expr $sqlite3_version_req : '[0-9]*\.\([0-9]*\)'`
16816 sqlite3_version_req_micro=`expr $sqlite3_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
16817 if test "x$sqlite3_version_req_micro" = "x" ; then
16818 sqlite3_version_req_micro="0"
16819 fi
16820
16821 sqlite3_version_req_number=`expr $sqlite3_version_req_major \* 1000000 \
16822 \+ $sqlite3_version_req_minor \* 1000 \
16823 \+ $sqlite3_version_req_micro`
16824
16825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 library >= $sqlite3_version_req" >&5
16826$as_echo_n "checking for SQLite3 library >= $sqlite3_version_req... " >&6; }
16827
16828 if test "$ac_sqlite3_path" != ""; then
16829 ac_sqlite3_ldflags="-L$ac_sqlite3_path/lib"
16830 ac_sqlite3_cppflags="-I$ac_sqlite3_path/include"
16831 else
16832 for ac_sqlite3_path_tmp in /usr /usr/local /opt ; do
16833 if test -f "$ac_sqlite3_path_tmp/include/$ac_sqlite3_header" \
16834 && test -r "$ac_sqlite3_path_tmp/include/$ac_sqlite3_header"; then
16835 ac_sqlite3_path=$ac_sqlite3_path_tmp
16836 ac_sqlite3_cppflags="-I$ac_sqlite3_path_tmp/include"
16837 ac_sqlite3_ldflags="-L$ac_sqlite3_path_tmp/lib"
16838 break;
16839 fi
16840 done
16841 fi
16842
16843 ac_sqlite3_ldflags="$ac_sqlite3_ldflags -lsqlite3"
16844
16845 saved_CPPFLAGS="$CPPFLAGS"
16846 CPPFLAGS="$CPPFLAGS $ac_sqlite3_cppflags"
16847
16848 ac_ext=c
16849ac_cpp='$CPP $CPPFLAGS'
16850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16852ac_compiler_gnu=$ac_cv_c_compiler_gnu
16853
16854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16855/* end confdefs.h. */
16856
16857 #include <sqlite3.h>
16858int
16859main ()
16860{
16861
16862#if (SQLITE_VERSION_NUMBER >= $sqlite3_version_req_number)
16863/* Everything is okay */
16864#else
16865# error SQLite version is too old
16866#endif
16867
16868
16869 ;
16870 return 0;
16871}
16872
16873_ACEOF
16874if ac_fn_c_try_compile "$LINENO"; then :
16875
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16877$as_echo "yes" >&6; }
16878 success="yes"
16879
16880else
16881
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
16883$as_echo "not found" >&6; }
16884 success="no"
16885
16886
16887fi
16888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16889 ac_ext=cpp
16890ac_cpp='$CXXCPP $CPPFLAGS'
16891ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16892ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16893ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16894
16895
16896 CPPFLAGS="$saved_CPPFLAGS"
16897
16898 if test "$success" = "yes"; then
16899
16900 SQLITE3_CFLAGS="$ac_sqlite3_cppflags"
16901 SQLITE3_LDFLAGS="$ac_sqlite3_ldflags"
16902
16903 ac_sqlite3_header_path="$ac_sqlite3_path/include/$ac_sqlite3_header"
16904
16905 if test "x$ac_sqlite3_header_path" != "x"; then
16906 ac_sqlite3_version=`cat $ac_sqlite3_header_path \
16907 | grep '#define.*SQLITE_VERSION.*\"' | sed -e 's/.* "//' \
16908 | sed -e 's/"//'`
16909 if test $ac_sqlite3_version != ""; then
16910 SQLITE3_VERSION=$ac_sqlite3_version
16911 else
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find SQLITE_VERSION macro in sqlite3.h header to retrieve SQLite version!" >&5
16913$as_echo "$as_me: WARNING: Cannot find SQLITE_VERSION macro in sqlite3.h header to retrieve SQLite version!" >&2;}
16914 fi
16915 fi
16916
16917
16918
16919
16920
16921$as_echo "#define HAVE_SQLITE3 /**/" >>confdefs.h
16922
16923 fi
16924 fi
16925
Jeff Thompsonbb6b5682013-10-09 18:22:38 -070016926if grep -q "#define HAVE_SQLITE3" confdefs.h ; then
Jeff Thompsonf21e2242013-10-09 19:01:49 -070016927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
Jeff Thompsond0f62e12013-10-09 17:41:25 -070016928$as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
16929if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then :
16930 $as_echo_n "(cached) " >&6
16931else
16932 ac_check_lib_save_LIBS=$LIBS
16933LIBS="-lsqlite3 $LIBS"
16934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16935/* end confdefs.h. */
16936
16937/* Override any GCC internal prototype to avoid an error.
16938 Use char because int might match the return type of a GCC
16939 builtin and then its argument prototype would still apply. */
16940#ifdef __cplusplus
16941extern "C"
16942#endif
16943char sqlite3_open ();
16944int
16945main ()
16946{
16947return sqlite3_open ();
16948 ;
16949 return 0;
16950}
16951_ACEOF
16952if ac_fn_cxx_try_link "$LINENO"; then :
16953 ac_cv_lib_sqlite3_sqlite3_open=yes
16954else
16955 ac_cv_lib_sqlite3_sqlite3_open=no
16956fi
16957rm -f core conftest.err conftest.$ac_objext \
16958 conftest$ac_exeext conftest.$ac_ext
16959LIBS=$ac_check_lib_save_LIBS
16960fi
16961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
16962$as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
16963if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
16964 cat >>confdefs.h <<_ACEOF
16965#define HAVE_LIBSQLITE3 1
16966_ACEOF
16967
16968 LIBS="-lsqlite3 $LIBS"
16969
16970else
16971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16972$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16973as_fn_error $? "have sqlite2 headers but no libsqlite3
16974See \`config.log' for more details" "$LINENO" 5; }
16975fi
16976
16977fi
16978
Jeff Thompsonf21e2242013-10-09 19:01:49 -070016979# Conditionally use the OSX Security framework .
16980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX Security framework" >&5
16981$as_echo_n "checking for OSX Security framework... " >&6; }
Jeff Thompson9cf9dfb2013-10-04 16:36:52 -070016982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16983/* end confdefs.h. */
16984#include <CoreFoundation/CoreFoundation.h>
16985 #include <Security/Security.h>
16986 #include <CoreServices/CoreServices.h>
16987 void test() { SecKeychainRef x; }
16988int
16989main ()
16990{
16991
16992 ;
16993 return 0;
16994}
16995
16996_ACEOF
16997if ac_fn_cxx_try_compile "$LINENO"; then :
16998
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17000$as_echo "yes" >&6; }
Jeff Thompsonf21e2242013-10-09 19:01:49 -070017001 HAVE_OSX_SECURITY=1
Jeff Thompson9cf9dfb2013-10-04 16:36:52 -070017002
17003else
17004
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17006$as_echo "no" >&6; }
Jeff Thompsonf21e2242013-10-09 19:01:49 -070017007 HAVE_OSX_SECURITY=0
Jeff Thompson9cf9dfb2013-10-04 16:36:52 -070017008
17009fi
17010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17011
Jeff Thompsonbb6b5682013-10-09 18:22:38 -070017012cat >>confdefs.h <<_ACEOF
Jeff Thompsonf21e2242013-10-09 19:01:49 -070017013#define HAVE_OSX_SECURITY $HAVE_OSX_SECURITY
Jeff Thompsonbb6b5682013-10-09 18:22:38 -070017014_ACEOF
17015
Jeff Thompsonf21e2242013-10-09 19:01:49 -070017016if test "$HAVE_OSX_SECURITY" == "1" ; then
17017 LIBS="$LIBS -framework Security"
17018fi
Jeff Thompsonbb6b5682013-10-09 18:22:38 -070017019
Jeff Thompsonca45e552013-06-26 17:40:06 -070017020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030# Files:
17031DX_PROJECT=$PACKAGE_NAME
17032
17033DX_CONFIG=Doxyfile
17034
17035DX_DOCDIR=doxygen-doc
17036
17037
17038# Environment variables used inside doxygen.cfg:
17039DX_ENV="$DX_ENV SRCDIR='$srcdir'"
17040
17041DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
17042
17043DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
17044
17045DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
17046
17047
17048# Doxygen itself:
17049
17050
17051
17052 # Check whether --enable-doxygen-doc was given.
17053if test "${enable_doxygen_doc+set}" = set; then :
17054 enableval=$enable_doxygen_doc;
17055case "$enableval" in
17056#(
17057y|Y|yes|Yes|YES)
17058 DX_FLAG_doc=1
17059
17060
17061;; #(
17062n|N|no|No|NO)
17063 DX_FLAG_doc=0
17064
17065;; #(
17066*)
17067 as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
17068;;
17069esac
17070
17071else
17072
17073DX_FLAG_doc=1
17074
17075
17076
17077fi
17078
17079if test "$DX_FLAG_doc" = 1; then
17080
17081if test -n "$ac_tool_prefix"; then
17082 # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
17083set dummy ${ac_tool_prefix}doxygen; ac_word=$2
17084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17085$as_echo_n "checking for $ac_word... " >&6; }
17086if ${ac_cv_path_DX_DOXYGEN+:} false; then :
17087 $as_echo_n "(cached) " >&6
17088else
17089 case $DX_DOXYGEN in
17090 [\\/]* | ?:[\\/]*)
17091 ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
17092 ;;
17093 *)
17094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17095for as_dir in $PATH
17096do
17097 IFS=$as_save_IFS
17098 test -z "$as_dir" && as_dir=.
17099 for ac_exec_ext in '' $ac_executable_extensions; do
17100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17101 ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
17102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17103 break 2
17104 fi
17105done
17106 done
17107IFS=$as_save_IFS
17108
17109 ;;
17110esac
17111fi
17112DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
17113if test -n "$DX_DOXYGEN"; then
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
17115$as_echo "$DX_DOXYGEN" >&6; }
17116else
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17118$as_echo "no" >&6; }
17119fi
17120
17121
17122fi
17123if test -z "$ac_cv_path_DX_DOXYGEN"; then
17124 ac_pt_DX_DOXYGEN=$DX_DOXYGEN
17125 # Extract the first word of "doxygen", so it can be a program name with args.
17126set dummy doxygen; ac_word=$2
17127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17128$as_echo_n "checking for $ac_word... " >&6; }
17129if ${ac_cv_path_ac_pt_DX_DOXYGEN+:} false; then :
17130 $as_echo_n "(cached) " >&6
17131else
17132 case $ac_pt_DX_DOXYGEN in
17133 [\\/]* | ?:[\\/]*)
17134 ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
17135 ;;
17136 *)
17137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17138for as_dir in $PATH
17139do
17140 IFS=$as_save_IFS
17141 test -z "$as_dir" && as_dir=.
17142 for ac_exec_ext in '' $ac_executable_extensions; do
17143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17144 ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
17145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17146 break 2
17147 fi
17148done
17149 done
17150IFS=$as_save_IFS
17151
17152 ;;
17153esac
17154fi
17155ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
17156if test -n "$ac_pt_DX_DOXYGEN"; then
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
17158$as_echo "$ac_pt_DX_DOXYGEN" >&6; }
17159else
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17161$as_echo "no" >&6; }
17162fi
17163
17164 if test "x$ac_pt_DX_DOXYGEN" = x; then
17165 DX_DOXYGEN=""
17166 else
17167 case $cross_compiling:$ac_tool_warned in
17168yes:)
17169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17171ac_tool_warned=yes ;;
17172esac
17173 DX_DOXYGEN=$ac_pt_DX_DOXYGEN
17174 fi
17175else
17176 DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
17177fi
17178
17179if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
17180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
17181$as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
17182 DX_FLAG_doc=0
17183
17184fi
17185
17186
17187if test -n "$ac_tool_prefix"; then
17188 # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
17189set dummy ${ac_tool_prefix}perl; ac_word=$2
17190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17191$as_echo_n "checking for $ac_word... " >&6; }
17192if ${ac_cv_path_DX_PERL+:} false; then :
17193 $as_echo_n "(cached) " >&6
17194else
17195 case $DX_PERL in
17196 [\\/]* | ?:[\\/]*)
17197 ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
17198 ;;
17199 *)
17200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17201for as_dir in $PATH
17202do
17203 IFS=$as_save_IFS
17204 test -z "$as_dir" && as_dir=.
17205 for ac_exec_ext in '' $ac_executable_extensions; do
17206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17207 ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
17208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17209 break 2
17210 fi
17211done
17212 done
17213IFS=$as_save_IFS
17214
17215 ;;
17216esac
17217fi
17218DX_PERL=$ac_cv_path_DX_PERL
17219if test -n "$DX_PERL"; then
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
17221$as_echo "$DX_PERL" >&6; }
17222else
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17224$as_echo "no" >&6; }
17225fi
17226
17227
17228fi
17229if test -z "$ac_cv_path_DX_PERL"; then
17230 ac_pt_DX_PERL=$DX_PERL
17231 # Extract the first word of "perl", so it can be a program name with args.
17232set dummy perl; ac_word=$2
17233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17234$as_echo_n "checking for $ac_word... " >&6; }
17235if ${ac_cv_path_ac_pt_DX_PERL+:} false; then :
17236 $as_echo_n "(cached) " >&6
17237else
17238 case $ac_pt_DX_PERL in
17239 [\\/]* | ?:[\\/]*)
17240 ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
17241 ;;
17242 *)
17243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17244for as_dir in $PATH
17245do
17246 IFS=$as_save_IFS
17247 test -z "$as_dir" && as_dir=.
17248 for ac_exec_ext in '' $ac_executable_extensions; do
17249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17250 ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
17251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17252 break 2
17253 fi
17254done
17255 done
17256IFS=$as_save_IFS
17257
17258 ;;
17259esac
17260fi
17261ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
17262if test -n "$ac_pt_DX_PERL"; then
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
17264$as_echo "$ac_pt_DX_PERL" >&6; }
17265else
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17267$as_echo "no" >&6; }
17268fi
17269
17270 if test "x$ac_pt_DX_PERL" = x; then
17271 DX_PERL=""
17272 else
17273 case $cross_compiling:$ac_tool_warned in
17274yes:)
17275{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17276$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17277ac_tool_warned=yes ;;
17278esac
17279 DX_PERL=$ac_pt_DX_PERL
17280 fi
17281else
17282 DX_PERL="$ac_cv_path_DX_PERL"
17283fi
17284
17285if test "$DX_FLAG_doc$DX_PERL" = 1; then
17286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
17287$as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
17288 DX_FLAG_doc=0
17289
17290fi
17291
17292 :
17293fi
17294 if test "$DX_FLAG_doc" = 1; then
17295 DX_COND_doc_TRUE=
17296 DX_COND_doc_FALSE='#'
17297else
17298 DX_COND_doc_TRUE='#'
17299 DX_COND_doc_FALSE=
17300fi
17301
17302if test "$DX_FLAG_doc" = 1; then
17303 DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
17304
17305 :
17306else
17307
17308 :
17309fi
17310
17311
17312# Dot for graphics:
17313
17314
17315
17316 # Check whether --enable-doxygen-dot was given.
17317if test "${enable_doxygen_dot+set}" = set; then :
17318 enableval=$enable_doxygen_dot;
17319case "$enableval" in
17320#(
17321y|Y|yes|Yes|YES)
17322 DX_FLAG_dot=1
17323
17324
17325test "$DX_FLAG_doc" = "1" \
17326|| as_fn_error $? "doxygen-dot requires doxygen-dot" "$LINENO" 5
17327
17328;; #(
17329n|N|no|No|NO)
17330 DX_FLAG_dot=0
17331
17332;; #(
17333*)
17334 as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
17335;;
17336esac
17337
17338else
17339
17340DX_FLAG_dot=0
17341
17342
17343test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
17344
17345
17346
17347fi
17348
17349if test "$DX_FLAG_dot" = 1; then
17350
17351if test -n "$ac_tool_prefix"; then
17352 # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
17353set dummy ${ac_tool_prefix}dot; ac_word=$2
17354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17355$as_echo_n "checking for $ac_word... " >&6; }
17356if ${ac_cv_path_DX_DOT+:} false; then :
17357 $as_echo_n "(cached) " >&6
17358else
17359 case $DX_DOT in
17360 [\\/]* | ?:[\\/]*)
17361 ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
17362 ;;
17363 *)
17364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17365for as_dir in $PATH
17366do
17367 IFS=$as_save_IFS
17368 test -z "$as_dir" && as_dir=.
17369 for ac_exec_ext in '' $ac_executable_extensions; do
17370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17371 ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
17372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17373 break 2
17374 fi
17375done
17376 done
17377IFS=$as_save_IFS
17378
17379 ;;
17380esac
17381fi
17382DX_DOT=$ac_cv_path_DX_DOT
17383if test -n "$DX_DOT"; then
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
17385$as_echo "$DX_DOT" >&6; }
17386else
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17388$as_echo "no" >&6; }
17389fi
17390
17391
17392fi
17393if test -z "$ac_cv_path_DX_DOT"; then
17394 ac_pt_DX_DOT=$DX_DOT
17395 # Extract the first word of "dot", so it can be a program name with args.
17396set dummy dot; ac_word=$2
17397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17398$as_echo_n "checking for $ac_word... " >&6; }
17399if ${ac_cv_path_ac_pt_DX_DOT+:} false; then :
17400 $as_echo_n "(cached) " >&6
17401else
17402 case $ac_pt_DX_DOT in
17403 [\\/]* | ?:[\\/]*)
17404 ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
17405 ;;
17406 *)
17407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17408for as_dir in $PATH
17409do
17410 IFS=$as_save_IFS
17411 test -z "$as_dir" && as_dir=.
17412 for ac_exec_ext in '' $ac_executable_extensions; do
17413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17414 ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
17415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17416 break 2
17417 fi
17418done
17419 done
17420IFS=$as_save_IFS
17421
17422 ;;
17423esac
17424fi
17425ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
17426if test -n "$ac_pt_DX_DOT"; then
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
17428$as_echo "$ac_pt_DX_DOT" >&6; }
17429else
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17431$as_echo "no" >&6; }
17432fi
17433
17434 if test "x$ac_pt_DX_DOT" = x; then
17435 DX_DOT=""
17436 else
17437 case $cross_compiling:$ac_tool_warned in
17438yes:)
17439{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17440$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17441ac_tool_warned=yes ;;
17442esac
17443 DX_DOT=$ac_pt_DX_DOT
17444 fi
17445else
17446 DX_DOT="$ac_cv_path_DX_DOT"
17447fi
17448
17449if test "$DX_FLAG_dot$DX_DOT" = 1; then
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
17451$as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
17452 DX_FLAG_dot=0
17453
17454fi
17455
17456 :
17457fi
17458 if test "$DX_FLAG_dot" = 1; then
17459 DX_COND_dot_TRUE=
17460 DX_COND_dot_FALSE='#'
17461else
17462 DX_COND_dot_TRUE='#'
17463 DX_COND_dot_FALSE=
17464fi
17465
17466if test "$DX_FLAG_dot" = 1; then
17467 DX_ENV="$DX_ENV HAVE_DOT='YES'"
17468
17469 DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
17470
17471 :
17472else
17473 DX_ENV="$DX_ENV HAVE_DOT='NO'"
17474
17475 :
17476fi
17477
17478
17479# Man pages generation:
17480
17481
17482
17483 # Check whether --enable-doxygen-man was given.
17484if test "${enable_doxygen_man+set}" = set; then :
17485 enableval=$enable_doxygen_man;
17486case "$enableval" in
17487#(
17488y|Y|yes|Yes|YES)
17489 DX_FLAG_man=1
17490
17491
17492test "$DX_FLAG_doc" = "1" \
17493|| as_fn_error $? "doxygen-man requires doxygen-man" "$LINENO" 5
17494
17495;; #(
17496n|N|no|No|NO)
17497 DX_FLAG_man=0
17498
17499;; #(
17500*)
17501 as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
17502;;
17503esac
17504
17505else
17506
17507DX_FLAG_man=0
17508
17509
17510test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
17511
17512
17513
17514fi
17515
17516if test "$DX_FLAG_man" = 1; then
17517
17518 :
17519fi
17520 if test "$DX_FLAG_man" = 1; then
17521 DX_COND_man_TRUE=
17522 DX_COND_man_FALSE='#'
17523else
17524 DX_COND_man_TRUE='#'
17525 DX_COND_man_FALSE=
17526fi
17527
17528if test "$DX_FLAG_man" = 1; then
17529 DX_ENV="$DX_ENV GENERATE_MAN='YES'"
17530
17531 :
17532else
17533 DX_ENV="$DX_ENV GENERATE_MAN='NO'"
17534
17535 :
17536fi
17537
17538
17539# RTF file generation:
17540
17541
17542
17543 # Check whether --enable-doxygen-rtf was given.
17544if test "${enable_doxygen_rtf+set}" = set; then :
17545 enableval=$enable_doxygen_rtf;
17546case "$enableval" in
17547#(
17548y|Y|yes|Yes|YES)
17549 DX_FLAG_rtf=1
17550
17551
17552test "$DX_FLAG_doc" = "1" \
17553|| as_fn_error $? "doxygen-rtf requires doxygen-rtf" "$LINENO" 5
17554
17555;; #(
17556n|N|no|No|NO)
17557 DX_FLAG_rtf=0
17558
17559;; #(
17560*)
17561 as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
17562;;
17563esac
17564
17565else
17566
17567DX_FLAG_rtf=0
17568
17569
17570test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
17571
17572
17573
17574fi
17575
17576if test "$DX_FLAG_rtf" = 1; then
17577
17578 :
17579fi
17580 if test "$DX_FLAG_rtf" = 1; then
17581 DX_COND_rtf_TRUE=
17582 DX_COND_rtf_FALSE='#'
17583else
17584 DX_COND_rtf_TRUE='#'
17585 DX_COND_rtf_FALSE=
17586fi
17587
17588if test "$DX_FLAG_rtf" = 1; then
17589 DX_ENV="$DX_ENV GENERATE_RTF='YES'"
17590
17591 :
17592else
17593 DX_ENV="$DX_ENV GENERATE_RTF='NO'"
17594
17595 :
17596fi
17597
17598
17599# XML file generation:
17600
17601
17602
17603 # Check whether --enable-doxygen-xml was given.
17604if test "${enable_doxygen_xml+set}" = set; then :
17605 enableval=$enable_doxygen_xml;
17606case "$enableval" in
17607#(
17608y|Y|yes|Yes|YES)
17609 DX_FLAG_xml=1
17610
17611
17612test "$DX_FLAG_doc" = "1" \
17613|| as_fn_error $? "doxygen-xml requires doxygen-xml" "$LINENO" 5
17614
17615;; #(
17616n|N|no|No|NO)
17617 DX_FLAG_xml=0
17618
17619;; #(
17620*)
17621 as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
17622;;
17623esac
17624
17625else
17626
17627DX_FLAG_xml=0
17628
17629
17630test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
17631
17632
17633
17634fi
17635
17636if test "$DX_FLAG_xml" = 1; then
17637
17638 :
17639fi
17640 if test "$DX_FLAG_xml" = 1; then
17641 DX_COND_xml_TRUE=
17642 DX_COND_xml_FALSE='#'
17643else
17644 DX_COND_xml_TRUE='#'
17645 DX_COND_xml_FALSE=
17646fi
17647
17648if test "$DX_FLAG_xml" = 1; then
17649 DX_ENV="$DX_ENV GENERATE_XML='YES'"
17650
17651 :
17652else
17653 DX_ENV="$DX_ENV GENERATE_XML='NO'"
17654
17655 :
17656fi
17657
17658
17659# (Compressed) HTML help generation:
17660
17661
17662
17663 # Check whether --enable-doxygen-chm was given.
17664if test "${enable_doxygen_chm+set}" = set; then :
17665 enableval=$enable_doxygen_chm;
17666case "$enableval" in
17667#(
17668y|Y|yes|Yes|YES)
17669 DX_FLAG_chm=1
17670
17671
17672test "$DX_FLAG_doc" = "1" \
17673|| as_fn_error $? "doxygen-chm requires doxygen-chm" "$LINENO" 5
17674
17675;; #(
17676n|N|no|No|NO)
17677 DX_FLAG_chm=0
17678
17679;; #(
17680*)
17681 as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
17682;;
17683esac
17684
17685else
17686
17687DX_FLAG_chm=0
17688
17689
17690test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
17691
17692
17693
17694fi
17695
17696if test "$DX_FLAG_chm" = 1; then
17697
17698if test -n "$ac_tool_prefix"; then
17699 # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
17700set dummy ${ac_tool_prefix}hhc; ac_word=$2
17701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17702$as_echo_n "checking for $ac_word... " >&6; }
17703if ${ac_cv_path_DX_HHC+:} false; then :
17704 $as_echo_n "(cached) " >&6
17705else
17706 case $DX_HHC in
17707 [\\/]* | ?:[\\/]*)
17708 ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
17709 ;;
17710 *)
17711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17712for as_dir in $PATH
17713do
17714 IFS=$as_save_IFS
17715 test -z "$as_dir" && as_dir=.
17716 for ac_exec_ext in '' $ac_executable_extensions; do
17717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17718 ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
17719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17720 break 2
17721 fi
17722done
17723 done
17724IFS=$as_save_IFS
17725
17726 ;;
17727esac
17728fi
17729DX_HHC=$ac_cv_path_DX_HHC
17730if test -n "$DX_HHC"; then
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
17732$as_echo "$DX_HHC" >&6; }
17733else
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17735$as_echo "no" >&6; }
17736fi
17737
17738
17739fi
17740if test -z "$ac_cv_path_DX_HHC"; then
17741 ac_pt_DX_HHC=$DX_HHC
17742 # Extract the first word of "hhc", so it can be a program name with args.
17743set dummy hhc; ac_word=$2
17744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17745$as_echo_n "checking for $ac_word... " >&6; }
17746if ${ac_cv_path_ac_pt_DX_HHC+:} false; then :
17747 $as_echo_n "(cached) " >&6
17748else
17749 case $ac_pt_DX_HHC in
17750 [\\/]* | ?:[\\/]*)
17751 ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
17752 ;;
17753 *)
17754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17755for as_dir in $PATH
17756do
17757 IFS=$as_save_IFS
17758 test -z "$as_dir" && as_dir=.
17759 for ac_exec_ext in '' $ac_executable_extensions; do
17760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17761 ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
17762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17763 break 2
17764 fi
17765done
17766 done
17767IFS=$as_save_IFS
17768
17769 ;;
17770esac
17771fi
17772ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
17773if test -n "$ac_pt_DX_HHC"; then
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
17775$as_echo "$ac_pt_DX_HHC" >&6; }
17776else
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17778$as_echo "no" >&6; }
17779fi
17780
17781 if test "x$ac_pt_DX_HHC" = x; then
17782 DX_HHC=""
17783 else
17784 case $cross_compiling:$ac_tool_warned in
17785yes:)
17786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17788ac_tool_warned=yes ;;
17789esac
17790 DX_HHC=$ac_pt_DX_HHC
17791 fi
17792else
17793 DX_HHC="$ac_cv_path_DX_HHC"
17794fi
17795
17796if test "$DX_FLAG_chm$DX_HHC" = 1; then
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
17798$as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
17799 DX_FLAG_chm=0
17800
17801fi
17802
17803 :
17804fi
17805 if test "$DX_FLAG_chm" = 1; then
17806 DX_COND_chm_TRUE=
17807 DX_COND_chm_FALSE='#'
17808else
17809 DX_COND_chm_TRUE='#'
17810 DX_COND_chm_FALSE=
17811fi
17812
17813if test "$DX_FLAG_chm" = 1; then
17814 DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
17815
17816 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
17817
17818 DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
17819
17820 :
17821else
17822 DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
17823
17824 :
17825fi
17826
17827
17828# Seperate CHI file generation.
17829
17830
17831
17832 # Check whether --enable-doxygen-chi was given.
17833if test "${enable_doxygen_chi+set}" = set; then :
17834 enableval=$enable_doxygen_chi;
17835case "$enableval" in
17836#(
17837y|Y|yes|Yes|YES)
17838 DX_FLAG_chi=1
17839
17840
17841test "$DX_FLAG_chm" = "1" \
17842|| as_fn_error $? "doxygen-chi requires doxygen-chi" "$LINENO" 5
17843
17844;; #(
17845n|N|no|No|NO)
17846 DX_FLAG_chi=0
17847
17848;; #(
17849*)
17850 as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
17851;;
17852esac
17853
17854else
17855
17856DX_FLAG_chi=0
17857
17858
17859test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
17860
17861
17862
17863fi
17864
17865if test "$DX_FLAG_chi" = 1; then
17866
17867 :
17868fi
17869 if test "$DX_FLAG_chi" = 1; then
17870 DX_COND_chi_TRUE=
17871 DX_COND_chi_FALSE='#'
17872else
17873 DX_COND_chi_TRUE='#'
17874 DX_COND_chi_FALSE=
17875fi
17876
17877if test "$DX_FLAG_chi" = 1; then
17878 DX_ENV="$DX_ENV GENERATE_CHI='YES'"
17879
17880 :
17881else
17882 DX_ENV="$DX_ENV GENERATE_CHI='NO'"
17883
17884 :
17885fi
17886
17887
17888# Plain HTML pages generation:
17889
17890
17891
17892 # Check whether --enable-doxygen-html was given.
17893if test "${enable_doxygen_html+set}" = set; then :
17894 enableval=$enable_doxygen_html;
17895case "$enableval" in
17896#(
17897y|Y|yes|Yes|YES)
17898 DX_FLAG_html=1
17899
17900
17901test "$DX_FLAG_doc" = "1" \
17902|| as_fn_error $? "doxygen-html requires doxygen-html" "$LINENO" 5
17903
17904test "$DX_FLAG_chm" = "0" \
17905|| as_fn_error $? "doxygen-html contradicts doxygen-html" "$LINENO" 5
17906
17907;; #(
17908n|N|no|No|NO)
17909 DX_FLAG_html=0
17910
17911;; #(
17912*)
17913 as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
17914;;
17915esac
17916
17917else
17918
17919DX_FLAG_html=1
17920
17921
17922test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
17923
17924
17925test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
17926
17927
17928
17929fi
17930
17931if test "$DX_FLAG_html" = 1; then
17932
17933 :
17934fi
17935 if test "$DX_FLAG_html" = 1; then
17936 DX_COND_html_TRUE=
17937 DX_COND_html_FALSE='#'
17938else
17939 DX_COND_html_TRUE='#'
17940 DX_COND_html_FALSE=
17941fi
17942
17943if test "$DX_FLAG_html" = 1; then
17944 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
17945
17946 :
17947else
17948 test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
17949
17950 :
17951fi
17952
17953
17954# PostScript file generation:
17955
17956
17957
17958 # Check whether --enable-doxygen-ps was given.
17959if test "${enable_doxygen_ps+set}" = set; then :
17960 enableval=$enable_doxygen_ps;
17961case "$enableval" in
17962#(
17963y|Y|yes|Yes|YES)
17964 DX_FLAG_ps=1
17965
17966
17967test "$DX_FLAG_doc" = "1" \
17968|| as_fn_error $? "doxygen-ps requires doxygen-ps" "$LINENO" 5
17969
17970;; #(
17971n|N|no|No|NO)
17972 DX_FLAG_ps=0
17973
17974;; #(
17975*)
17976 as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
17977;;
17978esac
17979
17980else
17981
17982DX_FLAG_ps=0
17983
17984
17985test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
17986
17987
17988
17989fi
17990
17991if test "$DX_FLAG_ps" = 1; then
17992
17993if test -n "$ac_tool_prefix"; then
17994 # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
17995set dummy ${ac_tool_prefix}latex; ac_word=$2
17996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17997$as_echo_n "checking for $ac_word... " >&6; }
17998if ${ac_cv_path_DX_LATEX+:} false; then :
17999 $as_echo_n "(cached) " >&6
18000else
18001 case $DX_LATEX in
18002 [\\/]* | ?:[\\/]*)
18003 ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
18004 ;;
18005 *)
18006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18007for as_dir in $PATH
18008do
18009 IFS=$as_save_IFS
18010 test -z "$as_dir" && as_dir=.
18011 for ac_exec_ext in '' $ac_executable_extensions; do
18012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18013 ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
18014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18015 break 2
18016 fi
18017done
18018 done
18019IFS=$as_save_IFS
18020
18021 ;;
18022esac
18023fi
18024DX_LATEX=$ac_cv_path_DX_LATEX
18025if test -n "$DX_LATEX"; then
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
18027$as_echo "$DX_LATEX" >&6; }
18028else
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18030$as_echo "no" >&6; }
18031fi
18032
18033
18034fi
18035if test -z "$ac_cv_path_DX_LATEX"; then
18036 ac_pt_DX_LATEX=$DX_LATEX
18037 # Extract the first word of "latex", so it can be a program name with args.
18038set dummy latex; ac_word=$2
18039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18040$as_echo_n "checking for $ac_word... " >&6; }
18041if ${ac_cv_path_ac_pt_DX_LATEX+:} false; then :
18042 $as_echo_n "(cached) " >&6
18043else
18044 case $ac_pt_DX_LATEX in
18045 [\\/]* | ?:[\\/]*)
18046 ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
18047 ;;
18048 *)
18049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18050for as_dir in $PATH
18051do
18052 IFS=$as_save_IFS
18053 test -z "$as_dir" && as_dir=.
18054 for ac_exec_ext in '' $ac_executable_extensions; do
18055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18056 ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
18057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18058 break 2
18059 fi
18060done
18061 done
18062IFS=$as_save_IFS
18063
18064 ;;
18065esac
18066fi
18067ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
18068if test -n "$ac_pt_DX_LATEX"; then
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
18070$as_echo "$ac_pt_DX_LATEX" >&6; }
18071else
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18073$as_echo "no" >&6; }
18074fi
18075
18076 if test "x$ac_pt_DX_LATEX" = x; then
18077 DX_LATEX=""
18078 else
18079 case $cross_compiling:$ac_tool_warned in
18080yes:)
18081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18083ac_tool_warned=yes ;;
18084esac
18085 DX_LATEX=$ac_pt_DX_LATEX
18086 fi
18087else
18088 DX_LATEX="$ac_cv_path_DX_LATEX"
18089fi
18090
18091if test "$DX_FLAG_ps$DX_LATEX" = 1; then
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
18093$as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
18094 DX_FLAG_ps=0
18095
18096fi
18097
18098
18099if test -n "$ac_tool_prefix"; then
18100 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
18101set dummy ${ac_tool_prefix}makeindex; ac_word=$2
18102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18103$as_echo_n "checking for $ac_word... " >&6; }
18104if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
18105 $as_echo_n "(cached) " >&6
18106else
18107 case $DX_MAKEINDEX in
18108 [\\/]* | ?:[\\/]*)
18109 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
18110 ;;
18111 *)
18112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18113for as_dir in $PATH
18114do
18115 IFS=$as_save_IFS
18116 test -z "$as_dir" && as_dir=.
18117 for ac_exec_ext in '' $ac_executable_extensions; do
18118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18119 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
18120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18121 break 2
18122 fi
18123done
18124 done
18125IFS=$as_save_IFS
18126
18127 ;;
18128esac
18129fi
18130DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
18131if test -n "$DX_MAKEINDEX"; then
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
18133$as_echo "$DX_MAKEINDEX" >&6; }
18134else
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18136$as_echo "no" >&6; }
18137fi
18138
18139
18140fi
18141if test -z "$ac_cv_path_DX_MAKEINDEX"; then
18142 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
18143 # Extract the first word of "makeindex", so it can be a program name with args.
18144set dummy makeindex; ac_word=$2
18145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18146$as_echo_n "checking for $ac_word... " >&6; }
18147if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
18148 $as_echo_n "(cached) " >&6
18149else
18150 case $ac_pt_DX_MAKEINDEX in
18151 [\\/]* | ?:[\\/]*)
18152 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
18153 ;;
18154 *)
18155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18156for as_dir in $PATH
18157do
18158 IFS=$as_save_IFS
18159 test -z "$as_dir" && as_dir=.
18160 for ac_exec_ext in '' $ac_executable_extensions; do
18161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18162 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
18163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18164 break 2
18165 fi
18166done
18167 done
18168IFS=$as_save_IFS
18169
18170 ;;
18171esac
18172fi
18173ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
18174if test -n "$ac_pt_DX_MAKEINDEX"; then
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
18176$as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
18177else
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18179$as_echo "no" >&6; }
18180fi
18181
18182 if test "x$ac_pt_DX_MAKEINDEX" = x; then
18183 DX_MAKEINDEX=""
18184 else
18185 case $cross_compiling:$ac_tool_warned in
18186yes:)
18187{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18188$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18189ac_tool_warned=yes ;;
18190esac
18191 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
18192 fi
18193else
18194 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
18195fi
18196
18197if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
18199$as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
18200 DX_FLAG_ps=0
18201
18202fi
18203
18204
18205if test -n "$ac_tool_prefix"; then
18206 # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
18207set dummy ${ac_tool_prefix}dvips; ac_word=$2
18208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18209$as_echo_n "checking for $ac_word... " >&6; }
18210if ${ac_cv_path_DX_DVIPS+:} false; then :
18211 $as_echo_n "(cached) " >&6
18212else
18213 case $DX_DVIPS in
18214 [\\/]* | ?:[\\/]*)
18215 ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
18216 ;;
18217 *)
18218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18219for as_dir in $PATH
18220do
18221 IFS=$as_save_IFS
18222 test -z "$as_dir" && as_dir=.
18223 for ac_exec_ext in '' $ac_executable_extensions; do
18224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18225 ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
18226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18227 break 2
18228 fi
18229done
18230 done
18231IFS=$as_save_IFS
18232
18233 ;;
18234esac
18235fi
18236DX_DVIPS=$ac_cv_path_DX_DVIPS
18237if test -n "$DX_DVIPS"; then
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
18239$as_echo "$DX_DVIPS" >&6; }
18240else
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18242$as_echo "no" >&6; }
18243fi
18244
18245
18246fi
18247if test -z "$ac_cv_path_DX_DVIPS"; then
18248 ac_pt_DX_DVIPS=$DX_DVIPS
18249 # Extract the first word of "dvips", so it can be a program name with args.
18250set dummy dvips; ac_word=$2
18251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18252$as_echo_n "checking for $ac_word... " >&6; }
18253if ${ac_cv_path_ac_pt_DX_DVIPS+:} false; then :
18254 $as_echo_n "(cached) " >&6
18255else
18256 case $ac_pt_DX_DVIPS in
18257 [\\/]* | ?:[\\/]*)
18258 ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
18259 ;;
18260 *)
18261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18262for as_dir in $PATH
18263do
18264 IFS=$as_save_IFS
18265 test -z "$as_dir" && as_dir=.
18266 for ac_exec_ext in '' $ac_executable_extensions; do
18267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18268 ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
18269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18270 break 2
18271 fi
18272done
18273 done
18274IFS=$as_save_IFS
18275
18276 ;;
18277esac
18278fi
18279ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
18280if test -n "$ac_pt_DX_DVIPS"; then
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
18282$as_echo "$ac_pt_DX_DVIPS" >&6; }
18283else
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18285$as_echo "no" >&6; }
18286fi
18287
18288 if test "x$ac_pt_DX_DVIPS" = x; then
18289 DX_DVIPS=""
18290 else
18291 case $cross_compiling:$ac_tool_warned in
18292yes:)
18293{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18294$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18295ac_tool_warned=yes ;;
18296esac
18297 DX_DVIPS=$ac_pt_DX_DVIPS
18298 fi
18299else
18300 DX_DVIPS="$ac_cv_path_DX_DVIPS"
18301fi
18302
18303if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
18305$as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
18306 DX_FLAG_ps=0
18307
18308fi
18309
18310
18311if test -n "$ac_tool_prefix"; then
18312 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
18313set dummy ${ac_tool_prefix}egrep; ac_word=$2
18314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18315$as_echo_n "checking for $ac_word... " >&6; }
18316if ${ac_cv_path_DX_EGREP+:} false; then :
18317 $as_echo_n "(cached) " >&6
18318else
18319 case $DX_EGREP in
18320 [\\/]* | ?:[\\/]*)
18321 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
18322 ;;
18323 *)
18324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18325for as_dir in $PATH
18326do
18327 IFS=$as_save_IFS
18328 test -z "$as_dir" && as_dir=.
18329 for ac_exec_ext in '' $ac_executable_extensions; do
18330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18331 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
18332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18333 break 2
18334 fi
18335done
18336 done
18337IFS=$as_save_IFS
18338
18339 ;;
18340esac
18341fi
18342DX_EGREP=$ac_cv_path_DX_EGREP
18343if test -n "$DX_EGREP"; then
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
18345$as_echo "$DX_EGREP" >&6; }
18346else
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18348$as_echo "no" >&6; }
18349fi
18350
18351
18352fi
18353if test -z "$ac_cv_path_DX_EGREP"; then
18354 ac_pt_DX_EGREP=$DX_EGREP
18355 # Extract the first word of "egrep", so it can be a program name with args.
18356set dummy egrep; ac_word=$2
18357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18358$as_echo_n "checking for $ac_word... " >&6; }
18359if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
18360 $as_echo_n "(cached) " >&6
18361else
18362 case $ac_pt_DX_EGREP in
18363 [\\/]* | ?:[\\/]*)
18364 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
18365 ;;
18366 *)
18367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18368for as_dir in $PATH
18369do
18370 IFS=$as_save_IFS
18371 test -z "$as_dir" && as_dir=.
18372 for ac_exec_ext in '' $ac_executable_extensions; do
18373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18374 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
18375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18376 break 2
18377 fi
18378done
18379 done
18380IFS=$as_save_IFS
18381
18382 ;;
18383esac
18384fi
18385ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
18386if test -n "$ac_pt_DX_EGREP"; then
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
18388$as_echo "$ac_pt_DX_EGREP" >&6; }
18389else
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18391$as_echo "no" >&6; }
18392fi
18393
18394 if test "x$ac_pt_DX_EGREP" = x; then
18395 DX_EGREP=""
18396 else
18397 case $cross_compiling:$ac_tool_warned in
18398yes:)
18399{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18400$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18401ac_tool_warned=yes ;;
18402esac
18403 DX_EGREP=$ac_pt_DX_EGREP
18404 fi
18405else
18406 DX_EGREP="$ac_cv_path_DX_EGREP"
18407fi
18408
18409if test "$DX_FLAG_ps$DX_EGREP" = 1; then
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
18411$as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
18412 DX_FLAG_ps=0
18413
18414fi
18415
18416 :
18417fi
18418 if test "$DX_FLAG_ps" = 1; then
18419 DX_COND_ps_TRUE=
18420 DX_COND_ps_FALSE='#'
18421else
18422 DX_COND_ps_TRUE='#'
18423 DX_COND_ps_FALSE=
18424fi
18425
18426if test "$DX_FLAG_ps" = 1; then
18427
18428 :
18429else
18430
18431 :
18432fi
18433
18434
18435# PDF file generation:
18436
18437
18438
18439 # Check whether --enable-doxygen-pdf was given.
18440if test "${enable_doxygen_pdf+set}" = set; then :
18441 enableval=$enable_doxygen_pdf;
18442case "$enableval" in
18443#(
18444y|Y|yes|Yes|YES)
18445 DX_FLAG_pdf=1
18446
18447
18448test "$DX_FLAG_doc" = "1" \
18449|| as_fn_error $? "doxygen-pdf requires doxygen-pdf" "$LINENO" 5
18450
18451;; #(
18452n|N|no|No|NO)
18453 DX_FLAG_pdf=0
18454
18455;; #(
18456*)
18457 as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
18458;;
18459esac
18460
18461else
18462
18463DX_FLAG_pdf=0
18464
18465
18466test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
18467
18468
18469
18470fi
18471
18472if test "$DX_FLAG_pdf" = 1; then
18473
18474if test -n "$ac_tool_prefix"; then
18475 # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
18476set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
18477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18478$as_echo_n "checking for $ac_word... " >&6; }
18479if ${ac_cv_path_DX_PDFLATEX+:} false; then :
18480 $as_echo_n "(cached) " >&6
18481else
18482 case $DX_PDFLATEX in
18483 [\\/]* | ?:[\\/]*)
18484 ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
18485 ;;
18486 *)
18487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18488for as_dir in $PATH
18489do
18490 IFS=$as_save_IFS
18491 test -z "$as_dir" && as_dir=.
18492 for ac_exec_ext in '' $ac_executable_extensions; do
18493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18494 ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
18495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18496 break 2
18497 fi
18498done
18499 done
18500IFS=$as_save_IFS
18501
18502 ;;
18503esac
18504fi
18505DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
18506if test -n "$DX_PDFLATEX"; then
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
18508$as_echo "$DX_PDFLATEX" >&6; }
18509else
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18511$as_echo "no" >&6; }
18512fi
18513
18514
18515fi
18516if test -z "$ac_cv_path_DX_PDFLATEX"; then
18517 ac_pt_DX_PDFLATEX=$DX_PDFLATEX
18518 # Extract the first word of "pdflatex", so it can be a program name with args.
18519set dummy pdflatex; ac_word=$2
18520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18521$as_echo_n "checking for $ac_word... " >&6; }
18522if ${ac_cv_path_ac_pt_DX_PDFLATEX+:} false; then :
18523 $as_echo_n "(cached) " >&6
18524else
18525 case $ac_pt_DX_PDFLATEX in
18526 [\\/]* | ?:[\\/]*)
18527 ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
18528 ;;
18529 *)
18530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18531for as_dir in $PATH
18532do
18533 IFS=$as_save_IFS
18534 test -z "$as_dir" && as_dir=.
18535 for ac_exec_ext in '' $ac_executable_extensions; do
18536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18537 ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
18538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18539 break 2
18540 fi
18541done
18542 done
18543IFS=$as_save_IFS
18544
18545 ;;
18546esac
18547fi
18548ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
18549if test -n "$ac_pt_DX_PDFLATEX"; then
18550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
18551$as_echo "$ac_pt_DX_PDFLATEX" >&6; }
18552else
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18554$as_echo "no" >&6; }
18555fi
18556
18557 if test "x$ac_pt_DX_PDFLATEX" = x; then
18558 DX_PDFLATEX=""
18559 else
18560 case $cross_compiling:$ac_tool_warned in
18561yes:)
18562{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18563$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18564ac_tool_warned=yes ;;
18565esac
18566 DX_PDFLATEX=$ac_pt_DX_PDFLATEX
18567 fi
18568else
18569 DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
18570fi
18571
18572if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
18574$as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
18575 DX_FLAG_pdf=0
18576
18577fi
18578
18579
18580if test -n "$ac_tool_prefix"; then
18581 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
18582set dummy ${ac_tool_prefix}makeindex; ac_word=$2
18583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18584$as_echo_n "checking for $ac_word... " >&6; }
18585if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
18586 $as_echo_n "(cached) " >&6
18587else
18588 case $DX_MAKEINDEX in
18589 [\\/]* | ?:[\\/]*)
18590 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
18591 ;;
18592 *)
18593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18594for as_dir in $PATH
18595do
18596 IFS=$as_save_IFS
18597 test -z "$as_dir" && as_dir=.
18598 for ac_exec_ext in '' $ac_executable_extensions; do
18599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18600 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
18601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18602 break 2
18603 fi
18604done
18605 done
18606IFS=$as_save_IFS
18607
18608 ;;
18609esac
18610fi
18611DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
18612if test -n "$DX_MAKEINDEX"; then
18613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
18614$as_echo "$DX_MAKEINDEX" >&6; }
18615else
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18617$as_echo "no" >&6; }
18618fi
18619
18620
18621fi
18622if test -z "$ac_cv_path_DX_MAKEINDEX"; then
18623 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
18624 # Extract the first word of "makeindex", so it can be a program name with args.
18625set dummy makeindex; ac_word=$2
18626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18627$as_echo_n "checking for $ac_word... " >&6; }
18628if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
18629 $as_echo_n "(cached) " >&6
18630else
18631 case $ac_pt_DX_MAKEINDEX in
18632 [\\/]* | ?:[\\/]*)
18633 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
18634 ;;
18635 *)
18636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18637for as_dir in $PATH
18638do
18639 IFS=$as_save_IFS
18640 test -z "$as_dir" && as_dir=.
18641 for ac_exec_ext in '' $ac_executable_extensions; do
18642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18643 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
18644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18645 break 2
18646 fi
18647done
18648 done
18649IFS=$as_save_IFS
18650
18651 ;;
18652esac
18653fi
18654ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
18655if test -n "$ac_pt_DX_MAKEINDEX"; then
18656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
18657$as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
18658else
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18660$as_echo "no" >&6; }
18661fi
18662
18663 if test "x$ac_pt_DX_MAKEINDEX" = x; then
18664 DX_MAKEINDEX=""
18665 else
18666 case $cross_compiling:$ac_tool_warned in
18667yes:)
18668{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18669$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18670ac_tool_warned=yes ;;
18671esac
18672 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
18673 fi
18674else
18675 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
18676fi
18677
18678if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
18680$as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
18681 DX_FLAG_pdf=0
18682
18683fi
18684
18685
18686if test -n "$ac_tool_prefix"; then
18687 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
18688set dummy ${ac_tool_prefix}egrep; ac_word=$2
18689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18690$as_echo_n "checking for $ac_word... " >&6; }
18691if ${ac_cv_path_DX_EGREP+:} false; then :
18692 $as_echo_n "(cached) " >&6
18693else
18694 case $DX_EGREP in
18695 [\\/]* | ?:[\\/]*)
18696 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
18697 ;;
18698 *)
18699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18700for as_dir in $PATH
18701do
18702 IFS=$as_save_IFS
18703 test -z "$as_dir" && as_dir=.
18704 for ac_exec_ext in '' $ac_executable_extensions; do
18705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18706 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
18707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18708 break 2
18709 fi
18710done
18711 done
18712IFS=$as_save_IFS
18713
18714 ;;
18715esac
18716fi
18717DX_EGREP=$ac_cv_path_DX_EGREP
18718if test -n "$DX_EGREP"; then
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
18720$as_echo "$DX_EGREP" >&6; }
18721else
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18723$as_echo "no" >&6; }
18724fi
18725
18726
18727fi
18728if test -z "$ac_cv_path_DX_EGREP"; then
18729 ac_pt_DX_EGREP=$DX_EGREP
18730 # Extract the first word of "egrep", so it can be a program name with args.
18731set dummy egrep; ac_word=$2
18732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18733$as_echo_n "checking for $ac_word... " >&6; }
18734if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
18735 $as_echo_n "(cached) " >&6
18736else
18737 case $ac_pt_DX_EGREP in
18738 [\\/]* | ?:[\\/]*)
18739 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
18740 ;;
18741 *)
18742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18743for as_dir in $PATH
18744do
18745 IFS=$as_save_IFS
18746 test -z "$as_dir" && as_dir=.
18747 for ac_exec_ext in '' $ac_executable_extensions; do
18748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18749 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
18750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18751 break 2
18752 fi
18753done
18754 done
18755IFS=$as_save_IFS
18756
18757 ;;
18758esac
18759fi
18760ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
18761if test -n "$ac_pt_DX_EGREP"; then
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
18763$as_echo "$ac_pt_DX_EGREP" >&6; }
18764else
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18766$as_echo "no" >&6; }
18767fi
18768
18769 if test "x$ac_pt_DX_EGREP" = x; then
18770 DX_EGREP=""
18771 else
18772 case $cross_compiling:$ac_tool_warned in
18773yes:)
18774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18776ac_tool_warned=yes ;;
18777esac
18778 DX_EGREP=$ac_pt_DX_EGREP
18779 fi
18780else
18781 DX_EGREP="$ac_cv_path_DX_EGREP"
18782fi
18783
18784if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
18786$as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
18787 DX_FLAG_pdf=0
18788
18789fi
18790
18791 :
18792fi
18793 if test "$DX_FLAG_pdf" = 1; then
18794 DX_COND_pdf_TRUE=
18795 DX_COND_pdf_FALSE='#'
18796else
18797 DX_COND_pdf_TRUE='#'
18798 DX_COND_pdf_FALSE=
18799fi
18800
18801if test "$DX_FLAG_pdf" = 1; then
18802
18803 :
18804else
18805
18806 :
18807fi
18808
18809
18810# LaTeX generation for PS and/or PDF:
18811 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
18812 DX_COND_latex_TRUE=
18813 DX_COND_latex_FALSE='#'
18814else
18815 DX_COND_latex_TRUE='#'
18816 DX_COND_latex_FALSE=
18817fi
18818
18819if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
18820 DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
18821
18822else
18823 DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
18824
18825fi
18826
18827# Paper size for PS and/or PDF:
18828
18829case "$DOXYGEN_PAPER_SIZE" in
18830#(
18831"")
18832 DOXYGEN_PAPER_SIZE=""
18833
18834;; #(
18835a4wide|a4|letter|legal|executive)
18836 DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
18837
18838;; #(
18839*)
18840 as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
18841;;
18842esac
18843
18844#For debugging:
18845#echo DX_FLAG_doc=$DX_FLAG_doc
18846#echo DX_FLAG_dot=$DX_FLAG_dot
18847#echo DX_FLAG_man=$DX_FLAG_man
18848#echo DX_FLAG_html=$DX_FLAG_html
18849#echo DX_FLAG_chm=$DX_FLAG_chm
18850#echo DX_FLAG_chi=$DX_FLAG_chi
18851#echo DX_FLAG_rtf=$DX_FLAG_rtf
18852#echo DX_FLAG_xml=$DX_FLAG_xml
18853#echo DX_FLAG_pdf=$DX_FLAG_pdf
18854#echo DX_FLAG_ps=$DX_FLAG_ps
18855#echo DX_ENV=$DX_ENV
18856
18857
Jeff Thompson6e229042013-10-10 11:09:49 -070018858ac_config_files="$ac_config_files Makefile include/Makefile"
Jeff Thompson39128c62013-06-19 14:08:51 -070018859
18860cat >confcache <<\_ACEOF
18861# This file is a shell script that caches the results of configure
18862# tests run on this system so they can be shared between configure
18863# scripts and configure runs, see configure's option --config-cache.
18864# It is not useful on other systems. If it contains results you don't
18865# want to keep, you may remove or edit it.
18866#
18867# config.status only pays attention to the cache file if you give it
18868# the --recheck option to rerun configure.
18869#
18870# `ac_cv_env_foo' variables (set or unset) will be overridden when
18871# loading this file, other *unset* `ac_cv_foo' will be assigned the
18872# following values.
18873
18874_ACEOF
18875
18876# The following way of writing the cache mishandles newlines in values,
18877# but we know of no workaround that is simple, portable, and efficient.
18878# So, we kill variables containing newlines.
18879# Ultrix sh set writes to stderr and can't be redirected directly,
18880# and sets the high bit in the cache file unless we assign to the vars.
18881(
18882 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18883 eval ac_val=\$$ac_var
18884 case $ac_val in #(
18885 *${as_nl}*)
18886 case $ac_var in #(
18887 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18888$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18889 esac
18890 case $ac_var in #(
18891 _ | IFS | as_nl) ;; #(
18892 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18893 *) { eval $ac_var=; unset $ac_var;} ;;
18894 esac ;;
18895 esac
18896 done
18897
18898 (set) 2>&1 |
18899 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18900 *${as_nl}ac_space=\ *)
18901 # `set' does not quote correctly, so add quotes: double-quote
18902 # substitution turns \\\\ into \\, and sed turns \\ into \.
18903 sed -n \
18904 "s/'/'\\\\''/g;
18905 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18906 ;; #(
18907 *)
18908 # `set' quotes correctly as required by POSIX, so do not add quotes.
18909 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18910 ;;
18911 esac |
18912 sort
18913) |
18914 sed '
18915 /^ac_cv_env_/b end
18916 t clear
18917 :clear
18918 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18919 t end
18920 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18921 :end' >>confcache
18922if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18923 if test -w "$cache_file"; then
18924 if test "x$cache_file" != "x/dev/null"; then
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18926$as_echo "$as_me: updating cache $cache_file" >&6;}
18927 if test ! -f "$cache_file" || test -h "$cache_file"; then
18928 cat confcache >"$cache_file"
18929 else
18930 case $cache_file in #(
18931 */* | ?:*)
18932 mv -f confcache "$cache_file"$$ &&
18933 mv -f "$cache_file"$$ "$cache_file" ;; #(
18934 *)
18935 mv -f confcache "$cache_file" ;;
18936 esac
18937 fi
18938 fi
18939 else
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18941$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18942 fi
18943fi
18944rm -f confcache
18945
18946test "x$prefix" = xNONE && prefix=$ac_default_prefix
18947# Let make expand exec_prefix.
18948test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18949
18950DEFS=-DHAVE_CONFIG_H
18951
18952ac_libobjs=
18953ac_ltlibobjs=
18954U=
18955for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18956 # 1. Remove the extension, and $U if already installed.
18957 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18958 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18959 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18960 # will be set to the directory where LIBOBJS objects are built.
18961 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18962 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18963done
18964LIBOBJS=$ac_libobjs
18965
18966LTLIBOBJS=$ac_ltlibobjs
18967
18968
18969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18970$as_echo_n "checking that generated files are newer than configure... " >&6; }
18971 if test -n "$am_sleep_pid"; then
18972 # Hide warnings about reused PIDs.
18973 wait $am_sleep_pid 2>/dev/null
18974 fi
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18976$as_echo "done" >&6; }
18977 if test -n "$EXEEXT"; then
18978 am__EXEEXT_TRUE=
18979 am__EXEEXT_FALSE='#'
18980else
18981 am__EXEEXT_TRUE='#'
18982 am__EXEEXT_FALSE=
18983fi
18984
Jeff Thompson47053ad2013-08-05 10:36:53 -070018985if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18986 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18987Usually this means the macro was only invoked conditionally." "$LINENO" 5
18988fi
Jeff Thompson39128c62013-06-19 14:08:51 -070018989if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18990 as_fn_error $? "conditional \"AMDEP\" was never defined.
18991Usually this means the macro was only invoked conditionally." "$LINENO" 5
18992fi
Jeff Thompson36174062013-06-21 16:03:44 -070018993if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18994 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18995Usually this means the macro was only invoked conditionally." "$LINENO" 5
18996fi
Jeff Thompson4f031642013-08-05 11:03:16 -070018997if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18998 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18999Usually this means the macro was only invoked conditionally." "$LINENO" 5
19000fi
Jeff Thompson965a3242013-10-02 09:59:35 -070019001if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
19002 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
19003Usually this means the macro was only invoked conditionally." "$LINENO" 5
19004fi
Jeff Thompsonca45e552013-06-26 17:40:06 -070019005if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
19006 as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
19007Usually this means the macro was only invoked conditionally." "$LINENO" 5
19008fi
19009if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
19010 as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
19011Usually this means the macro was only invoked conditionally." "$LINENO" 5
19012fi
19013if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
19014 as_fn_error $? "conditional \"DX_COND_man\" was never defined.
19015Usually this means the macro was only invoked conditionally." "$LINENO" 5
19016fi
19017if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
19018 as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
19019Usually this means the macro was only invoked conditionally." "$LINENO" 5
19020fi
19021if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
19022 as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
19023Usually this means the macro was only invoked conditionally." "$LINENO" 5
19024fi
19025if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
19026 as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
19027Usually this means the macro was only invoked conditionally." "$LINENO" 5
19028fi
19029if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
19030 as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
19031Usually this means the macro was only invoked conditionally." "$LINENO" 5
19032fi
19033if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
19034 as_fn_error $? "conditional \"DX_COND_html\" was never defined.
19035Usually this means the macro was only invoked conditionally." "$LINENO" 5
19036fi
19037if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
19038 as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
19039Usually this means the macro was only invoked conditionally." "$LINENO" 5
19040fi
19041if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
19042 as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
19043Usually this means the macro was only invoked conditionally." "$LINENO" 5
19044fi
19045if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
19046 as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
19047Usually this means the macro was only invoked conditionally." "$LINENO" 5
19048fi
Jeff Thompson39128c62013-06-19 14:08:51 -070019049
19050: "${CONFIG_STATUS=./config.status}"
19051ac_write_fail=0
19052ac_clean_files_save=$ac_clean_files
19053ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19054{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19055$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19056as_write_fail=0
19057cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19058#! $SHELL
19059# Generated by $as_me.
19060# Run this file to recreate the current configuration.
19061# Compiler output produced by configure, useful for debugging
19062# configure, is in config.log if it exists.
19063
19064debug=false
19065ac_cs_recheck=false
19066ac_cs_silent=false
19067
19068SHELL=\${CONFIG_SHELL-$SHELL}
19069export SHELL
19070_ASEOF
19071cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19072## -------------------- ##
19073## M4sh Initialization. ##
19074## -------------------- ##
19075
19076# Be more Bourne compatible
19077DUALCASE=1; export DUALCASE # for MKS sh
19078if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19079 emulate sh
19080 NULLCMD=:
19081 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19082 # is contrary to our usage. Disable this feature.
19083 alias -g '${1+"$@"}'='"$@"'
19084 setopt NO_GLOB_SUBST
19085else
19086 case `(set -o) 2>/dev/null` in #(
19087 *posix*) :
19088 set -o posix ;; #(
19089 *) :
19090 ;;
19091esac
19092fi
19093
19094
19095as_nl='
19096'
19097export as_nl
19098# Printing a long string crashes Solaris 7 /usr/bin/printf.
19099as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19100as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19101as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19102# Prefer a ksh shell builtin over an external printf program on Solaris,
19103# but without wasting forks for bash or zsh.
19104if test -z "$BASH_VERSION$ZSH_VERSION" \
19105 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19106 as_echo='print -r --'
19107 as_echo_n='print -rn --'
19108elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19109 as_echo='printf %s\n'
19110 as_echo_n='printf %s'
19111else
19112 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19113 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19114 as_echo_n='/usr/ucb/echo -n'
19115 else
19116 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19117 as_echo_n_body='eval
19118 arg=$1;
19119 case $arg in #(
19120 *"$as_nl"*)
19121 expr "X$arg" : "X\\(.*\\)$as_nl";
19122 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19123 esac;
19124 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19125 '
19126 export as_echo_n_body
19127 as_echo_n='sh -c $as_echo_n_body as_echo'
19128 fi
19129 export as_echo_body
19130 as_echo='sh -c $as_echo_body as_echo'
19131fi
19132
19133# The user is always right.
19134if test "${PATH_SEPARATOR+set}" != set; then
19135 PATH_SEPARATOR=:
19136 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19137 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19138 PATH_SEPARATOR=';'
19139 }
19140fi
19141
19142
19143# IFS
19144# We need space, tab and new line, in precisely that order. Quoting is
19145# there to prevent editors from complaining about space-tab.
19146# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19147# splitting by setting IFS to empty value.)
19148IFS=" "" $as_nl"
19149
19150# Find who we are. Look in the path if we contain no directory separator.
19151as_myself=
19152case $0 in #((
19153 *[\\/]* ) as_myself=$0 ;;
19154 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19155for as_dir in $PATH
19156do
19157 IFS=$as_save_IFS
19158 test -z "$as_dir" && as_dir=.
19159 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19160 done
19161IFS=$as_save_IFS
19162
19163 ;;
19164esac
19165# We did not find ourselves, most probably we were run as `sh COMMAND'
19166# in which case we are not to be found in the path.
19167if test "x$as_myself" = x; then
19168 as_myself=$0
19169fi
19170if test ! -f "$as_myself"; then
19171 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19172 exit 1
19173fi
19174
19175# Unset variables that we do not need and which cause bugs (e.g. in
19176# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19177# suppresses any "Segmentation fault" message there. '((' could
19178# trigger a bug in pdksh 5.2.14.
19179for as_var in BASH_ENV ENV MAIL MAILPATH
19180do eval test x\${$as_var+set} = xset \
19181 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19182done
19183PS1='$ '
19184PS2='> '
19185PS4='+ '
19186
19187# NLS nuisances.
19188LC_ALL=C
19189export LC_ALL
19190LANGUAGE=C
19191export LANGUAGE
19192
19193# CDPATH.
19194(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19195
19196
19197# as_fn_error STATUS ERROR [LINENO LOG_FD]
19198# ----------------------------------------
19199# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19200# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19201# script with STATUS, using 1 if that was 0.
19202as_fn_error ()
19203{
19204 as_status=$1; test $as_status -eq 0 && as_status=1
19205 if test "$4"; then
19206 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19207 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19208 fi
19209 $as_echo "$as_me: error: $2" >&2
19210 as_fn_exit $as_status
19211} # as_fn_error
19212
19213
19214# as_fn_set_status STATUS
19215# -----------------------
19216# Set $? to STATUS, without forking.
19217as_fn_set_status ()
19218{
19219 return $1
19220} # as_fn_set_status
19221
19222# as_fn_exit STATUS
19223# -----------------
19224# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19225as_fn_exit ()
19226{
19227 set +e
19228 as_fn_set_status $1
19229 exit $1
19230} # as_fn_exit
19231
19232# as_fn_unset VAR
19233# ---------------
19234# Portably unset VAR.
19235as_fn_unset ()
19236{
19237 { eval $1=; unset $1;}
19238}
19239as_unset=as_fn_unset
19240# as_fn_append VAR VALUE
19241# ----------------------
19242# Append the text in VALUE to the end of the definition contained in VAR. Take
19243# advantage of any shell optimizations that allow amortized linear growth over
19244# repeated appends, instead of the typical quadratic growth present in naive
19245# implementations.
19246if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19247 eval 'as_fn_append ()
19248 {
19249 eval $1+=\$2
19250 }'
19251else
19252 as_fn_append ()
19253 {
19254 eval $1=\$$1\$2
19255 }
19256fi # as_fn_append
19257
19258# as_fn_arith ARG...
19259# ------------------
19260# Perform arithmetic evaluation on the ARGs, and store the result in the
19261# global $as_val. Take advantage of shells that can avoid forks. The arguments
19262# must be portable across $(()) and expr.
19263if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19264 eval 'as_fn_arith ()
19265 {
19266 as_val=$(( $* ))
19267 }'
19268else
19269 as_fn_arith ()
19270 {
19271 as_val=`expr "$@" || test $? -eq 1`
19272 }
19273fi # as_fn_arith
19274
19275
19276if expr a : '\(a\)' >/dev/null 2>&1 &&
19277 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19278 as_expr=expr
19279else
19280 as_expr=false
19281fi
19282
19283if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19284 as_basename=basename
19285else
19286 as_basename=false
19287fi
19288
19289if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19290 as_dirname=dirname
19291else
19292 as_dirname=false
19293fi
19294
19295as_me=`$as_basename -- "$0" ||
19296$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19297 X"$0" : 'X\(//\)$' \| \
19298 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19299$as_echo X/"$0" |
19300 sed '/^.*\/\([^/][^/]*\)\/*$/{
19301 s//\1/
19302 q
19303 }
19304 /^X\/\(\/\/\)$/{
19305 s//\1/
19306 q
19307 }
19308 /^X\/\(\/\).*/{
19309 s//\1/
19310 q
19311 }
19312 s/.*/./; q'`
19313
19314# Avoid depending upon Character Ranges.
19315as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19316as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19317as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19318as_cr_digits='0123456789'
19319as_cr_alnum=$as_cr_Letters$as_cr_digits
19320
19321ECHO_C= ECHO_N= ECHO_T=
19322case `echo -n x` in #(((((
19323-n*)
19324 case `echo 'xy\c'` in
19325 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19326 xy) ECHO_C='\c';;
19327 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19328 ECHO_T=' ';;
19329 esac;;
19330*)
19331 ECHO_N='-n';;
19332esac
19333
19334rm -f conf$$ conf$$.exe conf$$.file
19335if test -d conf$$.dir; then
19336 rm -f conf$$.dir/conf$$.file
19337else
19338 rm -f conf$$.dir
19339 mkdir conf$$.dir 2>/dev/null
19340fi
19341if (echo >conf$$.file) 2>/dev/null; then
19342 if ln -s conf$$.file conf$$ 2>/dev/null; then
19343 as_ln_s='ln -s'
19344 # ... but there are two gotchas:
19345 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19346 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19347 # In both cases, we have to default to `cp -pR'.
19348 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19349 as_ln_s='cp -pR'
19350 elif ln conf$$.file conf$$ 2>/dev/null; then
19351 as_ln_s=ln
19352 else
19353 as_ln_s='cp -pR'
19354 fi
19355else
19356 as_ln_s='cp -pR'
19357fi
19358rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19359rmdir conf$$.dir 2>/dev/null
19360
19361
19362# as_fn_mkdir_p
19363# -------------
19364# Create "$as_dir" as a directory, including parents if necessary.
19365as_fn_mkdir_p ()
19366{
19367
19368 case $as_dir in #(
19369 -*) as_dir=./$as_dir;;
19370 esac
19371 test -d "$as_dir" || eval $as_mkdir_p || {
19372 as_dirs=
19373 while :; do
19374 case $as_dir in #(
19375 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19376 *) as_qdir=$as_dir;;
19377 esac
19378 as_dirs="'$as_qdir' $as_dirs"
19379 as_dir=`$as_dirname -- "$as_dir" ||
19380$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19381 X"$as_dir" : 'X\(//\)[^/]' \| \
19382 X"$as_dir" : 'X\(//\)$' \| \
19383 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19384$as_echo X"$as_dir" |
19385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19386 s//\1/
19387 q
19388 }
19389 /^X\(\/\/\)[^/].*/{
19390 s//\1/
19391 q
19392 }
19393 /^X\(\/\/\)$/{
19394 s//\1/
19395 q
19396 }
19397 /^X\(\/\).*/{
19398 s//\1/
19399 q
19400 }
19401 s/.*/./; q'`
19402 test -d "$as_dir" && break
19403 done
19404 test -z "$as_dirs" || eval "mkdir $as_dirs"
19405 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19406
19407
19408} # as_fn_mkdir_p
19409if mkdir -p . 2>/dev/null; then
19410 as_mkdir_p='mkdir -p "$as_dir"'
19411else
19412 test -d ./-p && rmdir ./-p
19413 as_mkdir_p=false
19414fi
19415
19416
19417# as_fn_executable_p FILE
19418# -----------------------
19419# Test if FILE is an executable regular file.
19420as_fn_executable_p ()
19421{
19422 test -f "$1" && test -x "$1"
19423} # as_fn_executable_p
19424as_test_x='test -x'
19425as_executable_p=as_fn_executable_p
19426
19427# Sed expression to map a string onto a valid CPP name.
19428as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19429
19430# Sed expression to map a string onto a valid variable name.
19431as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19432
19433
19434exec 6>&1
19435## ----------------------------------- ##
19436## Main body of $CONFIG_STATUS script. ##
19437## ----------------------------------- ##
19438_ASEOF
19439test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19440
19441cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19442# Save the log message, to keep $0 and so on meaningful, and to
19443# report actual input values of CONFIG_FILES etc. instead of their
19444# values after options handling.
19445ac_log="
Jeff Thompson93a24162013-09-27 13:28:13 -070019446This file was extended by ndn-cpp $as_me 0.2, which was
Jeff Thompson39128c62013-06-19 14:08:51 -070019447generated by GNU Autoconf 2.69. Invocation command line was
19448
19449 CONFIG_FILES = $CONFIG_FILES
19450 CONFIG_HEADERS = $CONFIG_HEADERS
19451 CONFIG_LINKS = $CONFIG_LINKS
19452 CONFIG_COMMANDS = $CONFIG_COMMANDS
19453 $ $0 $@
19454
19455on `(hostname || uname -n) 2>/dev/null | sed 1q`
19456"
19457
19458_ACEOF
19459
19460case $ac_config_files in *"
19461"*) set x $ac_config_files; shift; ac_config_files=$*;;
19462esac
19463
19464case $ac_config_headers in *"
19465"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19466esac
19467
19468
19469cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19470# Files that config.status was made for.
19471config_files="$ac_config_files"
19472config_headers="$ac_config_headers"
19473config_commands="$ac_config_commands"
19474
19475_ACEOF
19476
19477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19478ac_cs_usage="\
19479\`$as_me' instantiates files and other configuration actions
19480from templates according to the current configuration. Unless the files
19481and actions are specified as TAGs, all are instantiated by default.
19482
19483Usage: $0 [OPTION]... [TAG]...
19484
19485 -h, --help print this help, then exit
19486 -V, --version print version number and configuration settings, then exit
19487 --config print configuration, then exit
19488 -q, --quiet, --silent
19489 do not print progress messages
19490 -d, --debug don't remove temporary files
19491 --recheck update $as_me by reconfiguring in the same conditions
19492 --file=FILE[:TEMPLATE]
19493 instantiate the configuration file FILE
19494 --header=FILE[:TEMPLATE]
19495 instantiate the configuration header FILE
19496
19497Configuration files:
19498$config_files
19499
19500Configuration headers:
19501$config_headers
19502
19503Configuration commands:
19504$config_commands
19505
Jeff Thompson93a24162013-09-27 13:28:13 -070019506Report bugs to <ndn-lib@lists.cs.ucla.edu>.
Jeff Thompson39128c62013-06-19 14:08:51 -070019507ndn-cpp home page: <https://github.com/named-data/ndn-cpp>."
19508
19509_ACEOF
19510cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19511ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19512ac_cs_version="\\
Jeff Thompson93a24162013-09-27 13:28:13 -070019513ndn-cpp config.status 0.2
Jeff Thompson39128c62013-06-19 14:08:51 -070019514configured by $0, generated by GNU Autoconf 2.69,
19515 with options \\"\$ac_cs_config\\"
19516
19517Copyright (C) 2012 Free Software Foundation, Inc.
19518This config.status script is free software; the Free Software Foundation
19519gives unlimited permission to copy, distribute and modify it."
19520
19521ac_pwd='$ac_pwd'
19522srcdir='$srcdir'
19523INSTALL='$INSTALL'
19524MKDIR_P='$MKDIR_P'
19525AWK='$AWK'
19526test -n "\$AWK" || AWK=awk
19527_ACEOF
19528
19529cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19530# The default lists apply if the user does not specify any file.
19531ac_need_defaults=:
19532while test $# != 0
19533do
19534 case $1 in
19535 --*=?*)
19536 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19537 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19538 ac_shift=:
19539 ;;
19540 --*=)
19541 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19542 ac_optarg=
19543 ac_shift=:
19544 ;;
19545 *)
19546 ac_option=$1
19547 ac_optarg=$2
19548 ac_shift=shift
19549 ;;
19550 esac
19551
19552 case $ac_option in
19553 # Handling of the options.
19554 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19555 ac_cs_recheck=: ;;
19556 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19557 $as_echo "$ac_cs_version"; exit ;;
19558 --config | --confi | --conf | --con | --co | --c )
19559 $as_echo "$ac_cs_config"; exit ;;
19560 --debug | --debu | --deb | --de | --d | -d )
19561 debug=: ;;
19562 --file | --fil | --fi | --f )
19563 $ac_shift
19564 case $ac_optarg in
19565 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19566 '') as_fn_error $? "missing file argument" ;;
19567 esac
19568 as_fn_append CONFIG_FILES " '$ac_optarg'"
19569 ac_need_defaults=false;;
19570 --header | --heade | --head | --hea )
19571 $ac_shift
19572 case $ac_optarg in
19573 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19574 esac
19575 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19576 ac_need_defaults=false;;
19577 --he | --h)
19578 # Conflict between --help and --header
19579 as_fn_error $? "ambiguous option: \`$1'
19580Try \`$0 --help' for more information.";;
19581 --help | --hel | -h )
19582 $as_echo "$ac_cs_usage"; exit ;;
19583 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19584 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19585 ac_cs_silent=: ;;
19586
19587 # This is an error.
19588 -*) as_fn_error $? "unrecognized option: \`$1'
19589Try \`$0 --help' for more information." ;;
19590
19591 *) as_fn_append ac_config_targets " $1"
19592 ac_need_defaults=false ;;
19593
19594 esac
19595 shift
19596done
19597
19598ac_configure_extra_args=
19599
19600if $ac_cs_silent; then
19601 exec 6>/dev/null
19602 ac_configure_extra_args="$ac_configure_extra_args --silent"
19603fi
19604
19605_ACEOF
19606cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19607if \$ac_cs_recheck; then
19608 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19609 shift
19610 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19611 CONFIG_SHELL='$SHELL'
19612 export CONFIG_SHELL
19613 exec "\$@"
19614fi
19615
19616_ACEOF
19617cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19618exec 5>>config.log
19619{
19620 echo
19621 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19622## Running $as_me. ##
19623_ASBOX
19624 $as_echo "$ac_log"
19625} >&5
19626
19627_ACEOF
19628cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19629#
19630# INIT-COMMANDS
19631#
Jeff Thompsonb7523002013-10-09 10:25:00 -070019632PACKAGE="$PACKAGE"
Jeff Thompson39128c62013-06-19 14:08:51 -070019633AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19634
Jeff Thompson4f031642013-08-05 11:03:16 -070019635
19636# The HP-UX ksh and POSIX shell print the target directory to stdout
19637# if CDPATH is set.
19638(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19639
19640sed_quote_subst='$sed_quote_subst'
19641double_quote_subst='$double_quote_subst'
19642delay_variable_subst='$delay_variable_subst'
19643macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19644macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19645enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19646enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19647pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19648enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19649SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19650ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19651PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19652host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19653host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19654host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19655build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19656build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19657build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19658SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19659Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19660GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19661EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19662FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19663LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19664NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19665LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19666max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19667ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19668exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19669lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19670lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19671lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19672lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19673lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19674reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19675reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19676OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19677deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19678file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19679file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19680want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19681DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19682sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19683AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19684AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19685archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19686STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19687RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19688old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19689old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19690old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19691lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19692CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19693CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19694compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19695GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19696lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19697lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19698lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19699lt_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"`'
19700nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19701lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19702objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19703MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19704lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19705lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19706lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19707lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19708lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19709need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19710MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19711DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19712NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19713LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19714OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19715OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19716libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19717shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19718extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19719archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19720enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19721export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19722whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19723compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19724old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19725old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19726archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19727archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19728module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19729module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19730with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19731allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19732no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19733hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19734hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19735hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19736hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19737hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19738hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19739hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19740inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19741link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19742always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19743export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19744exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19745include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19746prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19747postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19748file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19749variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19750need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19751need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19752version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19753runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19754shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19755shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19756libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19757library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19758soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19759install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19760postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19761postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19762finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19763finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19764hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19765sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19766sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19767hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19768enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19769enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19770enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19771old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19772striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19773compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19774predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19775postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19776predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19777postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19778compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19779LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19780reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19781reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19782old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19783compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19784GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19785lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19786lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19787lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19788lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19789lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19790archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19791enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19792export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19793whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19794compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19795old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19796old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19797archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19798archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19799module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19800module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19801with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19802allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19803no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19804hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19805hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19806hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19807hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19808hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19809hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19810hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19811inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19812link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19813always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19814export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19815exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19816include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19817prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19818postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19819file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19820hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19821compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19822predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19823postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19824predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19825postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19826compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19827
19828LTCC='$LTCC'
19829LTCFLAGS='$LTCFLAGS'
19830compiler='$compiler_DEFAULT'
19831
19832# A function that is used when there is no print builtin or printf.
19833func_fallback_echo ()
19834{
19835 eval 'cat <<_LTECHO_EOF
19836\$1
19837_LTECHO_EOF'
19838}
19839
19840# Quote evaled strings.
19841for var in SHELL \
19842ECHO \
19843PATH_SEPARATOR \
19844SED \
19845GREP \
19846EGREP \
19847FGREP \
19848LD \
19849NM \
19850LN_S \
19851lt_SP2NL \
19852lt_NL2SP \
19853reload_flag \
19854OBJDUMP \
19855deplibs_check_method \
19856file_magic_cmd \
19857file_magic_glob \
19858want_nocaseglob \
19859DLLTOOL \
19860sharedlib_from_linklib_cmd \
19861AR \
19862AR_FLAGS \
19863archiver_list_spec \
19864STRIP \
19865RANLIB \
19866CC \
19867CFLAGS \
19868compiler \
19869lt_cv_sys_global_symbol_pipe \
19870lt_cv_sys_global_symbol_to_cdecl \
19871lt_cv_sys_global_symbol_to_c_name_address \
19872lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19873nm_file_list_spec \
19874lt_prog_compiler_no_builtin_flag \
19875lt_prog_compiler_pic \
19876lt_prog_compiler_wl \
19877lt_prog_compiler_static \
19878lt_cv_prog_compiler_c_o \
19879need_locks \
19880MANIFEST_TOOL \
19881DSYMUTIL \
19882NMEDIT \
19883LIPO \
19884OTOOL \
19885OTOOL64 \
19886shrext_cmds \
19887export_dynamic_flag_spec \
19888whole_archive_flag_spec \
19889compiler_needs_object \
19890with_gnu_ld \
19891allow_undefined_flag \
19892no_undefined_flag \
19893hardcode_libdir_flag_spec \
19894hardcode_libdir_separator \
19895exclude_expsyms \
19896include_expsyms \
19897file_list_spec \
19898variables_saved_for_relink \
19899libname_spec \
19900library_names_spec \
19901soname_spec \
19902install_override_mode \
19903finish_eval \
19904old_striplib \
19905striplib \
19906compiler_lib_search_dirs \
19907predep_objects \
19908postdep_objects \
19909predeps \
19910postdeps \
19911compiler_lib_search_path \
19912LD_CXX \
19913reload_flag_CXX \
19914compiler_CXX \
19915lt_prog_compiler_no_builtin_flag_CXX \
19916lt_prog_compiler_pic_CXX \
19917lt_prog_compiler_wl_CXX \
19918lt_prog_compiler_static_CXX \
19919lt_cv_prog_compiler_c_o_CXX \
19920export_dynamic_flag_spec_CXX \
19921whole_archive_flag_spec_CXX \
19922compiler_needs_object_CXX \
19923with_gnu_ld_CXX \
19924allow_undefined_flag_CXX \
19925no_undefined_flag_CXX \
19926hardcode_libdir_flag_spec_CXX \
19927hardcode_libdir_separator_CXX \
19928exclude_expsyms_CXX \
19929include_expsyms_CXX \
19930file_list_spec_CXX \
19931compiler_lib_search_dirs_CXX \
19932predep_objects_CXX \
19933postdep_objects_CXX \
19934predeps_CXX \
19935postdeps_CXX \
19936compiler_lib_search_path_CXX; do
19937 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19938 *[\\\\\\\`\\"\\\$]*)
19939 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19940 ;;
19941 *)
19942 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19943 ;;
19944 esac
19945done
19946
19947# Double-quote double-evaled strings.
19948for var in reload_cmds \
19949old_postinstall_cmds \
19950old_postuninstall_cmds \
19951old_archive_cmds \
19952extract_expsyms_cmds \
19953old_archive_from_new_cmds \
19954old_archive_from_expsyms_cmds \
19955archive_cmds \
19956archive_expsym_cmds \
19957module_cmds \
19958module_expsym_cmds \
19959export_symbols_cmds \
19960prelink_cmds \
19961postlink_cmds \
19962postinstall_cmds \
19963postuninstall_cmds \
19964finish_cmds \
19965sys_lib_search_path_spec \
19966sys_lib_dlsearch_path_spec \
19967reload_cmds_CXX \
19968old_archive_cmds_CXX \
19969old_archive_from_new_cmds_CXX \
19970old_archive_from_expsyms_cmds_CXX \
19971archive_cmds_CXX \
19972archive_expsym_cmds_CXX \
19973module_cmds_CXX \
19974module_expsym_cmds_CXX \
19975export_symbols_cmds_CXX \
19976prelink_cmds_CXX \
19977postlink_cmds_CXX; do
19978 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19979 *[\\\\\\\`\\"\\\$]*)
19980 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19981 ;;
19982 *)
19983 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19984 ;;
19985 esac
19986done
19987
19988ac_aux_dir='$ac_aux_dir'
19989xsi_shell='$xsi_shell'
19990lt_shell_append='$lt_shell_append'
19991
19992# See if we are running on zsh, and set the options which allow our
19993# commands through without removal of \ escapes INIT.
19994if test -n "\${ZSH_VERSION+set}" ; then
19995 setopt NO_GLOB_SUBST
19996fi
19997
19998
19999 PACKAGE='$PACKAGE'
20000 VERSION='$VERSION'
20001 TIMESTAMP='$TIMESTAMP'
20002 RM='$RM'
20003 ofile='$ofile'
20004
20005
20006
20007
20008
20009
Jeff Thompson39128c62013-06-19 14:08:51 -070020010_ACEOF
20011
20012cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20013
20014# Handling of arguments.
20015for ac_config_target in $ac_config_targets
20016do
20017 case $ac_config_target in
Jeff Thompson6e229042013-10-10 11:09:49 -070020018 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20019 "include/ndn-cpp/ndn-cpp-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/ndn-cpp/ndn-cpp-config.h" ;;
Jeff Thompson39128c62013-06-19 14:08:51 -070020020 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Jeff Thompson4f031642013-08-05 11:03:16 -070020021 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Jeff Thompson39128c62013-06-19 14:08:51 -070020022 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Jeff Thompson6e229042013-10-10 11:09:49 -070020023 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
Jeff Thompson39128c62013-06-19 14:08:51 -070020024
20025 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20026 esac
20027done
20028
20029
20030# If the user did not use the arguments to specify the items to instantiate,
20031# then the envvar interface is used. Set only those that are not.
20032# We use the long form for the default assignment because of an extremely
20033# bizarre bug on SunOS 4.1.3.
20034if $ac_need_defaults; then
20035 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20036 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20037 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20038fi
20039
20040# Have a temporary directory for convenience. Make it in the build tree
20041# simply because there is no reason against having it here, and in addition,
20042# creating and moving files from /tmp can sometimes cause problems.
20043# Hook for its removal unless debugging.
20044# Note that there is a small window in which the directory will not be cleaned:
20045# after its creation but before its name has been assigned to `$tmp'.
20046$debug ||
20047{
20048 tmp= ac_tmp=
20049 trap 'exit_status=$?
20050 : "${ac_tmp:=$tmp}"
20051 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20052' 0
20053 trap 'as_fn_exit 1' 1 2 13 15
20054}
20055# Create a (secure) tmp directory for tmp files.
20056
20057{
20058 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20059 test -d "$tmp"
20060} ||
20061{
20062 tmp=./conf$$-$RANDOM
20063 (umask 077 && mkdir "$tmp")
20064} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20065ac_tmp=$tmp
20066
20067# Set up the scripts for CONFIG_FILES section.
20068# No need to generate them if there are no CONFIG_FILES.
20069# This happens for instance with `./config.status config.h'.
20070if test -n "$CONFIG_FILES"; then
20071
20072
20073ac_cr=`echo X | tr X '\015'`
20074# On cygwin, bash can eat \r inside `` if the user requested igncr.
20075# But we know of no other shell where ac_cr would be empty at this
20076# point, so we can use a bashism as a fallback.
20077if test "x$ac_cr" = x; then
20078 eval ac_cr=\$\'\\r\'
20079fi
20080ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20081if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20082 ac_cs_awk_cr='\\r'
20083else
20084 ac_cs_awk_cr=$ac_cr
20085fi
20086
20087echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20088_ACEOF
20089
20090
20091{
20092 echo "cat >conf$$subs.awk <<_ACEOF" &&
20093 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20094 echo "_ACEOF"
20095} >conf$$subs.sh ||
20096 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20097ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20098ac_delim='%!_!# '
20099for ac_last_try in false false false false false :; do
20100 . ./conf$$subs.sh ||
20101 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20102
20103 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20104 if test $ac_delim_n = $ac_delim_num; then
20105 break
20106 elif $ac_last_try; then
20107 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20108 else
20109 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20110 fi
20111done
20112rm -f conf$$subs.sh
20113
20114cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20115cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20116_ACEOF
20117sed -n '
20118h
20119s/^/S["/; s/!.*/"]=/
20120p
20121g
20122s/^[^!]*!//
20123:repl
20124t repl
20125s/'"$ac_delim"'$//
20126t delim
20127:nl
20128h
20129s/\(.\{148\}\)..*/\1/
20130t more1
20131s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20132p
20133n
20134b repl
20135:more1
20136s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20137p
20138g
20139s/.\{148\}//
20140t nl
20141:delim
20142h
20143s/\(.\{148\}\)..*/\1/
20144t more2
20145s/["\\]/\\&/g; s/^/"/; s/$/"/
20146p
20147b
20148:more2
20149s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20150p
20151g
20152s/.\{148\}//
20153t delim
20154' <conf$$subs.awk | sed '
20155/^[^""]/{
20156 N
20157 s/\n//
20158}
20159' >>$CONFIG_STATUS || ac_write_fail=1
20160rm -f conf$$subs.awk
20161cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20162_ACAWK
20163cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20164 for (key in S) S_is_set[key] = 1
20165 FS = ""
20166
20167}
20168{
20169 line = $ 0
20170 nfields = split(line, field, "@")
20171 substed = 0
20172 len = length(field[1])
20173 for (i = 2; i < nfields; i++) {
20174 key = field[i]
20175 keylen = length(key)
20176 if (S_is_set[key]) {
20177 value = S[key]
20178 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20179 len += length(value) + length(field[++i])
20180 substed = 1
20181 } else
20182 len += 1 + keylen
20183 }
20184
20185 print line
20186}
20187
20188_ACAWK
20189_ACEOF
20190cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20191if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20192 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20193else
20194 cat
20195fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20196 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20197_ACEOF
20198
20199# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20200# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20201# trailing colons and then remove the whole line if VPATH becomes empty
20202# (actually we leave an empty line to preserve line numbers).
20203if test "x$srcdir" = x.; then
20204 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20205h
20206s///
20207s/^/:/
20208s/[ ]*$/:/
20209s/:\$(srcdir):/:/g
20210s/:\${srcdir}:/:/g
20211s/:@srcdir@:/:/g
20212s/^:*//
20213s/:*$//
20214x
20215s/\(=[ ]*\).*/\1/
20216G
20217s/\n//
20218s/^[^=]*=[ ]*$//
20219}'
20220fi
20221
20222cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20223fi # test -n "$CONFIG_FILES"
20224
20225# Set up the scripts for CONFIG_HEADERS section.
20226# No need to generate them if there are no CONFIG_HEADERS.
20227# This happens for instance with `./config.status Makefile'.
20228if test -n "$CONFIG_HEADERS"; then
20229cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20230BEGIN {
20231_ACEOF
20232
20233# Transform confdefs.h into an awk script `defines.awk', embedded as
20234# here-document in config.status, that substitutes the proper values into
20235# config.h.in to produce config.h.
20236
20237# Create a delimiter string that does not exist in confdefs.h, to ease
20238# handling of long lines.
20239ac_delim='%!_!# '
20240for ac_last_try in false false :; do
20241 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20242 if test -z "$ac_tt"; then
20243 break
20244 elif $ac_last_try; then
20245 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20246 else
20247 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20248 fi
20249done
20250
20251# For the awk script, D is an array of macro values keyed by name,
20252# likewise P contains macro parameters if any. Preserve backslash
20253# newline sequences.
20254
20255ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20256sed -n '
20257s/.\{148\}/&'"$ac_delim"'/g
20258t rset
20259:rset
20260s/^[ ]*#[ ]*define[ ][ ]*/ /
20261t def
20262d
20263:def
20264s/\\$//
20265t bsnl
20266s/["\\]/\\&/g
20267s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20268D["\1"]=" \3"/p
20269s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20270d
20271:bsnl
20272s/["\\]/\\&/g
20273s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20274D["\1"]=" \3\\\\\\n"\\/p
20275t cont
20276s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20277t cont
20278d
20279:cont
20280n
20281s/.\{148\}/&'"$ac_delim"'/g
20282t clear
20283:clear
20284s/\\$//
20285t bsnlc
20286s/["\\]/\\&/g; s/^/"/; s/$/"/p
20287d
20288:bsnlc
20289s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20290b cont
20291' <confdefs.h | sed '
20292s/'"$ac_delim"'/"\\\
20293"/g' >>$CONFIG_STATUS || ac_write_fail=1
20294
20295cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20296 for (key in D) D_is_set[key] = 1
20297 FS = ""
20298}
20299/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20300 line = \$ 0
20301 split(line, arg, " ")
20302 if (arg[1] == "#") {
20303 defundef = arg[2]
20304 mac1 = arg[3]
20305 } else {
20306 defundef = substr(arg[1], 2)
20307 mac1 = arg[2]
20308 }
20309 split(mac1, mac2, "(") #)
20310 macro = mac2[1]
20311 prefix = substr(line, 1, index(line, defundef) - 1)
20312 if (D_is_set[macro]) {
20313 # Preserve the white space surrounding the "#".
20314 print prefix "define", macro P[macro] D[macro]
20315 next
20316 } else {
20317 # Replace #undef with comments. This is necessary, for example,
20318 # in the case of _POSIX_SOURCE, which is predefined and required
20319 # on some systems where configure will not decide to define it.
20320 if (defundef == "undef") {
20321 print "/*", prefix defundef, macro, "*/"
20322 next
20323 }
20324 }
20325}
20326{ print }
20327_ACAWK
20328_ACEOF
20329cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20330 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20331fi # test -n "$CONFIG_HEADERS"
20332
20333
20334eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20335shift
20336for ac_tag
20337do
20338 case $ac_tag in
20339 :[FHLC]) ac_mode=$ac_tag; continue;;
20340 esac
20341 case $ac_mode$ac_tag in
20342 :[FHL]*:*);;
20343 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20344 :[FH]-) ac_tag=-:-;;
20345 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20346 esac
20347 ac_save_IFS=$IFS
20348 IFS=:
20349 set x $ac_tag
20350 IFS=$ac_save_IFS
20351 shift
20352 ac_file=$1
20353 shift
20354
20355 case $ac_mode in
20356 :L) ac_source=$1;;
20357 :[FH])
20358 ac_file_inputs=
20359 for ac_f
20360 do
20361 case $ac_f in
20362 -) ac_f="$ac_tmp/stdin";;
20363 *) # Look for the file first in the build tree, then in the source tree
20364 # (if the path is not absolute). The absolute path cannot be DOS-style,
20365 # because $ac_f cannot contain `:'.
20366 test -f "$ac_f" ||
20367 case $ac_f in
20368 [\\/$]*) false;;
20369 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20370 esac ||
20371 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20372 esac
20373 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20374 as_fn_append ac_file_inputs " '$ac_f'"
20375 done
20376
20377 # Let's still pretend it is `configure' which instantiates (i.e., don't
20378 # use $as_me), people would be surprised to read:
20379 # /* config.h. Generated by config.status. */
20380 configure_input='Generated from '`
20381 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20382 `' by configure.'
20383 if test x"$ac_file" != x-; then
20384 configure_input="$ac_file. $configure_input"
20385 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20386$as_echo "$as_me: creating $ac_file" >&6;}
20387 fi
20388 # Neutralize special characters interpreted by sed in replacement strings.
20389 case $configure_input in #(
20390 *\&* | *\|* | *\\* )
20391 ac_sed_conf_input=`$as_echo "$configure_input" |
20392 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20393 *) ac_sed_conf_input=$configure_input;;
20394 esac
20395
20396 case $ac_tag in
20397 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20398 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20399 esac
20400 ;;
20401 esac
20402
20403 ac_dir=`$as_dirname -- "$ac_file" ||
20404$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20405 X"$ac_file" : 'X\(//\)[^/]' \| \
20406 X"$ac_file" : 'X\(//\)$' \| \
20407 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20408$as_echo X"$ac_file" |
20409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20410 s//\1/
20411 q
20412 }
20413 /^X\(\/\/\)[^/].*/{
20414 s//\1/
20415 q
20416 }
20417 /^X\(\/\/\)$/{
20418 s//\1/
20419 q
20420 }
20421 /^X\(\/\).*/{
20422 s//\1/
20423 q
20424 }
20425 s/.*/./; q'`
20426 as_dir="$ac_dir"; as_fn_mkdir_p
20427 ac_builddir=.
20428
20429case "$ac_dir" in
20430.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20431*)
20432 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20433 # A ".." for each directory in $ac_dir_suffix.
20434 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20435 case $ac_top_builddir_sub in
20436 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20437 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20438 esac ;;
20439esac
20440ac_abs_top_builddir=$ac_pwd
20441ac_abs_builddir=$ac_pwd$ac_dir_suffix
20442# for backward compatibility:
20443ac_top_builddir=$ac_top_build_prefix
20444
20445case $srcdir in
20446 .) # We are building in place.
20447 ac_srcdir=.
20448 ac_top_srcdir=$ac_top_builddir_sub
20449 ac_abs_top_srcdir=$ac_pwd ;;
20450 [\\/]* | ?:[\\/]* ) # Absolute name.
20451 ac_srcdir=$srcdir$ac_dir_suffix;
20452 ac_top_srcdir=$srcdir
20453 ac_abs_top_srcdir=$srcdir ;;
20454 *) # Relative name.
20455 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20456 ac_top_srcdir=$ac_top_build_prefix$srcdir
20457 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20458esac
20459ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20460
20461
20462 case $ac_mode in
20463 :F)
20464 #
20465 # CONFIG_FILE
20466 #
20467
20468 case $INSTALL in
20469 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20470 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20471 esac
20472 ac_MKDIR_P=$MKDIR_P
20473 case $MKDIR_P in
20474 [\\/$]* | ?:[\\/]* ) ;;
20475 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20476 esac
20477_ACEOF
20478
20479cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20480# If the template does not know about datarootdir, expand it.
20481# FIXME: This hack should be removed a few years after 2.60.
20482ac_datarootdir_hack=; ac_datarootdir_seen=
20483ac_sed_dataroot='
20484/datarootdir/ {
20485 p
20486 q
20487}
20488/@datadir@/p
20489/@docdir@/p
20490/@infodir@/p
20491/@localedir@/p
20492/@mandir@/p'
20493case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20494*datarootdir*) ac_datarootdir_seen=yes;;
20495*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20497$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20498_ACEOF
20499cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20500 ac_datarootdir_hack='
20501 s&@datadir@&$datadir&g
20502 s&@docdir@&$docdir&g
20503 s&@infodir@&$infodir&g
20504 s&@localedir@&$localedir&g
20505 s&@mandir@&$mandir&g
20506 s&\\\${datarootdir}&$datarootdir&g' ;;
20507esac
20508_ACEOF
20509
20510# Neutralize VPATH when `$srcdir' = `.'.
20511# Shell code in configure.ac might set extrasub.
20512# FIXME: do we really want to maintain this feature?
20513cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20514ac_sed_extra="$ac_vpsub
20515$extrasub
20516_ACEOF
20517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20518:t
20519/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20520s|@configure_input@|$ac_sed_conf_input|;t t
20521s&@top_builddir@&$ac_top_builddir_sub&;t t
20522s&@top_build_prefix@&$ac_top_build_prefix&;t t
20523s&@srcdir@&$ac_srcdir&;t t
20524s&@abs_srcdir@&$ac_abs_srcdir&;t t
20525s&@top_srcdir@&$ac_top_srcdir&;t t
20526s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20527s&@builddir@&$ac_builddir&;t t
20528s&@abs_builddir@&$ac_abs_builddir&;t t
20529s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20530s&@INSTALL@&$ac_INSTALL&;t t
20531s&@MKDIR_P@&$ac_MKDIR_P&;t t
20532$ac_datarootdir_hack
20533"
20534eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20535 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20536
20537test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20538 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20539 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20540 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20542which seems to be undefined. Please make sure it is defined" >&5
20543$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20544which seems to be undefined. Please make sure it is defined" >&2;}
20545
20546 rm -f "$ac_tmp/stdin"
20547 case $ac_file in
20548 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20549 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20550 esac \
20551 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20552 ;;
20553 :H)
20554 #
20555 # CONFIG_HEADER
20556 #
20557 if test x"$ac_file" != x-; then
20558 {
20559 $as_echo "/* $configure_input */" \
20560 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20561 } >"$ac_tmp/config.h" \
20562 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20563 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20565$as_echo "$as_me: $ac_file is unchanged" >&6;}
20566 else
20567 rm -f "$ac_file"
20568 mv "$ac_tmp/config.h" "$ac_file" \
20569 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20570 fi
20571 else
20572 $as_echo "/* $configure_input */" \
20573 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20574 || as_fn_error $? "could not create -" "$LINENO" 5
20575 fi
20576# Compute "$ac_file"'s index in $config_headers.
20577_am_arg="$ac_file"
20578_am_stamp_count=1
20579for _am_header in $config_headers :; do
20580 case $_am_header in
20581 $_am_arg | $_am_arg:* )
20582 break ;;
20583 * )
20584 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20585 esac
20586done
20587echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20588$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20589 X"$_am_arg" : 'X\(//\)[^/]' \| \
20590 X"$_am_arg" : 'X\(//\)$' \| \
20591 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20592$as_echo X"$_am_arg" |
20593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20594 s//\1/
20595 q
20596 }
20597 /^X\(\/\/\)[^/].*/{
20598 s//\1/
20599 q
20600 }
20601 /^X\(\/\/\)$/{
20602 s//\1/
20603 q
20604 }
20605 /^X\(\/\).*/{
20606 s//\1/
20607 q
20608 }
20609 s/.*/./; q'`/stamp-h$_am_stamp_count
20610 ;;
20611
20612 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20613$as_echo "$as_me: executing $ac_file commands" >&6;}
20614 ;;
20615 esac
20616
20617
20618 case $ac_file$ac_mode in
Jeff Thompson6e229042013-10-10 11:09:49 -070020619 "include/ndn-cpp/ndn-cpp-config.h":C) ac_prefix_conf_OUT=`echo include/ndn-cpp/ndn-cpp-config.h`
Jeff Thompsonb7523002013-10-09 10:25:00 -070020620ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
20621ac_prefix_conf_PKG=`echo $PACKAGE`
20622ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
20623ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
20624ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
20625if test ".$ac_prefix_conf_INP" = "."; then
20626 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
20627 case "$ac_file" in
20628 *.h) ac_prefix_conf_INP=$ac_file ;;
20629 *)
20630 esac
20631 test ".$ac_prefix_conf_INP" != "." && break
20632 done
20633fi
20634if test ".$ac_prefix_conf_INP" = "."; then
20635 case "$ac_prefix_conf_OUT" in
20636 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
20637 ;;
20638 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
20639 ;;
20640 *) ac_prefix_conf_INP=config.h
20641 ;;
20642 esac
20643fi
20644if test -z "$ac_prefix_conf_PKG" ; then
20645 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
20646else
20647 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
20648 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
20649 fi fi
20650 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
20651$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
20652 if test -f $ac_prefix_conf_INP ; then
20653 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
20654 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
20655 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
20656 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
20657 $as_echo "#endif/" >> conftest.prefix
20658 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
20659 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
20660 $as_echo "#endif/" >> conftest.prefix
20661 # now executing _script on _DEF input to create _OUT output file
20662 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
20663 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
20664 echo ' ' >>$tmp/pconfig.h
20665 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
20666
20667 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
20668 echo ' ' >>$tmp/pconfig.h
20669 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
20670 echo "#endif" >>$tmp/pconfig.h
20671 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
20672 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
20673$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
20674 else
20675 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
20676$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20677 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
20678 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
20679 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
20680$as_echo X"$ac_prefix_conf_OUT" |
20681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20682 s//\1/
20683 q
20684 }
20685 /^X\(\/\/\)[^/].*/{
20686 s//\1/
20687 q
20688 }
20689 /^X\(\/\/\)$/{
20690 s//\1/
20691 q
20692 }
20693 /^X\(\/\).*/{
20694 s//\1/
20695 q
20696 }
20697 s/.*/./; q'`
20698 as_dir="$ac_dir"; as_fn_mkdir_p
20699 rm -f "$ac_prefix_conf_OUT"
20700 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
20701 fi
20702 cp conftest.prefix _configs.sed
20703 else
20704 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
20705 fi
20706 rm -f conftest.*
20707fi
20708 ;;
Jeff Thompson39128c62013-06-19 14:08:51 -070020709 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20710 # Older Autoconf quotes --file arguments for eval, but not when files
20711 # are listed without --file. Let's play safe and only enable the eval
20712 # if we detect the quoting.
20713 case $CONFIG_FILES in
20714 *\'*) eval set x "$CONFIG_FILES" ;;
20715 *) set x $CONFIG_FILES ;;
20716 esac
20717 shift
20718 for mf
20719 do
20720 # Strip MF so we end up with the name of the file.
20721 mf=`echo "$mf" | sed -e 's/:.*$//'`
20722 # Check whether this is an Automake generated Makefile or not.
20723 # We used to match only the files named 'Makefile.in', but
20724 # some people rename them; so instead we look at the file content.
20725 # Grep'ing the first line is not enough: some people post-process
20726 # each Makefile.in and add a new line on top of each file to say so.
20727 # Grep'ing the whole file is not good either: AIX grep has a line
20728 # limit of 2048, but all sed's we know have understand at least 4000.
20729 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20730 dirpart=`$as_dirname -- "$mf" ||
20731$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20732 X"$mf" : 'X\(//\)[^/]' \| \
20733 X"$mf" : 'X\(//\)$' \| \
20734 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20735$as_echo X"$mf" |
20736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20737 s//\1/
20738 q
20739 }
20740 /^X\(\/\/\)[^/].*/{
20741 s//\1/
20742 q
20743 }
20744 /^X\(\/\/\)$/{
20745 s//\1/
20746 q
20747 }
20748 /^X\(\/\).*/{
20749 s//\1/
20750 q
20751 }
20752 s/.*/./; q'`
20753 else
20754 continue
20755 fi
20756 # Extract the definition of DEPDIR, am__include, and am__quote
20757 # from the Makefile without running 'make'.
20758 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20759 test -z "$DEPDIR" && continue
20760 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20761 test -z "$am__include" && continue
20762 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20763 # Find all dependency output files, they are included files with
20764 # $(DEPDIR) in their names. We invoke sed twice because it is the
20765 # simplest approach to changing $(DEPDIR) to its actual value in the
20766 # expansion.
20767 for file in `sed -n "
20768 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20769 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20770 # Make sure the directory exists.
20771 test -f "$dirpart/$file" && continue
20772 fdir=`$as_dirname -- "$file" ||
20773$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20774 X"$file" : 'X\(//\)[^/]' \| \
20775 X"$file" : 'X\(//\)$' \| \
20776 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20777$as_echo X"$file" |
20778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20779 s//\1/
20780 q
20781 }
20782 /^X\(\/\/\)[^/].*/{
20783 s//\1/
20784 q
20785 }
20786 /^X\(\/\/\)$/{
20787 s//\1/
20788 q
20789 }
20790 /^X\(\/\).*/{
20791 s//\1/
20792 q
20793 }
20794 s/.*/./; q'`
20795 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20796 # echo "creating $dirpart/$file"
20797 echo '# dummy' > "$dirpart/$file"
20798 done
20799 done
20800}
20801 ;;
Jeff Thompson4f031642013-08-05 11:03:16 -070020802 "libtool":C)
20803
20804 # See if we are running on zsh, and set the options which allow our
20805 # commands through without removal of \ escapes.
20806 if test -n "${ZSH_VERSION+set}" ; then
20807 setopt NO_GLOB_SUBST
20808 fi
20809
20810 cfgfile="${ofile}T"
20811 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20812 $RM "$cfgfile"
20813
20814 cat <<_LT_EOF >> "$cfgfile"
20815#! $SHELL
20816
20817# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20818# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20819# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20820# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20821#
20822# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20823# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20824# Foundation, Inc.
20825# Written by Gordon Matzigkeit, 1996
20826#
20827# This file is part of GNU Libtool.
20828#
20829# GNU Libtool is free software; you can redistribute it and/or
20830# modify it under the terms of the GNU General Public License as
20831# published by the Free Software Foundation; either version 2 of
20832# the License, or (at your option) any later version.
20833#
20834# As a special exception to the GNU General Public License,
20835# if you distribute this file as part of a program or library that
20836# is built using GNU Libtool, you may include this file under the
20837# same distribution terms that you use for the rest of that program.
20838#
20839# GNU Libtool is distributed in the hope that it will be useful,
20840# but WITHOUT ANY WARRANTY; without even the implied warranty of
20841# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20842# GNU General Public License for more details.
20843#
20844# You should have received a copy of the GNU General Public License
20845# along with GNU Libtool; see the file COPYING. If not, a copy
20846# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20847# obtained by writing to the Free Software Foundation, Inc.,
20848# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20849
20850
20851# The names of the tagged configurations supported by this script.
20852available_tags="CXX "
20853
20854# ### BEGIN LIBTOOL CONFIG
20855
20856# Which release of libtool.m4 was used?
20857macro_version=$macro_version
20858macro_revision=$macro_revision
20859
20860# Whether or not to build shared libraries.
20861build_libtool_libs=$enable_shared
20862
20863# Whether or not to build static libraries.
20864build_old_libs=$enable_static
20865
20866# What type of objects to build.
20867pic_mode=$pic_mode
20868
20869# Whether or not to optimize for fast installation.
20870fast_install=$enable_fast_install
20871
20872# Shell to use when invoking shell scripts.
20873SHELL=$lt_SHELL
20874
20875# An echo program that protects backslashes.
20876ECHO=$lt_ECHO
20877
20878# The PATH separator for the build system.
20879PATH_SEPARATOR=$lt_PATH_SEPARATOR
20880
20881# The host system.
20882host_alias=$host_alias
20883host=$host
20884host_os=$host_os
20885
20886# The build system.
20887build_alias=$build_alias
20888build=$build
20889build_os=$build_os
20890
20891# A sed program that does not truncate output.
20892SED=$lt_SED
20893
20894# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20895Xsed="\$SED -e 1s/^X//"
20896
20897# A grep program that handles long lines.
20898GREP=$lt_GREP
20899
20900# An ERE matcher.
20901EGREP=$lt_EGREP
20902
20903# A literal string matcher.
20904FGREP=$lt_FGREP
20905
20906# A BSD- or MS-compatible name lister.
20907NM=$lt_NM
20908
20909# Whether we need soft or hard links.
20910LN_S=$lt_LN_S
20911
20912# What is the maximum length of a command?
20913max_cmd_len=$max_cmd_len
20914
20915# Object file suffix (normally "o").
20916objext=$ac_objext
20917
20918# Executable file suffix (normally "").
20919exeext=$exeext
20920
20921# whether the shell understands "unset".
20922lt_unset=$lt_unset
20923
20924# turn spaces into newlines.
20925SP2NL=$lt_lt_SP2NL
20926
20927# turn newlines into spaces.
20928NL2SP=$lt_lt_NL2SP
20929
20930# convert \$build file names to \$host format.
20931to_host_file_cmd=$lt_cv_to_host_file_cmd
20932
20933# convert \$build files to toolchain format.
20934to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20935
20936# An object symbol dumper.
20937OBJDUMP=$lt_OBJDUMP
20938
20939# Method to check whether dependent libraries are shared objects.
20940deplibs_check_method=$lt_deplibs_check_method
20941
20942# Command to use when deplibs_check_method = "file_magic".
20943file_magic_cmd=$lt_file_magic_cmd
20944
20945# How to find potential files when deplibs_check_method = "file_magic".
20946file_magic_glob=$lt_file_magic_glob
20947
20948# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20949want_nocaseglob=$lt_want_nocaseglob
20950
20951# DLL creation program.
20952DLLTOOL=$lt_DLLTOOL
20953
20954# Command to associate shared and link libraries.
20955sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20956
20957# The archiver.
20958AR=$lt_AR
20959
20960# Flags to create an archive.
20961AR_FLAGS=$lt_AR_FLAGS
20962
20963# How to feed a file listing to the archiver.
20964archiver_list_spec=$lt_archiver_list_spec
20965
20966# A symbol stripping program.
20967STRIP=$lt_STRIP
20968
20969# Commands used to install an old-style archive.
20970RANLIB=$lt_RANLIB
20971old_postinstall_cmds=$lt_old_postinstall_cmds
20972old_postuninstall_cmds=$lt_old_postuninstall_cmds
20973
20974# Whether to use a lock for old archive extraction.
20975lock_old_archive_extraction=$lock_old_archive_extraction
20976
20977# A C compiler.
20978LTCC=$lt_CC
20979
20980# LTCC compiler flags.
20981LTCFLAGS=$lt_CFLAGS
20982
20983# Take the output of nm and produce a listing of raw symbols and C names.
20984global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20985
20986# Transform the output of nm in a proper C declaration.
20987global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20988
20989# Transform the output of nm in a C name address pair.
20990global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20991
20992# Transform the output of nm in a C name address pair when lib prefix is needed.
20993global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20994
20995# Specify filename containing input files for \$NM.
20996nm_file_list_spec=$lt_nm_file_list_spec
20997
20998# The root where to search for dependent libraries,and in which our libraries should be installed.
20999lt_sysroot=$lt_sysroot
21000
21001# The name of the directory that contains temporary libtool files.
21002objdir=$objdir
21003
21004# Used to examine libraries when file_magic_cmd begins with "file".
21005MAGIC_CMD=$MAGIC_CMD
21006
21007# Must we lock files when doing compilation?
21008need_locks=$lt_need_locks
21009
21010# Manifest tool.
21011MANIFEST_TOOL=$lt_MANIFEST_TOOL
21012
21013# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21014DSYMUTIL=$lt_DSYMUTIL
21015
21016# Tool to change global to local symbols on Mac OS X.
21017NMEDIT=$lt_NMEDIT
21018
21019# Tool to manipulate fat objects and archives on Mac OS X.
21020LIPO=$lt_LIPO
21021
21022# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21023OTOOL=$lt_OTOOL
21024
21025# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21026OTOOL64=$lt_OTOOL64
21027
21028# Old archive suffix (normally "a").
21029libext=$libext
21030
21031# Shared library suffix (normally ".so").
21032shrext_cmds=$lt_shrext_cmds
21033
21034# The commands to extract the exported symbol list from a shared archive.
21035extract_expsyms_cmds=$lt_extract_expsyms_cmds
21036
21037# Variables whose values should be saved in libtool wrapper scripts and
21038# restored at link time.
21039variables_saved_for_relink=$lt_variables_saved_for_relink
21040
21041# Do we need the "lib" prefix for modules?
21042need_lib_prefix=$need_lib_prefix
21043
21044# Do we need a version for libraries?
21045need_version=$need_version
21046
21047# Library versioning type.
21048version_type=$version_type
21049
21050# Shared library runtime path variable.
21051runpath_var=$runpath_var
21052
21053# Shared library path variable.
21054shlibpath_var=$shlibpath_var
21055
21056# Is shlibpath searched before the hard-coded library search path?
21057shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21058
21059# Format of library name prefix.
21060libname_spec=$lt_libname_spec
21061
21062# List of archive names. First name is the real one, the rest are links.
21063# The last name is the one that the linker finds with -lNAME
21064library_names_spec=$lt_library_names_spec
21065
21066# The coded name of the library, if different from the real name.
21067soname_spec=$lt_soname_spec
21068
21069# Permission mode override for installation of shared libraries.
21070install_override_mode=$lt_install_override_mode
21071
21072# Command to use after installation of a shared archive.
21073postinstall_cmds=$lt_postinstall_cmds
21074
21075# Command to use after uninstallation of a shared archive.
21076postuninstall_cmds=$lt_postuninstall_cmds
21077
21078# Commands used to finish a libtool library installation in a directory.
21079finish_cmds=$lt_finish_cmds
21080
21081# As "finish_cmds", except a single script fragment to be evaled but
21082# not shown.
21083finish_eval=$lt_finish_eval
21084
21085# Whether we should hardcode library paths into libraries.
21086hardcode_into_libs=$hardcode_into_libs
21087
21088# Compile-time system search path for libraries.
21089sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21090
21091# Run-time system search path for libraries.
21092sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21093
21094# Whether dlopen is supported.
21095dlopen_support=$enable_dlopen
21096
21097# Whether dlopen of programs is supported.
21098dlopen_self=$enable_dlopen_self
21099
21100# Whether dlopen of statically linked programs is supported.
21101dlopen_self_static=$enable_dlopen_self_static
21102
21103# Commands to strip libraries.
21104old_striplib=$lt_old_striplib
21105striplib=$lt_striplib
21106
21107
21108# The linker used to build libraries.
21109LD=$lt_LD
21110
21111# How to create reloadable object files.
21112reload_flag=$lt_reload_flag
21113reload_cmds=$lt_reload_cmds
21114
21115# Commands used to build an old-style archive.
21116old_archive_cmds=$lt_old_archive_cmds
21117
21118# A language specific compiler.
21119CC=$lt_compiler
21120
21121# Is the compiler the GNU compiler?
21122with_gcc=$GCC
21123
21124# Compiler flag to turn off builtin functions.
21125no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21126
21127# Additional compiler flags for building library objects.
21128pic_flag=$lt_lt_prog_compiler_pic
21129
21130# How to pass a linker flag through the compiler.
21131wl=$lt_lt_prog_compiler_wl
21132
21133# Compiler flag to prevent dynamic linking.
21134link_static_flag=$lt_lt_prog_compiler_static
21135
21136# Does compiler simultaneously support -c and -o options?
21137compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21138
21139# Whether or not to add -lc for building shared libraries.
21140build_libtool_need_lc=$archive_cmds_need_lc
21141
21142# Whether or not to disallow shared libs when runtime libs are static.
21143allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21144
21145# Compiler flag to allow reflexive dlopens.
21146export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21147
21148# Compiler flag to generate shared objects directly from archives.
21149whole_archive_flag_spec=$lt_whole_archive_flag_spec
21150
21151# Whether the compiler copes with passing no objects directly.
21152compiler_needs_object=$lt_compiler_needs_object
21153
21154# Create an old-style archive from a shared archive.
21155old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21156
21157# Create a temporary old-style archive to link instead of a shared archive.
21158old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21159
21160# Commands used to build a shared archive.
21161archive_cmds=$lt_archive_cmds
21162archive_expsym_cmds=$lt_archive_expsym_cmds
21163
21164# Commands used to build a loadable module if different from building
21165# a shared archive.
21166module_cmds=$lt_module_cmds
21167module_expsym_cmds=$lt_module_expsym_cmds
21168
21169# Whether we are building with GNU ld or not.
21170with_gnu_ld=$lt_with_gnu_ld
21171
21172# Flag that allows shared libraries with undefined symbols to be built.
21173allow_undefined_flag=$lt_allow_undefined_flag
21174
21175# Flag that enforces no undefined symbols.
21176no_undefined_flag=$lt_no_undefined_flag
21177
21178# Flag to hardcode \$libdir into a binary during linking.
21179# This must work even if \$libdir does not exist
21180hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21181
21182# Whether we need a single "-rpath" flag with a separated argument.
21183hardcode_libdir_separator=$lt_hardcode_libdir_separator
21184
21185# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21186# DIR into the resulting binary.
21187hardcode_direct=$hardcode_direct
21188
21189# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21190# DIR into the resulting binary and the resulting library dependency is
21191# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21192# library is relocated.
21193hardcode_direct_absolute=$hardcode_direct_absolute
21194
21195# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21196# into the resulting binary.
21197hardcode_minus_L=$hardcode_minus_L
21198
21199# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21200# into the resulting binary.
21201hardcode_shlibpath_var=$hardcode_shlibpath_var
21202
21203# Set to "yes" if building a shared library automatically hardcodes DIR
21204# into the library and all subsequent libraries and executables linked
21205# against it.
21206hardcode_automatic=$hardcode_automatic
21207
21208# Set to yes if linker adds runtime paths of dependent libraries
21209# to runtime path list.
21210inherit_rpath=$inherit_rpath
21211
21212# Whether libtool must link a program against all its dependency libraries.
21213link_all_deplibs=$link_all_deplibs
21214
21215# Set to "yes" if exported symbols are required.
21216always_export_symbols=$always_export_symbols
21217
21218# The commands to list exported symbols.
21219export_symbols_cmds=$lt_export_symbols_cmds
21220
21221# Symbols that should not be listed in the preloaded symbols.
21222exclude_expsyms=$lt_exclude_expsyms
21223
21224# Symbols that must always be exported.
21225include_expsyms=$lt_include_expsyms
21226
21227# Commands necessary for linking programs (against libraries) with templates.
21228prelink_cmds=$lt_prelink_cmds
21229
21230# Commands necessary for finishing linking programs.
21231postlink_cmds=$lt_postlink_cmds
21232
21233# Specify filename containing input files.
21234file_list_spec=$lt_file_list_spec
21235
21236# How to hardcode a shared library path into an executable.
21237hardcode_action=$hardcode_action
21238
21239# The directories searched by this compiler when creating a shared library.
21240compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21241
21242# Dependencies to place before and after the objects being linked to
21243# create a shared library.
21244predep_objects=$lt_predep_objects
21245postdep_objects=$lt_postdep_objects
21246predeps=$lt_predeps
21247postdeps=$lt_postdeps
21248
21249# The library search path used internally by the compiler when linking
21250# a shared library.
21251compiler_lib_search_path=$lt_compiler_lib_search_path
21252
21253# ### END LIBTOOL CONFIG
21254
21255_LT_EOF
21256
21257 case $host_os in
21258 aix3*)
21259 cat <<\_LT_EOF >> "$cfgfile"
21260# AIX sometimes has problems with the GCC collect2 program. For some
21261# reason, if we set the COLLECT_NAMES environment variable, the problems
21262# vanish in a puff of smoke.
21263if test "X${COLLECT_NAMES+set}" != Xset; then
21264 COLLECT_NAMES=
21265 export COLLECT_NAMES
21266fi
21267_LT_EOF
21268 ;;
21269 esac
21270
21271
21272ltmain="$ac_aux_dir/ltmain.sh"
21273
21274
21275 # We use sed instead of cat because bash on DJGPP gets confused if
21276 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21277 # text mode, it properly converts lines to CR/LF. This bash problem
21278 # is reportedly fixed, but why not run on old versions too?
21279 sed '$q' "$ltmain" >> "$cfgfile" \
21280 || (rm -f "$cfgfile"; exit 1)
21281
21282 if test x"$xsi_shell" = xyes; then
21283 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21284func_dirname ()\
21285{\
21286\ case ${1} in\
21287\ */*) func_dirname_result="${1%/*}${2}" ;;\
21288\ * ) func_dirname_result="${3}" ;;\
21289\ esac\
21290} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21291 && mv -f "$cfgfile.tmp" "$cfgfile" \
21292 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21293test 0 -eq $? || _lt_function_replace_fail=:
21294
21295
21296 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21297func_basename ()\
21298{\
21299\ func_basename_result="${1##*/}"\
21300} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21301 && mv -f "$cfgfile.tmp" "$cfgfile" \
21302 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21303test 0 -eq $? || _lt_function_replace_fail=:
21304
21305
21306 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21307func_dirname_and_basename ()\
21308{\
21309\ case ${1} in\
21310\ */*) func_dirname_result="${1%/*}${2}" ;;\
21311\ * ) func_dirname_result="${3}" ;;\
21312\ esac\
21313\ func_basename_result="${1##*/}"\
21314} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21315 && mv -f "$cfgfile.tmp" "$cfgfile" \
21316 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21317test 0 -eq $? || _lt_function_replace_fail=:
21318
21319
21320 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21321func_stripname ()\
21322{\
21323\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21324\ # positional parameters, so assign one to ordinary parameter first.\
21325\ func_stripname_result=${3}\
21326\ func_stripname_result=${func_stripname_result#"${1}"}\
21327\ func_stripname_result=${func_stripname_result%"${2}"}\
21328} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21329 && mv -f "$cfgfile.tmp" "$cfgfile" \
21330 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21331test 0 -eq $? || _lt_function_replace_fail=:
21332
21333
21334 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21335func_split_long_opt ()\
21336{\
21337\ func_split_long_opt_name=${1%%=*}\
21338\ func_split_long_opt_arg=${1#*=}\
21339} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21340 && mv -f "$cfgfile.tmp" "$cfgfile" \
21341 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21342test 0 -eq $? || _lt_function_replace_fail=:
21343
21344
21345 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21346func_split_short_opt ()\
21347{\
21348\ func_split_short_opt_arg=${1#??}\
21349\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21350} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21351 && mv -f "$cfgfile.tmp" "$cfgfile" \
21352 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21353test 0 -eq $? || _lt_function_replace_fail=:
21354
21355
21356 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21357func_lo2o ()\
21358{\
21359\ case ${1} in\
21360\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21361\ *) func_lo2o_result=${1} ;;\
21362\ esac\
21363} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21364 && mv -f "$cfgfile.tmp" "$cfgfile" \
21365 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21366test 0 -eq $? || _lt_function_replace_fail=:
21367
21368
21369 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21370func_xform ()\
21371{\
21372 func_xform_result=${1%.*}.lo\
21373} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21374 && mv -f "$cfgfile.tmp" "$cfgfile" \
21375 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21376test 0 -eq $? || _lt_function_replace_fail=:
21377
21378
21379 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21380func_arith ()\
21381{\
21382 func_arith_result=$(( $* ))\
21383} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21384 && mv -f "$cfgfile.tmp" "$cfgfile" \
21385 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21386test 0 -eq $? || _lt_function_replace_fail=:
21387
21388
21389 sed -e '/^func_len ()$/,/^} # func_len /c\
21390func_len ()\
21391{\
21392 func_len_result=${#1}\
21393} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21394 && mv -f "$cfgfile.tmp" "$cfgfile" \
21395 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21396test 0 -eq $? || _lt_function_replace_fail=:
21397
21398fi
21399
21400if test x"$lt_shell_append" = xyes; then
21401 sed -e '/^func_append ()$/,/^} # func_append /c\
21402func_append ()\
21403{\
21404 eval "${1}+=\\${2}"\
21405} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21406 && mv -f "$cfgfile.tmp" "$cfgfile" \
21407 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21408test 0 -eq $? || _lt_function_replace_fail=:
21409
21410
21411 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21412func_append_quoted ()\
21413{\
21414\ func_quote_for_eval "${2}"\
21415\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21416} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21417 && mv -f "$cfgfile.tmp" "$cfgfile" \
21418 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21419test 0 -eq $? || _lt_function_replace_fail=:
21420
21421
21422 # Save a `func_append' function call where possible by direct use of '+='
21423 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21424 && mv -f "$cfgfile.tmp" "$cfgfile" \
21425 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21426 test 0 -eq $? || _lt_function_replace_fail=:
21427else
21428 # Save a `func_append' function call even when '+=' is not available
21429 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21430 && mv -f "$cfgfile.tmp" "$cfgfile" \
21431 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21432 test 0 -eq $? || _lt_function_replace_fail=:
21433fi
21434
21435if test x"$_lt_function_replace_fail" = x":"; then
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21437$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21438fi
21439
21440
21441 mv -f "$cfgfile" "$ofile" ||
21442 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21443 chmod +x "$ofile"
21444
21445
21446 cat <<_LT_EOF >> "$ofile"
21447
21448# ### BEGIN LIBTOOL TAG CONFIG: CXX
21449
21450# The linker used to build libraries.
21451LD=$lt_LD_CXX
21452
21453# How to create reloadable object files.
21454reload_flag=$lt_reload_flag_CXX
21455reload_cmds=$lt_reload_cmds_CXX
21456
21457# Commands used to build an old-style archive.
21458old_archive_cmds=$lt_old_archive_cmds_CXX
21459
21460# A language specific compiler.
21461CC=$lt_compiler_CXX
21462
21463# Is the compiler the GNU compiler?
21464with_gcc=$GCC_CXX
21465
21466# Compiler flag to turn off builtin functions.
21467no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21468
21469# Additional compiler flags for building library objects.
21470pic_flag=$lt_lt_prog_compiler_pic_CXX
21471
21472# How to pass a linker flag through the compiler.
21473wl=$lt_lt_prog_compiler_wl_CXX
21474
21475# Compiler flag to prevent dynamic linking.
21476link_static_flag=$lt_lt_prog_compiler_static_CXX
21477
21478# Does compiler simultaneously support -c and -o options?
21479compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21480
21481# Whether or not to add -lc for building shared libraries.
21482build_libtool_need_lc=$archive_cmds_need_lc_CXX
21483
21484# Whether or not to disallow shared libs when runtime libs are static.
21485allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21486
21487# Compiler flag to allow reflexive dlopens.
21488export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21489
21490# Compiler flag to generate shared objects directly from archives.
21491whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21492
21493# Whether the compiler copes with passing no objects directly.
21494compiler_needs_object=$lt_compiler_needs_object_CXX
21495
21496# Create an old-style archive from a shared archive.
21497old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21498
21499# Create a temporary old-style archive to link instead of a shared archive.
21500old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21501
21502# Commands used to build a shared archive.
21503archive_cmds=$lt_archive_cmds_CXX
21504archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21505
21506# Commands used to build a loadable module if different from building
21507# a shared archive.
21508module_cmds=$lt_module_cmds_CXX
21509module_expsym_cmds=$lt_module_expsym_cmds_CXX
21510
21511# Whether we are building with GNU ld or not.
21512with_gnu_ld=$lt_with_gnu_ld_CXX
21513
21514# Flag that allows shared libraries with undefined symbols to be built.
21515allow_undefined_flag=$lt_allow_undefined_flag_CXX
21516
21517# Flag that enforces no undefined symbols.
21518no_undefined_flag=$lt_no_undefined_flag_CXX
21519
21520# Flag to hardcode \$libdir into a binary during linking.
21521# This must work even if \$libdir does not exist
21522hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21523
21524# Whether we need a single "-rpath" flag with a separated argument.
21525hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21526
21527# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21528# DIR into the resulting binary.
21529hardcode_direct=$hardcode_direct_CXX
21530
21531# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21532# DIR into the resulting binary and the resulting library dependency is
21533# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21534# library is relocated.
21535hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21536
21537# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21538# into the resulting binary.
21539hardcode_minus_L=$hardcode_minus_L_CXX
21540
21541# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21542# into the resulting binary.
21543hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21544
21545# Set to "yes" if building a shared library automatically hardcodes DIR
21546# into the library and all subsequent libraries and executables linked
21547# against it.
21548hardcode_automatic=$hardcode_automatic_CXX
21549
21550# Set to yes if linker adds runtime paths of dependent libraries
21551# to runtime path list.
21552inherit_rpath=$inherit_rpath_CXX
21553
21554# Whether libtool must link a program against all its dependency libraries.
21555link_all_deplibs=$link_all_deplibs_CXX
21556
21557# Set to "yes" if exported symbols are required.
21558always_export_symbols=$always_export_symbols_CXX
21559
21560# The commands to list exported symbols.
21561export_symbols_cmds=$lt_export_symbols_cmds_CXX
21562
21563# Symbols that should not be listed in the preloaded symbols.
21564exclude_expsyms=$lt_exclude_expsyms_CXX
21565
21566# Symbols that must always be exported.
21567include_expsyms=$lt_include_expsyms_CXX
21568
21569# Commands necessary for linking programs (against libraries) with templates.
21570prelink_cmds=$lt_prelink_cmds_CXX
21571
21572# Commands necessary for finishing linking programs.
21573postlink_cmds=$lt_postlink_cmds_CXX
21574
21575# Specify filename containing input files.
21576file_list_spec=$lt_file_list_spec_CXX
21577
21578# How to hardcode a shared library path into an executable.
21579hardcode_action=$hardcode_action_CXX
21580
21581# The directories searched by this compiler when creating a shared library.
21582compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21583
21584# Dependencies to place before and after the objects being linked to
21585# create a shared library.
21586predep_objects=$lt_predep_objects_CXX
21587postdep_objects=$lt_postdep_objects_CXX
21588predeps=$lt_predeps_CXX
21589postdeps=$lt_postdeps_CXX
21590
21591# The library search path used internally by the compiler when linking
21592# a shared library.
21593compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21594
21595# ### END LIBTOOL TAG CONFIG: CXX
21596_LT_EOF
21597
21598 ;;
Jeff Thompson39128c62013-06-19 14:08:51 -070021599
21600 esac
21601done # for ac_tag
21602
21603
21604as_fn_exit 0
21605_ACEOF
21606ac_clean_files=$ac_clean_files_save
21607
21608test $ac_write_fail = 0 ||
21609 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21610
21611
21612# configure is writing to config.log, and then calls config.status.
21613# config.status does its own redirection, appending to config.log.
21614# Unfortunately, on DOS this fails, as config.log is still kept open
21615# by configure, so config.status won't be able to write to it; its
21616# output is simply discarded. So we exec the FD to /dev/null,
21617# effectively closing config.log, so it can be properly (re)opened and
21618# appended to by config.status. When coming back to configure, we
21619# need to make the FD available again.
21620if test "$no_create" != yes; then
21621 ac_cs_success=:
21622 ac_config_status_args=
21623 test "$silent" = yes &&
21624 ac_config_status_args="$ac_config_status_args --quiet"
21625 exec 5>/dev/null
21626 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21627 exec 5>>config.log
21628 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21629 # would make configure fail if this is the last instruction.
21630 $ac_cs_success || as_fn_exit 1
21631fi
21632if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21634$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21635fi
21636