blob: 103a7dc84eb93ccaf2321838b50d93eb6ad609f1 [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 Thompson93a24162013-09-27 13:28:13 -0700598ac_unique_file="config.h.in"
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 Thompson1b8f4c92013-06-19 16:18:46 -0700685HAVE_CXX11
Jeff Thompson965a3242013-10-02 09:59:35 -0700686SQLITE3_VERSION
687SQLITE3_LDFLAGS
688SQLITE3_CFLAGS
689am__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 Thompson39128c62013-06-19 14:08:51 -07002030cat >config.log <<_ACEOF
2031This file contains any messages produced by compilers while
2032running configure, to aid debugging if configure makes a mistake.
2033
Jeff Thompson93a24162013-09-27 13:28:13 -07002034It was created by ndn-cpp $as_me 0.2, which was
Jeff Thompson39128c62013-06-19 14:08:51 -07002035generated by GNU Autoconf 2.69. Invocation command line was
2036
2037 $ $0 $@
2038
2039_ACEOF
2040exec 5>>config.log
2041{
2042cat <<_ASUNAME
2043## --------- ##
2044## Platform. ##
2045## --------- ##
2046
2047hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2048uname -m = `(uname -m) 2>/dev/null || echo unknown`
2049uname -r = `(uname -r) 2>/dev/null || echo unknown`
2050uname -s = `(uname -s) 2>/dev/null || echo unknown`
2051uname -v = `(uname -v) 2>/dev/null || echo unknown`
2052
2053/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2054/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2055
2056/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2057/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2058/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2059/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2060/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2061/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2062/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2063
2064_ASUNAME
2065
2066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067for as_dir in $PATH
2068do
2069 IFS=$as_save_IFS
2070 test -z "$as_dir" && as_dir=.
2071 $as_echo "PATH: $as_dir"
2072 done
2073IFS=$as_save_IFS
2074
2075} >&5
2076
2077cat >&5 <<_ACEOF
2078
2079
2080## ----------- ##
2081## Core tests. ##
2082## ----------- ##
2083
2084_ACEOF
2085
2086
2087# Keep a trace of the command line.
2088# Strip out --no-create and --no-recursion so they do not pile up.
2089# Strip out --silent because we don't want to record it for future runs.
2090# Also quote any args containing shell meta-characters.
2091# Make two passes to allow for proper duplicate-argument suppression.
2092ac_configure_args=
2093ac_configure_args0=
2094ac_configure_args1=
2095ac_must_keep_next=false
2096for ac_pass in 1 2
2097do
2098 for ac_arg
2099 do
2100 case $ac_arg in
2101 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2103 | -silent | --silent | --silen | --sile | --sil)
2104 continue ;;
2105 *\'*)
2106 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2107 esac
2108 case $ac_pass in
2109 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2110 2)
2111 as_fn_append ac_configure_args1 " '$ac_arg'"
2112 if test $ac_must_keep_next = true; then
2113 ac_must_keep_next=false # Got value, back to normal.
2114 else
2115 case $ac_arg in
2116 *=* | --config-cache | -C | -disable-* | --disable-* \
2117 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2118 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2119 | -with-* | --with-* | -without-* | --without-* | --x)
2120 case "$ac_configure_args0 " in
2121 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2122 esac
2123 ;;
2124 -* ) ac_must_keep_next=true ;;
2125 esac
2126 fi
2127 as_fn_append ac_configure_args " '$ac_arg'"
2128 ;;
2129 esac
2130 done
2131done
2132{ ac_configure_args0=; unset ac_configure_args0;}
2133{ ac_configure_args1=; unset ac_configure_args1;}
2134
2135# When interrupted or exit'd, cleanup temporary files, and complete
2136# config.log. We remove comments because anyway the quotes in there
2137# would cause problems or look ugly.
2138# WARNING: Use '\'' to represent an apostrophe within the trap.
2139# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2140trap 'exit_status=$?
2141 # Save into config.log some information that might help in debugging.
2142 {
2143 echo
2144
2145 $as_echo "## ---------------- ##
2146## Cache variables. ##
2147## ---------------- ##"
2148 echo
2149 # The following way of writing the cache mishandles newlines in values,
2150(
2151 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2152 eval ac_val=\$$ac_var
2153 case $ac_val in #(
2154 *${as_nl}*)
2155 case $ac_var in #(
2156 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2157$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2158 esac
2159 case $ac_var in #(
2160 _ | IFS | as_nl) ;; #(
2161 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2162 *) { eval $ac_var=; unset $ac_var;} ;;
2163 esac ;;
2164 esac
2165 done
2166 (set) 2>&1 |
2167 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2168 *${as_nl}ac_space=\ *)
2169 sed -n \
2170 "s/'\''/'\''\\\\'\'''\''/g;
2171 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2172 ;; #(
2173 *)
2174 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2175 ;;
2176 esac |
2177 sort
2178)
2179 echo
2180
2181 $as_echo "## ----------------- ##
2182## Output variables. ##
2183## ----------------- ##"
2184 echo
2185 for ac_var in $ac_subst_vars
2186 do
2187 eval ac_val=\$$ac_var
2188 case $ac_val in
2189 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2190 esac
2191 $as_echo "$ac_var='\''$ac_val'\''"
2192 done | sort
2193 echo
2194
2195 if test -n "$ac_subst_files"; then
2196 $as_echo "## ------------------- ##
2197## File substitutions. ##
2198## ------------------- ##"
2199 echo
2200 for ac_var in $ac_subst_files
2201 do
2202 eval ac_val=\$$ac_var
2203 case $ac_val in
2204 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2205 esac
2206 $as_echo "$ac_var='\''$ac_val'\''"
2207 done | sort
2208 echo
2209 fi
2210
2211 if test -s confdefs.h; then
2212 $as_echo "## ----------- ##
2213## confdefs.h. ##
2214## ----------- ##"
2215 echo
2216 cat confdefs.h
2217 echo
2218 fi
2219 test "$ac_signal" != 0 &&
2220 $as_echo "$as_me: caught signal $ac_signal"
2221 $as_echo "$as_me: exit $exit_status"
2222 } >&5
2223 rm -f core *.core core.conftest.* &&
2224 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2225 exit $exit_status
2226' 0
2227for ac_signal in 1 2 13 15; do
2228 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2229done
2230ac_signal=0
2231
2232# confdefs.h avoids OS command line length limits that DEFS can exceed.
2233rm -f -r conftest* confdefs.h
2234
2235$as_echo "/* confdefs.h */" > confdefs.h
2236
2237# Predefined preprocessor variables.
2238
2239cat >>confdefs.h <<_ACEOF
2240#define PACKAGE_NAME "$PACKAGE_NAME"
2241_ACEOF
2242
2243cat >>confdefs.h <<_ACEOF
2244#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2245_ACEOF
2246
2247cat >>confdefs.h <<_ACEOF
2248#define PACKAGE_VERSION "$PACKAGE_VERSION"
2249_ACEOF
2250
2251cat >>confdefs.h <<_ACEOF
2252#define PACKAGE_STRING "$PACKAGE_STRING"
2253_ACEOF
2254
2255cat >>confdefs.h <<_ACEOF
2256#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2257_ACEOF
2258
2259cat >>confdefs.h <<_ACEOF
2260#define PACKAGE_URL "$PACKAGE_URL"
2261_ACEOF
2262
2263
2264# Let the site file select an alternate cache file if it wants to.
2265# Prefer an explicitly selected file to automatically selected ones.
2266ac_site_file1=NONE
2267ac_site_file2=NONE
2268if test -n "$CONFIG_SITE"; then
2269 # We do not want a PATH search for config.site.
2270 case $CONFIG_SITE in #((
2271 -*) ac_site_file1=./$CONFIG_SITE;;
2272 */*) ac_site_file1=$CONFIG_SITE;;
2273 *) ac_site_file1=./$CONFIG_SITE;;
2274 esac
2275elif test "x$prefix" != xNONE; then
2276 ac_site_file1=$prefix/share/config.site
2277 ac_site_file2=$prefix/etc/config.site
2278else
2279 ac_site_file1=$ac_default_prefix/share/config.site
2280 ac_site_file2=$ac_default_prefix/etc/config.site
2281fi
2282for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2283do
2284 test "x$ac_site_file" = xNONE && continue
2285 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2287$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2288 sed 's/^/| /' "$ac_site_file" >&5
2289 . "$ac_site_file" \
2290 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2292as_fn_error $? "failed to load site script $ac_site_file
2293See \`config.log' for more details" "$LINENO" 5; }
2294 fi
2295done
2296
2297if test -r "$cache_file"; then
2298 # Some versions of bash will fail to source /dev/null (special files
2299 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2300 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2302$as_echo "$as_me: loading cache $cache_file" >&6;}
2303 case $cache_file in
2304 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2305 *) . "./$cache_file";;
2306 esac
2307 fi
2308else
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2310$as_echo "$as_me: creating cache $cache_file" >&6;}
2311 >$cache_file
2312fi
2313
2314# Check that the precious variables saved in the cache have kept the same
2315# value.
2316ac_cache_corrupted=false
2317for ac_var in $ac_precious_vars; do
2318 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2319 eval ac_new_set=\$ac_env_${ac_var}_set
2320 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2321 eval ac_new_val=\$ac_env_${ac_var}_value
2322 case $ac_old_set,$ac_new_set in
2323 set,)
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2325$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2326 ac_cache_corrupted=: ;;
2327 ,set)
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2329$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2330 ac_cache_corrupted=: ;;
2331 ,);;
2332 *)
2333 if test "x$ac_old_val" != "x$ac_new_val"; then
2334 # differences in whitespace do not lead to failure.
2335 ac_old_val_w=`echo x $ac_old_val`
2336 ac_new_val_w=`echo x $ac_new_val`
2337 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2339$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2340 ac_cache_corrupted=:
2341 else
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2343$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2344 eval $ac_var=\$ac_old_val
2345 fi
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2347$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2349$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2350 fi;;
2351 esac
2352 # Pass precious variables to config.status.
2353 if test "$ac_new_set" = set; then
2354 case $ac_new_val in
2355 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2356 *) ac_arg=$ac_var=$ac_new_val ;;
2357 esac
2358 case " $ac_configure_args " in
2359 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2360 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2361 esac
2362 fi
2363done
2364if $ac_cache_corrupted; then
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2368$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2369 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2370fi
2371## -------------------- ##
2372## Main body of script. ##
2373## -------------------- ##
2374
2375ac_ext=c
2376ac_cpp='$CPP $CPPFLAGS'
2377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2379ac_compiler_gnu=$ac_cv_c_compiler_gnu
2380
2381
Jeff Thompsona04f23c2013-09-16 17:48:38 -07002382am__api_version='1.14'
Jeff Thompson39128c62013-06-19 14:08:51 -07002383
2384ac_aux_dir=
2385for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2386 if test -f "$ac_dir/install-sh"; then
2387 ac_aux_dir=$ac_dir
2388 ac_install_sh="$ac_aux_dir/install-sh -c"
2389 break
2390 elif test -f "$ac_dir/install.sh"; then
2391 ac_aux_dir=$ac_dir
2392 ac_install_sh="$ac_aux_dir/install.sh -c"
2393 break
2394 elif test -f "$ac_dir/shtool"; then
2395 ac_aux_dir=$ac_dir
2396 ac_install_sh="$ac_aux_dir/shtool install -c"
2397 break
2398 fi
2399done
2400if test -z "$ac_aux_dir"; then
2401 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2402fi
2403
2404# These three variables are undocumented and unsupported,
2405# and are intended to be withdrawn in a future Autoconf release.
2406# They can cause serious problems if a builder's source tree is in a directory
2407# whose full name contains unusual characters.
2408ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2409ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2410ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2411
2412
2413# Find a good install program. We prefer a C program (faster),
2414# so one script is as good as another. But avoid the broken or
2415# incompatible versions:
2416# SysV /etc/install, /usr/sbin/install
2417# SunOS /usr/etc/install
2418# IRIX /sbin/install
2419# AIX /bin/install
2420# AmigaOS /C/install, which installs bootblocks on floppy discs
2421# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2422# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2423# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2424# OS/2's system install, which has a completely different semantic
2425# ./install, which can be erroneously created by make from ./install.sh.
2426# Reject install programs that cannot install multiple files.
2427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2428$as_echo_n "checking for a BSD-compatible install... " >&6; }
2429if test -z "$INSTALL"; then
2430if ${ac_cv_path_install+:} false; then :
2431 $as_echo_n "(cached) " >&6
2432else
2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434for as_dir in $PATH
2435do
2436 IFS=$as_save_IFS
2437 test -z "$as_dir" && as_dir=.
2438 # Account for people who put trailing slashes in PATH elements.
2439case $as_dir/ in #((
2440 ./ | .// | /[cC]/* | \
2441 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2442 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2443 /usr/ucb/* ) ;;
2444 *)
2445 # OSF1 and SCO ODT 3.0 have their own names for install.
2446 # Don't use installbsd from OSF since it installs stuff as root
2447 # by default.
2448 for ac_prog in ginstall scoinst install; do
2449 for ac_exec_ext in '' $ac_executable_extensions; do
2450 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2451 if test $ac_prog = install &&
2452 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2453 # AIX install. It has an incompatible calling convention.
2454 :
2455 elif test $ac_prog = install &&
2456 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2457 # program-specific install script used by HP pwplus--don't use.
2458 :
2459 else
2460 rm -rf conftest.one conftest.two conftest.dir
2461 echo one > conftest.one
2462 echo two > conftest.two
2463 mkdir conftest.dir
2464 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2465 test -s conftest.one && test -s conftest.two &&
2466 test -s conftest.dir/conftest.one &&
2467 test -s conftest.dir/conftest.two
2468 then
2469 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2470 break 3
2471 fi
2472 fi
2473 fi
2474 done
2475 done
2476 ;;
2477esac
2478
2479 done
2480IFS=$as_save_IFS
2481
2482rm -rf conftest.one conftest.two conftest.dir
2483
2484fi
2485 if test "${ac_cv_path_install+set}" = set; then
2486 INSTALL=$ac_cv_path_install
2487 else
2488 # As a last resort, use the slow shell script. Don't cache a
2489 # value for INSTALL within a source directory, because that will
2490 # break other packages using the cache if that directory is
2491 # removed, or if the value is a relative name.
2492 INSTALL=$ac_install_sh
2493 fi
2494fi
2495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2496$as_echo "$INSTALL" >&6; }
2497
2498# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2499# It thinks the first close brace ends the variable substitution.
2500test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2501
2502test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2503
2504test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2505
2506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2507$as_echo_n "checking whether build environment is sane... " >&6; }
2508# Reject unsafe characters in $srcdir or the absolute working directory
2509# name. Accept space and tab only in the latter.
2510am_lf='
2511'
2512case `pwd` in
2513 *[\\\"\#\$\&\'\`$am_lf]*)
2514 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2515esac
2516case $srcdir in
2517 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2518 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2519esac
2520
2521# Do 'set' in a subshell so we don't clobber the current shell's
2522# arguments. Must try -L first in case configure is actually a
2523# symlink; some systems play weird games with the mod time of symlinks
2524# (eg FreeBSD returns the mod time of the symlink's containing
2525# directory).
2526if (
2527 am_has_slept=no
2528 for am_try in 1 2; do
2529 echo "timestamp, slept: $am_has_slept" > conftest.file
2530 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2531 if test "$*" = "X"; then
2532 # -L didn't work.
2533 set X `ls -t "$srcdir/configure" conftest.file`
2534 fi
2535 if test "$*" != "X $srcdir/configure conftest.file" \
2536 && test "$*" != "X conftest.file $srcdir/configure"; then
2537
2538 # If neither matched, then we have a broken ls. This can happen
2539 # if, for instance, CONFIG_SHELL is bash and it inherits a
2540 # broken ls alias from the environment. This has actually
2541 # happened. Such a system could not be considered "sane".
2542 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2543 alias in your environment" "$LINENO" 5
2544 fi
2545 if test "$2" = conftest.file || test $am_try -eq 2; then
2546 break
2547 fi
2548 # Just in case.
2549 sleep 1
2550 am_has_slept=yes
2551 done
2552 test "$2" = conftest.file
2553 )
2554then
2555 # Ok.
2556 :
2557else
2558 as_fn_error $? "newly created file is older than distributed files!
2559Check your system clock" "$LINENO" 5
2560fi
2561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2562$as_echo "yes" >&6; }
2563# If we didn't sleep, we still need to ensure time stamps of config.status and
2564# generated files are strictly newer.
2565am_sleep_pid=
2566if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2567 ( sleep 1 ) &
2568 am_sleep_pid=$!
2569fi
2570
2571rm -f conftest.file
2572
2573test "$program_prefix" != NONE &&
2574 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2575# Use a double $ so make ignores it.
2576test "$program_suffix" != NONE &&
2577 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2578# Double any \ or $.
2579# By default was `s,x,x', remove it if useless.
2580ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2581program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2582
2583# expand $ac_aux_dir to an absolute path
2584am_aux_dir=`cd $ac_aux_dir && pwd`
2585
2586if test x"${MISSING+set}" != xset; then
2587 case $am_aux_dir in
2588 *\ * | *\ *)
2589 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2590 *)
2591 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2592 esac
2593fi
2594# Use eval to expand $SHELL
2595if eval "$MISSING --is-lightweight"; then
2596 am_missing_run="$MISSING "
2597else
2598 am_missing_run=
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2600$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2601fi
2602
2603if test x"${install_sh}" != xset; then
2604 case $am_aux_dir in
2605 *\ * | *\ *)
2606 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2607 *)
2608 install_sh="\${SHELL} $am_aux_dir/install-sh"
2609 esac
2610fi
2611
2612# Installed binaries are usually stripped using 'strip' when the user
2613# run "make install-strip". However 'strip' might not be the right
2614# tool to use in cross-compilation environments, therefore Automake
2615# will honor the 'STRIP' environment variable to overrule this program.
2616if test "$cross_compiling" != no; then
2617 if test -n "$ac_tool_prefix"; then
2618 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2619set dummy ${ac_tool_prefix}strip; ac_word=$2
2620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2621$as_echo_n "checking for $ac_word... " >&6; }
2622if ${ac_cv_prog_STRIP+:} false; then :
2623 $as_echo_n "(cached) " >&6
2624else
2625 if test -n "$STRIP"; then
2626 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2627else
2628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629for as_dir in $PATH
2630do
2631 IFS=$as_save_IFS
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2635 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 break 2
2638 fi
2639done
2640 done
2641IFS=$as_save_IFS
2642
2643fi
2644fi
2645STRIP=$ac_cv_prog_STRIP
2646if test -n "$STRIP"; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2648$as_echo "$STRIP" >&6; }
2649else
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2651$as_echo "no" >&6; }
2652fi
2653
2654
2655fi
2656if test -z "$ac_cv_prog_STRIP"; then
2657 ac_ct_STRIP=$STRIP
2658 # Extract the first word of "strip", so it can be a program name with args.
2659set dummy strip; ac_word=$2
2660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2661$as_echo_n "checking for $ac_word... " >&6; }
2662if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2663 $as_echo_n "(cached) " >&6
2664else
2665 if test -n "$ac_ct_STRIP"; then
2666 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2667else
2668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669for as_dir in $PATH
2670do
2671 IFS=$as_save_IFS
2672 test -z "$as_dir" && as_dir=.
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2675 ac_cv_prog_ac_ct_STRIP="strip"
2676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 break 2
2678 fi
2679done
2680 done
2681IFS=$as_save_IFS
2682
2683fi
2684fi
2685ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2686if test -n "$ac_ct_STRIP"; then
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2688$as_echo "$ac_ct_STRIP" >&6; }
2689else
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691$as_echo "no" >&6; }
2692fi
2693
2694 if test "x$ac_ct_STRIP" = x; then
2695 STRIP=":"
2696 else
2697 case $cross_compiling:$ac_tool_warned in
2698yes:)
2699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2701ac_tool_warned=yes ;;
2702esac
2703 STRIP=$ac_ct_STRIP
2704 fi
2705else
2706 STRIP="$ac_cv_prog_STRIP"
2707fi
2708
2709fi
2710INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2711
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2713$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2714if test -z "$MKDIR_P"; then
2715 if ${ac_cv_path_mkdir+:} false; then :
2716 $as_echo_n "(cached) " >&6
2717else
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2720do
2721 IFS=$as_save_IFS
2722 test -z "$as_dir" && as_dir=.
2723 for ac_prog in mkdir gmkdir; do
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2726 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2727 'mkdir (GNU coreutils) '* | \
2728 'mkdir (coreutils) '* | \
2729 'mkdir (fileutils) '4.1*)
2730 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2731 break 3;;
2732 esac
2733 done
2734 done
2735 done
2736IFS=$as_save_IFS
2737
2738fi
2739
2740 test -d ./--version && rmdir ./--version
2741 if test "${ac_cv_path_mkdir+set}" = set; then
2742 MKDIR_P="$ac_cv_path_mkdir -p"
2743 else
2744 # As a last resort, use the slow shell script. Don't cache a
2745 # value for MKDIR_P within a source directory, because that will
2746 # break other packages using the cache if that directory is
2747 # removed, or if the value is a relative name.
2748 MKDIR_P="$ac_install_sh -d"
2749 fi
2750fi
2751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2752$as_echo "$MKDIR_P" >&6; }
2753
2754for ac_prog in gawk mawk nawk awk
2755do
2756 # Extract the first word of "$ac_prog", so it can be a program name with args.
2757set dummy $ac_prog; ac_word=$2
2758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759$as_echo_n "checking for $ac_word... " >&6; }
2760if ${ac_cv_prog_AWK+:} false; then :
2761 $as_echo_n "(cached) " >&6
2762else
2763 if test -n "$AWK"; then
2764 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2765else
2766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767for as_dir in $PATH
2768do
2769 IFS=$as_save_IFS
2770 test -z "$as_dir" && as_dir=.
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2773 ac_cv_prog_AWK="$ac_prog"
2774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2775 break 2
2776 fi
2777done
2778 done
2779IFS=$as_save_IFS
2780
2781fi
2782fi
2783AWK=$ac_cv_prog_AWK
2784if test -n "$AWK"; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2786$as_echo "$AWK" >&6; }
2787else
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789$as_echo "no" >&6; }
2790fi
2791
2792
2793 test -n "$AWK" && break
2794done
2795
2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2797$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2798set x ${MAKE-make}
2799ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2800if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2801 $as_echo_n "(cached) " >&6
2802else
2803 cat >conftest.make <<\_ACEOF
2804SHELL = /bin/sh
2805all:
2806 @echo '@@@%%%=$(MAKE)=@@@%%%'
2807_ACEOF
2808# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2809case `${MAKE-make} -f conftest.make 2>/dev/null` in
2810 *@@@%%%=?*=@@@%%%*)
2811 eval ac_cv_prog_make_${ac_make}_set=yes;;
2812 *)
2813 eval ac_cv_prog_make_${ac_make}_set=no;;
2814esac
2815rm -f conftest.make
2816fi
2817if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2819$as_echo "yes" >&6; }
2820 SET_MAKE=
2821else
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823$as_echo "no" >&6; }
2824 SET_MAKE="MAKE=${MAKE-make}"
2825fi
2826
2827rm -rf .tst 2>/dev/null
2828mkdir .tst 2>/dev/null
2829if test -d .tst; then
2830 am__leading_dot=.
2831else
2832 am__leading_dot=_
2833fi
2834rmdir .tst 2>/dev/null
2835
2836# Check whether --enable-silent-rules was given.
2837if test "${enable_silent_rules+set}" = set; then :
2838 enableval=$enable_silent_rules;
2839fi
2840
2841case $enable_silent_rules in # (((
2842 yes) AM_DEFAULT_VERBOSITY=0;;
2843 no) AM_DEFAULT_VERBOSITY=1;;
2844 *) AM_DEFAULT_VERBOSITY=1;;
2845esac
2846am_make=${MAKE-make}
2847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2848$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2849if ${am_cv_make_support_nested_variables+:} false; then :
2850 $as_echo_n "(cached) " >&6
2851else
2852 if $as_echo 'TRUE=$(BAR$(V))
2853BAR0=false
2854BAR1=true
2855V=1
2856am__doit:
2857 @$(TRUE)
2858.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2859 am_cv_make_support_nested_variables=yes
2860else
2861 am_cv_make_support_nested_variables=no
2862fi
2863fi
2864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2865$as_echo "$am_cv_make_support_nested_variables" >&6; }
2866if test $am_cv_make_support_nested_variables = yes; then
2867 AM_V='$(V)'
2868 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2869else
2870 AM_V=$AM_DEFAULT_VERBOSITY
2871 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2872fi
2873AM_BACKSLASH='\'
2874
2875if test "`cd $srcdir && pwd`" != "`pwd`"; then
2876 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2877 # is not polluted with repeated "-I."
2878 am__isrc=' -I$(srcdir)'
2879 # test to see if srcdir already configured
2880 if test -f $srcdir/config.status; then
2881 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2882 fi
2883fi
2884
2885# test whether we have cygpath
2886if test -z "$CYGPATH_W"; then
2887 if (cygpath --version) >/dev/null 2>/dev/null; then
2888 CYGPATH_W='cygpath -w'
2889 else
2890 CYGPATH_W=echo
2891 fi
2892fi
2893
2894
2895# Define the identity of the package.
2896 PACKAGE='ndn-cpp'
Jeff Thompson93a24162013-09-27 13:28:13 -07002897 VERSION='0.2'
Jeff Thompson39128c62013-06-19 14:08:51 -07002898
2899
2900# Some tools Automake needs.
2901
2902ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2903
2904
2905AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2906
2907
2908AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2909
2910
2911AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2912
2913
2914MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2915
2916# For better backward compatibility. To be removed once Automake 1.9.x
2917# dies out for good. For more background, see:
2918# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2919# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2920mkdir_p='$(MKDIR_P)'
2921
2922# We need awk for the "check" target. The system "awk" is bad on
2923# some platforms.
2924# Always define AMTAR for backward compatibility. Yes, it's still used
2925# in the wild :-( We should find a proper way to deprecate it ...
2926AMTAR='$${TAR-tar}'
2927
2928
2929# We'll loop over all known methods to create a tar archive until one works.
2930_am_tools='gnutar pax cpio none'
2931
2932am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2933
2934
2935
2936
2937
2938
Jeff Thompsona04f23c2013-09-16 17:48:38 -07002939# POSIX will say in a future version that running "rm -f" with no argument
2940# is OK; and we want to be able to make that assumption in our Makefile
2941# recipes. So use an aggressive probe to check that the usage we want is
2942# actually supported "in the wild" to an acceptable degree.
2943# See automake bug#10828.
2944# To make any issue more visible, cause the running configure to be aborted
2945# by default if the 'rm' program in use doesn't match our expectations; the
2946# user can still override this though.
2947if rm -f && rm -fr && rm -rf; then : OK; else
2948 cat >&2 <<'END'
2949Oops!
2950
2951Your 'rm' program seems unable to run without file operands specified
2952on the command line, even when the '-f' option is present. This is contrary
2953to the behaviour of most rm programs out there, and not conforming with
2954the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2955
2956Please tell bug-automake@gnu.org about your system, including the value
2957of your $PATH and any error possibly output before this message. This
2958can help us improve future automake versions.
2959
2960END
2961 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2962 echo 'Configuration will proceed anyway, since you have set the' >&2
2963 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2964 echo >&2
2965 else
2966 cat >&2 <<'END'
2967Aborting the configuration process, to ensure you take notice of the issue.
2968
2969You can download and install GNU coreutils to get an 'rm' implementation
2970that behaves properly: <http://www.gnu.org/software/coreutils/>.
2971
2972If you want to complete the configuration process using your problematic
2973'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2974to "yes", and re-run configure.
2975
2976END
2977 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2978 fi
2979fi
Jeff Thompson39128c62013-06-19 14:08:51 -07002980
Jeff Thompson93a24162013-09-27 13:28:13 -07002981
Jeff Thompson39128c62013-06-19 14:08:51 -07002982ac_config_headers="$ac_config_headers config.h"
2983
Jeff Thompson47053ad2013-08-05 10:36:53 -07002984
2985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2986$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2987 # Check whether --enable-maintainer-mode was given.
2988if test "${enable_maintainer_mode+set}" = set; then :
2989 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2990else
2991 USE_MAINTAINER_MODE=no
2992fi
2993
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2995$as_echo "$USE_MAINTAINER_MODE" >&6; }
2996 if test $USE_MAINTAINER_MODE = yes; then
2997 MAINTAINER_MODE_TRUE=
2998 MAINTAINER_MODE_FALSE='#'
2999else
3000 MAINTAINER_MODE_TRUE='#'
3001 MAINTAINER_MODE_FALSE=
3002fi
3003
3004 MAINT=$MAINTAINER_MODE_TRUE
3005
3006
Jeff Thompson39128c62013-06-19 14:08:51 -07003007DEPDIR="${am__leading_dot}deps"
3008
3009ac_config_commands="$ac_config_commands depfiles"
3010
3011
3012am_make=${MAKE-make}
3013cat > confinc << 'END'
3014am__doit:
3015 @echo this is the am__doit target
3016.PHONY: am__doit
3017END
3018# If we don't find an include directive, just comment out the code.
3019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3020$as_echo_n "checking for style of include used by $am_make... " >&6; }
3021am__include="#"
3022am__quote=
3023_am_result=none
3024# First try GNU make style include.
3025echo "include confinc" > confmf
3026# Ignore all kinds of additional output from 'make'.
3027case `$am_make -s -f confmf 2> /dev/null` in #(
3028*the\ am__doit\ target*)
3029 am__include=include
3030 am__quote=
3031 _am_result=GNU
3032 ;;
3033esac
3034# Now try BSD make style include.
3035if test "$am__include" = "#"; then
3036 echo '.include "confinc"' > confmf
3037 case `$am_make -s -f confmf 2> /dev/null` in #(
3038 *the\ am__doit\ target*)
3039 am__include=.include
3040 am__quote="\""
3041 _am_result=BSD
3042 ;;
3043 esac
3044fi
3045
3046
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3048$as_echo "$_am_result" >&6; }
3049rm -f confinc confmf
3050
3051# Check whether --enable-dependency-tracking was given.
3052if test "${enable_dependency_tracking+set}" = set; then :
3053 enableval=$enable_dependency_tracking;
3054fi
3055
3056if test "x$enable_dependency_tracking" != xno; then
3057 am_depcomp="$ac_aux_dir/depcomp"
3058 AMDEPBACKSLASH='\'
3059 am__nodep='_no'
3060fi
3061 if test "x$enable_dependency_tracking" != xno; then
3062 AMDEP_TRUE=
3063 AMDEP_FALSE='#'
3064else
3065 AMDEP_TRUE='#'
3066 AMDEP_FALSE=
3067fi
3068
3069
Jeff Thompson36174062013-06-21 16:03:44 -07003070ac_ext=c
3071ac_cpp='$CPP $CPPFLAGS'
3072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3074ac_compiler_gnu=$ac_cv_c_compiler_gnu
3075if test -n "$ac_tool_prefix"; then
3076 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3077set dummy ${ac_tool_prefix}gcc; ac_word=$2
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079$as_echo_n "checking for $ac_word... " >&6; }
3080if ${ac_cv_prog_CC+:} false; then :
3081 $as_echo_n "(cached) " >&6
3082else
3083 if test -n "$CC"; then
3084 ac_cv_prog_CC="$CC" # Let the user override the test.
3085else
3086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087for as_dir in $PATH
3088do
3089 IFS=$as_save_IFS
3090 test -z "$as_dir" && as_dir=.
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3095 break 2
3096 fi
3097done
3098 done
3099IFS=$as_save_IFS
3100
3101fi
3102fi
3103CC=$ac_cv_prog_CC
3104if test -n "$CC"; then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3106$as_echo "$CC" >&6; }
3107else
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109$as_echo "no" >&6; }
3110fi
3111
3112
3113fi
3114if test -z "$ac_cv_prog_CC"; then
3115 ac_ct_CC=$CC
3116 # Extract the first word of "gcc", so it can be a program name with args.
3117set dummy gcc; ac_word=$2
3118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3119$as_echo_n "checking for $ac_word... " >&6; }
3120if ${ac_cv_prog_ac_ct_CC+:} false; then :
3121 $as_echo_n "(cached) " >&6
3122else
3123 if test -n "$ac_ct_CC"; then
3124 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3125else
3126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127for as_dir in $PATH
3128do
3129 IFS=$as_save_IFS
3130 test -z "$as_dir" && as_dir=.
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3133 ac_cv_prog_ac_ct_CC="gcc"
3134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3135 break 2
3136 fi
3137done
3138 done
3139IFS=$as_save_IFS
3140
3141fi
3142fi
3143ac_ct_CC=$ac_cv_prog_ac_ct_CC
3144if test -n "$ac_ct_CC"; then
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3146$as_echo "$ac_ct_CC" >&6; }
3147else
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149$as_echo "no" >&6; }
3150fi
3151
3152 if test "x$ac_ct_CC" = x; then
3153 CC=""
3154 else
3155 case $cross_compiling:$ac_tool_warned in
3156yes:)
3157{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3158$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3159ac_tool_warned=yes ;;
3160esac
3161 CC=$ac_ct_CC
3162 fi
3163else
3164 CC="$ac_cv_prog_CC"
3165fi
3166
3167if test -z "$CC"; then
3168 if test -n "$ac_tool_prefix"; then
3169 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3170set dummy ${ac_tool_prefix}cc; ac_word=$2
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172$as_echo_n "checking for $ac_word... " >&6; }
3173if ${ac_cv_prog_CC+:} false; then :
3174 $as_echo_n "(cached) " >&6
3175else
3176 if test -n "$CC"; then
3177 ac_cv_prog_CC="$CC" # Let the user override the test.
3178else
3179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180for as_dir in $PATH
3181do
3182 IFS=$as_save_IFS
3183 test -z "$as_dir" && as_dir=.
3184 for ac_exec_ext in '' $ac_executable_extensions; do
3185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3186 ac_cv_prog_CC="${ac_tool_prefix}cc"
3187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3188 break 2
3189 fi
3190done
3191 done
3192IFS=$as_save_IFS
3193
3194fi
3195fi
3196CC=$ac_cv_prog_CC
3197if test -n "$CC"; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3199$as_echo "$CC" >&6; }
3200else
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202$as_echo "no" >&6; }
3203fi
3204
3205
3206 fi
3207fi
3208if test -z "$CC"; then
3209 # Extract the first word of "cc", so it can be a program name with args.
3210set dummy cc; ac_word=$2
3211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3212$as_echo_n "checking for $ac_word... " >&6; }
3213if ${ac_cv_prog_CC+:} false; then :
3214 $as_echo_n "(cached) " >&6
3215else
3216 if test -n "$CC"; then
3217 ac_cv_prog_CC="$CC" # Let the user override the test.
3218else
3219 ac_prog_rejected=no
3220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221for as_dir in $PATH
3222do
3223 IFS=$as_save_IFS
3224 test -z "$as_dir" && as_dir=.
3225 for ac_exec_ext in '' $ac_executable_extensions; do
3226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3227 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3228 ac_prog_rejected=yes
3229 continue
3230 fi
3231 ac_cv_prog_CC="cc"
3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 break 2
3234 fi
3235done
3236 done
3237IFS=$as_save_IFS
3238
3239if test $ac_prog_rejected = yes; then
3240 # We found a bogon in the path, so make sure we never use it.
3241 set dummy $ac_cv_prog_CC
3242 shift
3243 if test $# != 0; then
3244 # We chose a different compiler from the bogus one.
3245 # However, it has the same basename, so the bogon will be chosen
3246 # first if we set CC to just the basename; use the full file name.
3247 shift
3248 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3249 fi
3250fi
3251fi
3252fi
3253CC=$ac_cv_prog_CC
3254if test -n "$CC"; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3256$as_echo "$CC" >&6; }
3257else
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259$as_echo "no" >&6; }
3260fi
3261
3262
3263fi
3264if test -z "$CC"; then
3265 if test -n "$ac_tool_prefix"; then
3266 for ac_prog in cl.exe
3267 do
3268 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3269set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271$as_echo_n "checking for $ac_word... " >&6; }
3272if ${ac_cv_prog_CC+:} false; then :
3273 $as_echo_n "(cached) " >&6
3274else
3275 if test -n "$CC"; then
3276 ac_cv_prog_CC="$CC" # Let the user override the test.
3277else
3278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279for as_dir in $PATH
3280do
3281 IFS=$as_save_IFS
3282 test -z "$as_dir" && as_dir=.
3283 for ac_exec_ext in '' $ac_executable_extensions; do
3284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3285 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3287 break 2
3288 fi
3289done
3290 done
3291IFS=$as_save_IFS
3292
3293fi
3294fi
3295CC=$ac_cv_prog_CC
3296if test -n "$CC"; then
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3298$as_echo "$CC" >&6; }
3299else
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301$as_echo "no" >&6; }
3302fi
3303
3304
3305 test -n "$CC" && break
3306 done
3307fi
3308if test -z "$CC"; then
3309 ac_ct_CC=$CC
3310 for ac_prog in cl.exe
3311do
3312 # Extract the first word of "$ac_prog", so it can be a program name with args.
3313set dummy $ac_prog; ac_word=$2
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3315$as_echo_n "checking for $ac_word... " >&6; }
3316if ${ac_cv_prog_ac_ct_CC+:} false; then :
3317 $as_echo_n "(cached) " >&6
3318else
3319 if test -n "$ac_ct_CC"; then
3320 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3321else
3322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323for as_dir in $PATH
3324do
3325 IFS=$as_save_IFS
3326 test -z "$as_dir" && as_dir=.
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3329 ac_cv_prog_ac_ct_CC="$ac_prog"
3330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3331 break 2
3332 fi
3333done
3334 done
3335IFS=$as_save_IFS
3336
3337fi
3338fi
3339ac_ct_CC=$ac_cv_prog_ac_ct_CC
3340if test -n "$ac_ct_CC"; then
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3342$as_echo "$ac_ct_CC" >&6; }
3343else
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345$as_echo "no" >&6; }
3346fi
3347
3348
3349 test -n "$ac_ct_CC" && break
3350done
3351
3352 if test "x$ac_ct_CC" = x; then
3353 CC=""
3354 else
3355 case $cross_compiling:$ac_tool_warned in
3356yes:)
3357{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3359ac_tool_warned=yes ;;
3360esac
3361 CC=$ac_ct_CC
3362 fi
3363fi
3364
3365fi
3366
3367
3368test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3369$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3370as_fn_error $? "no acceptable C compiler found in \$PATH
3371See \`config.log' for more details" "$LINENO" 5; }
3372
3373# Provide some information about the compiler.
3374$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3375set X $ac_compile
3376ac_compiler=$2
3377for ac_option in --version -v -V -qversion; do
3378 { { ac_try="$ac_compiler $ac_option >&5"
3379case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382esac
3383eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3384$as_echo "$ac_try_echo"; } >&5
3385 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3386 ac_status=$?
3387 if test -s conftest.err; then
3388 sed '10a\
3389... rest of stderr output deleted ...
3390 10q' conftest.err >conftest.er1
3391 cat conftest.er1 >&5
3392 fi
3393 rm -f conftest.er1 conftest.err
3394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3395 test $ac_status = 0; }
3396done
3397
Jeff Thompson4f031642013-08-05 11:03:16 -07003398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399/* end confdefs.h. */
3400
3401int
3402main ()
3403{
3404
3405 ;
3406 return 0;
3407}
3408_ACEOF
3409ac_clean_files_save=$ac_clean_files
3410ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3411# Try to create an executable without -o first, disregard a.out.
3412# It will help us diagnose broken compilers, and finding out an intuition
3413# of exeext.
3414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3415$as_echo_n "checking whether the C compiler works... " >&6; }
3416ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3417
3418# The possible output files:
3419ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3420
3421ac_rmfiles=
3422for ac_file in $ac_files
3423do
3424 case $ac_file in
3425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3426 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3427 esac
3428done
3429rm -f $ac_rmfiles
3430
3431if { { ac_try="$ac_link_default"
3432case "(($ac_try" in
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3435esac
3436eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3437$as_echo "$ac_try_echo"; } >&5
3438 (eval "$ac_link_default") 2>&5
3439 ac_status=$?
3440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3441 test $ac_status = 0; }; then :
3442 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3443# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3444# in a Makefile. We should not override ac_cv_exeext if it was cached,
3445# so that the user can short-circuit this test for compilers unknown to
3446# Autoconf.
3447for ac_file in $ac_files ''
3448do
3449 test -f "$ac_file" || continue
3450 case $ac_file in
3451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3452 ;;
3453 [ab].out )
3454 # We found the default executable, but exeext='' is most
3455 # certainly right.
3456 break;;
3457 *.* )
3458 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3459 then :; else
3460 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3461 fi
3462 # We set ac_cv_exeext here because the later test for it is not
3463 # safe: cross compilers may not add the suffix if given an `-o'
3464 # argument, so we may need to know it at that point already.
3465 # Even if this section looks crufty: it has the advantage of
3466 # actually working.
3467 break;;
3468 * )
3469 break;;
3470 esac
3471done
3472test "$ac_cv_exeext" = no && ac_cv_exeext=
3473
3474else
3475 ac_file=''
3476fi
3477if test -z "$ac_file"; then :
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479$as_echo "no" >&6; }
3480$as_echo "$as_me: failed program was:" >&5
3481sed 's/^/| /' conftest.$ac_ext >&5
3482
3483{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3485as_fn_error 77 "C compiler cannot create executables
3486See \`config.log' for more details" "$LINENO" 5; }
3487else
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3489$as_echo "yes" >&6; }
3490fi
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3492$as_echo_n "checking for C compiler default output file name... " >&6; }
3493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3494$as_echo "$ac_file" >&6; }
3495ac_exeext=$ac_cv_exeext
3496
3497rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3498ac_clean_files=$ac_clean_files_save
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3500$as_echo_n "checking for suffix of executables... " >&6; }
3501if { { ac_try="$ac_link"
3502case "(($ac_try" in
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3505esac
3506eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507$as_echo "$ac_try_echo"; } >&5
3508 (eval "$ac_link") 2>&5
3509 ac_status=$?
3510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511 test $ac_status = 0; }; then :
3512 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3513# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3514# work properly (i.e., refer to `conftest.exe'), while it won't with
3515# `rm'.
3516for ac_file in conftest.exe conftest conftest.*; do
3517 test -f "$ac_file" || continue
3518 case $ac_file in
3519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3520 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3521 break;;
3522 * ) break;;
3523 esac
3524done
3525else
3526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3527$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3528as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3529See \`config.log' for more details" "$LINENO" 5; }
3530fi
3531rm -f conftest conftest$ac_cv_exeext
3532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3533$as_echo "$ac_cv_exeext" >&6; }
3534
3535rm -f conftest.$ac_ext
3536EXEEXT=$ac_cv_exeext
3537ac_exeext=$EXEEXT
3538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539/* end confdefs.h. */
3540#include <stdio.h>
3541int
3542main ()
3543{
3544FILE *f = fopen ("conftest.out", "w");
3545 return ferror (f) || fclose (f) != 0;
3546
3547 ;
3548 return 0;
3549}
3550_ACEOF
3551ac_clean_files="$ac_clean_files conftest.out"
3552# Check that the compiler produces executables we can run. If not, either
3553# the compiler is broken, or we cross compile.
3554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3555$as_echo_n "checking whether we are cross compiling... " >&6; }
3556if test "$cross_compiling" != yes; then
3557 { { ac_try="$ac_link"
3558case "(($ac_try" in
3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560 *) ac_try_echo=$ac_try;;
3561esac
3562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3563$as_echo "$ac_try_echo"; } >&5
3564 (eval "$ac_link") 2>&5
3565 ac_status=$?
3566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3567 test $ac_status = 0; }
3568 if { ac_try='./conftest$ac_cv_exeext'
3569 { { case "(($ac_try" in
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3572esac
3573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3574$as_echo "$ac_try_echo"; } >&5
3575 (eval "$ac_try") 2>&5
3576 ac_status=$?
3577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3578 test $ac_status = 0; }; }; then
3579 cross_compiling=no
3580 else
3581 if test "$cross_compiling" = maybe; then
3582 cross_compiling=yes
3583 else
3584 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3585$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3586as_fn_error $? "cannot run C compiled programs.
3587If you meant to cross compile, use \`--host'.
3588See \`config.log' for more details" "$LINENO" 5; }
3589 fi
3590 fi
3591fi
3592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3593$as_echo "$cross_compiling" >&6; }
3594
3595rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3596ac_clean_files=$ac_clean_files_save
3597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3598$as_echo_n "checking for suffix of object files... " >&6; }
3599if ${ac_cv_objext+:} false; then :
3600 $as_echo_n "(cached) " >&6
3601else
3602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603/* end confdefs.h. */
3604
3605int
3606main ()
3607{
3608
3609 ;
3610 return 0;
3611}
3612_ACEOF
3613rm -f conftest.o conftest.obj
3614if { { ac_try="$ac_compile"
3615case "(($ac_try" in
3616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617 *) ac_try_echo=$ac_try;;
3618esac
3619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3620$as_echo "$ac_try_echo"; } >&5
3621 (eval "$ac_compile") 2>&5
3622 ac_status=$?
3623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3624 test $ac_status = 0; }; then :
3625 for ac_file in conftest.o conftest.obj conftest.*; do
3626 test -f "$ac_file" || continue;
3627 case $ac_file in
3628 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3629 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3630 break;;
3631 esac
3632done
3633else
3634 $as_echo "$as_me: failed program was:" >&5
3635sed 's/^/| /' conftest.$ac_ext >&5
3636
3637{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3639as_fn_error $? "cannot compute suffix of object files: cannot compile
3640See \`config.log' for more details" "$LINENO" 5; }
3641fi
3642rm -f conftest.$ac_cv_objext conftest.$ac_ext
3643fi
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3645$as_echo "$ac_cv_objext" >&6; }
3646OBJEXT=$ac_cv_objext
3647ac_objext=$OBJEXT
Jeff Thompson36174062013-06-21 16:03:44 -07003648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3649$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3650if ${ac_cv_c_compiler_gnu+:} false; then :
3651 $as_echo_n "(cached) " >&6
3652else
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654/* end confdefs.h. */
3655
3656int
3657main ()
3658{
3659#ifndef __GNUC__
3660 choke me
3661#endif
3662
3663 ;
3664 return 0;
3665}
3666_ACEOF
3667if ac_fn_c_try_compile "$LINENO"; then :
3668 ac_compiler_gnu=yes
3669else
3670 ac_compiler_gnu=no
3671fi
3672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3673ac_cv_c_compiler_gnu=$ac_compiler_gnu
3674
3675fi
3676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3677$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3678if test $ac_compiler_gnu = yes; then
3679 GCC=yes
3680else
3681 GCC=
3682fi
3683ac_test_CFLAGS=${CFLAGS+set}
3684ac_save_CFLAGS=$CFLAGS
3685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3686$as_echo_n "checking whether $CC accepts -g... " >&6; }
3687if ${ac_cv_prog_cc_g+:} false; then :
3688 $as_echo_n "(cached) " >&6
3689else
3690 ac_save_c_werror_flag=$ac_c_werror_flag
3691 ac_c_werror_flag=yes
3692 ac_cv_prog_cc_g=no
3693 CFLAGS="-g"
3694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695/* end confdefs.h. */
3696
3697int
3698main ()
3699{
3700
3701 ;
3702 return 0;
3703}
3704_ACEOF
3705if ac_fn_c_try_compile "$LINENO"; then :
3706 ac_cv_prog_cc_g=yes
3707else
3708 CFLAGS=""
3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710/* end confdefs.h. */
3711
3712int
3713main ()
3714{
3715
3716 ;
3717 return 0;
3718}
3719_ACEOF
3720if ac_fn_c_try_compile "$LINENO"; then :
3721
3722else
3723 ac_c_werror_flag=$ac_save_c_werror_flag
3724 CFLAGS="-g"
3725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726/* end confdefs.h. */
3727
3728int
3729main ()
3730{
3731
3732 ;
3733 return 0;
3734}
3735_ACEOF
3736if ac_fn_c_try_compile "$LINENO"; then :
3737 ac_cv_prog_cc_g=yes
3738fi
3739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3740fi
3741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742fi
3743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744 ac_c_werror_flag=$ac_save_c_werror_flag
3745fi
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3747$as_echo "$ac_cv_prog_cc_g" >&6; }
3748if test "$ac_test_CFLAGS" = set; then
3749 CFLAGS=$ac_save_CFLAGS
3750elif test $ac_cv_prog_cc_g = yes; then
3751 if test "$GCC" = yes; then
3752 CFLAGS="-g -O2"
3753 else
3754 CFLAGS="-g"
3755 fi
3756else
3757 if test "$GCC" = yes; then
3758 CFLAGS="-O2"
3759 else
3760 CFLAGS=
3761 fi
3762fi
3763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3764$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3765if ${ac_cv_prog_cc_c89+:} false; then :
3766 $as_echo_n "(cached) " >&6
3767else
3768 ac_cv_prog_cc_c89=no
3769ac_save_CC=$CC
3770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771/* end confdefs.h. */
3772#include <stdarg.h>
3773#include <stdio.h>
3774struct stat;
3775/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3776struct buf { int x; };
3777FILE * (*rcsopen) (struct buf *, struct stat *, int);
3778static char *e (p, i)
3779 char **p;
3780 int i;
3781{
3782 return p[i];
3783}
3784static char *f (char * (*g) (char **, int), char **p, ...)
3785{
3786 char *s;
3787 va_list v;
3788 va_start (v,p);
3789 s = g (p, va_arg (v,int));
3790 va_end (v);
3791 return s;
3792}
3793
3794/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3795 function prototypes and stuff, but not '\xHH' hex character constants.
3796 These don't provoke an error unfortunately, instead are silently treated
3797 as 'x'. The following induces an error, until -std is added to get
3798 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3799 array size at least. It's necessary to write '\x00'==0 to get something
3800 that's true only with -std. */
3801int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3802
3803/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3804 inside strings and character constants. */
3805#define FOO(x) 'x'
3806int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3807
3808int test (int i, double x);
3809struct s1 {int (*f) (int a);};
3810struct s2 {int (*f) (double a);};
3811int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3812int argc;
3813char **argv;
3814int
3815main ()
3816{
3817return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3818 ;
3819 return 0;
3820}
3821_ACEOF
3822for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3823 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3824do
3825 CC="$ac_save_CC $ac_arg"
3826 if ac_fn_c_try_compile "$LINENO"; then :
3827 ac_cv_prog_cc_c89=$ac_arg
3828fi
3829rm -f core conftest.err conftest.$ac_objext
3830 test "x$ac_cv_prog_cc_c89" != "xno" && break
3831done
3832rm -f conftest.$ac_ext
3833CC=$ac_save_CC
3834
3835fi
3836# AC_CACHE_VAL
3837case "x$ac_cv_prog_cc_c89" in
3838 x)
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3840$as_echo "none needed" >&6; } ;;
3841 xno)
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3843$as_echo "unsupported" >&6; } ;;
3844 *)
3845 CC="$CC $ac_cv_prog_cc_c89"
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3847$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3848esac
3849if test "x$ac_cv_prog_cc_c89" != xno; then :
3850
3851fi
3852
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07003853ac_ext=c
3854ac_cpp='$CPP $CPPFLAGS'
3855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeff Thompson36174062013-06-21 16:03:44 -07003858
Jeff Thompsona04f23c2013-09-16 17:48:38 -07003859ac_ext=c
3860ac_cpp='$CPP $CPPFLAGS'
3861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3863ac_compiler_gnu=$ac_cv_c_compiler_gnu
3864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3865$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3866if ${am_cv_prog_cc_c_o+:} false; then :
3867 $as_echo_n "(cached) " >&6
3868else
3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870/* end confdefs.h. */
3871
3872int
3873main ()
3874{
3875
3876 ;
3877 return 0;
3878}
3879_ACEOF
3880 # Make sure it works both with $CC and with simple cc.
3881 # Following AC_PROG_CC_C_O, we do the test twice because some
3882 # compilers refuse to overwrite an existing .o file with -o,
3883 # though they will create one.
3884 am_cv_prog_cc_c_o=yes
3885 for am_i in 1 2; do
3886 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3887 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3888 ac_status=$?
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); } \
3891 && test -f conftest2.$ac_objext; then
3892 : OK
3893 else
3894 am_cv_prog_cc_c_o=no
3895 break
3896 fi
3897 done
3898 rm -f core conftest*
3899 unset am_i
3900fi
3901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3902$as_echo "$am_cv_prog_cc_c_o" >&6; }
3903if test "$am_cv_prog_cc_c_o" != yes; then
3904 # Losing compiler, so override with the script.
3905 # FIXME: It is wrong to rewrite CC.
3906 # But if we don't then we get into trouble of one sort or another.
3907 # A longer-term fix would be to have automake use am__CC in this case,
3908 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3909 CC="$am_aux_dir/compile $CC"
3910fi
3911ac_ext=c
3912ac_cpp='$CPP $CPPFLAGS'
3913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3915ac_compiler_gnu=$ac_cv_c_compiler_gnu
3916
3917
Jeff Thompson36174062013-06-21 16:03:44 -07003918depcc="$CC" am_compiler_list=
3919
3920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3921$as_echo_n "checking dependency style of $depcc... " >&6; }
3922if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3923 $as_echo_n "(cached) " >&6
3924else
3925 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3926 # We make a subdir and do the tests there. Otherwise we can end up
3927 # making bogus files that we don't know about and never remove. For
3928 # instance it was reported that on HP-UX the gcc test will end up
3929 # making a dummy file named 'D' -- because '-MD' means "put the output
3930 # in D".
3931 rm -rf conftest.dir
3932 mkdir conftest.dir
3933 # Copy depcomp to subdir because otherwise we won't find it if we're
3934 # using a relative directory.
3935 cp "$am_depcomp" conftest.dir
3936 cd conftest.dir
3937 # We will build objects and dependencies in a subdirectory because
3938 # it helps to detect inapplicable dependency modes. For instance
3939 # both Tru64's cc and ICC support -MD to output dependencies as a
3940 # side effect of compilation, but ICC will put the dependencies in
3941 # the current directory while Tru64 will put them in the object
3942 # directory.
3943 mkdir sub
3944
3945 am_cv_CC_dependencies_compiler_type=none
3946 if test "$am_compiler_list" = ""; then
3947 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3948 fi
3949 am__universal=false
3950 case " $depcc " in #(
3951 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3952 esac
3953
3954 for depmode in $am_compiler_list; do
3955 # Setup a source with many dependencies, because some compilers
3956 # like to wrap large dependency lists on column 80 (with \), and
3957 # we should not choose a depcomp mode which is confused by this.
3958 #
3959 # We need to recreate these files for each test, as the compiler may
3960 # overwrite some of them when testing with obscure command lines.
3961 # This happens at least with the AIX C compiler.
3962 : > sub/conftest.c
3963 for i in 1 2 3 4 5 6; do
3964 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3965 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3966 # Solaris 10 /bin/sh.
3967 echo '/* dummy */' > sub/conftst$i.h
3968 done
3969 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3970
3971 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3972 # mode. It turns out that the SunPro C++ compiler does not properly
3973 # handle '-M -o', and we need to detect this. Also, some Intel
3974 # versions had trouble with output in subdirs.
3975 am__obj=sub/conftest.${OBJEXT-o}
3976 am__minus_obj="-o $am__obj"
3977 case $depmode in
3978 gcc)
3979 # This depmode causes a compiler race in universal mode.
3980 test "$am__universal" = false || continue
3981 ;;
3982 nosideeffect)
3983 # After this tag, mechanisms are not by side-effect, so they'll
3984 # only be used when explicitly requested.
3985 if test "x$enable_dependency_tracking" = xyes; then
3986 continue
3987 else
3988 break
3989 fi
3990 ;;
3991 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3992 # This compiler won't grok '-c -o', but also, the minuso test has
3993 # not run yet. These depmodes are late enough in the game, and
3994 # so weak that their functioning should not be impacted.
3995 am__obj=conftest.${OBJEXT-o}
3996 am__minus_obj=
3997 ;;
3998 none) break ;;
3999 esac
4000 if depmode=$depmode \
4001 source=sub/conftest.c object=$am__obj \
4002 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4003 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4004 >/dev/null 2>conftest.err &&
4005 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4006 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4007 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4008 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4009 # icc doesn't choke on unknown options, it will just issue warnings
4010 # or remarks (even with -Werror). So we grep stderr for any message
4011 # that says an option was ignored or not supported.
4012 # When given -MP, icc 7.0 and 7.1 complain thusly:
4013 # icc: Command line warning: ignoring option '-M'; no argument required
4014 # The diagnosis changed in icc 8.0:
4015 # icc: Command line remark: option '-MP' not supported
4016 if (grep 'ignoring option' conftest.err ||
4017 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4018 am_cv_CC_dependencies_compiler_type=$depmode
4019 break
4020 fi
4021 fi
4022 done
4023
4024 cd ..
4025 rm -rf conftest.dir
4026else
4027 am_cv_CC_dependencies_compiler_type=none
4028fi
4029
4030fi
4031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4032$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4033CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4034
4035 if
4036 test "x$enable_dependency_tracking" != xno \
4037 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4038 am__fastdepCC_TRUE=
4039 am__fastdepCC_FALSE='#'
4040else
4041 am__fastdepCC_TRUE='#'
4042 am__fastdepCC_FALSE=
4043fi
4044
4045
Jeff Thompson36174062013-06-21 16:03:44 -07004046
4047if test -n "$ac_tool_prefix"; then
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004048 for ac_prog in ar lib "link -lib"
Jeff Thompson36174062013-06-21 16:03:44 -07004049 do
4050 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4051set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4053$as_echo_n "checking for $ac_word... " >&6; }
4054if ${ac_cv_prog_AR+:} false; then :
4055 $as_echo_n "(cached) " >&6
4056else
4057 if test -n "$AR"; then
4058 ac_cv_prog_AR="$AR" # Let the user override the test.
4059else
4060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061for as_dir in $PATH
4062do
4063 IFS=$as_save_IFS
4064 test -z "$as_dir" && as_dir=.
4065 for ac_exec_ext in '' $ac_executable_extensions; do
4066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4067 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4069 break 2
4070 fi
4071done
4072 done
4073IFS=$as_save_IFS
4074
4075fi
4076fi
4077AR=$ac_cv_prog_AR
4078if test -n "$AR"; then
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4080$as_echo "$AR" >&6; }
4081else
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4083$as_echo "no" >&6; }
4084fi
4085
4086
4087 test -n "$AR" && break
4088 done
4089fi
4090if test -z "$AR"; then
4091 ac_ct_AR=$AR
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004092 for ac_prog in ar lib "link -lib"
Jeff Thompson36174062013-06-21 16:03:44 -07004093do
4094 # Extract the first word of "$ac_prog", so it can be a program name with args.
4095set dummy $ac_prog; ac_word=$2
4096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4097$as_echo_n "checking for $ac_word... " >&6; }
4098if ${ac_cv_prog_ac_ct_AR+:} false; then :
4099 $as_echo_n "(cached) " >&6
4100else
4101 if test -n "$ac_ct_AR"; then
4102 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4103else
4104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105for as_dir in $PATH
4106do
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4111 ac_cv_prog_ac_ct_AR="$ac_prog"
4112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4113 break 2
4114 fi
4115done
4116 done
4117IFS=$as_save_IFS
4118
4119fi
4120fi
4121ac_ct_AR=$ac_cv_prog_ac_ct_AR
4122if test -n "$ac_ct_AR"; then
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4124$as_echo "$ac_ct_AR" >&6; }
4125else
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127$as_echo "no" >&6; }
4128fi
4129
4130
4131 test -n "$ac_ct_AR" && break
4132done
4133
4134 if test "x$ac_ct_AR" = x; then
4135 AR="false"
4136 else
4137 case $cross_compiling:$ac_tool_warned in
4138yes:)
4139{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4140$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4141ac_tool_warned=yes ;;
4142esac
4143 AR=$ac_ct_AR
4144 fi
4145fi
4146
4147: ${AR=ar}
Jeff Thompson36174062013-06-21 16:03:44 -07004148
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4150$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4151if ${am_cv_ar_interface+:} false; then :
Jeff Thompson36174062013-06-21 16:03:44 -07004152 $as_echo_n "(cached) " >&6
4153else
Jeff Thompsona04f23c2013-09-16 17:48:38 -07004154 ac_ext=c
4155ac_cpp='$CPP $CPPFLAGS'
4156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4158ac_compiler_gnu=$ac_cv_c_compiler_gnu
4159
4160 am_cv_ar_interface=ar
Jeff Thompson36174062013-06-21 16:03:44 -07004161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162/* end confdefs.h. */
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004163int some_variable = 0;
Jeff Thompson36174062013-06-21 16:03:44 -07004164_ACEOF
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004165if ac_fn_c_try_compile "$LINENO"; then :
4166 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4168 (eval $am_ar_try) 2>&5
Jeff Thompson36174062013-06-21 16:03:44 -07004169 ac_status=$?
4170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4171 test $ac_status = 0; }
4172 if test "$ac_status" -eq 0; then
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004173 am_cv_ar_interface=ar
4174 else
4175 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4177 (eval $am_ar_try) 2>&5
Jeff Thompson36174062013-06-21 16:03:44 -07004178 ac_status=$?
4179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4180 test $ac_status = 0; }
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004181 if test "$ac_status" -eq 0; then
4182 am_cv_ar_interface=lib
4183 else
4184 am_cv_ar_interface=unknown
Jeff Thompson36174062013-06-21 16:03:44 -07004185 fi
4186 fi
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004187 rm -f conftest.lib libconftest.a
Jeff Thompson36174062013-06-21 16:03:44 -07004188
4189fi
4190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jeff Thompsona04f23c2013-09-16 17:48:38 -07004191 ac_ext=c
4192ac_cpp='$CPP $CPPFLAGS'
4193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeff Thompson36174062013-06-21 16:03:44 -07004196
4197fi
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4199$as_echo "$am_cv_ar_interface" >&6; }
Jeff Thompson36174062013-06-21 16:03:44 -07004200
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004201case $am_cv_ar_interface in
4202ar)
Jeff Thompson36174062013-06-21 16:03:44 -07004203 ;;
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004204lib)
4205 # Microsoft lib, so override with the ar-lib wrapper script.
4206 # FIXME: It is wrong to rewrite AR.
4207 # But if we don't then we get into trouble of one sort or another.
4208 # A longer-term fix would be to have automake use am__AR in this case,
4209 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4210 # similar.
4211 AR="$am_aux_dir/ar-lib $AR"
Jeff Thompson36174062013-06-21 16:03:44 -07004212 ;;
Jeff Thompson3b3aabf2013-06-21 16:50:20 -07004213unknown)
4214 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
Jeff Thompson36174062013-06-21 16:03:44 -07004215 ;;
4216esac
4217
Jeff Thompson4f031642013-08-05 11:03:16 -07004218case `pwd` in
4219 *\ * | *\ *)
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4221$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4222esac
4223
4224
4225
4226macro_version='2.4.2'
4227macro_revision='1.3337'
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241ltmain="$ac_aux_dir/ltmain.sh"
4242
4243# Make sure we can run config.sub.
4244$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4245 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4246
4247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4248$as_echo_n "checking build system type... " >&6; }
4249if ${ac_cv_build+:} false; then :
4250 $as_echo_n "(cached) " >&6
4251else
4252 ac_build_alias=$build_alias
4253test "x$ac_build_alias" = x &&
4254 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4255test "x$ac_build_alias" = x &&
4256 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4257ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4258 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4259
4260fi
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4262$as_echo "$ac_cv_build" >&6; }
4263case $ac_cv_build in
4264*-*-*) ;;
4265*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4266esac
4267build=$ac_cv_build
4268ac_save_IFS=$IFS; IFS='-'
4269set x $ac_cv_build
4270shift
4271build_cpu=$1
4272build_vendor=$2
4273shift; shift
4274# Remember, the first character of IFS is used to create $*,
4275# except with old shells:
4276build_os=$*
4277IFS=$ac_save_IFS
4278case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4279
4280
4281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4282$as_echo_n "checking host system type... " >&6; }
4283if ${ac_cv_host+:} false; then :
4284 $as_echo_n "(cached) " >&6
4285else
4286 if test "x$host_alias" = x; then
4287 ac_cv_host=$ac_cv_build
4288else
4289 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4290 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4291fi
4292
4293fi
4294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4295$as_echo "$ac_cv_host" >&6; }
4296case $ac_cv_host in
4297*-*-*) ;;
4298*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4299esac
4300host=$ac_cv_host
4301ac_save_IFS=$IFS; IFS='-'
4302set x $ac_cv_host
4303shift
4304host_cpu=$1
4305host_vendor=$2
4306shift; shift
4307# Remember, the first character of IFS is used to create $*,
4308# except with old shells:
4309host_os=$*
4310IFS=$ac_save_IFS
4311case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4312
4313
4314# Backslashify metacharacters that are still active within
4315# double-quoted strings.
4316sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4317
4318# Same as above, but do not quote variable references.
4319double_quote_subst='s/\(["`\\]\)/\\\1/g'
4320
4321# Sed substitution to delay expansion of an escaped shell variable in a
4322# double_quote_subst'ed string.
4323delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4324
4325# Sed substitution to delay expansion of an escaped single quote.
4326delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4327
4328# Sed substitution to avoid accidental globbing in evaled expressions
4329no_glob_subst='s/\*/\\\*/g'
4330
4331ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4332ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4333ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4334
4335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4336$as_echo_n "checking how to print strings... " >&6; }
4337# Test print first, because it will be a builtin if present.
4338if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4339 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4340 ECHO='print -r --'
4341elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4342 ECHO='printf %s\n'
4343else
4344 # Use this function as a fallback that always works.
4345 func_fallback_echo ()
4346 {
4347 eval 'cat <<_LTECHO_EOF
4348$1
4349_LTECHO_EOF'
4350 }
4351 ECHO='func_fallback_echo'
4352fi
4353
4354# func_echo_all arg...
4355# Invoke $ECHO with all args, space-separated.
4356func_echo_all ()
4357{
4358 $ECHO ""
4359}
4360
4361case "$ECHO" in
4362 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4363$as_echo "printf" >&6; } ;;
4364 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4365$as_echo "print -r" >&6; } ;;
4366 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4367$as_echo "cat" >&6; } ;;
4368esac
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4384$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4385if ${ac_cv_path_SED+:} false; then :
4386 $as_echo_n "(cached) " >&6
4387else
4388 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4389 for ac_i in 1 2 3 4 5 6 7; do
4390 ac_script="$ac_script$as_nl$ac_script"
4391 done
4392 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4393 { ac_script=; unset ac_script;}
4394 if test -z "$SED"; then
4395 ac_path_SED_found=false
4396 # Loop through the user's path and test for each of PROGNAME-LIST
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398for as_dir in $PATH
4399do
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
4402 for ac_prog in sed gsed; do
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4405 as_fn_executable_p "$ac_path_SED" || continue
4406# Check for GNU ac_path_SED and select it if it is found.
4407 # Check for GNU $ac_path_SED
4408case `"$ac_path_SED" --version 2>&1` in
4409*GNU*)
4410 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4411*)
4412 ac_count=0
4413 $as_echo_n 0123456789 >"conftest.in"
4414 while :
4415 do
4416 cat "conftest.in" "conftest.in" >"conftest.tmp"
4417 mv "conftest.tmp" "conftest.in"
4418 cp "conftest.in" "conftest.nl"
4419 $as_echo '' >> "conftest.nl"
4420 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4421 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4422 as_fn_arith $ac_count + 1 && ac_count=$as_val
4423 if test $ac_count -gt ${ac_path_SED_max-0}; then
4424 # Best one so far, save it but keep looking for a better one
4425 ac_cv_path_SED="$ac_path_SED"
4426 ac_path_SED_max=$ac_count
4427 fi
4428 # 10*(2^10) chars as input seems more than enough
4429 test $ac_count -gt 10 && break
4430 done
4431 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4432esac
4433
4434 $ac_path_SED_found && break 3
4435 done
4436 done
4437 done
4438IFS=$as_save_IFS
4439 if test -z "$ac_cv_path_SED"; then
4440 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4441 fi
4442else
4443 ac_cv_path_SED=$SED
4444fi
4445
4446fi
4447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4448$as_echo "$ac_cv_path_SED" >&6; }
4449 SED="$ac_cv_path_SED"
4450 rm -f conftest.sed
4451
4452test -z "$SED" && SED=sed
4453Xsed="$SED -e 1s/^X//"
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4466$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4467if ${ac_cv_path_GREP+:} false; then :
4468 $as_echo_n "(cached) " >&6
4469else
4470 if test -z "$GREP"; then
4471 ac_path_GREP_found=false
4472 # Loop through the user's path and test for each of PROGNAME-LIST
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4475do
4476 IFS=$as_save_IFS
4477 test -z "$as_dir" && as_dir=.
4478 for ac_prog in grep ggrep; do
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4481 as_fn_executable_p "$ac_path_GREP" || continue
4482# Check for GNU ac_path_GREP and select it if it is found.
4483 # Check for GNU $ac_path_GREP
4484case `"$ac_path_GREP" --version 2>&1` in
4485*GNU*)
4486 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4487*)
4488 ac_count=0
4489 $as_echo_n 0123456789 >"conftest.in"
4490 while :
4491 do
4492 cat "conftest.in" "conftest.in" >"conftest.tmp"
4493 mv "conftest.tmp" "conftest.in"
4494 cp "conftest.in" "conftest.nl"
4495 $as_echo 'GREP' >> "conftest.nl"
4496 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4497 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4498 as_fn_arith $ac_count + 1 && ac_count=$as_val
4499 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4500 # Best one so far, save it but keep looking for a better one
4501 ac_cv_path_GREP="$ac_path_GREP"
4502 ac_path_GREP_max=$ac_count
4503 fi
4504 # 10*(2^10) chars as input seems more than enough
4505 test $ac_count -gt 10 && break
4506 done
4507 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4508esac
4509
4510 $ac_path_GREP_found && break 3
4511 done
4512 done
4513 done
4514IFS=$as_save_IFS
4515 if test -z "$ac_cv_path_GREP"; then
4516 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4517 fi
4518else
4519 ac_cv_path_GREP=$GREP
4520fi
4521
4522fi
4523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4524$as_echo "$ac_cv_path_GREP" >&6; }
4525 GREP="$ac_cv_path_GREP"
4526
4527
4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4529$as_echo_n "checking for egrep... " >&6; }
4530if ${ac_cv_path_EGREP+:} false; then :
4531 $as_echo_n "(cached) " >&6
4532else
4533 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4534 then ac_cv_path_EGREP="$GREP -E"
4535 else
4536 if test -z "$EGREP"; then
4537 ac_path_EGREP_found=false
4538 # Loop through the user's path and test for each of PROGNAME-LIST
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4541do
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
4544 for ac_prog in egrep; do
4545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4547 as_fn_executable_p "$ac_path_EGREP" || continue
4548# Check for GNU ac_path_EGREP and select it if it is found.
4549 # Check for GNU $ac_path_EGREP
4550case `"$ac_path_EGREP" --version 2>&1` in
4551*GNU*)
4552 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4553*)
4554 ac_count=0
4555 $as_echo_n 0123456789 >"conftest.in"
4556 while :
4557 do
4558 cat "conftest.in" "conftest.in" >"conftest.tmp"
4559 mv "conftest.tmp" "conftest.in"
4560 cp "conftest.in" "conftest.nl"
4561 $as_echo 'EGREP' >> "conftest.nl"
4562 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4563 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4564 as_fn_arith $ac_count + 1 && ac_count=$as_val
4565 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4566 # Best one so far, save it but keep looking for a better one
4567 ac_cv_path_EGREP="$ac_path_EGREP"
4568 ac_path_EGREP_max=$ac_count
4569 fi
4570 # 10*(2^10) chars as input seems more than enough
4571 test $ac_count -gt 10 && break
4572 done
4573 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4574esac
4575
4576 $ac_path_EGREP_found && break 3
4577 done
4578 done
4579 done
4580IFS=$as_save_IFS
4581 if test -z "$ac_cv_path_EGREP"; then
4582 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4583 fi
4584else
4585 ac_cv_path_EGREP=$EGREP
4586fi
4587
4588 fi
4589fi
4590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4591$as_echo "$ac_cv_path_EGREP" >&6; }
4592 EGREP="$ac_cv_path_EGREP"
4593
4594
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4596$as_echo_n "checking for fgrep... " >&6; }
4597if ${ac_cv_path_FGREP+:} false; then :
4598 $as_echo_n "(cached) " >&6
4599else
4600 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4601 then ac_cv_path_FGREP="$GREP -F"
4602 else
4603 if test -z "$FGREP"; then
4604 ac_path_FGREP_found=false
4605 # Loop through the user's path and test for each of PROGNAME-LIST
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4608do
4609 IFS=$as_save_IFS
4610 test -z "$as_dir" && as_dir=.
4611 for ac_prog in fgrep; do
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4614 as_fn_executable_p "$ac_path_FGREP" || continue
4615# Check for GNU ac_path_FGREP and select it if it is found.
4616 # Check for GNU $ac_path_FGREP
4617case `"$ac_path_FGREP" --version 2>&1` in
4618*GNU*)
4619 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4620*)
4621 ac_count=0
4622 $as_echo_n 0123456789 >"conftest.in"
4623 while :
4624 do
4625 cat "conftest.in" "conftest.in" >"conftest.tmp"
4626 mv "conftest.tmp" "conftest.in"
4627 cp "conftest.in" "conftest.nl"
4628 $as_echo 'FGREP' >> "conftest.nl"
4629 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4630 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4631 as_fn_arith $ac_count + 1 && ac_count=$as_val
4632 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4633 # Best one so far, save it but keep looking for a better one
4634 ac_cv_path_FGREP="$ac_path_FGREP"
4635 ac_path_FGREP_max=$ac_count
4636 fi
4637 # 10*(2^10) chars as input seems more than enough
4638 test $ac_count -gt 10 && break
4639 done
4640 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4641esac
4642
4643 $ac_path_FGREP_found && break 3
4644 done
4645 done
4646 done
4647IFS=$as_save_IFS
4648 if test -z "$ac_cv_path_FGREP"; then
4649 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4650 fi
4651else
4652 ac_cv_path_FGREP=$FGREP
4653fi
4654
4655 fi
4656fi
4657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4658$as_echo "$ac_cv_path_FGREP" >&6; }
4659 FGREP="$ac_cv_path_FGREP"
4660
4661
4662test -z "$GREP" && GREP=grep
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682# Check whether --with-gnu-ld was given.
4683if test "${with_gnu_ld+set}" = set; then :
4684 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4685else
4686 with_gnu_ld=no
4687fi
4688
4689ac_prog=ld
4690if test "$GCC" = yes; then
4691 # Check if gcc -print-prog-name=ld gives a path.
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4693$as_echo_n "checking for ld used by $CC... " >&6; }
4694 case $host in
4695 *-*-mingw*)
4696 # gcc leaves a trailing carriage return which upsets mingw
4697 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4698 *)
4699 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4700 esac
4701 case $ac_prog in
4702 # Accept absolute paths.
4703 [\\/]* | ?:[\\/]*)
4704 re_direlt='/[^/][^/]*/\.\./'
4705 # Canonicalize the pathname of ld
4706 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4707 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4708 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4709 done
4710 test -z "$LD" && LD="$ac_prog"
4711 ;;
4712 "")
4713 # If it fails, then pretend we aren't using GCC.
4714 ac_prog=ld
4715 ;;
4716 *)
4717 # If it is relative, then search for the first ld in PATH.
4718 with_gnu_ld=unknown
4719 ;;
4720 esac
4721elif test "$with_gnu_ld" = yes; then
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4723$as_echo_n "checking for GNU ld... " >&6; }
4724else
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4726$as_echo_n "checking for non-GNU ld... " >&6; }
4727fi
4728if ${lt_cv_path_LD+:} false; then :
4729 $as_echo_n "(cached) " >&6
4730else
4731 if test -z "$LD"; then
4732 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4733 for ac_dir in $PATH; do
4734 IFS="$lt_save_ifs"
4735 test -z "$ac_dir" && ac_dir=.
4736 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4737 lt_cv_path_LD="$ac_dir/$ac_prog"
4738 # Check to see if the program is GNU ld. I'd rather use --version,
4739 # but apparently some variants of GNU ld only accept -v.
4740 # Break only if it was the GNU/non-GNU ld that we prefer.
4741 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4742 *GNU* | *'with BFD'*)
4743 test "$with_gnu_ld" != no && break
4744 ;;
4745 *)
4746 test "$with_gnu_ld" != yes && break
4747 ;;
4748 esac
4749 fi
4750 done
4751 IFS="$lt_save_ifs"
4752else
4753 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4754fi
4755fi
4756
4757LD="$lt_cv_path_LD"
4758if test -n "$LD"; then
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4760$as_echo "$LD" >&6; }
4761else
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763$as_echo "no" >&6; }
4764fi
4765test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4767$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4768if ${lt_cv_prog_gnu_ld+:} false; then :
4769 $as_echo_n "(cached) " >&6
4770else
4771 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4772case `$LD -v 2>&1 </dev/null` in
4773*GNU* | *'with BFD'*)
4774 lt_cv_prog_gnu_ld=yes
4775 ;;
4776*)
4777 lt_cv_prog_gnu_ld=no
4778 ;;
4779esac
4780fi
4781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4782$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4783with_gnu_ld=$lt_cv_prog_gnu_ld
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4794$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4795if ${lt_cv_path_NM+:} false; then :
4796 $as_echo_n "(cached) " >&6
4797else
4798 if test -n "$NM"; then
4799 # Let the user override the test.
4800 lt_cv_path_NM="$NM"
4801else
4802 lt_nm_to_check="${ac_tool_prefix}nm"
4803 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4804 lt_nm_to_check="$lt_nm_to_check nm"
4805 fi
4806 for lt_tmp_nm in $lt_nm_to_check; do
4807 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4808 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4809 IFS="$lt_save_ifs"
4810 test -z "$ac_dir" && ac_dir=.
4811 tmp_nm="$ac_dir/$lt_tmp_nm"
4812 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4813 # Check to see if the nm accepts a BSD-compat flag.
4814 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4815 # nm: unknown option "B" ignored
4816 # Tru64's nm complains that /dev/null is an invalid object file
4817 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4818 */dev/null* | *'Invalid file or object type'*)
4819 lt_cv_path_NM="$tmp_nm -B"
4820 break
4821 ;;
4822 *)
4823 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4824 */dev/null*)
4825 lt_cv_path_NM="$tmp_nm -p"
4826 break
4827 ;;
4828 *)
4829 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4830 continue # so that we can try to find one that supports BSD flags
4831 ;;
4832 esac
4833 ;;
4834 esac
4835 fi
4836 done
4837 IFS="$lt_save_ifs"
4838 done
4839 : ${lt_cv_path_NM=no}
4840fi
4841fi
4842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4843$as_echo "$lt_cv_path_NM" >&6; }
4844if test "$lt_cv_path_NM" != "no"; then
4845 NM="$lt_cv_path_NM"
4846else
4847 # Didn't find any BSD compatible name lister, look for dumpbin.
4848 if test -n "$DUMPBIN"; then :
4849 # Let the user override the test.
4850 else
4851 if test -n "$ac_tool_prefix"; then
4852 for ac_prog in dumpbin "link -dump"
4853 do
4854 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4855set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857$as_echo_n "checking for $ac_word... " >&6; }
4858if ${ac_cv_prog_DUMPBIN+:} false; then :
4859 $as_echo_n "(cached) " >&6
4860else
4861 if test -n "$DUMPBIN"; then
4862 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4863else
4864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865for as_dir in $PATH
4866do
4867 IFS=$as_save_IFS
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4871 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 break 2
4874 fi
4875done
4876 done
4877IFS=$as_save_IFS
4878
4879fi
4880fi
4881DUMPBIN=$ac_cv_prog_DUMPBIN
4882if test -n "$DUMPBIN"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4884$as_echo "$DUMPBIN" >&6; }
4885else
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887$as_echo "no" >&6; }
4888fi
4889
4890
4891 test -n "$DUMPBIN" && break
4892 done
4893fi
4894if test -z "$DUMPBIN"; then
4895 ac_ct_DUMPBIN=$DUMPBIN
4896 for ac_prog in dumpbin "link -dump"
4897do
4898 # Extract the first word of "$ac_prog", so it can be a program name with args.
4899set dummy $ac_prog; ac_word=$2
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4901$as_echo_n "checking for $ac_word... " >&6; }
4902if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4903 $as_echo_n "(cached) " >&6
4904else
4905 if test -n "$ac_ct_DUMPBIN"; then
4906 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4907else
4908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909for as_dir in $PATH
4910do
4911 IFS=$as_save_IFS
4912 test -z "$as_dir" && as_dir=.
4913 for ac_exec_ext in '' $ac_executable_extensions; do
4914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4915 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4917 break 2
4918 fi
4919done
4920 done
4921IFS=$as_save_IFS
4922
4923fi
4924fi
4925ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4926if test -n "$ac_ct_DUMPBIN"; then
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4928$as_echo "$ac_ct_DUMPBIN" >&6; }
4929else
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4931$as_echo "no" >&6; }
4932fi
4933
4934
4935 test -n "$ac_ct_DUMPBIN" && break
4936done
4937
4938 if test "x$ac_ct_DUMPBIN" = x; then
4939 DUMPBIN=":"
4940 else
4941 case $cross_compiling:$ac_tool_warned in
4942yes:)
4943{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4944$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4945ac_tool_warned=yes ;;
4946esac
4947 DUMPBIN=$ac_ct_DUMPBIN
4948 fi
4949fi
4950
4951 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4952 *COFF*)
4953 DUMPBIN="$DUMPBIN -symbols"
4954 ;;
4955 *)
4956 DUMPBIN=:
4957 ;;
4958 esac
4959 fi
4960
4961 if test "$DUMPBIN" != ":"; then
4962 NM="$DUMPBIN"
4963 fi
4964fi
4965test -z "$NM" && NM=nm
4966
4967
4968
4969
4970
4971
4972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4973$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4974if ${lt_cv_nm_interface+:} false; then :
4975 $as_echo_n "(cached) " >&6
4976else
4977 lt_cv_nm_interface="BSD nm"
4978 echo "int some_variable = 0;" > conftest.$ac_ext
4979 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4980 (eval "$ac_compile" 2>conftest.err)
4981 cat conftest.err >&5
4982 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4983 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4984 cat conftest.err >&5
4985 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4986 cat conftest.out >&5
4987 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4988 lt_cv_nm_interface="MS dumpbin"
4989 fi
4990 rm -f conftest*
4991fi
4992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4993$as_echo "$lt_cv_nm_interface" >&6; }
4994
4995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4996$as_echo_n "checking whether ln -s works... " >&6; }
4997LN_S=$as_ln_s
4998if test "$LN_S" = "ln -s"; then
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5000$as_echo "yes" >&6; }
5001else
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5003$as_echo "no, using $LN_S" >&6; }
5004fi
5005
5006# find the maximum length of command line arguments
5007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5008$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5009if ${lt_cv_sys_max_cmd_len+:} false; then :
5010 $as_echo_n "(cached) " >&6
5011else
5012 i=0
5013 teststring="ABCD"
5014
5015 case $build_os in
5016 msdosdjgpp*)
5017 # On DJGPP, this test can blow up pretty badly due to problems in libc
5018 # (any single argument exceeding 2000 bytes causes a buffer overrun
5019 # during glob expansion). Even if it were fixed, the result of this
5020 # check would be larger than it should be.
5021 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5022 ;;
5023
5024 gnu*)
5025 # Under GNU Hurd, this test is not required because there is
5026 # no limit to the length of command line arguments.
5027 # Libtool will interpret -1 as no limit whatsoever
5028 lt_cv_sys_max_cmd_len=-1;
5029 ;;
5030
5031 cygwin* | mingw* | cegcc*)
5032 # On Win9x/ME, this test blows up -- it succeeds, but takes
5033 # about 5 minutes as the teststring grows exponentially.
5034 # Worse, since 9x/ME are not pre-emptively multitasking,
5035 # you end up with a "frozen" computer, even though with patience
5036 # the test eventually succeeds (with a max line length of 256k).
5037 # Instead, let's just punt: use the minimum linelength reported by
5038 # all of the supported platforms: 8192 (on NT/2K/XP).
5039 lt_cv_sys_max_cmd_len=8192;
5040 ;;
5041
5042 mint*)
5043 # On MiNT this can take a long time and run out of memory.
5044 lt_cv_sys_max_cmd_len=8192;
5045 ;;
5046
5047 amigaos*)
5048 # On AmigaOS with pdksh, this test takes hours, literally.
5049 # So we just punt and use a minimum line length of 8192.
5050 lt_cv_sys_max_cmd_len=8192;
5051 ;;
5052
5053 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5054 # This has been around since 386BSD, at least. Likely further.
5055 if test -x /sbin/sysctl; then
5056 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5057 elif test -x /usr/sbin/sysctl; then
5058 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5059 else
5060 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5061 fi
5062 # And add a safety zone
5063 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5064 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5065 ;;
5066
5067 interix*)
5068 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5069 lt_cv_sys_max_cmd_len=196608
5070 ;;
5071
5072 os2*)
5073 # The test takes a long time on OS/2.
5074 lt_cv_sys_max_cmd_len=8192
5075 ;;
5076
5077 osf*)
5078 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5079 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5080 # nice to cause kernel panics so lets avoid the loop below.
5081 # First set a reasonable default.
5082 lt_cv_sys_max_cmd_len=16384
5083 #
5084 if test -x /sbin/sysconfig; then
5085 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5086 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5087 esac
5088 fi
5089 ;;
5090 sco3.2v5*)
5091 lt_cv_sys_max_cmd_len=102400
5092 ;;
5093 sysv5* | sco5v6* | sysv4.2uw2*)
5094 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5095 if test -n "$kargmax"; then
5096 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5097 else
5098 lt_cv_sys_max_cmd_len=32768
5099 fi
5100 ;;
5101 *)
5102 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5103 if test -n "$lt_cv_sys_max_cmd_len"; then
5104 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5105 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5106 else
5107 # Make teststring a little bigger before we do anything with it.
5108 # a 1K string should be a reasonable start.
5109 for i in 1 2 3 4 5 6 7 8 ; do
5110 teststring=$teststring$teststring
5111 done
5112 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5113 # If test is not a shell built-in, we'll probably end up computing a
5114 # maximum length that is only half of the actual maximum length, but
5115 # we can't tell.
5116 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5117 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5118 test $i != 17 # 1/2 MB should be enough
5119 do
5120 i=`expr $i + 1`
5121 teststring=$teststring$teststring
5122 done
5123 # Only check the string length outside the loop.
5124 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5125 teststring=
5126 # Add a significant safety factor because C++ compilers can tack on
5127 # massive amounts of additional arguments before passing them to the
5128 # linker. It appears as though 1/2 is a usable value.
5129 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5130 fi
5131 ;;
5132 esac
5133
5134fi
5135
5136if test -n $lt_cv_sys_max_cmd_len ; then
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5138$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5139else
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5141$as_echo "none" >&6; }
5142fi
5143max_cmd_len=$lt_cv_sys_max_cmd_len
5144
5145
5146
5147
5148
5149
5150: ${CP="cp -f"}
5151: ${MV="mv -f"}
5152: ${RM="rm -f"}
5153
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5155$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5156# Try some XSI features
5157xsi_shell=no
5158( _lt_dummy="a/b/c"
5159 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5160 = c,a/b,b/c, \
5161 && eval 'test $(( 1 + 1 )) -eq 2 \
5162 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5163 && xsi_shell=yes
5164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5165$as_echo "$xsi_shell" >&6; }
5166
5167
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5169$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5170lt_shell_append=no
5171( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5172 >/dev/null 2>&1 \
5173 && lt_shell_append=yes
5174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5175$as_echo "$lt_shell_append" >&6; }
5176
5177
5178if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5179 lt_unset=unset
5180else
5181 lt_unset=false
5182fi
5183
5184
5185
5186
5187
5188# test EBCDIC or ASCII
5189case `echo X|tr X '\101'` in
5190 A) # ASCII based system
5191 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5192 lt_SP2NL='tr \040 \012'
5193 lt_NL2SP='tr \015\012 \040\040'
5194 ;;
5195 *) # EBCDIC based system
5196 lt_SP2NL='tr \100 \n'
5197 lt_NL2SP='tr \r\n \100\100'
5198 ;;
5199esac
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5210$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5211if ${lt_cv_to_host_file_cmd+:} false; then :
5212 $as_echo_n "(cached) " >&6
5213else
5214 case $host in
5215 *-*-mingw* )
5216 case $build in
5217 *-*-mingw* ) # actually msys
5218 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5219 ;;
5220 *-*-cygwin* )
5221 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5222 ;;
5223 * ) # otherwise, assume *nix
5224 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5225 ;;
5226 esac
5227 ;;
5228 *-*-cygwin* )
5229 case $build in
5230 *-*-mingw* ) # actually msys
5231 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5232 ;;
5233 *-*-cygwin* )
5234 lt_cv_to_host_file_cmd=func_convert_file_noop
5235 ;;
5236 * ) # otherwise, assume *nix
5237 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5238 ;;
5239 esac
5240 ;;
5241 * ) # unhandled hosts (and "normal" native builds)
5242 lt_cv_to_host_file_cmd=func_convert_file_noop
5243 ;;
5244esac
5245
5246fi
5247
5248to_host_file_cmd=$lt_cv_to_host_file_cmd
5249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5250$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5251
5252
5253
5254
5255
5256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5257$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5258if ${lt_cv_to_tool_file_cmd+:} false; then :
5259 $as_echo_n "(cached) " >&6
5260else
5261 #assume ordinary cross tools, or native build.
5262lt_cv_to_tool_file_cmd=func_convert_file_noop
5263case $host in
5264 *-*-mingw* )
5265 case $build in
5266 *-*-mingw* ) # actually msys
5267 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5268 ;;
5269 esac
5270 ;;
5271esac
5272
5273fi
5274
5275to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5277$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5278
5279
5280
5281
5282
5283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5284$as_echo_n "checking for $LD option to reload object files... " >&6; }
5285if ${lt_cv_ld_reload_flag+:} false; then :
5286 $as_echo_n "(cached) " >&6
5287else
5288 lt_cv_ld_reload_flag='-r'
5289fi
5290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5291$as_echo "$lt_cv_ld_reload_flag" >&6; }
5292reload_flag=$lt_cv_ld_reload_flag
5293case $reload_flag in
5294"" | " "*) ;;
5295*) reload_flag=" $reload_flag" ;;
5296esac
5297reload_cmds='$LD$reload_flag -o $output$reload_objs'
5298case $host_os in
5299 cygwin* | mingw* | pw32* | cegcc*)
5300 if test "$GCC" != yes; then
5301 reload_cmds=false
5302 fi
5303 ;;
5304 darwin*)
5305 if test "$GCC" = yes; then
5306 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5307 else
5308 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5309 fi
5310 ;;
5311esac
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321if test -n "$ac_tool_prefix"; then
5322 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5323set dummy ${ac_tool_prefix}objdump; ac_word=$2
5324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5325$as_echo_n "checking for $ac_word... " >&6; }
5326if ${ac_cv_prog_OBJDUMP+:} false; then :
5327 $as_echo_n "(cached) " >&6
5328else
5329 if test -n "$OBJDUMP"; then
5330 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5331else
5332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333for as_dir in $PATH
5334do
5335 IFS=$as_save_IFS
5336 test -z "$as_dir" && as_dir=.
5337 for ac_exec_ext in '' $ac_executable_extensions; do
5338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5339 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5341 break 2
5342 fi
5343done
5344 done
5345IFS=$as_save_IFS
5346
5347fi
5348fi
5349OBJDUMP=$ac_cv_prog_OBJDUMP
5350if test -n "$OBJDUMP"; then
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5352$as_echo "$OBJDUMP" >&6; }
5353else
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355$as_echo "no" >&6; }
5356fi
5357
5358
5359fi
5360if test -z "$ac_cv_prog_OBJDUMP"; then
5361 ac_ct_OBJDUMP=$OBJDUMP
5362 # Extract the first word of "objdump", so it can be a program name with args.
5363set dummy objdump; ac_word=$2
5364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5365$as_echo_n "checking for $ac_word... " >&6; }
5366if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5367 $as_echo_n "(cached) " >&6
5368else
5369 if test -n "$ac_ct_OBJDUMP"; then
5370 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5371else
5372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373for as_dir in $PATH
5374do
5375 IFS=$as_save_IFS
5376 test -z "$as_dir" && as_dir=.
5377 for ac_exec_ext in '' $ac_executable_extensions; do
5378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5379 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5381 break 2
5382 fi
5383done
5384 done
5385IFS=$as_save_IFS
5386
5387fi
5388fi
5389ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5390if test -n "$ac_ct_OBJDUMP"; then
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5392$as_echo "$ac_ct_OBJDUMP" >&6; }
5393else
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395$as_echo "no" >&6; }
5396fi
5397
5398 if test "x$ac_ct_OBJDUMP" = x; then
5399 OBJDUMP="false"
5400 else
5401 case $cross_compiling:$ac_tool_warned in
5402yes:)
5403{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5404$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5405ac_tool_warned=yes ;;
5406esac
5407 OBJDUMP=$ac_ct_OBJDUMP
5408 fi
5409else
5410 OBJDUMP="$ac_cv_prog_OBJDUMP"
5411fi
5412
5413test -z "$OBJDUMP" && OBJDUMP=objdump
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5424$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5425if ${lt_cv_deplibs_check_method+:} false; then :
5426 $as_echo_n "(cached) " >&6
5427else
5428 lt_cv_file_magic_cmd='$MAGIC_CMD'
5429lt_cv_file_magic_test_file=
5430lt_cv_deplibs_check_method='unknown'
5431# Need to set the preceding variable on all platforms that support
5432# interlibrary dependencies.
5433# 'none' -- dependencies not supported.
5434# `unknown' -- same as none, but documents that we really don't know.
5435# 'pass_all' -- all dependencies passed with no checks.
5436# 'test_compile' -- check by making test program.
5437# 'file_magic [[regex]]' -- check by looking for files in library path
5438# which responds to the $file_magic_cmd with a given extended regex.
5439# If you have `file' or equivalent on your system and you're not sure
5440# whether `pass_all' will *always* work, you probably want this one.
5441
5442case $host_os in
5443aix[4-9]*)
5444 lt_cv_deplibs_check_method=pass_all
5445 ;;
5446
5447beos*)
5448 lt_cv_deplibs_check_method=pass_all
5449 ;;
5450
5451bsdi[45]*)
5452 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5453 lt_cv_file_magic_cmd='/usr/bin/file -L'
5454 lt_cv_file_magic_test_file=/shlib/libc.so
5455 ;;
5456
5457cygwin*)
5458 # func_win32_libid is a shell function defined in ltmain.sh
5459 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5460 lt_cv_file_magic_cmd='func_win32_libid'
5461 ;;
5462
5463mingw* | pw32*)
5464 # Base MSYS/MinGW do not provide the 'file' command needed by
5465 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5466 # unless we find 'file', for example because we are cross-compiling.
5467 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5468 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5469 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5470 lt_cv_file_magic_cmd='func_win32_libid'
5471 else
5472 # Keep this pattern in sync with the one in func_win32_libid.
5473 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5474 lt_cv_file_magic_cmd='$OBJDUMP -f'
5475 fi
5476 ;;
5477
5478cegcc*)
5479 # use the weaker test based on 'objdump'. See mingw*.
5480 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5481 lt_cv_file_magic_cmd='$OBJDUMP -f'
5482 ;;
5483
5484darwin* | rhapsody*)
5485 lt_cv_deplibs_check_method=pass_all
5486 ;;
5487
5488freebsd* | dragonfly*)
5489 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5490 case $host_cpu in
5491 i*86 )
5492 # Not sure whether the presence of OpenBSD here was a mistake.
5493 # Let's accept both of them until this is cleared up.
5494 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5495 lt_cv_file_magic_cmd=/usr/bin/file
5496 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5497 ;;
5498 esac
5499 else
5500 lt_cv_deplibs_check_method=pass_all
5501 fi
5502 ;;
5503
5504gnu*)
5505 lt_cv_deplibs_check_method=pass_all
5506 ;;
5507
5508haiku*)
5509 lt_cv_deplibs_check_method=pass_all
5510 ;;
5511
5512hpux10.20* | hpux11*)
5513 lt_cv_file_magic_cmd=/usr/bin/file
5514 case $host_cpu in
5515 ia64*)
5516 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5517 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5518 ;;
5519 hppa*64*)
5520 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]'
5521 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5522 ;;
5523 *)
5524 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5525 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5526 ;;
5527 esac
5528 ;;
5529
5530interix[3-9]*)
5531 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5532 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5533 ;;
5534
5535irix5* | irix6* | nonstopux*)
5536 case $LD in
5537 *-32|*"-32 ") libmagic=32-bit;;
5538 *-n32|*"-n32 ") libmagic=N32;;
5539 *-64|*"-64 ") libmagic=64-bit;;
5540 *) libmagic=never-match;;
5541 esac
5542 lt_cv_deplibs_check_method=pass_all
5543 ;;
5544
5545# This must be glibc/ELF.
5546linux* | k*bsd*-gnu | kopensolaris*-gnu)
5547 lt_cv_deplibs_check_method=pass_all
5548 ;;
5549
5550netbsd*)
5551 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5553 else
5554 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5555 fi
5556 ;;
5557
5558newos6*)
5559 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5560 lt_cv_file_magic_cmd=/usr/bin/file
5561 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5562 ;;
5563
5564*nto* | *qnx*)
5565 lt_cv_deplibs_check_method=pass_all
5566 ;;
5567
5568openbsd*)
5569 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5570 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5571 else
5572 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5573 fi
5574 ;;
5575
5576osf3* | osf4* | osf5*)
5577 lt_cv_deplibs_check_method=pass_all
5578 ;;
5579
5580rdos*)
5581 lt_cv_deplibs_check_method=pass_all
5582 ;;
5583
5584solaris*)
5585 lt_cv_deplibs_check_method=pass_all
5586 ;;
5587
5588sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5589 lt_cv_deplibs_check_method=pass_all
5590 ;;
5591
5592sysv4 | sysv4.3*)
5593 case $host_vendor in
5594 motorola)
5595 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]'
5596 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5597 ;;
5598 ncr)
5599 lt_cv_deplibs_check_method=pass_all
5600 ;;
5601 sequent)
5602 lt_cv_file_magic_cmd='/bin/file'
5603 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5604 ;;
5605 sni)
5606 lt_cv_file_magic_cmd='/bin/file'
5607 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5608 lt_cv_file_magic_test_file=/lib/libc.so
5609 ;;
5610 siemens)
5611 lt_cv_deplibs_check_method=pass_all
5612 ;;
5613 pc)
5614 lt_cv_deplibs_check_method=pass_all
5615 ;;
5616 esac
5617 ;;
5618
5619tpf*)
5620 lt_cv_deplibs_check_method=pass_all
5621 ;;
5622esac
5623
5624fi
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5626$as_echo "$lt_cv_deplibs_check_method" >&6; }
5627
5628file_magic_glob=
5629want_nocaseglob=no
5630if test "$build" = "$host"; then
5631 case $host_os in
5632 mingw* | pw32*)
5633 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5634 want_nocaseglob=yes
5635 else
5636 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5637 fi
5638 ;;
5639 esac
5640fi
5641
5642file_magic_cmd=$lt_cv_file_magic_cmd
5643deplibs_check_method=$lt_cv_deplibs_check_method
5644test -z "$deplibs_check_method" && deplibs_check_method=unknown
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667if test -n "$ac_tool_prefix"; then
5668 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5669set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5671$as_echo_n "checking for $ac_word... " >&6; }
5672if ${ac_cv_prog_DLLTOOL+:} false; then :
5673 $as_echo_n "(cached) " >&6
5674else
5675 if test -n "$DLLTOOL"; then
5676 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5677else
5678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5679for as_dir in $PATH
5680do
5681 IFS=$as_save_IFS
5682 test -z "$as_dir" && as_dir=.
5683 for ac_exec_ext in '' $ac_executable_extensions; do
5684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5685 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5687 break 2
5688 fi
5689done
5690 done
5691IFS=$as_save_IFS
5692
5693fi
5694fi
5695DLLTOOL=$ac_cv_prog_DLLTOOL
5696if test -n "$DLLTOOL"; then
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5698$as_echo "$DLLTOOL" >&6; }
5699else
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5701$as_echo "no" >&6; }
5702fi
5703
5704
5705fi
5706if test -z "$ac_cv_prog_DLLTOOL"; then
5707 ac_ct_DLLTOOL=$DLLTOOL
5708 # Extract the first word of "dlltool", so it can be a program name with args.
5709set dummy dlltool; ac_word=$2
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5711$as_echo_n "checking for $ac_word... " >&6; }
5712if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5713 $as_echo_n "(cached) " >&6
5714else
5715 if test -n "$ac_ct_DLLTOOL"; then
5716 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5717else
5718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719for as_dir in $PATH
5720do
5721 IFS=$as_save_IFS
5722 test -z "$as_dir" && as_dir=.
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5725 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5727 break 2
5728 fi
5729done
5730 done
5731IFS=$as_save_IFS
5732
5733fi
5734fi
5735ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5736if test -n "$ac_ct_DLLTOOL"; then
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5738$as_echo "$ac_ct_DLLTOOL" >&6; }
5739else
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741$as_echo "no" >&6; }
5742fi
5743
5744 if test "x$ac_ct_DLLTOOL" = x; then
5745 DLLTOOL="false"
5746 else
5747 case $cross_compiling:$ac_tool_warned in
5748yes:)
5749{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5750$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5751ac_tool_warned=yes ;;
5752esac
5753 DLLTOOL=$ac_ct_DLLTOOL
5754 fi
5755else
5756 DLLTOOL="$ac_cv_prog_DLLTOOL"
5757fi
5758
5759test -z "$DLLTOOL" && DLLTOOL=dlltool
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5771$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5772if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5773 $as_echo_n "(cached) " >&6
5774else
5775 lt_cv_sharedlib_from_linklib_cmd='unknown'
5776
5777case $host_os in
5778cygwin* | mingw* | pw32* | cegcc*)
5779 # two different shell functions defined in ltmain.sh
5780 # decide which to use based on capabilities of $DLLTOOL
5781 case `$DLLTOOL --help 2>&1` in
5782 *--identify-strict*)
5783 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5784 ;;
5785 *)
5786 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5787 ;;
5788 esac
5789 ;;
5790*)
5791 # fallback: assume linklib IS sharedlib
5792 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5793 ;;
5794esac
5795
5796fi
5797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5798$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5799sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5800test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5801
5802
5803
5804
5805
5806
5807
5808if test -n "$ac_tool_prefix"; then
5809 for ac_prog in ar
5810 do
5811 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5812set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814$as_echo_n "checking for $ac_word... " >&6; }
5815if ${ac_cv_prog_AR+:} false; then :
5816 $as_echo_n "(cached) " >&6
5817else
5818 if test -n "$AR"; then
5819 ac_cv_prog_AR="$AR" # Let the user override the test.
5820else
5821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822for as_dir in $PATH
5823do
5824 IFS=$as_save_IFS
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5828 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 break 2
5831 fi
5832done
5833 done
5834IFS=$as_save_IFS
5835
5836fi
5837fi
5838AR=$ac_cv_prog_AR
5839if test -n "$AR"; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5841$as_echo "$AR" >&6; }
5842else
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844$as_echo "no" >&6; }
5845fi
5846
5847
5848 test -n "$AR" && break
5849 done
5850fi
5851if test -z "$AR"; then
5852 ac_ct_AR=$AR
5853 for ac_prog in ar
5854do
5855 # Extract the first word of "$ac_prog", so it can be a program name with args.
5856set dummy $ac_prog; ac_word=$2
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858$as_echo_n "checking for $ac_word... " >&6; }
5859if ${ac_cv_prog_ac_ct_AR+:} false; then :
5860 $as_echo_n "(cached) " >&6
5861else
5862 if test -n "$ac_ct_AR"; then
5863 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5864else
5865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866for as_dir in $PATH
5867do
5868 IFS=$as_save_IFS
5869 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5872 ac_cv_prog_ac_ct_AR="$ac_prog"
5873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 break 2
5875 fi
5876done
5877 done
5878IFS=$as_save_IFS
5879
5880fi
5881fi
5882ac_ct_AR=$ac_cv_prog_ac_ct_AR
5883if test -n "$ac_ct_AR"; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5885$as_echo "$ac_ct_AR" >&6; }
5886else
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888$as_echo "no" >&6; }
5889fi
5890
5891
5892 test -n "$ac_ct_AR" && break
5893done
5894
5895 if test "x$ac_ct_AR" = x; then
5896 AR="false"
5897 else
5898 case $cross_compiling:$ac_tool_warned in
5899yes:)
5900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5902ac_tool_warned=yes ;;
5903esac
5904 AR=$ac_ct_AR
5905 fi
5906fi
5907
5908: ${AR=ar}
5909: ${AR_FLAGS=cru}
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5922$as_echo_n "checking for archiver @FILE support... " >&6; }
5923if ${lt_cv_ar_at_file+:} false; then :
5924 $as_echo_n "(cached) " >&6
5925else
5926 lt_cv_ar_at_file=no
5927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5928/* end confdefs.h. */
5929
5930int
5931main ()
5932{
5933
5934 ;
5935 return 0;
5936}
5937_ACEOF
5938if ac_fn_c_try_compile "$LINENO"; then :
5939 echo conftest.$ac_objext > conftest.lst
5940 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5942 (eval $lt_ar_try) 2>&5
5943 ac_status=$?
5944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5945 test $ac_status = 0; }
5946 if test "$ac_status" -eq 0; then
5947 # Ensure the archiver fails upon bogus file names.
5948 rm -f conftest.$ac_objext libconftest.a
5949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5950 (eval $lt_ar_try) 2>&5
5951 ac_status=$?
5952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5953 test $ac_status = 0; }
5954 if test "$ac_status" -ne 0; then
5955 lt_cv_ar_at_file=@
5956 fi
5957 fi
5958 rm -f conftest.* libconftest.a
5959
5960fi
5961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5962
5963fi
5964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5965$as_echo "$lt_cv_ar_at_file" >&6; }
5966
5967if test "x$lt_cv_ar_at_file" = xno; then
5968 archiver_list_spec=
5969else
5970 archiver_list_spec=$lt_cv_ar_at_file
5971fi
5972
5973
5974
5975
5976
5977
5978
5979if test -n "$ac_tool_prefix"; then
5980 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5981set dummy ${ac_tool_prefix}strip; ac_word=$2
5982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5983$as_echo_n "checking for $ac_word... " >&6; }
5984if ${ac_cv_prog_STRIP+:} false; then :
5985 $as_echo_n "(cached) " >&6
5986else
5987 if test -n "$STRIP"; then
5988 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5989else
5990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991for as_dir in $PATH
5992do
5993 IFS=$as_save_IFS
5994 test -z "$as_dir" && as_dir=.
5995 for ac_exec_ext in '' $ac_executable_extensions; do
5996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5997 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5999 break 2
6000 fi
6001done
6002 done
6003IFS=$as_save_IFS
6004
6005fi
6006fi
6007STRIP=$ac_cv_prog_STRIP
6008if test -n "$STRIP"; then
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6010$as_echo "$STRIP" >&6; }
6011else
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6013$as_echo "no" >&6; }
6014fi
6015
6016
6017fi
6018if test -z "$ac_cv_prog_STRIP"; then
6019 ac_ct_STRIP=$STRIP
6020 # Extract the first word of "strip", so it can be a program name with args.
6021set dummy strip; ac_word=$2
6022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6023$as_echo_n "checking for $ac_word... " >&6; }
6024if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6025 $as_echo_n "(cached) " >&6
6026else
6027 if test -n "$ac_ct_STRIP"; then
6028 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6029else
6030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031for as_dir in $PATH
6032do
6033 IFS=$as_save_IFS
6034 test -z "$as_dir" && as_dir=.
6035 for ac_exec_ext in '' $ac_executable_extensions; do
6036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6037 ac_cv_prog_ac_ct_STRIP="strip"
6038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6039 break 2
6040 fi
6041done
6042 done
6043IFS=$as_save_IFS
6044
6045fi
6046fi
6047ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6048if test -n "$ac_ct_STRIP"; then
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6050$as_echo "$ac_ct_STRIP" >&6; }
6051else
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6053$as_echo "no" >&6; }
6054fi
6055
6056 if test "x$ac_ct_STRIP" = x; then
6057 STRIP=":"
6058 else
6059 case $cross_compiling:$ac_tool_warned in
6060yes:)
6061{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6062$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6063ac_tool_warned=yes ;;
6064esac
6065 STRIP=$ac_ct_STRIP
6066 fi
6067else
6068 STRIP="$ac_cv_prog_STRIP"
6069fi
6070
6071test -z "$STRIP" && STRIP=:
6072
6073
6074
6075
6076
6077
6078if test -n "$ac_tool_prefix"; then
6079 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6080set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6082$as_echo_n "checking for $ac_word... " >&6; }
6083if ${ac_cv_prog_RANLIB+:} false; then :
6084 $as_echo_n "(cached) " >&6
6085else
6086 if test -n "$RANLIB"; then
6087 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6088else
6089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090for as_dir in $PATH
6091do
6092 IFS=$as_save_IFS
6093 test -z "$as_dir" && as_dir=.
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6096 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6098 break 2
6099 fi
6100done
6101 done
6102IFS=$as_save_IFS
6103
6104fi
6105fi
6106RANLIB=$ac_cv_prog_RANLIB
6107if test -n "$RANLIB"; then
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6109$as_echo "$RANLIB" >&6; }
6110else
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6112$as_echo "no" >&6; }
6113fi
6114
6115
6116fi
6117if test -z "$ac_cv_prog_RANLIB"; then
6118 ac_ct_RANLIB=$RANLIB
6119 # Extract the first word of "ranlib", so it can be a program name with args.
6120set dummy ranlib; ac_word=$2
6121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6122$as_echo_n "checking for $ac_word... " >&6; }
6123if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6124 $as_echo_n "(cached) " >&6
6125else
6126 if test -n "$ac_ct_RANLIB"; then
6127 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6128else
6129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130for as_dir in $PATH
6131do
6132 IFS=$as_save_IFS
6133 test -z "$as_dir" && as_dir=.
6134 for ac_exec_ext in '' $ac_executable_extensions; do
6135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6136 ac_cv_prog_ac_ct_RANLIB="ranlib"
6137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6138 break 2
6139 fi
6140done
6141 done
6142IFS=$as_save_IFS
6143
6144fi
6145fi
6146ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6147if test -n "$ac_ct_RANLIB"; then
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6149$as_echo "$ac_ct_RANLIB" >&6; }
6150else
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6152$as_echo "no" >&6; }
6153fi
6154
6155 if test "x$ac_ct_RANLIB" = x; then
6156 RANLIB=":"
6157 else
6158 case $cross_compiling:$ac_tool_warned in
6159yes:)
6160{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6162ac_tool_warned=yes ;;
6163esac
6164 RANLIB=$ac_ct_RANLIB
6165 fi
6166else
6167 RANLIB="$ac_cv_prog_RANLIB"
6168fi
6169
6170test -z "$RANLIB" && RANLIB=:
6171
6172
6173
6174
6175
6176
6177# Determine commands to create old-style static archives.
6178old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6179old_postinstall_cmds='chmod 644 $oldlib'
6180old_postuninstall_cmds=
6181
6182if test -n "$RANLIB"; then
6183 case $host_os in
6184 openbsd*)
6185 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6186 ;;
6187 *)
6188 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6189 ;;
6190 esac
6191 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6192fi
6193
6194case $host_os in
6195 darwin*)
6196 lock_old_archive_extraction=yes ;;
6197 *)
6198 lock_old_archive_extraction=no ;;
6199esac
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239# If no C compiler was specified, use CC.
6240LTCC=${LTCC-"$CC"}
6241
6242# If no C compiler flags were specified, use CFLAGS.
6243LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6244
6245# Allow CC to be a program name with arguments.
6246compiler=$CC
6247
6248
6249# Check for command to grab the raw symbol name followed by C symbol from nm.
6250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6251$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6252if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6253 $as_echo_n "(cached) " >&6
6254else
6255
6256# These are sane defaults that work on at least a few old systems.
6257# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6258
6259# Character class describing NM global symbol codes.
6260symcode='[BCDEGRST]'
6261
6262# Regexp to match symbols that can be accessed directly from C.
6263sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6264
6265# Define system-specific variables.
6266case $host_os in
6267aix*)
6268 symcode='[BCDT]'
6269 ;;
6270cygwin* | mingw* | pw32* | cegcc*)
6271 symcode='[ABCDGISTW]'
6272 ;;
6273hpux*)
6274 if test "$host_cpu" = ia64; then
6275 symcode='[ABCDEGRST]'
6276 fi
6277 ;;
6278irix* | nonstopux*)
6279 symcode='[BCDEGRST]'
6280 ;;
6281osf*)
6282 symcode='[BCDEGQRST]'
6283 ;;
6284solaris*)
6285 symcode='[BDRT]'
6286 ;;
6287sco3.2v5*)
6288 symcode='[DT]'
6289 ;;
6290sysv4.2uw2*)
6291 symcode='[DT]'
6292 ;;
6293sysv5* | sco5v6* | unixware* | OpenUNIX*)
6294 symcode='[ABDT]'
6295 ;;
6296sysv4)
6297 symcode='[DFNSTU]'
6298 ;;
6299esac
6300
6301# If we're using GNU nm, then use its standard symbol codes.
6302case `$NM -V 2>&1` in
6303*GNU* | *'with BFD'*)
6304 symcode='[ABCDGIRSTW]' ;;
6305esac
6306
6307# Transform an extracted symbol line into a proper C declaration.
6308# Some systems (esp. on ia64) link data and code symbols differently,
6309# so use this general approach.
6310lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6311
6312# Transform an extracted symbol line into symbol name and symbol address
6313lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6314lt_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'"
6315
6316# Handle CRLF in mingw tool chain
6317opt_cr=
6318case $build_os in
6319mingw*)
6320 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6321 ;;
6322esac
6323
6324# Try without a prefix underscore, then with it.
6325for ac_symprfx in "" "_"; do
6326
6327 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6328 symxfrm="\\1 $ac_symprfx\\2 \\2"
6329
6330 # Write the raw and C identifiers.
6331 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6332 # Fake it for dumpbin and say T for any non-static function
6333 # and D for any global variable.
6334 # Also find C++ and __fastcall symbols from MSVC++,
6335 # which start with @ or ?.
6336 lt_cv_sys_global_symbol_pipe="$AWK '"\
6337" {last_section=section; section=\$ 3};"\
6338" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6339" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6340" \$ 0!~/External *\|/{next};"\
6341" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6342" {if(hide[section]) next};"\
6343" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6344" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6345" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6346" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6347" ' prfx=^$ac_symprfx"
6348 else
6349 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6350 fi
6351 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6352
6353 # Check to see that the pipe works correctly.
6354 pipe_works=no
6355
6356 rm -f conftest*
6357 cat > conftest.$ac_ext <<_LT_EOF
6358#ifdef __cplusplus
6359extern "C" {
6360#endif
6361char nm_test_var;
6362void nm_test_func(void);
6363void nm_test_func(void){}
6364#ifdef __cplusplus
6365}
6366#endif
6367int main(){nm_test_var='a';nm_test_func();return(0);}
6368_LT_EOF
6369
6370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6371 (eval $ac_compile) 2>&5
6372 ac_status=$?
6373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6374 test $ac_status = 0; }; then
6375 # Now try to grab the symbols.
6376 nlist=conftest.nm
6377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6378 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6379 ac_status=$?
6380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6381 test $ac_status = 0; } && test -s "$nlist"; then
6382 # Try sorting and uniquifying the output.
6383 if sort "$nlist" | uniq > "$nlist"T; then
6384 mv -f "$nlist"T "$nlist"
6385 else
6386 rm -f "$nlist"T
6387 fi
6388
6389 # Make sure that we snagged all the symbols we need.
6390 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6391 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6392 cat <<_LT_EOF > conftest.$ac_ext
6393/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6394#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6395/* DATA imports from DLLs on WIN32 con't be const, because runtime
6396 relocations are performed -- see ld's documentation on pseudo-relocs. */
6397# define LT_DLSYM_CONST
6398#elif defined(__osf__)
6399/* This system does not cope well with relocations in const data. */
6400# define LT_DLSYM_CONST
6401#else
6402# define LT_DLSYM_CONST const
6403#endif
6404
6405#ifdef __cplusplus
6406extern "C" {
6407#endif
6408
6409_LT_EOF
6410 # Now generate the symbol file.
6411 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6412
6413 cat <<_LT_EOF >> conftest.$ac_ext
6414
6415/* The mapping between symbol names and symbols. */
6416LT_DLSYM_CONST struct {
6417 const char *name;
6418 void *address;
6419}
6420lt__PROGRAM__LTX_preloaded_symbols[] =
6421{
6422 { "@PROGRAM@", (void *) 0 },
6423_LT_EOF
6424 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6425 cat <<\_LT_EOF >> conftest.$ac_ext
6426 {0, (void *) 0}
6427};
6428
6429/* This works around a problem in FreeBSD linker */
6430#ifdef FREEBSD_WORKAROUND
6431static const void *lt_preloaded_setup() {
6432 return lt__PROGRAM__LTX_preloaded_symbols;
6433}
6434#endif
6435
6436#ifdef __cplusplus
6437}
6438#endif
6439_LT_EOF
6440 # Now try linking the two files.
6441 mv conftest.$ac_objext conftstm.$ac_objext
6442 lt_globsym_save_LIBS=$LIBS
6443 lt_globsym_save_CFLAGS=$CFLAGS
6444 LIBS="conftstm.$ac_objext"
6445 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6447 (eval $ac_link) 2>&5
6448 ac_status=$?
6449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6450 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6451 pipe_works=yes
6452 fi
6453 LIBS=$lt_globsym_save_LIBS
6454 CFLAGS=$lt_globsym_save_CFLAGS
6455 else
6456 echo "cannot find nm_test_func in $nlist" >&5
6457 fi
6458 else
6459 echo "cannot find nm_test_var in $nlist" >&5
6460 fi
6461 else
6462 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6463 fi
6464 else
6465 echo "$progname: failed program was:" >&5
6466 cat conftest.$ac_ext >&5
6467 fi
6468 rm -rf conftest* conftst*
6469
6470 # Do not use the global_symbol_pipe unless it works.
6471 if test "$pipe_works" = yes; then
6472 break
6473 else
6474 lt_cv_sys_global_symbol_pipe=
6475 fi
6476done
6477
6478fi
6479
6480if test -z "$lt_cv_sys_global_symbol_pipe"; then
6481 lt_cv_sys_global_symbol_to_cdecl=
6482fi
6483if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6485$as_echo "failed" >&6; }
6486else
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6488$as_echo "ok" >&6; }
6489fi
6490
6491# Response file support.
6492if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6493 nm_file_list_spec='@'
6494elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6495 nm_file_list_spec='@'
6496fi
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6525$as_echo_n "checking for sysroot... " >&6; }
6526
6527# Check whether --with-sysroot was given.
6528if test "${with_sysroot+set}" = set; then :
6529 withval=$with_sysroot;
6530else
6531 with_sysroot=no
6532fi
6533
6534
6535lt_sysroot=
6536case ${with_sysroot} in #(
6537 yes)
6538 if test "$GCC" = yes; then
6539 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6540 fi
6541 ;; #(
6542 /*)
6543 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6544 ;; #(
6545 no|'')
6546 ;; #(
6547 *)
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6549$as_echo "${with_sysroot}" >&6; }
6550 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6551 ;;
6552esac
6553
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6555$as_echo "${lt_sysroot:-no}" >&6; }
6556
6557
6558
6559
6560
6561# Check whether --enable-libtool-lock was given.
6562if test "${enable_libtool_lock+set}" = set; then :
6563 enableval=$enable_libtool_lock;
6564fi
6565
6566test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6567
6568# Some flags need to be propagated to the compiler or linker for good
6569# libtool support.
6570case $host in
6571ia64-*-hpux*)
6572 # Find out which ABI we are using.
6573 echo 'int i;' > conftest.$ac_ext
6574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6575 (eval $ac_compile) 2>&5
6576 ac_status=$?
6577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6578 test $ac_status = 0; }; then
6579 case `/usr/bin/file conftest.$ac_objext` in
6580 *ELF-32*)
6581 HPUX_IA64_MODE="32"
6582 ;;
6583 *ELF-64*)
6584 HPUX_IA64_MODE="64"
6585 ;;
6586 esac
6587 fi
6588 rm -rf conftest*
6589 ;;
6590*-*-irix6*)
6591 # Find out which ABI we are using.
6592 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6594 (eval $ac_compile) 2>&5
6595 ac_status=$?
6596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6597 test $ac_status = 0; }; then
6598 if test "$lt_cv_prog_gnu_ld" = yes; then
6599 case `/usr/bin/file conftest.$ac_objext` in
6600 *32-bit*)
6601 LD="${LD-ld} -melf32bsmip"
6602 ;;
6603 *N32*)
6604 LD="${LD-ld} -melf32bmipn32"
6605 ;;
6606 *64-bit*)
6607 LD="${LD-ld} -melf64bmip"
6608 ;;
6609 esac
6610 else
6611 case `/usr/bin/file conftest.$ac_objext` in
6612 *32-bit*)
6613 LD="${LD-ld} -32"
6614 ;;
6615 *N32*)
6616 LD="${LD-ld} -n32"
6617 ;;
6618 *64-bit*)
6619 LD="${LD-ld} -64"
6620 ;;
6621 esac
6622 fi
6623 fi
6624 rm -rf conftest*
6625 ;;
6626
6627x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6628s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6629 # Find out which ABI we are using.
6630 echo 'int i;' > conftest.$ac_ext
6631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6632 (eval $ac_compile) 2>&5
6633 ac_status=$?
6634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6635 test $ac_status = 0; }; then
6636 case `/usr/bin/file conftest.o` in
6637 *32-bit*)
6638 case $host in
6639 x86_64-*kfreebsd*-gnu)
6640 LD="${LD-ld} -m elf_i386_fbsd"
6641 ;;
6642 x86_64-*linux*)
6643 LD="${LD-ld} -m elf_i386"
6644 ;;
6645 ppc64-*linux*|powerpc64-*linux*)
6646 LD="${LD-ld} -m elf32ppclinux"
6647 ;;
6648 s390x-*linux*)
6649 LD="${LD-ld} -m elf_s390"
6650 ;;
6651 sparc64-*linux*)
6652 LD="${LD-ld} -m elf32_sparc"
6653 ;;
6654 esac
6655 ;;
6656 *64-bit*)
6657 case $host in
6658 x86_64-*kfreebsd*-gnu)
6659 LD="${LD-ld} -m elf_x86_64_fbsd"
6660 ;;
6661 x86_64-*linux*)
6662 LD="${LD-ld} -m elf_x86_64"
6663 ;;
6664 ppc*-*linux*|powerpc*-*linux*)
6665 LD="${LD-ld} -m elf64ppc"
6666 ;;
6667 s390*-*linux*|s390*-*tpf*)
6668 LD="${LD-ld} -m elf64_s390"
6669 ;;
6670 sparc*-*linux*)
6671 LD="${LD-ld} -m elf64_sparc"
6672 ;;
6673 esac
6674 ;;
6675 esac
6676 fi
6677 rm -rf conftest*
6678 ;;
6679
6680*-*-sco3.2v5*)
6681 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6682 SAVE_CFLAGS="$CFLAGS"
6683 CFLAGS="$CFLAGS -belf"
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6685$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6686if ${lt_cv_cc_needs_belf+:} false; then :
6687 $as_echo_n "(cached) " >&6
6688else
6689 ac_ext=c
6690ac_cpp='$CPP $CPPFLAGS'
6691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6693ac_compiler_gnu=$ac_cv_c_compiler_gnu
6694
6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696/* end confdefs.h. */
6697
6698int
6699main ()
6700{
6701
6702 ;
6703 return 0;
6704}
6705_ACEOF
6706if ac_fn_c_try_link "$LINENO"; then :
6707 lt_cv_cc_needs_belf=yes
6708else
6709 lt_cv_cc_needs_belf=no
6710fi
6711rm -f core conftest.err conftest.$ac_objext \
6712 conftest$ac_exeext conftest.$ac_ext
6713 ac_ext=c
6714ac_cpp='$CPP $CPPFLAGS'
6715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6717ac_compiler_gnu=$ac_cv_c_compiler_gnu
6718
6719fi
6720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6721$as_echo "$lt_cv_cc_needs_belf" >&6; }
6722 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6723 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6724 CFLAGS="$SAVE_CFLAGS"
6725 fi
6726 ;;
6727*-*solaris*)
6728 # Find out which ABI we are using.
6729 echo 'int i;' > conftest.$ac_ext
6730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6731 (eval $ac_compile) 2>&5
6732 ac_status=$?
6733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6734 test $ac_status = 0; }; then
6735 case `/usr/bin/file conftest.o` in
6736 *64-bit*)
6737 case $lt_cv_prog_gnu_ld in
6738 yes*)
6739 case $host in
6740 i?86-*-solaris*)
6741 LD="${LD-ld} -m elf_x86_64"
6742 ;;
6743 sparc*-*-solaris*)
6744 LD="${LD-ld} -m elf64_sparc"
6745 ;;
6746 esac
6747 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6748 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6749 LD="${LD-ld}_sol2"
6750 fi
6751 ;;
6752 *)
6753 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6754 LD="${LD-ld} -64"
6755 fi
6756 ;;
6757 esac
6758 ;;
6759 esac
6760 fi
6761 rm -rf conftest*
6762 ;;
6763esac
6764
6765need_locks="$enable_libtool_lock"
6766
6767if test -n "$ac_tool_prefix"; then
6768 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6769set dummy ${ac_tool_prefix}mt; ac_word=$2
6770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771$as_echo_n "checking for $ac_word... " >&6; }
6772if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6773 $as_echo_n "(cached) " >&6
6774else
6775 if test -n "$MANIFEST_TOOL"; then
6776 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6777else
6778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779for as_dir in $PATH
6780do
6781 IFS=$as_save_IFS
6782 test -z "$as_dir" && as_dir=.
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6785 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 break 2
6788 fi
6789done
6790 done
6791IFS=$as_save_IFS
6792
6793fi
6794fi
6795MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6796if test -n "$MANIFEST_TOOL"; then
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6798$as_echo "$MANIFEST_TOOL" >&6; }
6799else
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801$as_echo "no" >&6; }
6802fi
6803
6804
6805fi
6806if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6807 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6808 # Extract the first word of "mt", so it can be a program name with args.
6809set dummy mt; ac_word=$2
6810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811$as_echo_n "checking for $ac_word... " >&6; }
6812if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6813 $as_echo_n "(cached) " >&6
6814else
6815 if test -n "$ac_ct_MANIFEST_TOOL"; then
6816 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6817else
6818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819for as_dir in $PATH
6820do
6821 IFS=$as_save_IFS
6822 test -z "$as_dir" && as_dir=.
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6825 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827 break 2
6828 fi
6829done
6830 done
6831IFS=$as_save_IFS
6832
6833fi
6834fi
6835ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6836if test -n "$ac_ct_MANIFEST_TOOL"; then
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6838$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6839else
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841$as_echo "no" >&6; }
6842fi
6843
6844 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6845 MANIFEST_TOOL=":"
6846 else
6847 case $cross_compiling:$ac_tool_warned in
6848yes:)
6849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6851ac_tool_warned=yes ;;
6852esac
6853 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6854 fi
6855else
6856 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6857fi
6858
6859test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6861$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6862if ${lt_cv_path_mainfest_tool+:} false; then :
6863 $as_echo_n "(cached) " >&6
6864else
6865 lt_cv_path_mainfest_tool=no
6866 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6867 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6868 cat conftest.err >&5
6869 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6870 lt_cv_path_mainfest_tool=yes
6871 fi
6872 rm -f conftest*
6873fi
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6875$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6876if test "x$lt_cv_path_mainfest_tool" != xyes; then
6877 MANIFEST_TOOL=:
6878fi
6879
6880
6881
6882
6883
6884
6885 case $host_os in
6886 rhapsody* | darwin*)
6887 if test -n "$ac_tool_prefix"; then
6888 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6889set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6891$as_echo_n "checking for $ac_word... " >&6; }
6892if ${ac_cv_prog_DSYMUTIL+:} false; then :
6893 $as_echo_n "(cached) " >&6
6894else
6895 if test -n "$DSYMUTIL"; then
6896 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6897else
6898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899for as_dir in $PATH
6900do
6901 IFS=$as_save_IFS
6902 test -z "$as_dir" && as_dir=.
6903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6905 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6907 break 2
6908 fi
6909done
6910 done
6911IFS=$as_save_IFS
6912
6913fi
6914fi
6915DSYMUTIL=$ac_cv_prog_DSYMUTIL
6916if test -n "$DSYMUTIL"; then
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6918$as_echo "$DSYMUTIL" >&6; }
6919else
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921$as_echo "no" >&6; }
6922fi
6923
6924
6925fi
6926if test -z "$ac_cv_prog_DSYMUTIL"; then
6927 ac_ct_DSYMUTIL=$DSYMUTIL
6928 # Extract the first word of "dsymutil", so it can be a program name with args.
6929set dummy dsymutil; ac_word=$2
6930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931$as_echo_n "checking for $ac_word... " >&6; }
6932if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6933 $as_echo_n "(cached) " >&6
6934else
6935 if test -n "$ac_ct_DSYMUTIL"; then
6936 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6937else
6938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939for as_dir in $PATH
6940do
6941 IFS=$as_save_IFS
6942 test -z "$as_dir" && as_dir=.
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6945 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6947 break 2
6948 fi
6949done
6950 done
6951IFS=$as_save_IFS
6952
6953fi
6954fi
6955ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6956if test -n "$ac_ct_DSYMUTIL"; then
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6958$as_echo "$ac_ct_DSYMUTIL" >&6; }
6959else
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961$as_echo "no" >&6; }
6962fi
6963
6964 if test "x$ac_ct_DSYMUTIL" = x; then
6965 DSYMUTIL=":"
6966 else
6967 case $cross_compiling:$ac_tool_warned in
6968yes:)
6969{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6971ac_tool_warned=yes ;;
6972esac
6973 DSYMUTIL=$ac_ct_DSYMUTIL
6974 fi
6975else
6976 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6977fi
6978
6979 if test -n "$ac_tool_prefix"; then
6980 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6981set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6983$as_echo_n "checking for $ac_word... " >&6; }
6984if ${ac_cv_prog_NMEDIT+:} false; then :
6985 $as_echo_n "(cached) " >&6
6986else
6987 if test -n "$NMEDIT"; then
6988 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6989else
6990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991for as_dir in $PATH
6992do
6993 IFS=$as_save_IFS
6994 test -z "$as_dir" && as_dir=.
6995 for ac_exec_ext in '' $ac_executable_extensions; do
6996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6997 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6999 break 2
7000 fi
7001done
7002 done
7003IFS=$as_save_IFS
7004
7005fi
7006fi
7007NMEDIT=$ac_cv_prog_NMEDIT
7008if test -n "$NMEDIT"; then
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7010$as_echo "$NMEDIT" >&6; }
7011else
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013$as_echo "no" >&6; }
7014fi
7015
7016
7017fi
7018if test -z "$ac_cv_prog_NMEDIT"; then
7019 ac_ct_NMEDIT=$NMEDIT
7020 # Extract the first word of "nmedit", so it can be a program name with args.
7021set dummy nmedit; ac_word=$2
7022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023$as_echo_n "checking for $ac_word... " >&6; }
7024if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7025 $as_echo_n "(cached) " >&6
7026else
7027 if test -n "$ac_ct_NMEDIT"; then
7028 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7029else
7030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031for as_dir in $PATH
7032do
7033 IFS=$as_save_IFS
7034 test -z "$as_dir" && as_dir=.
7035 for ac_exec_ext in '' $ac_executable_extensions; do
7036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7037 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7039 break 2
7040 fi
7041done
7042 done
7043IFS=$as_save_IFS
7044
7045fi
7046fi
7047ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7048if test -n "$ac_ct_NMEDIT"; then
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7050$as_echo "$ac_ct_NMEDIT" >&6; }
7051else
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053$as_echo "no" >&6; }
7054fi
7055
7056 if test "x$ac_ct_NMEDIT" = x; then
7057 NMEDIT=":"
7058 else
7059 case $cross_compiling:$ac_tool_warned in
7060yes:)
7061{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7062$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7063ac_tool_warned=yes ;;
7064esac
7065 NMEDIT=$ac_ct_NMEDIT
7066 fi
7067else
7068 NMEDIT="$ac_cv_prog_NMEDIT"
7069fi
7070
7071 if test -n "$ac_tool_prefix"; then
7072 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7073set dummy ${ac_tool_prefix}lipo; ac_word=$2
7074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7075$as_echo_n "checking for $ac_word... " >&6; }
7076if ${ac_cv_prog_LIPO+:} false; then :
7077 $as_echo_n "(cached) " >&6
7078else
7079 if test -n "$LIPO"; then
7080 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7081else
7082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083for as_dir in $PATH
7084do
7085 IFS=$as_save_IFS
7086 test -z "$as_dir" && as_dir=.
7087 for ac_exec_ext in '' $ac_executable_extensions; do
7088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7089 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7091 break 2
7092 fi
7093done
7094 done
7095IFS=$as_save_IFS
7096
7097fi
7098fi
7099LIPO=$ac_cv_prog_LIPO
7100if test -n "$LIPO"; then
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7102$as_echo "$LIPO" >&6; }
7103else
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7105$as_echo "no" >&6; }
7106fi
7107
7108
7109fi
7110if test -z "$ac_cv_prog_LIPO"; then
7111 ac_ct_LIPO=$LIPO
7112 # Extract the first word of "lipo", so it can be a program name with args.
7113set dummy lipo; ac_word=$2
7114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7115$as_echo_n "checking for $ac_word... " >&6; }
7116if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7117 $as_echo_n "(cached) " >&6
7118else
7119 if test -n "$ac_ct_LIPO"; then
7120 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7121else
7122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123for as_dir in $PATH
7124do
7125 IFS=$as_save_IFS
7126 test -z "$as_dir" && as_dir=.
7127 for ac_exec_ext in '' $ac_executable_extensions; do
7128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7129 ac_cv_prog_ac_ct_LIPO="lipo"
7130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7131 break 2
7132 fi
7133done
7134 done
7135IFS=$as_save_IFS
7136
7137fi
7138fi
7139ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7140if test -n "$ac_ct_LIPO"; then
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7142$as_echo "$ac_ct_LIPO" >&6; }
7143else
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7145$as_echo "no" >&6; }
7146fi
7147
7148 if test "x$ac_ct_LIPO" = x; then
7149 LIPO=":"
7150 else
7151 case $cross_compiling:$ac_tool_warned in
7152yes:)
7153{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7154$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7155ac_tool_warned=yes ;;
7156esac
7157 LIPO=$ac_ct_LIPO
7158 fi
7159else
7160 LIPO="$ac_cv_prog_LIPO"
7161fi
7162
7163 if test -n "$ac_tool_prefix"; then
7164 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7165set dummy ${ac_tool_prefix}otool; ac_word=$2
7166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167$as_echo_n "checking for $ac_word... " >&6; }
7168if ${ac_cv_prog_OTOOL+:} false; then :
7169 $as_echo_n "(cached) " >&6
7170else
7171 if test -n "$OTOOL"; then
7172 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7173else
7174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175for as_dir in $PATH
7176do
7177 IFS=$as_save_IFS
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7181 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7183 break 2
7184 fi
7185done
7186 done
7187IFS=$as_save_IFS
7188
7189fi
7190fi
7191OTOOL=$ac_cv_prog_OTOOL
7192if test -n "$OTOOL"; then
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7194$as_echo "$OTOOL" >&6; }
7195else
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7197$as_echo "no" >&6; }
7198fi
7199
7200
7201fi
7202if test -z "$ac_cv_prog_OTOOL"; then
7203 ac_ct_OTOOL=$OTOOL
7204 # Extract the first word of "otool", so it can be a program name with args.
7205set dummy otool; ac_word=$2
7206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207$as_echo_n "checking for $ac_word... " >&6; }
7208if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7209 $as_echo_n "(cached) " >&6
7210else
7211 if test -n "$ac_ct_OTOOL"; then
7212 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7213else
7214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215for as_dir in $PATH
7216do
7217 IFS=$as_save_IFS
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7221 ac_cv_prog_ac_ct_OTOOL="otool"
7222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7223 break 2
7224 fi
7225done
7226 done
7227IFS=$as_save_IFS
7228
7229fi
7230fi
7231ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7232if test -n "$ac_ct_OTOOL"; then
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7234$as_echo "$ac_ct_OTOOL" >&6; }
7235else
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237$as_echo "no" >&6; }
7238fi
7239
7240 if test "x$ac_ct_OTOOL" = x; then
7241 OTOOL=":"
7242 else
7243 case $cross_compiling:$ac_tool_warned in
7244yes:)
7245{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7246$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7247ac_tool_warned=yes ;;
7248esac
7249 OTOOL=$ac_ct_OTOOL
7250 fi
7251else
7252 OTOOL="$ac_cv_prog_OTOOL"
7253fi
7254
7255 if test -n "$ac_tool_prefix"; then
7256 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7257set dummy ${ac_tool_prefix}otool64; ac_word=$2
7258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7259$as_echo_n "checking for $ac_word... " >&6; }
7260if ${ac_cv_prog_OTOOL64+:} false; then :
7261 $as_echo_n "(cached) " >&6
7262else
7263 if test -n "$OTOOL64"; then
7264 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7265else
7266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267for as_dir in $PATH
7268do
7269 IFS=$as_save_IFS
7270 test -z "$as_dir" && as_dir=.
7271 for ac_exec_ext in '' $ac_executable_extensions; do
7272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7273 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7275 break 2
7276 fi
7277done
7278 done
7279IFS=$as_save_IFS
7280
7281fi
7282fi
7283OTOOL64=$ac_cv_prog_OTOOL64
7284if test -n "$OTOOL64"; then
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7286$as_echo "$OTOOL64" >&6; }
7287else
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7289$as_echo "no" >&6; }
7290fi
7291
7292
7293fi
7294if test -z "$ac_cv_prog_OTOOL64"; then
7295 ac_ct_OTOOL64=$OTOOL64
7296 # Extract the first word of "otool64", so it can be a program name with args.
7297set dummy otool64; ac_word=$2
7298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7299$as_echo_n "checking for $ac_word... " >&6; }
7300if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7301 $as_echo_n "(cached) " >&6
7302else
7303 if test -n "$ac_ct_OTOOL64"; then
7304 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7305else
7306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307for as_dir in $PATH
7308do
7309 IFS=$as_save_IFS
7310 test -z "$as_dir" && as_dir=.
7311 for ac_exec_ext in '' $ac_executable_extensions; do
7312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7313 ac_cv_prog_ac_ct_OTOOL64="otool64"
7314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7315 break 2
7316 fi
7317done
7318 done
7319IFS=$as_save_IFS
7320
7321fi
7322fi
7323ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7324if test -n "$ac_ct_OTOOL64"; then
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7326$as_echo "$ac_ct_OTOOL64" >&6; }
7327else
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329$as_echo "no" >&6; }
7330fi
7331
7332 if test "x$ac_ct_OTOOL64" = x; then
7333 OTOOL64=":"
7334 else
7335 case $cross_compiling:$ac_tool_warned in
7336yes:)
7337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7339ac_tool_warned=yes ;;
7340esac
7341 OTOOL64=$ac_ct_OTOOL64
7342 fi
7343else
7344 OTOOL64="$ac_cv_prog_OTOOL64"
7345fi
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7374$as_echo_n "checking for -single_module linker flag... " >&6; }
7375if ${lt_cv_apple_cc_single_mod+:} false; then :
7376 $as_echo_n "(cached) " >&6
7377else
7378 lt_cv_apple_cc_single_mod=no
7379 if test -z "${LT_MULTI_MODULE}"; then
7380 # By default we will add the -single_module flag. You can override
7381 # by either setting the environment variable LT_MULTI_MODULE
7382 # non-empty at configure time, or by adding -multi_module to the
7383 # link flags.
7384 rm -rf libconftest.dylib*
7385 echo "int foo(void){return 1;}" > conftest.c
7386 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7387-dynamiclib -Wl,-single_module conftest.c" >&5
7388 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7389 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7390 _lt_result=$?
7391 # If there is a non-empty error log, and "single_module"
7392 # appears in it, assume the flag caused a linker warning
7393 if test -s conftest.err && $GREP single_module conftest.err; then
7394 cat conftest.err >&5
7395 # Otherwise, if the output was created with a 0 exit code from
7396 # the compiler, it worked.
7397 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7398 lt_cv_apple_cc_single_mod=yes
7399 else
7400 cat conftest.err >&5
7401 fi
7402 rm -rf libconftest.dylib*
7403 rm -f conftest.*
7404 fi
7405fi
7406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7407$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7408
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7410$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7411if ${lt_cv_ld_exported_symbols_list+:} false; then :
7412 $as_echo_n "(cached) " >&6
7413else
7414 lt_cv_ld_exported_symbols_list=no
7415 save_LDFLAGS=$LDFLAGS
7416 echo "_main" > conftest.sym
7417 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7419/* end confdefs.h. */
7420
7421int
7422main ()
7423{
7424
7425 ;
7426 return 0;
7427}
7428_ACEOF
7429if ac_fn_c_try_link "$LINENO"; then :
7430 lt_cv_ld_exported_symbols_list=yes
7431else
7432 lt_cv_ld_exported_symbols_list=no
7433fi
7434rm -f core conftest.err conftest.$ac_objext \
7435 conftest$ac_exeext conftest.$ac_ext
7436 LDFLAGS="$save_LDFLAGS"
7437
7438fi
7439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7440$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7441
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7443$as_echo_n "checking for -force_load linker flag... " >&6; }
7444if ${lt_cv_ld_force_load+:} false; then :
7445 $as_echo_n "(cached) " >&6
7446else
7447 lt_cv_ld_force_load=no
7448 cat > conftest.c << _LT_EOF
7449int forced_loaded() { return 2;}
7450_LT_EOF
7451 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7452 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7453 echo "$AR cru libconftest.a conftest.o" >&5
7454 $AR cru libconftest.a conftest.o 2>&5
7455 echo "$RANLIB libconftest.a" >&5
7456 $RANLIB libconftest.a 2>&5
7457 cat > conftest.c << _LT_EOF
7458int main() { return 0;}
7459_LT_EOF
7460 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7461 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7462 _lt_result=$?
7463 if test -s conftest.err && $GREP force_load conftest.err; then
7464 cat conftest.err >&5
7465 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7466 lt_cv_ld_force_load=yes
7467 else
7468 cat conftest.err >&5
7469 fi
7470 rm -f conftest.err libconftest.a conftest conftest.c
7471 rm -rf conftest.dSYM
7472
7473fi
7474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7475$as_echo "$lt_cv_ld_force_load" >&6; }
7476 case $host_os in
7477 rhapsody* | darwin1.[012])
7478 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7479 darwin1.*)
7480 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7481 darwin*) # darwin 5.x on
7482 # if running on 10.5 or later, the deployment target defaults
7483 # to the OS version, if on x86, and 10.4, the deployment
7484 # target defaults to 10.4. Don't you love it?
7485 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7486 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7487 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7488 10.[012]*)
7489 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7490 10.*)
7491 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7492 esac
7493 ;;
7494 esac
7495 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7496 _lt_dar_single_mod='$single_module'
7497 fi
7498 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7499 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7500 else
7501 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7502 fi
7503 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7504 _lt_dsymutil='~$DSYMUTIL $lib || :'
7505 else
7506 _lt_dsymutil=
7507 fi
7508 ;;
7509 esac
7510
7511ac_ext=c
7512ac_cpp='$CPP $CPPFLAGS'
7513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7515ac_compiler_gnu=$ac_cv_c_compiler_gnu
7516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7517$as_echo_n "checking how to run the C preprocessor... " >&6; }
7518# On Suns, sometimes $CPP names a directory.
7519if test -n "$CPP" && test -d "$CPP"; then
7520 CPP=
7521fi
7522if test -z "$CPP"; then
7523 if ${ac_cv_prog_CPP+:} false; then :
7524 $as_echo_n "(cached) " >&6
7525else
7526 # Double quotes because CPP needs to be expanded
7527 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7528 do
7529 ac_preproc_ok=false
7530for ac_c_preproc_warn_flag in '' yes
7531do
7532 # Use a header file that comes with gcc, so configuring glibc
7533 # with a fresh cross-compiler works.
7534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7535 # <limits.h> exists even on freestanding compilers.
7536 # On the NeXT, cc -E runs the code through the compiler's parser,
7537 # not just through cpp. "Syntax error" is here to catch this case.
7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539/* end confdefs.h. */
7540#ifdef __STDC__
7541# include <limits.h>
7542#else
7543# include <assert.h>
7544#endif
7545 Syntax error
7546_ACEOF
7547if ac_fn_c_try_cpp "$LINENO"; then :
7548
7549else
7550 # Broken: fails on valid input.
7551continue
7552fi
7553rm -f conftest.err conftest.i conftest.$ac_ext
7554
7555 # OK, works on sane cases. Now check whether nonexistent headers
7556 # can be detected and how.
7557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7558/* end confdefs.h. */
7559#include <ac_nonexistent.h>
7560_ACEOF
7561if ac_fn_c_try_cpp "$LINENO"; then :
7562 # Broken: success on invalid input.
7563continue
7564else
7565 # Passes both tests.
7566ac_preproc_ok=:
7567break
7568fi
7569rm -f conftest.err conftest.i conftest.$ac_ext
7570
7571done
7572# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7573rm -f conftest.i conftest.err conftest.$ac_ext
7574if $ac_preproc_ok; then :
7575 break
7576fi
7577
7578 done
7579 ac_cv_prog_CPP=$CPP
7580
7581fi
7582 CPP=$ac_cv_prog_CPP
7583else
7584 ac_cv_prog_CPP=$CPP
7585fi
7586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7587$as_echo "$CPP" >&6; }
7588ac_preproc_ok=false
7589for ac_c_preproc_warn_flag in '' yes
7590do
7591 # Use a header file that comes with gcc, so configuring glibc
7592 # with a fresh cross-compiler works.
7593 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7594 # <limits.h> exists even on freestanding compilers.
7595 # On the NeXT, cc -E runs the code through the compiler's parser,
7596 # not just through cpp. "Syntax error" is here to catch this case.
7597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7598/* end confdefs.h. */
7599#ifdef __STDC__
7600# include <limits.h>
7601#else
7602# include <assert.h>
7603#endif
7604 Syntax error
7605_ACEOF
7606if ac_fn_c_try_cpp "$LINENO"; then :
7607
7608else
7609 # Broken: fails on valid input.
7610continue
7611fi
7612rm -f conftest.err conftest.i conftest.$ac_ext
7613
7614 # OK, works on sane cases. Now check whether nonexistent headers
7615 # can be detected and how.
7616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7617/* end confdefs.h. */
7618#include <ac_nonexistent.h>
7619_ACEOF
7620if ac_fn_c_try_cpp "$LINENO"; then :
7621 # Broken: success on invalid input.
7622continue
7623else
7624 # Passes both tests.
7625ac_preproc_ok=:
7626break
7627fi
7628rm -f conftest.err conftest.i conftest.$ac_ext
7629
7630done
7631# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7632rm -f conftest.i conftest.err conftest.$ac_ext
7633if $ac_preproc_ok; then :
7634
7635else
7636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7638as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7639See \`config.log' for more details" "$LINENO" 5; }
7640fi
7641
7642ac_ext=c
7643ac_cpp='$CPP $CPPFLAGS'
7644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7646ac_compiler_gnu=$ac_cv_c_compiler_gnu
7647
7648
7649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7650$as_echo_n "checking for ANSI C header files... " >&6; }
7651if ${ac_cv_header_stdc+:} false; then :
7652 $as_echo_n "(cached) " >&6
7653else
7654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7655/* end confdefs.h. */
7656#include <stdlib.h>
7657#include <stdarg.h>
7658#include <string.h>
7659#include <float.h>
7660
7661int
7662main ()
7663{
7664
7665 ;
7666 return 0;
7667}
7668_ACEOF
7669if ac_fn_c_try_compile "$LINENO"; then :
7670 ac_cv_header_stdc=yes
7671else
7672 ac_cv_header_stdc=no
7673fi
7674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7675
7676if test $ac_cv_header_stdc = yes; then
7677 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679/* end confdefs.h. */
7680#include <string.h>
7681
7682_ACEOF
7683if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7684 $EGREP "memchr" >/dev/null 2>&1; then :
7685
7686else
7687 ac_cv_header_stdc=no
7688fi
7689rm -f conftest*
7690
7691fi
7692
7693if test $ac_cv_header_stdc = yes; then
7694 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696/* end confdefs.h. */
7697#include <stdlib.h>
7698
7699_ACEOF
7700if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7701 $EGREP "free" >/dev/null 2>&1; then :
7702
7703else
7704 ac_cv_header_stdc=no
7705fi
7706rm -f conftest*
7707
7708fi
7709
7710if test $ac_cv_header_stdc = yes; then
7711 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7712 if test "$cross_compiling" = yes; then :
7713 :
7714else
7715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7716/* end confdefs.h. */
7717#include <ctype.h>
7718#include <stdlib.h>
7719#if ((' ' & 0x0FF) == 0x020)
7720# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7721# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7722#else
7723# define ISLOWER(c) \
7724 (('a' <= (c) && (c) <= 'i') \
7725 || ('j' <= (c) && (c) <= 'r') \
7726 || ('s' <= (c) && (c) <= 'z'))
7727# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7728#endif
7729
7730#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7731int
7732main ()
7733{
7734 int i;
7735 for (i = 0; i < 256; i++)
7736 if (XOR (islower (i), ISLOWER (i))
7737 || toupper (i) != TOUPPER (i))
7738 return 2;
7739 return 0;
7740}
7741_ACEOF
7742if ac_fn_c_try_run "$LINENO"; then :
7743
7744else
7745 ac_cv_header_stdc=no
7746fi
7747rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7748 conftest.$ac_objext conftest.beam conftest.$ac_ext
7749fi
7750
7751fi
7752fi
7753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7754$as_echo "$ac_cv_header_stdc" >&6; }
7755if test $ac_cv_header_stdc = yes; then
7756
7757$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7758
7759fi
7760
7761# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7762for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7763 inttypes.h stdint.h unistd.h
7764do :
7765 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7766ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7767"
7768if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7769 cat >>confdefs.h <<_ACEOF
7770#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7771_ACEOF
7772
7773fi
7774
7775done
7776
7777
7778for ac_header in dlfcn.h
7779do :
7780 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7781"
7782if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7783 cat >>confdefs.h <<_ACEOF
7784#define HAVE_DLFCN_H 1
7785_ACEOF
7786
7787fi
7788
7789done
7790
7791
7792
7793
7794
7795# Set options
7796
7797
7798
7799 enable_dlopen=no
7800
7801
7802 enable_win32_dll=no
7803
7804
7805 # Check whether --enable-shared was given.
7806if test "${enable_shared+set}" = set; then :
7807 enableval=$enable_shared; p=${PACKAGE-default}
7808 case $enableval in
7809 yes) enable_shared=yes ;;
7810 no) enable_shared=no ;;
7811 *)
7812 enable_shared=no
7813 # Look at the argument we got. We use all the common list separators.
7814 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7815 for pkg in $enableval; do
7816 IFS="$lt_save_ifs"
7817 if test "X$pkg" = "X$p"; then
7818 enable_shared=yes
7819 fi
7820 done
7821 IFS="$lt_save_ifs"
7822 ;;
7823 esac
7824else
7825 enable_shared=yes
7826fi
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836 # Check whether --enable-static was given.
7837if test "${enable_static+set}" = set; then :
7838 enableval=$enable_static; p=${PACKAGE-default}
7839 case $enableval in
7840 yes) enable_static=yes ;;
7841 no) enable_static=no ;;
7842 *)
7843 enable_static=no
7844 # Look at the argument we got. We use all the common list separators.
7845 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7846 for pkg in $enableval; do
7847 IFS="$lt_save_ifs"
7848 if test "X$pkg" = "X$p"; then
7849 enable_static=yes
7850 fi
7851 done
7852 IFS="$lt_save_ifs"
7853 ;;
7854 esac
7855else
7856 enable_static=yes
7857fi
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868# Check whether --with-pic was given.
7869if test "${with_pic+set}" = set; then :
7870 withval=$with_pic; lt_p=${PACKAGE-default}
7871 case $withval in
7872 yes|no) pic_mode=$withval ;;
7873 *)
7874 pic_mode=default
7875 # Look at the argument we got. We use all the common list separators.
7876 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7877 for lt_pkg in $withval; do
7878 IFS="$lt_save_ifs"
7879 if test "X$lt_pkg" = "X$lt_p"; then
7880 pic_mode=yes
7881 fi
7882 done
7883 IFS="$lt_save_ifs"
7884 ;;
7885 esac
7886else
7887 pic_mode=default
7888fi
7889
7890
7891test -z "$pic_mode" && pic_mode=default
7892
7893
7894
7895
7896
7897
7898
7899 # Check whether --enable-fast-install was given.
7900if test "${enable_fast_install+set}" = set; then :
7901 enableval=$enable_fast_install; p=${PACKAGE-default}
7902 case $enableval in
7903 yes) enable_fast_install=yes ;;
7904 no) enable_fast_install=no ;;
7905 *)
7906 enable_fast_install=no
7907 # Look at the argument we got. We use all the common list separators.
7908 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7909 for pkg in $enableval; do
7910 IFS="$lt_save_ifs"
7911 if test "X$pkg" = "X$p"; then
7912 enable_fast_install=yes
7913 fi
7914 done
7915 IFS="$lt_save_ifs"
7916 ;;
7917 esac
7918else
7919 enable_fast_install=yes
7920fi
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932# This can be used to rebuild libtool when needed
7933LIBTOOL_DEPS="$ltmain"
7934
7935# Always use our own libtool.
7936LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967test -z "$LN_S" && LN_S="ln -s"
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982if test -n "${ZSH_VERSION+set}" ; then
7983 setopt NO_GLOB_SUBST
7984fi
7985
7986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7987$as_echo_n "checking for objdir... " >&6; }
7988if ${lt_cv_objdir+:} false; then :
7989 $as_echo_n "(cached) " >&6
7990else
7991 rm -f .libs 2>/dev/null
7992mkdir .libs 2>/dev/null
7993if test -d .libs; then
7994 lt_cv_objdir=.libs
7995else
7996 # MS-DOS does not allow filenames that begin with a dot.
7997 lt_cv_objdir=_libs
7998fi
7999rmdir .libs 2>/dev/null
8000fi
8001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8002$as_echo "$lt_cv_objdir" >&6; }
8003objdir=$lt_cv_objdir
8004
8005
8006
8007
8008
8009cat >>confdefs.h <<_ACEOF
8010#define LT_OBJDIR "$lt_cv_objdir/"
8011_ACEOF
8012
8013
8014
8015
8016case $host_os in
8017aix3*)
8018 # AIX sometimes has problems with the GCC collect2 program. For some
8019 # reason, if we set the COLLECT_NAMES environment variable, the problems
8020 # vanish in a puff of smoke.
8021 if test "X${COLLECT_NAMES+set}" != Xset; then
8022 COLLECT_NAMES=
8023 export COLLECT_NAMES
8024 fi
8025 ;;
8026esac
8027
8028# Global variables:
8029ofile=libtool
8030can_build_shared=yes
8031
8032# All known linkers require a `.a' archive for static linking (except MSVC,
8033# which needs '.lib').
8034libext=a
8035
8036with_gnu_ld="$lt_cv_prog_gnu_ld"
8037
8038old_CC="$CC"
8039old_CFLAGS="$CFLAGS"
8040
8041# Set sane defaults for various variables
8042test -z "$CC" && CC=cc
8043test -z "$LTCC" && LTCC=$CC
8044test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8045test -z "$LD" && LD=ld
8046test -z "$ac_objext" && ac_objext=o
8047
8048for cc_temp in $compiler""; do
8049 case $cc_temp in
8050 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8051 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8052 \-*) ;;
8053 *) break;;
8054 esac
8055done
8056cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8057
8058
8059# Only perform the check for file, if the check method requires it
8060test -z "$MAGIC_CMD" && MAGIC_CMD=file
8061case $deplibs_check_method in
8062file_magic*)
8063 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8065$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8066if ${lt_cv_path_MAGIC_CMD+:} false; then :
8067 $as_echo_n "(cached) " >&6
8068else
8069 case $MAGIC_CMD in
8070[\\/*] | ?:[\\/]*)
8071 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8072 ;;
8073*)
8074 lt_save_MAGIC_CMD="$MAGIC_CMD"
8075 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8076 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8077 for ac_dir in $ac_dummy; do
8078 IFS="$lt_save_ifs"
8079 test -z "$ac_dir" && ac_dir=.
8080 if test -f $ac_dir/${ac_tool_prefix}file; then
8081 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8082 if test -n "$file_magic_test_file"; then
8083 case $deplibs_check_method in
8084 "file_magic "*)
8085 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8086 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8087 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8088 $EGREP "$file_magic_regex" > /dev/null; then
8089 :
8090 else
8091 cat <<_LT_EOF 1>&2
8092
8093*** Warning: the command libtool uses to detect shared libraries,
8094*** $file_magic_cmd, produces output that libtool cannot recognize.
8095*** The result is that libtool may fail to recognize shared libraries
8096*** as such. This will affect the creation of libtool libraries that
8097*** depend on shared libraries, but programs linked with such libtool
8098*** libraries will work regardless of this problem. Nevertheless, you
8099*** may want to report the problem to your system manager and/or to
8100*** bug-libtool@gnu.org
8101
8102_LT_EOF
8103 fi ;;
8104 esac
8105 fi
8106 break
8107 fi
8108 done
8109 IFS="$lt_save_ifs"
8110 MAGIC_CMD="$lt_save_MAGIC_CMD"
8111 ;;
8112esac
8113fi
8114
8115MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8116if test -n "$MAGIC_CMD"; then
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8118$as_echo "$MAGIC_CMD" >&6; }
8119else
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8121$as_echo "no" >&6; }
8122fi
8123
8124
8125
8126
8127
8128if test -z "$lt_cv_path_MAGIC_CMD"; then
8129 if test -n "$ac_tool_prefix"; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8131$as_echo_n "checking for file... " >&6; }
8132if ${lt_cv_path_MAGIC_CMD+:} false; then :
8133 $as_echo_n "(cached) " >&6
8134else
8135 case $MAGIC_CMD in
8136[\\/*] | ?:[\\/]*)
8137 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8138 ;;
8139*)
8140 lt_save_MAGIC_CMD="$MAGIC_CMD"
8141 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8142 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8143 for ac_dir in $ac_dummy; do
8144 IFS="$lt_save_ifs"
8145 test -z "$ac_dir" && ac_dir=.
8146 if test -f $ac_dir/file; then
8147 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8148 if test -n "$file_magic_test_file"; then
8149 case $deplibs_check_method in
8150 "file_magic "*)
8151 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8152 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8153 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8154 $EGREP "$file_magic_regex" > /dev/null; then
8155 :
8156 else
8157 cat <<_LT_EOF 1>&2
8158
8159*** Warning: the command libtool uses to detect shared libraries,
8160*** $file_magic_cmd, produces output that libtool cannot recognize.
8161*** The result is that libtool may fail to recognize shared libraries
8162*** as such. This will affect the creation of libtool libraries that
8163*** depend on shared libraries, but programs linked with such libtool
8164*** libraries will work regardless of this problem. Nevertheless, you
8165*** may want to report the problem to your system manager and/or to
8166*** bug-libtool@gnu.org
8167
8168_LT_EOF
8169 fi ;;
8170 esac
8171 fi
8172 break
8173 fi
8174 done
8175 IFS="$lt_save_ifs"
8176 MAGIC_CMD="$lt_save_MAGIC_CMD"
8177 ;;
8178esac
8179fi
8180
8181MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8182if test -n "$MAGIC_CMD"; then
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8184$as_echo "$MAGIC_CMD" >&6; }
8185else
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8187$as_echo "no" >&6; }
8188fi
8189
8190
8191 else
8192 MAGIC_CMD=:
8193 fi
8194fi
8195
8196 fi
8197 ;;
8198esac
8199
8200# Use C for the default configuration in the libtool script
8201
8202lt_save_CC="$CC"
8203ac_ext=c
8204ac_cpp='$CPP $CPPFLAGS'
8205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8207ac_compiler_gnu=$ac_cv_c_compiler_gnu
8208
8209
8210# Source file extension for C test sources.
8211ac_ext=c
8212
8213# Object file extension for compiled C test sources.
8214objext=o
8215objext=$objext
8216
8217# Code to be used in simple compile tests
8218lt_simple_compile_test_code="int some_variable = 0;"
8219
8220# Code to be used in simple link tests
8221lt_simple_link_test_code='int main(){return(0);}'
8222
8223
8224
8225
8226
8227
8228
8229# If no C compiler was specified, use CC.
8230LTCC=${LTCC-"$CC"}
8231
8232# If no C compiler flags were specified, use CFLAGS.
8233LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8234
8235# Allow CC to be a program name with arguments.
8236compiler=$CC
8237
8238# Save the default compiler, since it gets overwritten when the other
8239# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8240compiler_DEFAULT=$CC
8241
8242# save warnings/boilerplate of simple test code
8243ac_outfile=conftest.$ac_objext
8244echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8245eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8246_lt_compiler_boilerplate=`cat conftest.err`
8247$RM conftest*
8248
8249ac_outfile=conftest.$ac_objext
8250echo "$lt_simple_link_test_code" >conftest.$ac_ext
8251eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8252_lt_linker_boilerplate=`cat conftest.err`
8253$RM -r conftest*
8254
8255
8256if test -n "$compiler"; then
8257
8258lt_prog_compiler_no_builtin_flag=
8259
8260if test "$GCC" = yes; then
8261 case $cc_basename in
8262 nvcc*)
8263 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8264 *)
8265 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8266 esac
8267
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8269$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8270if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8271 $as_echo_n "(cached) " >&6
8272else
8273 lt_cv_prog_compiler_rtti_exceptions=no
8274 ac_outfile=conftest.$ac_objext
8275 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8276 lt_compiler_flag="-fno-rtti -fno-exceptions"
8277 # Insert the option either (1) after the last *FLAGS variable, or
8278 # (2) before a word containing "conftest.", or (3) at the end.
8279 # Note that $ac_compile itself does not contain backslashes and begins
8280 # with a dollar sign (not a hyphen), so the echo should work correctly.
8281 # The option is referenced via a variable to avoid confusing sed.
8282 lt_compile=`echo "$ac_compile" | $SED \
8283 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8284 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8285 -e 's:$: $lt_compiler_flag:'`
8286 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8287 (eval "$lt_compile" 2>conftest.err)
8288 ac_status=$?
8289 cat conftest.err >&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 if (exit $ac_status) && test -s "$ac_outfile"; then
8292 # The compiler can only warn and ignore the option if not recognized
8293 # So say no if there are warnings other than the usual output.
8294 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8295 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8296 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8297 lt_cv_prog_compiler_rtti_exceptions=yes
8298 fi
8299 fi
8300 $RM conftest*
8301
8302fi
8303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8304$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8305
8306if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8307 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8308else
8309 :
8310fi
8311
8312fi
8313
8314
8315
8316
8317
8318
8319 lt_prog_compiler_wl=
8320lt_prog_compiler_pic=
8321lt_prog_compiler_static=
8322
8323
8324 if test "$GCC" = yes; then
8325 lt_prog_compiler_wl='-Wl,'
8326 lt_prog_compiler_static='-static'
8327
8328 case $host_os in
8329 aix*)
8330 # All AIX code is PIC.
8331 if test "$host_cpu" = ia64; then
8332 # AIX 5 now supports IA64 processor
8333 lt_prog_compiler_static='-Bstatic'
8334 fi
8335 ;;
8336
8337 amigaos*)
8338 case $host_cpu in
8339 powerpc)
8340 # see comment about AmigaOS4 .so support
8341 lt_prog_compiler_pic='-fPIC'
8342 ;;
8343 m68k)
8344 # FIXME: we need at least 68020 code to build shared libraries, but
8345 # adding the `-m68020' flag to GCC prevents building anything better,
8346 # like `-m68040'.
8347 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8348 ;;
8349 esac
8350 ;;
8351
8352 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8353 # PIC is the default for these OSes.
8354 ;;
8355
8356 mingw* | cygwin* | pw32* | os2* | cegcc*)
8357 # This hack is so that the source file can tell whether it is being
8358 # built for inclusion in a dll (and should export symbols for example).
8359 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8360 # (--disable-auto-import) libraries
8361 lt_prog_compiler_pic='-DDLL_EXPORT'
8362 ;;
8363
8364 darwin* | rhapsody*)
8365 # PIC is the default on this platform
8366 # Common symbols not allowed in MH_DYLIB files
8367 lt_prog_compiler_pic='-fno-common'
8368 ;;
8369
8370 haiku*)
8371 # PIC is the default for Haiku.
8372 # The "-static" flag exists, but is broken.
8373 lt_prog_compiler_static=
8374 ;;
8375
8376 hpux*)
8377 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8378 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8379 # sets the default TLS model and affects inlining.
8380 case $host_cpu in
8381 hppa*64*)
8382 # +Z the default
8383 ;;
8384 *)
8385 lt_prog_compiler_pic='-fPIC'
8386 ;;
8387 esac
8388 ;;
8389
8390 interix[3-9]*)
8391 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8392 # Instead, we relocate shared libraries at runtime.
8393 ;;
8394
8395 msdosdjgpp*)
8396 # Just because we use GCC doesn't mean we suddenly get shared libraries
8397 # on systems that don't support them.
8398 lt_prog_compiler_can_build_shared=no
8399 enable_shared=no
8400 ;;
8401
8402 *nto* | *qnx*)
8403 # QNX uses GNU C++, but need to define -shared option too, otherwise
8404 # it will coredump.
8405 lt_prog_compiler_pic='-fPIC -shared'
8406 ;;
8407
8408 sysv4*MP*)
8409 if test -d /usr/nec; then
8410 lt_prog_compiler_pic=-Kconform_pic
8411 fi
8412 ;;
8413
8414 *)
8415 lt_prog_compiler_pic='-fPIC'
8416 ;;
8417 esac
8418
8419 case $cc_basename in
8420 nvcc*) # Cuda Compiler Driver 2.2
8421 lt_prog_compiler_wl='-Xlinker '
8422 if test -n "$lt_prog_compiler_pic"; then
8423 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8424 fi
8425 ;;
8426 esac
8427 else
8428 # PORTME Check for flag to pass linker flags through the system compiler.
8429 case $host_os in
8430 aix*)
8431 lt_prog_compiler_wl='-Wl,'
8432 if test "$host_cpu" = ia64; then
8433 # AIX 5 now supports IA64 processor
8434 lt_prog_compiler_static='-Bstatic'
8435 else
8436 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8437 fi
8438 ;;
8439
8440 mingw* | cygwin* | pw32* | os2* | cegcc*)
8441 # This hack is so that the source file can tell whether it is being
8442 # built for inclusion in a dll (and should export symbols for example).
8443 lt_prog_compiler_pic='-DDLL_EXPORT'
8444 ;;
8445
8446 hpux9* | hpux10* | hpux11*)
8447 lt_prog_compiler_wl='-Wl,'
8448 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8449 # not for PA HP-UX.
8450 case $host_cpu in
8451 hppa*64*|ia64*)
8452 # +Z the default
8453 ;;
8454 *)
8455 lt_prog_compiler_pic='+Z'
8456 ;;
8457 esac
8458 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8459 lt_prog_compiler_static='${wl}-a ${wl}archive'
8460 ;;
8461
8462 irix5* | irix6* | nonstopux*)
8463 lt_prog_compiler_wl='-Wl,'
8464 # PIC (with -KPIC) is the default.
8465 lt_prog_compiler_static='-non_shared'
8466 ;;
8467
8468 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8469 case $cc_basename in
8470 # old Intel for x86_64 which still supported -KPIC.
8471 ecc*)
8472 lt_prog_compiler_wl='-Wl,'
8473 lt_prog_compiler_pic='-KPIC'
8474 lt_prog_compiler_static='-static'
8475 ;;
8476 # icc used to be incompatible with GCC.
8477 # ICC 10 doesn't accept -KPIC any more.
8478 icc* | ifort*)
8479 lt_prog_compiler_wl='-Wl,'
8480 lt_prog_compiler_pic='-fPIC'
8481 lt_prog_compiler_static='-static'
8482 ;;
8483 # Lahey Fortran 8.1.
8484 lf95*)
8485 lt_prog_compiler_wl='-Wl,'
8486 lt_prog_compiler_pic='--shared'
8487 lt_prog_compiler_static='--static'
8488 ;;
8489 nagfor*)
8490 # NAG Fortran compiler
8491 lt_prog_compiler_wl='-Wl,-Wl,,'
8492 lt_prog_compiler_pic='-PIC'
8493 lt_prog_compiler_static='-Bstatic'
8494 ;;
8495 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8496 # Portland Group compilers (*not* the Pentium gcc compiler,
8497 # which looks to be a dead project)
8498 lt_prog_compiler_wl='-Wl,'
8499 lt_prog_compiler_pic='-fpic'
8500 lt_prog_compiler_static='-Bstatic'
8501 ;;
8502 ccc*)
8503 lt_prog_compiler_wl='-Wl,'
8504 # All Alpha code is PIC.
8505 lt_prog_compiler_static='-non_shared'
8506 ;;
8507 xl* | bgxl* | bgf* | mpixl*)
8508 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8509 lt_prog_compiler_wl='-Wl,'
8510 lt_prog_compiler_pic='-qpic'
8511 lt_prog_compiler_static='-qstaticlink'
8512 ;;
8513 *)
8514 case `$CC -V 2>&1 | sed 5q` in
8515 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8516 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8517 lt_prog_compiler_pic='-KPIC'
8518 lt_prog_compiler_static='-Bstatic'
8519 lt_prog_compiler_wl=''
8520 ;;
8521 *Sun\ F* | *Sun*Fortran*)
8522 lt_prog_compiler_pic='-KPIC'
8523 lt_prog_compiler_static='-Bstatic'
8524 lt_prog_compiler_wl='-Qoption ld '
8525 ;;
8526 *Sun\ C*)
8527 # Sun C 5.9
8528 lt_prog_compiler_pic='-KPIC'
8529 lt_prog_compiler_static='-Bstatic'
8530 lt_prog_compiler_wl='-Wl,'
8531 ;;
8532 *Intel*\ [CF]*Compiler*)
8533 lt_prog_compiler_wl='-Wl,'
8534 lt_prog_compiler_pic='-fPIC'
8535 lt_prog_compiler_static='-static'
8536 ;;
8537 *Portland\ Group*)
8538 lt_prog_compiler_wl='-Wl,'
8539 lt_prog_compiler_pic='-fpic'
8540 lt_prog_compiler_static='-Bstatic'
8541 ;;
8542 esac
8543 ;;
8544 esac
8545 ;;
8546
8547 newsos6)
8548 lt_prog_compiler_pic='-KPIC'
8549 lt_prog_compiler_static='-Bstatic'
8550 ;;
8551
8552 *nto* | *qnx*)
8553 # QNX uses GNU C++, but need to define -shared option too, otherwise
8554 # it will coredump.
8555 lt_prog_compiler_pic='-fPIC -shared'
8556 ;;
8557
8558 osf3* | osf4* | osf5*)
8559 lt_prog_compiler_wl='-Wl,'
8560 # All OSF/1 code is PIC.
8561 lt_prog_compiler_static='-non_shared'
8562 ;;
8563
8564 rdos*)
8565 lt_prog_compiler_static='-non_shared'
8566 ;;
8567
8568 solaris*)
8569 lt_prog_compiler_pic='-KPIC'
8570 lt_prog_compiler_static='-Bstatic'
8571 case $cc_basename in
8572 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8573 lt_prog_compiler_wl='-Qoption ld ';;
8574 *)
8575 lt_prog_compiler_wl='-Wl,';;
8576 esac
8577 ;;
8578
8579 sunos4*)
8580 lt_prog_compiler_wl='-Qoption ld '
8581 lt_prog_compiler_pic='-PIC'
8582 lt_prog_compiler_static='-Bstatic'
8583 ;;
8584
8585 sysv4 | sysv4.2uw2* | sysv4.3*)
8586 lt_prog_compiler_wl='-Wl,'
8587 lt_prog_compiler_pic='-KPIC'
8588 lt_prog_compiler_static='-Bstatic'
8589 ;;
8590
8591 sysv4*MP*)
8592 if test -d /usr/nec ;then
8593 lt_prog_compiler_pic='-Kconform_pic'
8594 lt_prog_compiler_static='-Bstatic'
8595 fi
8596 ;;
8597
8598 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8599 lt_prog_compiler_wl='-Wl,'
8600 lt_prog_compiler_pic='-KPIC'
8601 lt_prog_compiler_static='-Bstatic'
8602 ;;
8603
8604 unicos*)
8605 lt_prog_compiler_wl='-Wl,'
8606 lt_prog_compiler_can_build_shared=no
8607 ;;
8608
8609 uts4*)
8610 lt_prog_compiler_pic='-pic'
8611 lt_prog_compiler_static='-Bstatic'
8612 ;;
8613
8614 *)
8615 lt_prog_compiler_can_build_shared=no
8616 ;;
8617 esac
8618 fi
8619
8620case $host_os in
8621 # For platforms which do not support PIC, -DPIC is meaningless:
8622 *djgpp*)
8623 lt_prog_compiler_pic=
8624 ;;
8625 *)
8626 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8627 ;;
8628esac
8629
8630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8631$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8632if ${lt_cv_prog_compiler_pic+:} false; then :
8633 $as_echo_n "(cached) " >&6
8634else
8635 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8636fi
8637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8638$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8639lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8640
8641#
8642# Check to make sure the PIC flag actually works.
8643#
8644if test -n "$lt_prog_compiler_pic"; then
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8646$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8647if ${lt_cv_prog_compiler_pic_works+:} false; then :
8648 $as_echo_n "(cached) " >&6
8649else
8650 lt_cv_prog_compiler_pic_works=no
8651 ac_outfile=conftest.$ac_objext
8652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8653 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8654 # Insert the option either (1) after the last *FLAGS variable, or
8655 # (2) before a word containing "conftest.", or (3) at the end.
8656 # Note that $ac_compile itself does not contain backslashes and begins
8657 # with a dollar sign (not a hyphen), so the echo should work correctly.
8658 # The option is referenced via a variable to avoid confusing sed.
8659 lt_compile=`echo "$ac_compile" | $SED \
8660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8662 -e 's:$: $lt_compiler_flag:'`
8663 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8664 (eval "$lt_compile" 2>conftest.err)
8665 ac_status=$?
8666 cat conftest.err >&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 if (exit $ac_status) && test -s "$ac_outfile"; then
8669 # The compiler can only warn and ignore the option if not recognized
8670 # So say no if there are warnings other than the usual output.
8671 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8672 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8673 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8674 lt_cv_prog_compiler_pic_works=yes
8675 fi
8676 fi
8677 $RM conftest*
8678
8679fi
8680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8681$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8682
8683if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8684 case $lt_prog_compiler_pic in
8685 "" | " "*) ;;
8686 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8687 esac
8688else
8689 lt_prog_compiler_pic=
8690 lt_prog_compiler_can_build_shared=no
8691fi
8692
8693fi
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705#
8706# Check to make sure the static flag actually works.
8707#
8708wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8710$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8711if ${lt_cv_prog_compiler_static_works+:} false; then :
8712 $as_echo_n "(cached) " >&6
8713else
8714 lt_cv_prog_compiler_static_works=no
8715 save_LDFLAGS="$LDFLAGS"
8716 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8717 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8718 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8719 # The linker can only warn and ignore the option if not recognized
8720 # So say no if there are warnings
8721 if test -s conftest.err; then
8722 # Append any errors to the config.log.
8723 cat conftest.err 1>&5
8724 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8725 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8726 if diff conftest.exp conftest.er2 >/dev/null; then
8727 lt_cv_prog_compiler_static_works=yes
8728 fi
8729 else
8730 lt_cv_prog_compiler_static_works=yes
8731 fi
8732 fi
8733 $RM -r conftest*
8734 LDFLAGS="$save_LDFLAGS"
8735
8736fi
8737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8738$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8739
8740if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8741 :
8742else
8743 lt_prog_compiler_static=
8744fi
8745
8746
8747
8748
8749
8750
8751
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8753$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8754if ${lt_cv_prog_compiler_c_o+:} false; then :
8755 $as_echo_n "(cached) " >&6
8756else
8757 lt_cv_prog_compiler_c_o=no
8758 $RM -r conftest 2>/dev/null
8759 mkdir conftest
8760 cd conftest
8761 mkdir out
8762 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8763
8764 lt_compiler_flag="-o out/conftest2.$ac_objext"
8765 # Insert the option either (1) after the last *FLAGS variable, or
8766 # (2) before a word containing "conftest.", or (3) at the end.
8767 # Note that $ac_compile itself does not contain backslashes and begins
8768 # with a dollar sign (not a hyphen), so the echo should work correctly.
8769 lt_compile=`echo "$ac_compile" | $SED \
8770 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8771 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8772 -e 's:$: $lt_compiler_flag:'`
8773 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8774 (eval "$lt_compile" 2>out/conftest.err)
8775 ac_status=$?
8776 cat out/conftest.err >&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8779 then
8780 # The compiler can only warn and ignore the option if not recognized
8781 # So say no if there are warnings
8782 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8783 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8784 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8785 lt_cv_prog_compiler_c_o=yes
8786 fi
8787 fi
8788 chmod u+w . 2>&5
8789 $RM conftest*
8790 # SGI C++ compiler will create directory out/ii_files/ for
8791 # template instantiation
8792 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8793 $RM out/* && rmdir out
8794 cd ..
8795 $RM -r conftest
8796 $RM conftest*
8797
8798fi
8799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8800$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8801
8802
8803
8804
8805
8806
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8808$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8809if ${lt_cv_prog_compiler_c_o+:} false; then :
8810 $as_echo_n "(cached) " >&6
8811else
8812 lt_cv_prog_compiler_c_o=no
8813 $RM -r conftest 2>/dev/null
8814 mkdir conftest
8815 cd conftest
8816 mkdir out
8817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8818
8819 lt_compiler_flag="-o out/conftest2.$ac_objext"
8820 # Insert the option either (1) after the last *FLAGS variable, or
8821 # (2) before a word containing "conftest.", or (3) at the end.
8822 # Note that $ac_compile itself does not contain backslashes and begins
8823 # with a dollar sign (not a hyphen), so the echo should work correctly.
8824 lt_compile=`echo "$ac_compile" | $SED \
8825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8827 -e 's:$: $lt_compiler_flag:'`
8828 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8829 (eval "$lt_compile" 2>out/conftest.err)
8830 ac_status=$?
8831 cat out/conftest.err >&5
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8834 then
8835 # The compiler can only warn and ignore the option if not recognized
8836 # So say no if there are warnings
8837 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8838 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8839 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8840 lt_cv_prog_compiler_c_o=yes
8841 fi
8842 fi
8843 chmod u+w . 2>&5
8844 $RM conftest*
8845 # SGI C++ compiler will create directory out/ii_files/ for
8846 # template instantiation
8847 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8848 $RM out/* && rmdir out
8849 cd ..
8850 $RM -r conftest
8851 $RM conftest*
8852
8853fi
8854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8855$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8856
8857
8858
8859
8860hard_links="nottested"
8861if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8862 # do not overwrite the value of need_locks provided by the user
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8864$as_echo_n "checking if we can lock with hard links... " >&6; }
8865 hard_links=yes
8866 $RM conftest*
8867 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8868 touch conftest.a
8869 ln conftest.a conftest.b 2>&5 || hard_links=no
8870 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8872$as_echo "$hard_links" >&6; }
8873 if test "$hard_links" = no; then
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8875$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8876 need_locks=warn
8877 fi
8878else
8879 need_locks=no
8880fi
8881
8882
8883
8884
8885
8886
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8888$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8889
8890 runpath_var=
8891 allow_undefined_flag=
8892 always_export_symbols=no
8893 archive_cmds=
8894 archive_expsym_cmds=
8895 compiler_needs_object=no
8896 enable_shared_with_static_runtimes=no
8897 export_dynamic_flag_spec=
8898 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8899 hardcode_automatic=no
8900 hardcode_direct=no
8901 hardcode_direct_absolute=no
8902 hardcode_libdir_flag_spec=
8903 hardcode_libdir_separator=
8904 hardcode_minus_L=no
8905 hardcode_shlibpath_var=unsupported
8906 inherit_rpath=no
8907 link_all_deplibs=unknown
8908 module_cmds=
8909 module_expsym_cmds=
8910 old_archive_from_new_cmds=
8911 old_archive_from_expsyms_cmds=
8912 thread_safe_flag_spec=
8913 whole_archive_flag_spec=
8914 # include_expsyms should be a list of space-separated symbols to be *always*
8915 # included in the symbol list
8916 include_expsyms=
8917 # exclude_expsyms can be an extended regexp of symbols to exclude
8918 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8919 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8920 # as well as any symbol that contains `d'.
8921 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8922 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8923 # platforms (ab)use it in PIC code, but their linkers get confused if
8924 # the symbol is explicitly referenced. Since portable code cannot
8925 # rely on this symbol name, it's probably fine to never include it in
8926 # preloaded symbol tables.
8927 # Exclude shared library initialization/finalization symbols.
8928 extract_expsyms_cmds=
8929
8930 case $host_os in
8931 cygwin* | mingw* | pw32* | cegcc*)
8932 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8933 # When not using gcc, we currently assume that we are using
8934 # Microsoft Visual C++.
8935 if test "$GCC" != yes; then
8936 with_gnu_ld=no
8937 fi
8938 ;;
8939 interix*)
8940 # we just hope/assume this is gcc and not c89 (= MSVC++)
8941 with_gnu_ld=yes
8942 ;;
8943 openbsd*)
8944 with_gnu_ld=no
8945 ;;
8946 esac
8947
8948 ld_shlibs=yes
8949
8950 # On some targets, GNU ld is compatible enough with the native linker
8951 # that we're better off using the native interface for both.
8952 lt_use_gnu_ld_interface=no
8953 if test "$with_gnu_ld" = yes; then
8954 case $host_os in
8955 aix*)
8956 # The AIX port of GNU ld has always aspired to compatibility
8957 # with the native linker. However, as the warning in the GNU ld
8958 # block says, versions before 2.19.5* couldn't really create working
8959 # shared libraries, regardless of the interface used.
8960 case `$LD -v 2>&1` in
8961 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8962 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8963 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8964 *)
8965 lt_use_gnu_ld_interface=yes
8966 ;;
8967 esac
8968 ;;
8969 *)
8970 lt_use_gnu_ld_interface=yes
8971 ;;
8972 esac
8973 fi
8974
8975 if test "$lt_use_gnu_ld_interface" = yes; then
8976 # If archive_cmds runs LD, not CC, wlarc should be empty
8977 wlarc='${wl}'
8978
8979 # Set some defaults for GNU ld with shared library support. These
8980 # are reset later if shared libraries are not supported. Putting them
8981 # here allows them to be overridden if necessary.
8982 runpath_var=LD_RUN_PATH
8983 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8984 export_dynamic_flag_spec='${wl}--export-dynamic'
8985 # ancient GNU ld didn't support --whole-archive et. al.
8986 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8987 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8988 else
8989 whole_archive_flag_spec=
8990 fi
8991 supports_anon_versioning=no
8992 case `$LD -v 2>&1` in
8993 *GNU\ gold*) supports_anon_versioning=yes ;;
8994 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8995 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8996 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8997 *\ 2.11.*) ;; # other 2.11 versions
8998 *) supports_anon_versioning=yes ;;
8999 esac
9000
9001 # See if GNU ld supports shared libraries.
9002 case $host_os in
9003 aix[3-9]*)
9004 # On AIX/PPC, the GNU linker is very broken
9005 if test "$host_cpu" != ia64; then
9006 ld_shlibs=no
9007 cat <<_LT_EOF 1>&2
9008
9009*** Warning: the GNU linker, at least up to release 2.19, is reported
9010*** to be unable to reliably create shared libraries on AIX.
9011*** Therefore, libtool is disabling shared libraries support. If you
9012*** really care for shared libraries, you may want to install binutils
9013*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9014*** You will then need to restart the configuration process.
9015
9016_LT_EOF
9017 fi
9018 ;;
9019
9020 amigaos*)
9021 case $host_cpu in
9022 powerpc)
9023 # see comment about AmigaOS4 .so support
9024 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9025 archive_expsym_cmds=''
9026 ;;
9027 m68k)
9028 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)'
9029 hardcode_libdir_flag_spec='-L$libdir'
9030 hardcode_minus_L=yes
9031 ;;
9032 esac
9033 ;;
9034
9035 beos*)
9036 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9037 allow_undefined_flag=unsupported
9038 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9039 # support --undefined. This deserves some investigation. FIXME
9040 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9041 else
9042 ld_shlibs=no
9043 fi
9044 ;;
9045
9046 cygwin* | mingw* | pw32* | cegcc*)
9047 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9048 # as there is no search path for DLLs.
9049 hardcode_libdir_flag_spec='-L$libdir'
9050 export_dynamic_flag_spec='${wl}--export-all-symbols'
9051 allow_undefined_flag=unsupported
9052 always_export_symbols=no
9053 enable_shared_with_static_runtimes=yes
9054 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'
9055 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9056
9057 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9059 # If the export-symbols file already is a .def file (1st line
9060 # is EXPORTS), use it as is; otherwise, prepend...
9061 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9062 cp $export_symbols $output_objdir/$soname.def;
9063 else
9064 echo EXPORTS > $output_objdir/$soname.def;
9065 cat $export_symbols >> $output_objdir/$soname.def;
9066 fi~
9067 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9068 else
9069 ld_shlibs=no
9070 fi
9071 ;;
9072
9073 haiku*)
9074 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9075 link_all_deplibs=yes
9076 ;;
9077
9078 interix[3-9]*)
9079 hardcode_direct=no
9080 hardcode_shlibpath_var=no
9081 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9082 export_dynamic_flag_spec='${wl}-E'
9083 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9084 # Instead, shared libraries are loaded at an image base (0x10000000 by
9085 # default) and relocated if they conflict, which is a slow very memory
9086 # consuming and fragmenting process. To avoid this, we pick a random,
9087 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9088 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9089 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9090 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'
9091 ;;
9092
9093 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9094 tmp_diet=no
9095 if test "$host_os" = linux-dietlibc; then
9096 case $cc_basename in
9097 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9098 esac
9099 fi
9100 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9101 && test "$tmp_diet" = no
9102 then
9103 tmp_addflag=' $pic_flag'
9104 tmp_sharedflag='-shared'
9105 case $cc_basename,$host_cpu in
9106 pgcc*) # Portland Group C compiler
9107 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'
9108 tmp_addflag=' $pic_flag'
9109 ;;
9110 pgf77* | pgf90* | pgf95* | pgfortran*)
9111 # Portland Group f77 and f90 compilers
9112 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'
9113 tmp_addflag=' $pic_flag -Mnomain' ;;
9114 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9115 tmp_addflag=' -i_dynamic' ;;
9116 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9117 tmp_addflag=' -i_dynamic -nofor_main' ;;
9118 ifc* | ifort*) # Intel Fortran compiler
9119 tmp_addflag=' -nofor_main' ;;
9120 lf95*) # Lahey Fortran 8.1
9121 whole_archive_flag_spec=
9122 tmp_sharedflag='--shared' ;;
9123 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9124 tmp_sharedflag='-qmkshrobj'
9125 tmp_addflag= ;;
9126 nvcc*) # Cuda Compiler Driver 2.2
9127 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'
9128 compiler_needs_object=yes
9129 ;;
9130 esac
9131 case `$CC -V 2>&1 | sed 5q` in
9132 *Sun\ C*) # Sun C 5.9
9133 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'
9134 compiler_needs_object=yes
9135 tmp_sharedflag='-G' ;;
9136 *Sun\ F*) # Sun Fortran 8.3
9137 tmp_sharedflag='-G' ;;
9138 esac
9139 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9140
9141 if test "x$supports_anon_versioning" = xyes; then
9142 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9143 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9144 echo "local: *; };" >> $output_objdir/$libname.ver~
9145 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9146 fi
9147
9148 case $cc_basename in
9149 xlf* | bgf* | bgxlf* | mpixlf*)
9150 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9151 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9152 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9153 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9154 if test "x$supports_anon_versioning" = xyes; then
9155 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9156 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9157 echo "local: *; };" >> $output_objdir/$libname.ver~
9158 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9159 fi
9160 ;;
9161 esac
9162 else
9163 ld_shlibs=no
9164 fi
9165 ;;
9166
9167 netbsd*)
9168 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9169 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9170 wlarc=
9171 else
9172 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9173 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9174 fi
9175 ;;
9176
9177 solaris*)
9178 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9179 ld_shlibs=no
9180 cat <<_LT_EOF 1>&2
9181
9182*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9183*** create shared libraries on Solaris systems. Therefore, libtool
9184*** is disabling shared libraries support. We urge you to upgrade GNU
9185*** binutils to release 2.9.1 or newer. Another option is to modify
9186*** your PATH or compiler configuration so that the native linker is
9187*** used, and then restart.
9188
9189_LT_EOF
9190 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9191 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9192 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9193 else
9194 ld_shlibs=no
9195 fi
9196 ;;
9197
9198 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9199 case `$LD -v 2>&1` in
9200 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9201 ld_shlibs=no
9202 cat <<_LT_EOF 1>&2
9203
9204*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9205*** reliably create shared libraries on SCO systems. Therefore, libtool
9206*** is disabling shared libraries support. We urge you to upgrade GNU
9207*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9208*** your PATH or compiler configuration so that the native linker is
9209*** used, and then restart.
9210
9211_LT_EOF
9212 ;;
9213 *)
9214 # For security reasons, it is highly recommended that you always
9215 # use absolute paths for naming shared libraries, and exclude the
9216 # DT_RUNPATH tag from executables and libraries. But doing so
9217 # requires that you compile everything twice, which is a pain.
9218 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9219 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9220 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9221 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9222 else
9223 ld_shlibs=no
9224 fi
9225 ;;
9226 esac
9227 ;;
9228
9229 sunos4*)
9230 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9231 wlarc=
9232 hardcode_direct=yes
9233 hardcode_shlibpath_var=no
9234 ;;
9235
9236 *)
9237 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9238 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9239 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9240 else
9241 ld_shlibs=no
9242 fi
9243 ;;
9244 esac
9245
9246 if test "$ld_shlibs" = no; then
9247 runpath_var=
9248 hardcode_libdir_flag_spec=
9249 export_dynamic_flag_spec=
9250 whole_archive_flag_spec=
9251 fi
9252 else
9253 # PORTME fill in a description of your system's linker (not GNU ld)
9254 case $host_os in
9255 aix3*)
9256 allow_undefined_flag=unsupported
9257 always_export_symbols=yes
9258 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'
9259 # Note: this linker hardcodes the directories in LIBPATH if there
9260 # are no directories specified by -L.
9261 hardcode_minus_L=yes
9262 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9263 # Neither direct hardcoding nor static linking is supported with a
9264 # broken collect2.
9265 hardcode_direct=unsupported
9266 fi
9267 ;;
9268
9269 aix[4-9]*)
9270 if test "$host_cpu" = ia64; then
9271 # On IA64, the linker does run time linking by default, so we don't
9272 # have to do anything special.
9273 aix_use_runtimelinking=no
9274 exp_sym_flag='-Bexport'
9275 no_entry_flag=""
9276 else
9277 # If we're using GNU nm, then we don't want the "-C" option.
9278 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9279 # Also, AIX nm treats weak defined symbols like other global
9280 # defined symbols, whereas GNU nm marks them as "W".
9281 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9282 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'
9283 else
9284 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'
9285 fi
9286 aix_use_runtimelinking=no
9287
9288 # Test if we are trying to use run time linking or normal
9289 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9290 # need to do runtime linking.
9291 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9292 for ld_flag in $LDFLAGS; do
9293 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9294 aix_use_runtimelinking=yes
9295 break
9296 fi
9297 done
9298 ;;
9299 esac
9300
9301 exp_sym_flag='-bexport'
9302 no_entry_flag='-bnoentry'
9303 fi
9304
9305 # When large executables or shared objects are built, AIX ld can
9306 # have problems creating the table of contents. If linking a library
9307 # or program results in "error TOC overflow" add -mminimal-toc to
9308 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9309 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9310
9311 archive_cmds=''
9312 hardcode_direct=yes
9313 hardcode_direct_absolute=yes
9314 hardcode_libdir_separator=':'
9315 link_all_deplibs=yes
9316 file_list_spec='${wl}-f,'
9317
9318 if test "$GCC" = yes; then
9319 case $host_os in aix4.[012]|aix4.[012].*)
9320 # We only want to do this on AIX 4.2 and lower, the check
9321 # below for broken collect2 doesn't work under 4.3+
9322 collect2name=`${CC} -print-prog-name=collect2`
9323 if test -f "$collect2name" &&
9324 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9325 then
9326 # We have reworked collect2
9327 :
9328 else
9329 # We have old collect2
9330 hardcode_direct=unsupported
9331 # It fails to find uninstalled libraries when the uninstalled
9332 # path is not listed in the libpath. Setting hardcode_minus_L
9333 # to unsupported forces relinking
9334 hardcode_minus_L=yes
9335 hardcode_libdir_flag_spec='-L$libdir'
9336 hardcode_libdir_separator=
9337 fi
9338 ;;
9339 esac
9340 shared_flag='-shared'
9341 if test "$aix_use_runtimelinking" = yes; then
9342 shared_flag="$shared_flag "'${wl}-G'
9343 fi
9344 else
9345 # not using gcc
9346 if test "$host_cpu" = ia64; then
9347 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9348 # chokes on -Wl,-G. The following line is correct:
9349 shared_flag='-G'
9350 else
9351 if test "$aix_use_runtimelinking" = yes; then
9352 shared_flag='${wl}-G'
9353 else
9354 shared_flag='${wl}-bM:SRE'
9355 fi
9356 fi
9357 fi
9358
9359 export_dynamic_flag_spec='${wl}-bexpall'
9360 # It seems that -bexpall does not export symbols beginning with
9361 # underscore (_), so it is better to generate a list of symbols to export.
9362 always_export_symbols=yes
9363 if test "$aix_use_runtimelinking" = yes; then
9364 # Warning - without using the other runtime loading flags (-brtl),
9365 # -berok will link without error, but may produce a broken library.
9366 allow_undefined_flag='-berok'
9367 # Determine the default libpath from the value encoded in an
9368 # empty executable.
9369 if test "${lt_cv_aix_libpath+set}" = set; then
9370 aix_libpath=$lt_cv_aix_libpath
9371else
9372 if ${lt_cv_aix_libpath_+:} false; then :
9373 $as_echo_n "(cached) " >&6
9374else
9375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9376/* end confdefs.h. */
9377
9378int
9379main ()
9380{
9381
9382 ;
9383 return 0;
9384}
9385_ACEOF
9386if ac_fn_c_try_link "$LINENO"; then :
9387
9388 lt_aix_libpath_sed='
9389 /Import File Strings/,/^$/ {
9390 /^0/ {
9391 s/^0 *\([^ ]*\) *$/\1/
9392 p
9393 }
9394 }'
9395 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9396 # Check for a 64-bit object if we didn't find anything.
9397 if test -z "$lt_cv_aix_libpath_"; then
9398 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9399 fi
9400fi
9401rm -f core conftest.err conftest.$ac_objext \
9402 conftest$ac_exeext conftest.$ac_ext
9403 if test -z "$lt_cv_aix_libpath_"; then
9404 lt_cv_aix_libpath_="/usr/lib:/lib"
9405 fi
9406
9407fi
9408
9409 aix_libpath=$lt_cv_aix_libpath_
9410fi
9411
9412 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9413 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"
9414 else
9415 if test "$host_cpu" = ia64; then
9416 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9417 allow_undefined_flag="-z nodefs"
9418 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"
9419 else
9420 # Determine the default libpath from the value encoded in an
9421 # empty executable.
9422 if test "${lt_cv_aix_libpath+set}" = set; then
9423 aix_libpath=$lt_cv_aix_libpath
9424else
9425 if ${lt_cv_aix_libpath_+:} false; then :
9426 $as_echo_n "(cached) " >&6
9427else
9428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9429/* end confdefs.h. */
9430
9431int
9432main ()
9433{
9434
9435 ;
9436 return 0;
9437}
9438_ACEOF
9439if ac_fn_c_try_link "$LINENO"; then :
9440
9441 lt_aix_libpath_sed='
9442 /Import File Strings/,/^$/ {
9443 /^0/ {
9444 s/^0 *\([^ ]*\) *$/\1/
9445 p
9446 }
9447 }'
9448 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9449 # Check for a 64-bit object if we didn't find anything.
9450 if test -z "$lt_cv_aix_libpath_"; then
9451 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9452 fi
9453fi
9454rm -f core conftest.err conftest.$ac_objext \
9455 conftest$ac_exeext conftest.$ac_ext
9456 if test -z "$lt_cv_aix_libpath_"; then
9457 lt_cv_aix_libpath_="/usr/lib:/lib"
9458 fi
9459
9460fi
9461
9462 aix_libpath=$lt_cv_aix_libpath_
9463fi
9464
9465 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9466 # Warning - without using the other run time loading flags,
9467 # -berok will link without error, but may produce a broken library.
9468 no_undefined_flag=' ${wl}-bernotok'
9469 allow_undefined_flag=' ${wl}-berok'
9470 if test "$with_gnu_ld" = yes; then
9471 # We only use this code for GNU lds that support --whole-archive.
9472 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9473 else
9474 # Exported symbols can be pulled into shared objects from archives
9475 whole_archive_flag_spec='$convenience'
9476 fi
9477 archive_cmds_need_lc=yes
9478 # This is similar to how AIX traditionally builds its shared libraries.
9479 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'
9480 fi
9481 fi
9482 ;;
9483
9484 amigaos*)
9485 case $host_cpu in
9486 powerpc)
9487 # see comment about AmigaOS4 .so support
9488 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9489 archive_expsym_cmds=''
9490 ;;
9491 m68k)
9492 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)'
9493 hardcode_libdir_flag_spec='-L$libdir'
9494 hardcode_minus_L=yes
9495 ;;
9496 esac
9497 ;;
9498
9499 bsdi[45]*)
9500 export_dynamic_flag_spec=-rdynamic
9501 ;;
9502
9503 cygwin* | mingw* | pw32* | cegcc*)
9504 # When not using gcc, we currently assume that we are using
9505 # Microsoft Visual C++.
9506 # hardcode_libdir_flag_spec is actually meaningless, as there is
9507 # no search path for DLLs.
9508 case $cc_basename in
9509 cl*)
9510 # Native MSVC
9511 hardcode_libdir_flag_spec=' '
9512 allow_undefined_flag=unsupported
9513 always_export_symbols=yes
9514 file_list_spec='@'
9515 # Tell ltmain to make .lib files, not .a files.
9516 libext=lib
9517 # Tell ltmain to make .dll files, not .so files.
9518 shrext_cmds=".dll"
9519 # FIXME: Setting linknames here is a bad hack.
9520 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9521 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9522 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9523 else
9524 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9525 fi~
9526 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9527 linknames='
9528 # The linker will not automatically build a static lib if we build a DLL.
9529 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9530 enable_shared_with_static_runtimes=yes
9531 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9532 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9533 # Don't use ranlib
9534 old_postinstall_cmds='chmod 644 $oldlib'
9535 postlink_cmds='lt_outputfile="@OUTPUT@"~
9536 lt_tool_outputfile="@TOOL_OUTPUT@"~
9537 case $lt_outputfile in
9538 *.exe|*.EXE) ;;
9539 *)
9540 lt_outputfile="$lt_outputfile.exe"
9541 lt_tool_outputfile="$lt_tool_outputfile.exe"
9542 ;;
9543 esac~
9544 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9545 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9546 $RM "$lt_outputfile.manifest";
9547 fi'
9548 ;;
9549 *)
9550 # Assume MSVC wrapper
9551 hardcode_libdir_flag_spec=' '
9552 allow_undefined_flag=unsupported
9553 # Tell ltmain to make .lib files, not .a files.
9554 libext=lib
9555 # Tell ltmain to make .dll files, not .so files.
9556 shrext_cmds=".dll"
9557 # FIXME: Setting linknames here is a bad hack.
9558 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9559 # The linker will automatically build a .lib file if we build a DLL.
9560 old_archive_from_new_cmds='true'
9561 # FIXME: Should let the user specify the lib program.
9562 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9563 enable_shared_with_static_runtimes=yes
9564 ;;
9565 esac
9566 ;;
9567
9568 darwin* | rhapsody*)
9569
9570
9571 archive_cmds_need_lc=no
9572 hardcode_direct=no
9573 hardcode_automatic=yes
9574 hardcode_shlibpath_var=unsupported
9575 if test "$lt_cv_ld_force_load" = "yes"; then
9576 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\"`'
9577
9578 else
9579 whole_archive_flag_spec=''
9580 fi
9581 link_all_deplibs=yes
9582 allow_undefined_flag="$_lt_dar_allow_undefined"
9583 case $cc_basename in
9584 ifort*) _lt_dar_can_shared=yes ;;
9585 *) _lt_dar_can_shared=$GCC ;;
9586 esac
9587 if test "$_lt_dar_can_shared" = "yes"; then
9588 output_verbose_link_cmd=func_echo_all
9589 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9590 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9591 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}"
9592 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}"
9593
9594 else
9595 ld_shlibs=no
9596 fi
9597
9598 ;;
9599
9600 dgux*)
9601 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9602 hardcode_libdir_flag_spec='-L$libdir'
9603 hardcode_shlibpath_var=no
9604 ;;
9605
9606 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9607 # support. Future versions do this automatically, but an explicit c++rt0.o
9608 # does not break anything, and helps significantly (at the cost of a little
9609 # extra space).
9610 freebsd2.2*)
9611 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9612 hardcode_libdir_flag_spec='-R$libdir'
9613 hardcode_direct=yes
9614 hardcode_shlibpath_var=no
9615 ;;
9616
9617 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9618 freebsd2.*)
9619 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9620 hardcode_direct=yes
9621 hardcode_minus_L=yes
9622 hardcode_shlibpath_var=no
9623 ;;
9624
9625 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9626 freebsd* | dragonfly*)
9627 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9628 hardcode_libdir_flag_spec='-R$libdir'
9629 hardcode_direct=yes
9630 hardcode_shlibpath_var=no
9631 ;;
9632
9633 hpux9*)
9634 if test "$GCC" = yes; then
9635 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'
9636 else
9637 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'
9638 fi
9639 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9640 hardcode_libdir_separator=:
9641 hardcode_direct=yes
9642
9643 # hardcode_minus_L: Not really in the search PATH,
9644 # but as the default location of the library.
9645 hardcode_minus_L=yes
9646 export_dynamic_flag_spec='${wl}-E'
9647 ;;
9648
9649 hpux10*)
9650 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9651 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9652 else
9653 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9654 fi
9655 if test "$with_gnu_ld" = no; then
9656 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9657 hardcode_libdir_separator=:
9658 hardcode_direct=yes
9659 hardcode_direct_absolute=yes
9660 export_dynamic_flag_spec='${wl}-E'
9661 # hardcode_minus_L: Not really in the search PATH,
9662 # but as the default location of the library.
9663 hardcode_minus_L=yes
9664 fi
9665 ;;
9666
9667 hpux11*)
9668 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9669 case $host_cpu in
9670 hppa*64*)
9671 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9672 ;;
9673 ia64*)
9674 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9675 ;;
9676 *)
9677 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9678 ;;
9679 esac
9680 else
9681 case $host_cpu in
9682 hppa*64*)
9683 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9684 ;;
9685 ia64*)
9686 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9687 ;;
9688 *)
9689
9690 # Older versions of the 11.00 compiler do not understand -b yet
9691 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9693$as_echo_n "checking if $CC understands -b... " >&6; }
9694if ${lt_cv_prog_compiler__b+:} false; then :
9695 $as_echo_n "(cached) " >&6
9696else
9697 lt_cv_prog_compiler__b=no
9698 save_LDFLAGS="$LDFLAGS"
9699 LDFLAGS="$LDFLAGS -b"
9700 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9701 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9702 # The linker can only warn and ignore the option if not recognized
9703 # So say no if there are warnings
9704 if test -s conftest.err; then
9705 # Append any errors to the config.log.
9706 cat conftest.err 1>&5
9707 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9708 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9709 if diff conftest.exp conftest.er2 >/dev/null; then
9710 lt_cv_prog_compiler__b=yes
9711 fi
9712 else
9713 lt_cv_prog_compiler__b=yes
9714 fi
9715 fi
9716 $RM -r conftest*
9717 LDFLAGS="$save_LDFLAGS"
9718
9719fi
9720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9721$as_echo "$lt_cv_prog_compiler__b" >&6; }
9722
9723if test x"$lt_cv_prog_compiler__b" = xyes; then
9724 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9725else
9726 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9727fi
9728
9729 ;;
9730 esac
9731 fi
9732 if test "$with_gnu_ld" = no; then
9733 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9734 hardcode_libdir_separator=:
9735
9736 case $host_cpu in
9737 hppa*64*|ia64*)
9738 hardcode_direct=no
9739 hardcode_shlibpath_var=no
9740 ;;
9741 *)
9742 hardcode_direct=yes
9743 hardcode_direct_absolute=yes
9744 export_dynamic_flag_spec='${wl}-E'
9745
9746 # hardcode_minus_L: Not really in the search PATH,
9747 # but as the default location of the library.
9748 hardcode_minus_L=yes
9749 ;;
9750 esac
9751 fi
9752 ;;
9753
9754 irix5* | irix6* | nonstopux*)
9755 if test "$GCC" = yes; then
9756 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'
9757 # Try to use the -exported_symbol ld option, if it does not
9758 # work, assume that -exports_file does not work either and
9759 # implicitly export all symbols.
9760 # This should be the same for all languages, so no per-tag cache variable.
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9762$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9763if ${lt_cv_irix_exported_symbol+:} false; then :
9764 $as_echo_n "(cached) " >&6
9765else
9766 save_LDFLAGS="$LDFLAGS"
9767 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769/* end confdefs.h. */
9770int foo (void) { return 0; }
9771_ACEOF
9772if ac_fn_c_try_link "$LINENO"; then :
9773 lt_cv_irix_exported_symbol=yes
9774else
9775 lt_cv_irix_exported_symbol=no
9776fi
9777rm -f core conftest.err conftest.$ac_objext \
9778 conftest$ac_exeext conftest.$ac_ext
9779 LDFLAGS="$save_LDFLAGS"
9780fi
9781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9782$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9783 if test "$lt_cv_irix_exported_symbol" = yes; then
9784 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'
9785 fi
9786 else
9787 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'
9788 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'
9789 fi
9790 archive_cmds_need_lc='no'
9791 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9792 hardcode_libdir_separator=:
9793 inherit_rpath=yes
9794 link_all_deplibs=yes
9795 ;;
9796
9797 netbsd*)
9798 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9799 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9800 else
9801 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9802 fi
9803 hardcode_libdir_flag_spec='-R$libdir'
9804 hardcode_direct=yes
9805 hardcode_shlibpath_var=no
9806 ;;
9807
9808 newsos6)
9809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9810 hardcode_direct=yes
9811 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9812 hardcode_libdir_separator=:
9813 hardcode_shlibpath_var=no
9814 ;;
9815
9816 *nto* | *qnx*)
9817 ;;
9818
9819 openbsd*)
9820 if test -f /usr/libexec/ld.so; then
9821 hardcode_direct=yes
9822 hardcode_shlibpath_var=no
9823 hardcode_direct_absolute=yes
9824 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9825 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9826 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9827 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9828 export_dynamic_flag_spec='${wl}-E'
9829 else
9830 case $host_os in
9831 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9832 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9833 hardcode_libdir_flag_spec='-R$libdir'
9834 ;;
9835 *)
9836 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9837 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9838 ;;
9839 esac
9840 fi
9841 else
9842 ld_shlibs=no
9843 fi
9844 ;;
9845
9846 os2*)
9847 hardcode_libdir_flag_spec='-L$libdir'
9848 hardcode_minus_L=yes
9849 allow_undefined_flag=unsupported
9850 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'
9851 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9852 ;;
9853
9854 osf3*)
9855 if test "$GCC" = yes; then
9856 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9857 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'
9858 else
9859 allow_undefined_flag=' -expect_unresolved \*'
9860 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'
9861 fi
9862 archive_cmds_need_lc='no'
9863 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9864 hardcode_libdir_separator=:
9865 ;;
9866
9867 osf4* | osf5*) # as osf3* with the addition of -msym flag
9868 if test "$GCC" = yes; then
9869 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9870 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'
9871 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9872 else
9873 allow_undefined_flag=' -expect_unresolved \*'
9874 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'
9875 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~
9876 $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'
9877
9878 # Both c and cxx compiler support -rpath directly
9879 hardcode_libdir_flag_spec='-rpath $libdir'
9880 fi
9881 archive_cmds_need_lc='no'
9882 hardcode_libdir_separator=:
9883 ;;
9884
9885 solaris*)
9886 no_undefined_flag=' -z defs'
9887 if test "$GCC" = yes; then
9888 wlarc='${wl}'
9889 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9890 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9891 $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'
9892 else
9893 case `$CC -V 2>&1` in
9894 *"Compilers 5.0"*)
9895 wlarc=''
9896 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9897 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9898 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9899 ;;
9900 *)
9901 wlarc='${wl}'
9902 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9903 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9904 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9905 ;;
9906 esac
9907 fi
9908 hardcode_libdir_flag_spec='-R$libdir'
9909 hardcode_shlibpath_var=no
9910 case $host_os in
9911 solaris2.[0-5] | solaris2.[0-5].*) ;;
9912 *)
9913 # The compiler driver will combine and reorder linker options,
9914 # but understands `-z linker_flag'. GCC discards it without `$wl',
9915 # but is careful enough not to reorder.
9916 # Supported since Solaris 2.6 (maybe 2.5.1?)
9917 if test "$GCC" = yes; then
9918 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9919 else
9920 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9921 fi
9922 ;;
9923 esac
9924 link_all_deplibs=yes
9925 ;;
9926
9927 sunos4*)
9928 if test "x$host_vendor" = xsequent; then
9929 # Use $CC to link under sequent, because it throws in some extra .o
9930 # files that make .init and .fini sections work.
9931 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9932 else
9933 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9934 fi
9935 hardcode_libdir_flag_spec='-L$libdir'
9936 hardcode_direct=yes
9937 hardcode_minus_L=yes
9938 hardcode_shlibpath_var=no
9939 ;;
9940
9941 sysv4)
9942 case $host_vendor in
9943 sni)
9944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9945 hardcode_direct=yes # is this really true???
9946 ;;
9947 siemens)
9948 ## LD is ld it makes a PLAMLIB
9949 ## CC just makes a GrossModule.
9950 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9951 reload_cmds='$CC -r -o $output$reload_objs'
9952 hardcode_direct=no
9953 ;;
9954 motorola)
9955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9956 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9957 ;;
9958 esac
9959 runpath_var='LD_RUN_PATH'
9960 hardcode_shlibpath_var=no
9961 ;;
9962
9963 sysv4.3*)
9964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9965 hardcode_shlibpath_var=no
9966 export_dynamic_flag_spec='-Bexport'
9967 ;;
9968
9969 sysv4*MP*)
9970 if test -d /usr/nec; then
9971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9972 hardcode_shlibpath_var=no
9973 runpath_var=LD_RUN_PATH
9974 hardcode_runpath_var=yes
9975 ld_shlibs=yes
9976 fi
9977 ;;
9978
9979 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9980 no_undefined_flag='${wl}-z,text'
9981 archive_cmds_need_lc=no
9982 hardcode_shlibpath_var=no
9983 runpath_var='LD_RUN_PATH'
9984
9985 if test "$GCC" = yes; then
9986 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9987 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9988 else
9989 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9990 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9991 fi
9992 ;;
9993
9994 sysv5* | sco3.2v5* | sco5v6*)
9995 # Note: We can NOT use -z defs as we might desire, because we do not
9996 # link with -lc, and that would cause any symbols used from libc to
9997 # always be unresolved, which means just about no library would
9998 # ever link correctly. If we're not using GNU ld we use -z text
9999 # though, which does catch some bad symbols but isn't as heavy-handed
10000 # as -z defs.
10001 no_undefined_flag='${wl}-z,text'
10002 allow_undefined_flag='${wl}-z,nodefs'
10003 archive_cmds_need_lc=no
10004 hardcode_shlibpath_var=no
10005 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10006 hardcode_libdir_separator=':'
10007 link_all_deplibs=yes
10008 export_dynamic_flag_spec='${wl}-Bexport'
10009 runpath_var='LD_RUN_PATH'
10010
10011 if test "$GCC" = yes; then
10012 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10013 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10014 else
10015 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10016 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10017 fi
10018 ;;
10019
10020 uts4*)
10021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10022 hardcode_libdir_flag_spec='-L$libdir'
10023 hardcode_shlibpath_var=no
10024 ;;
10025
10026 *)
10027 ld_shlibs=no
10028 ;;
10029 esac
10030
10031 if test x$host_vendor = xsni; then
10032 case $host in
10033 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10034 export_dynamic_flag_spec='${wl}-Blargedynsym'
10035 ;;
10036 esac
10037 fi
10038 fi
10039
10040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10041$as_echo "$ld_shlibs" >&6; }
10042test "$ld_shlibs" = no && can_build_shared=no
10043
10044with_gnu_ld=$with_gnu_ld
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060#
10061# Do we need to explicitly link libc?
10062#
10063case "x$archive_cmds_need_lc" in
10064x|xyes)
10065 # Assume -lc should be added
10066 archive_cmds_need_lc=yes
10067
10068 if test "$enable_shared" = yes && test "$GCC" = yes; then
10069 case $archive_cmds in
10070 *'~'*)
10071 # FIXME: we may have to deal with multi-command sequences.
10072 ;;
10073 '$CC '*)
10074 # Test whether the compiler implicitly links with -lc since on some
10075 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10076 # to ld, don't add -lc before -lgcc.
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10078$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10079if ${lt_cv_archive_cmds_need_lc+:} false; then :
10080 $as_echo_n "(cached) " >&6
10081else
10082 $RM conftest*
10083 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10084
10085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10086 (eval $ac_compile) 2>&5
10087 ac_status=$?
10088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10089 test $ac_status = 0; } 2>conftest.err; then
10090 soname=conftest
10091 lib=conftest
10092 libobjs=conftest.$ac_objext
10093 deplibs=
10094 wl=$lt_prog_compiler_wl
10095 pic_flag=$lt_prog_compiler_pic
10096 compiler_flags=-v
10097 linker_flags=-v
10098 verstring=
10099 output_objdir=.
10100 libname=conftest
10101 lt_save_allow_undefined_flag=$allow_undefined_flag
10102 allow_undefined_flag=
10103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10104 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10105 ac_status=$?
10106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10107 test $ac_status = 0; }
10108 then
10109 lt_cv_archive_cmds_need_lc=no
10110 else
10111 lt_cv_archive_cmds_need_lc=yes
10112 fi
10113 allow_undefined_flag=$lt_save_allow_undefined_flag
10114 else
10115 cat conftest.err 1>&5
10116 fi
10117 $RM conftest*
10118
10119fi
10120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10121$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10122 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10123 ;;
10124 esac
10125 fi
10126 ;;
10127esac
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10281$as_echo_n "checking dynamic linker characteristics... " >&6; }
10282
10283if test "$GCC" = yes; then
10284 case $host_os in
10285 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10286 *) lt_awk_arg="/^libraries:/" ;;
10287 esac
10288 case $host_os in
10289 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10290 *) lt_sed_strip_eq="s,=/,/,g" ;;
10291 esac
10292 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10293 case $lt_search_path_spec in
10294 *\;*)
10295 # if the path contains ";" then we assume it to be the separator
10296 # otherwise default to the standard path separator (i.e. ":") - it is
10297 # assumed that no part of a normal pathname contains ";" but that should
10298 # okay in the real world where ";" in dirpaths is itself problematic.
10299 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10300 ;;
10301 *)
10302 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10303 ;;
10304 esac
10305 # Ok, now we have the path, separated by spaces, we can step through it
10306 # and add multilib dir if necessary.
10307 lt_tmp_lt_search_path_spec=
10308 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10309 for lt_sys_path in $lt_search_path_spec; do
10310 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10311 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10312 else
10313 test -d "$lt_sys_path" && \
10314 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10315 fi
10316 done
10317 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10318BEGIN {RS=" "; FS="/|\n";} {
10319 lt_foo="";
10320 lt_count=0;
10321 for (lt_i = NF; lt_i > 0; lt_i--) {
10322 if ($lt_i != "" && $lt_i != ".") {
10323 if ($lt_i == "..") {
10324 lt_count++;
10325 } else {
10326 if (lt_count == 0) {
10327 lt_foo="/" $lt_i lt_foo;
10328 } else {
10329 lt_count--;
10330 }
10331 }
10332 }
10333 }
10334 if (lt_foo != "") { lt_freq[lt_foo]++; }
10335 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10336}'`
10337 # AWK program above erroneously prepends '/' to C:/dos/paths
10338 # for these hosts.
10339 case $host_os in
10340 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10341 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10342 esac
10343 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10344else
10345 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10346fi
10347library_names_spec=
10348libname_spec='lib$name'
10349soname_spec=
10350shrext_cmds=".so"
10351postinstall_cmds=
10352postuninstall_cmds=
10353finish_cmds=
10354finish_eval=
10355shlibpath_var=
10356shlibpath_overrides_runpath=unknown
10357version_type=none
10358dynamic_linker="$host_os ld.so"
10359sys_lib_dlsearch_path_spec="/lib /usr/lib"
10360need_lib_prefix=unknown
10361hardcode_into_libs=no
10362
10363# when you set need_version to no, make sure it does not cause -set_version
10364# flags to be left without arguments
10365need_version=unknown
10366
10367case $host_os in
10368aix3*)
10369 version_type=linux # correct to gnu/linux during the next big refactor
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10371 shlibpath_var=LIBPATH
10372
10373 # AIX 3 has no versioning support, so we append a major version to the name.
10374 soname_spec='${libname}${release}${shared_ext}$major'
10375 ;;
10376
10377aix[4-9]*)
10378 version_type=linux # correct to gnu/linux during the next big refactor
10379 need_lib_prefix=no
10380 need_version=no
10381 hardcode_into_libs=yes
10382 if test "$host_cpu" = ia64; then
10383 # AIX 5 supports IA64
10384 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10385 shlibpath_var=LD_LIBRARY_PATH
10386 else
10387 # With GCC up to 2.95.x, collect2 would create an import file
10388 # for dependence libraries. The import file would start with
10389 # the line `#! .'. This would cause the generated library to
10390 # depend on `.', always an invalid library. This was fixed in
10391 # development snapshots of GCC prior to 3.0.
10392 case $host_os in
10393 aix4 | aix4.[01] | aix4.[01].*)
10394 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10395 echo ' yes '
10396 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10397 :
10398 else
10399 can_build_shared=no
10400 fi
10401 ;;
10402 esac
10403 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10404 # soname into executable. Probably we can add versioning support to
10405 # collect2, so additional links can be useful in future.
10406 if test "$aix_use_runtimelinking" = yes; then
10407 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10408 # instead of lib<name>.a to let people know that these are not
10409 # typical AIX shared libraries.
10410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10411 else
10412 # We preserve .a as extension for shared libraries through AIX4.2
10413 # and later when we are not doing run time linking.
10414 library_names_spec='${libname}${release}.a $libname.a'
10415 soname_spec='${libname}${release}${shared_ext}$major'
10416 fi
10417 shlibpath_var=LIBPATH
10418 fi
10419 ;;
10420
10421amigaos*)
10422 case $host_cpu in
10423 powerpc)
10424 # Since July 2007 AmigaOS4 officially supports .so libraries.
10425 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10427 ;;
10428 m68k)
10429 library_names_spec='$libname.ixlibrary $libname.a'
10430 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10431 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'
10432 ;;
10433 esac
10434 ;;
10435
10436beos*)
10437 library_names_spec='${libname}${shared_ext}'
10438 dynamic_linker="$host_os ld.so"
10439 shlibpath_var=LIBRARY_PATH
10440 ;;
10441
10442bsdi[45]*)
10443 version_type=linux # correct to gnu/linux during the next big refactor
10444 need_version=no
10445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10446 soname_spec='${libname}${release}${shared_ext}$major'
10447 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10448 shlibpath_var=LD_LIBRARY_PATH
10449 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10450 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10451 # the default ld.so.conf also contains /usr/contrib/lib and
10452 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10453 # libtool to hard-code these into programs
10454 ;;
10455
10456cygwin* | mingw* | pw32* | cegcc*)
10457 version_type=windows
10458 shrext_cmds=".dll"
10459 need_version=no
10460 need_lib_prefix=no
10461
10462 case $GCC,$cc_basename in
10463 yes,*)
10464 # gcc
10465 library_names_spec='$libname.dll.a'
10466 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10467 postinstall_cmds='base_file=`basename \${file}`~
10468 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10469 dldir=$destdir/`dirname \$dlpath`~
10470 test -d \$dldir || mkdir -p \$dldir~
10471 $install_prog $dir/$dlname \$dldir/$dlname~
10472 chmod a+x \$dldir/$dlname~
10473 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10474 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10475 fi'
10476 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10477 dlpath=$dir/\$dldll~
10478 $RM \$dlpath'
10479 shlibpath_overrides_runpath=yes
10480
10481 case $host_os in
10482 cygwin*)
10483 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10484 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10485
10486 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10487 ;;
10488 mingw* | cegcc*)
10489 # MinGW DLLs use traditional 'lib' prefix
10490 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10491 ;;
10492 pw32*)
10493 # pw32 DLLs use 'pw' prefix rather than 'lib'
10494 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10495 ;;
10496 esac
10497 dynamic_linker='Win32 ld.exe'
10498 ;;
10499
10500 *,cl*)
10501 # Native MSVC
10502 libname_spec='$name'
10503 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10504 library_names_spec='${libname}.dll.lib'
10505
10506 case $build_os in
10507 mingw*)
10508 sys_lib_search_path_spec=
10509 lt_save_ifs=$IFS
10510 IFS=';'
10511 for lt_path in $LIB
10512 do
10513 IFS=$lt_save_ifs
10514 # Let DOS variable expansion print the short 8.3 style file name.
10515 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10516 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10517 done
10518 IFS=$lt_save_ifs
10519 # Convert to MSYS style.
10520 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10521 ;;
10522 cygwin*)
10523 # Convert to unix form, then to dos form, then back to unix form
10524 # but this time dos style (no spaces!) so that the unix form looks
10525 # like /cygdrive/c/PROGRA~1:/cygdr...
10526 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10527 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10528 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10529 ;;
10530 *)
10531 sys_lib_search_path_spec="$LIB"
10532 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10533 # It is most probably a Windows format PATH.
10534 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10535 else
10536 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10537 fi
10538 # FIXME: find the short name or the path components, as spaces are
10539 # common. (e.g. "Program Files" -> "PROGRA~1")
10540 ;;
10541 esac
10542
10543 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10544 postinstall_cmds='base_file=`basename \${file}`~
10545 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10546 dldir=$destdir/`dirname \$dlpath`~
10547 test -d \$dldir || mkdir -p \$dldir~
10548 $install_prog $dir/$dlname \$dldir/$dlname'
10549 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10550 dlpath=$dir/\$dldll~
10551 $RM \$dlpath'
10552 shlibpath_overrides_runpath=yes
10553 dynamic_linker='Win32 link.exe'
10554 ;;
10555
10556 *)
10557 # Assume MSVC wrapper
10558 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10559 dynamic_linker='Win32 ld.exe'
10560 ;;
10561 esac
10562 # FIXME: first we should search . and the directory the executable is in
10563 shlibpath_var=PATH
10564 ;;
10565
10566darwin* | rhapsody*)
10567 dynamic_linker="$host_os dyld"
10568 version_type=darwin
10569 need_lib_prefix=no
10570 need_version=no
10571 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10572 soname_spec='${libname}${release}${major}$shared_ext'
10573 shlibpath_overrides_runpath=yes
10574 shlibpath_var=DYLD_LIBRARY_PATH
10575 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10576
10577 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10578 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10579 ;;
10580
10581dgux*)
10582 version_type=linux # correct to gnu/linux during the next big refactor
10583 need_lib_prefix=no
10584 need_version=no
10585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10586 soname_spec='${libname}${release}${shared_ext}$major'
10587 shlibpath_var=LD_LIBRARY_PATH
10588 ;;
10589
10590freebsd* | dragonfly*)
10591 # DragonFly does not have aout. When/if they implement a new
10592 # versioning mechanism, adjust this.
10593 if test -x /usr/bin/objformat; then
10594 objformat=`/usr/bin/objformat`
10595 else
10596 case $host_os in
10597 freebsd[23].*) objformat=aout ;;
10598 *) objformat=elf ;;
10599 esac
10600 fi
10601 version_type=freebsd-$objformat
10602 case $version_type in
10603 freebsd-elf*)
10604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10605 need_version=no
10606 need_lib_prefix=no
10607 ;;
10608 freebsd-*)
10609 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10610 need_version=yes
10611 ;;
10612 esac
10613 shlibpath_var=LD_LIBRARY_PATH
10614 case $host_os in
10615 freebsd2.*)
10616 shlibpath_overrides_runpath=yes
10617 ;;
10618 freebsd3.[01]* | freebsdelf3.[01]*)
10619 shlibpath_overrides_runpath=yes
10620 hardcode_into_libs=yes
10621 ;;
10622 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10623 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10624 shlibpath_overrides_runpath=no
10625 hardcode_into_libs=yes
10626 ;;
10627 *) # from 4.6 on, and DragonFly
10628 shlibpath_overrides_runpath=yes
10629 hardcode_into_libs=yes
10630 ;;
10631 esac
10632 ;;
10633
10634gnu*)
10635 version_type=linux # correct to gnu/linux during the next big refactor
10636 need_lib_prefix=no
10637 need_version=no
10638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10639 soname_spec='${libname}${release}${shared_ext}$major'
10640 shlibpath_var=LD_LIBRARY_PATH
10641 shlibpath_overrides_runpath=no
10642 hardcode_into_libs=yes
10643 ;;
10644
10645haiku*)
10646 version_type=linux # correct to gnu/linux during the next big refactor
10647 need_lib_prefix=no
10648 need_version=no
10649 dynamic_linker="$host_os runtime_loader"
10650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10651 soname_spec='${libname}${release}${shared_ext}$major'
10652 shlibpath_var=LIBRARY_PATH
10653 shlibpath_overrides_runpath=yes
10654 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10655 hardcode_into_libs=yes
10656 ;;
10657
10658hpux9* | hpux10* | hpux11*)
10659 # Give a soname corresponding to the major version so that dld.sl refuses to
10660 # link against other versions.
10661 version_type=sunos
10662 need_lib_prefix=no
10663 need_version=no
10664 case $host_cpu in
10665 ia64*)
10666 shrext_cmds='.so'
10667 hardcode_into_libs=yes
10668 dynamic_linker="$host_os dld.so"
10669 shlibpath_var=LD_LIBRARY_PATH
10670 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10672 soname_spec='${libname}${release}${shared_ext}$major'
10673 if test "X$HPUX_IA64_MODE" = X32; then
10674 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10675 else
10676 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10677 fi
10678 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10679 ;;
10680 hppa*64*)
10681 shrext_cmds='.sl'
10682 hardcode_into_libs=yes
10683 dynamic_linker="$host_os dld.sl"
10684 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10685 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10687 soname_spec='${libname}${release}${shared_ext}$major'
10688 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10689 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10690 ;;
10691 *)
10692 shrext_cmds='.sl'
10693 dynamic_linker="$host_os dld.sl"
10694 shlibpath_var=SHLIB_PATH
10695 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10697 soname_spec='${libname}${release}${shared_ext}$major'
10698 ;;
10699 esac
10700 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10701 postinstall_cmds='chmod 555 $lib'
10702 # or fails outright, so override atomically:
10703 install_override_mode=555
10704 ;;
10705
10706interix[3-9]*)
10707 version_type=linux # correct to gnu/linux during the next big refactor
10708 need_lib_prefix=no
10709 need_version=no
10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10711 soname_spec='${libname}${release}${shared_ext}$major'
10712 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10713 shlibpath_var=LD_LIBRARY_PATH
10714 shlibpath_overrides_runpath=no
10715 hardcode_into_libs=yes
10716 ;;
10717
10718irix5* | irix6* | nonstopux*)
10719 case $host_os in
10720 nonstopux*) version_type=nonstopux ;;
10721 *)
10722 if test "$lt_cv_prog_gnu_ld" = yes; then
10723 version_type=linux # correct to gnu/linux during the next big refactor
10724 else
10725 version_type=irix
10726 fi ;;
10727 esac
10728 need_lib_prefix=no
10729 need_version=no
10730 soname_spec='${libname}${release}${shared_ext}$major'
10731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10732 case $host_os in
10733 irix5* | nonstopux*)
10734 libsuff= shlibsuff=
10735 ;;
10736 *)
10737 case $LD in # libtool.m4 will add one of these switches to LD
10738 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10739 libsuff= shlibsuff= libmagic=32-bit;;
10740 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10741 libsuff=32 shlibsuff=N32 libmagic=N32;;
10742 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10743 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10744 *) libsuff= shlibsuff= libmagic=never-match;;
10745 esac
10746 ;;
10747 esac
10748 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10749 shlibpath_overrides_runpath=no
10750 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10751 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10752 hardcode_into_libs=yes
10753 ;;
10754
10755# No shared lib support for Linux oldld, aout, or coff.
10756linux*oldld* | linux*aout* | linux*coff*)
10757 dynamic_linker=no
10758 ;;
10759
10760# This must be glibc/ELF.
10761linux* | k*bsd*-gnu | kopensolaris*-gnu)
10762 version_type=linux # correct to gnu/linux during the next big refactor
10763 need_lib_prefix=no
10764 need_version=no
10765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10766 soname_spec='${libname}${release}${shared_ext}$major'
10767 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10768 shlibpath_var=LD_LIBRARY_PATH
10769 shlibpath_overrides_runpath=no
10770
10771 # Some binutils ld are patched to set DT_RUNPATH
10772 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10773 $as_echo_n "(cached) " >&6
10774else
10775 lt_cv_shlibpath_overrides_runpath=no
10776 save_LDFLAGS=$LDFLAGS
10777 save_libdir=$libdir
10778 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10779 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10781/* end confdefs.h. */
10782
10783int
10784main ()
10785{
10786
10787 ;
10788 return 0;
10789}
10790_ACEOF
10791if ac_fn_c_try_link "$LINENO"; then :
10792 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10793 lt_cv_shlibpath_overrides_runpath=yes
10794fi
10795fi
10796rm -f core conftest.err conftest.$ac_objext \
10797 conftest$ac_exeext conftest.$ac_ext
10798 LDFLAGS=$save_LDFLAGS
10799 libdir=$save_libdir
10800
10801fi
10802
10803 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10804
10805 # This implies no fast_install, which is unacceptable.
10806 # Some rework will be needed to allow for fast_install
10807 # before this can be enabled.
10808 hardcode_into_libs=yes
10809
10810 # Append ld.so.conf contents to the search path
10811 if test -f /etc/ld.so.conf; then
10812 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' ' '`
10813 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10814 fi
10815
10816 # We used to test for /lib/ld.so.1 and disable shared libraries on
10817 # powerpc, because MkLinux only supported shared libraries with the
10818 # GNU dynamic linker. Since this was broken with cross compilers,
10819 # most powerpc-linux boxes support dynamic linking these days and
10820 # people can always --disable-shared, the test was removed, and we
10821 # assume the GNU/Linux dynamic linker is in use.
10822 dynamic_linker='GNU/Linux ld.so'
10823 ;;
10824
10825netbsd*)
10826 version_type=sunos
10827 need_lib_prefix=no
10828 need_version=no
10829 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10831 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10832 dynamic_linker='NetBSD (a.out) ld.so'
10833 else
10834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10835 soname_spec='${libname}${release}${shared_ext}$major'
10836 dynamic_linker='NetBSD ld.elf_so'
10837 fi
10838 shlibpath_var=LD_LIBRARY_PATH
10839 shlibpath_overrides_runpath=yes
10840 hardcode_into_libs=yes
10841 ;;
10842
10843newsos6)
10844 version_type=linux # correct to gnu/linux during the next big refactor
10845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10846 shlibpath_var=LD_LIBRARY_PATH
10847 shlibpath_overrides_runpath=yes
10848 ;;
10849
10850*nto* | *qnx*)
10851 version_type=qnx
10852 need_lib_prefix=no
10853 need_version=no
10854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10855 soname_spec='${libname}${release}${shared_ext}$major'
10856 shlibpath_var=LD_LIBRARY_PATH
10857 shlibpath_overrides_runpath=no
10858 hardcode_into_libs=yes
10859 dynamic_linker='ldqnx.so'
10860 ;;
10861
10862openbsd*)
10863 version_type=sunos
10864 sys_lib_dlsearch_path_spec="/usr/lib"
10865 need_lib_prefix=no
10866 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10867 case $host_os in
10868 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10869 *) need_version=no ;;
10870 esac
10871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10872 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10873 shlibpath_var=LD_LIBRARY_PATH
10874 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10875 case $host_os in
10876 openbsd2.[89] | openbsd2.[89].*)
10877 shlibpath_overrides_runpath=no
10878 ;;
10879 *)
10880 shlibpath_overrides_runpath=yes
10881 ;;
10882 esac
10883 else
10884 shlibpath_overrides_runpath=yes
10885 fi
10886 ;;
10887
10888os2*)
10889 libname_spec='$name'
10890 shrext_cmds=".dll"
10891 need_lib_prefix=no
10892 library_names_spec='$libname${shared_ext} $libname.a'
10893 dynamic_linker='OS/2 ld.exe'
10894 shlibpath_var=LIBPATH
10895 ;;
10896
10897osf3* | osf4* | osf5*)
10898 version_type=osf
10899 need_lib_prefix=no
10900 need_version=no
10901 soname_spec='${libname}${release}${shared_ext}$major'
10902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10903 shlibpath_var=LD_LIBRARY_PATH
10904 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10905 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10906 ;;
10907
10908rdos*)
10909 dynamic_linker=no
10910 ;;
10911
10912solaris*)
10913 version_type=linux # correct to gnu/linux during the next big refactor
10914 need_lib_prefix=no
10915 need_version=no
10916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10917 soname_spec='${libname}${release}${shared_ext}$major'
10918 shlibpath_var=LD_LIBRARY_PATH
10919 shlibpath_overrides_runpath=yes
10920 hardcode_into_libs=yes
10921 # ldd complains unless libraries are executable
10922 postinstall_cmds='chmod +x $lib'
10923 ;;
10924
10925sunos4*)
10926 version_type=sunos
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10928 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10929 shlibpath_var=LD_LIBRARY_PATH
10930 shlibpath_overrides_runpath=yes
10931 if test "$with_gnu_ld" = yes; then
10932 need_lib_prefix=no
10933 fi
10934 need_version=yes
10935 ;;
10936
10937sysv4 | sysv4.3*)
10938 version_type=linux # correct to gnu/linux during the next big refactor
10939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10940 soname_spec='${libname}${release}${shared_ext}$major'
10941 shlibpath_var=LD_LIBRARY_PATH
10942 case $host_vendor in
10943 sni)
10944 shlibpath_overrides_runpath=no
10945 need_lib_prefix=no
10946 runpath_var=LD_RUN_PATH
10947 ;;
10948 siemens)
10949 need_lib_prefix=no
10950 ;;
10951 motorola)
10952 need_lib_prefix=no
10953 need_version=no
10954 shlibpath_overrides_runpath=no
10955 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10956 ;;
10957 esac
10958 ;;
10959
10960sysv4*MP*)
10961 if test -d /usr/nec ;then
10962 version_type=linux # correct to gnu/linux during the next big refactor
10963 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10964 soname_spec='$libname${shared_ext}.$major'
10965 shlibpath_var=LD_LIBRARY_PATH
10966 fi
10967 ;;
10968
10969sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10970 version_type=freebsd-elf
10971 need_lib_prefix=no
10972 need_version=no
10973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10974 soname_spec='${libname}${release}${shared_ext}$major'
10975 shlibpath_var=LD_LIBRARY_PATH
10976 shlibpath_overrides_runpath=yes
10977 hardcode_into_libs=yes
10978 if test "$with_gnu_ld" = yes; then
10979 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10980 else
10981 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10982 case $host_os in
10983 sco3.2v5*)
10984 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10985 ;;
10986 esac
10987 fi
10988 sys_lib_dlsearch_path_spec='/usr/lib'
10989 ;;
10990
10991tpf*)
10992 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10993 version_type=linux # correct to gnu/linux during the next big refactor
10994 need_lib_prefix=no
10995 need_version=no
10996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10997 shlibpath_var=LD_LIBRARY_PATH
10998 shlibpath_overrides_runpath=no
10999 hardcode_into_libs=yes
11000 ;;
11001
11002uts4*)
11003 version_type=linux # correct to gnu/linux during the next big refactor
11004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11005 soname_spec='${libname}${release}${shared_ext}$major'
11006 shlibpath_var=LD_LIBRARY_PATH
11007 ;;
11008
11009*)
11010 dynamic_linker=no
11011 ;;
11012esac
11013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11014$as_echo "$dynamic_linker" >&6; }
11015test "$dynamic_linker" = no && can_build_shared=no
11016
11017variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11018if test "$GCC" = yes; then
11019 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11020fi
11021
11022if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11023 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11024fi
11025if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11026 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11027fi
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11121$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11122hardcode_action=
11123if test -n "$hardcode_libdir_flag_spec" ||
11124 test -n "$runpath_var" ||
11125 test "X$hardcode_automatic" = "Xyes" ; then
11126
11127 # We can hardcode non-existent directories.
11128 if test "$hardcode_direct" != no &&
11129 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11130 # have to relink, otherwise we might link with an installed library
11131 # when we should be linking with a yet-to-be-installed one
11132 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11133 test "$hardcode_minus_L" != no; then
11134 # Linking always hardcodes the temporary library directory.
11135 hardcode_action=relink
11136 else
11137 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11138 hardcode_action=immediate
11139 fi
11140else
11141 # We cannot hardcode anything, or else we can only hardcode existing
11142 # directories.
11143 hardcode_action=unsupported
11144fi
11145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11146$as_echo "$hardcode_action" >&6; }
11147
11148if test "$hardcode_action" = relink ||
11149 test "$inherit_rpath" = yes; then
11150 # Fast installation is not supported
11151 enable_fast_install=no
11152elif test "$shlibpath_overrides_runpath" = yes ||
11153 test "$enable_shared" = no; then
11154 # Fast installation is not necessary
11155 enable_fast_install=needless
11156fi
11157
11158
11159
11160
11161
11162
11163 if test "x$enable_dlopen" != xyes; then
11164 enable_dlopen=unknown
11165 enable_dlopen_self=unknown
11166 enable_dlopen_self_static=unknown
11167else
11168 lt_cv_dlopen=no
11169 lt_cv_dlopen_libs=
11170
11171 case $host_os in
11172 beos*)
11173 lt_cv_dlopen="load_add_on"
11174 lt_cv_dlopen_libs=
11175 lt_cv_dlopen_self=yes
11176 ;;
11177
11178 mingw* | pw32* | cegcc*)
11179 lt_cv_dlopen="LoadLibrary"
11180 lt_cv_dlopen_libs=
11181 ;;
11182
11183 cygwin*)
11184 lt_cv_dlopen="dlopen"
11185 lt_cv_dlopen_libs=
11186 ;;
11187
11188 darwin*)
11189 # if libdl is installed we need to link against it
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11191$as_echo_n "checking for dlopen in -ldl... " >&6; }
11192if ${ac_cv_lib_dl_dlopen+:} false; then :
11193 $as_echo_n "(cached) " >&6
11194else
11195 ac_check_lib_save_LIBS=$LIBS
11196LIBS="-ldl $LIBS"
11197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11198/* end confdefs.h. */
11199
11200/* Override any GCC internal prototype to avoid an error.
11201 Use char because int might match the return type of a GCC
11202 builtin and then its argument prototype would still apply. */
11203#ifdef __cplusplus
11204extern "C"
11205#endif
11206char dlopen ();
11207int
11208main ()
11209{
11210return dlopen ();
11211 ;
11212 return 0;
11213}
11214_ACEOF
11215if ac_fn_c_try_link "$LINENO"; then :
11216 ac_cv_lib_dl_dlopen=yes
11217else
11218 ac_cv_lib_dl_dlopen=no
11219fi
11220rm -f core conftest.err conftest.$ac_objext \
11221 conftest$ac_exeext conftest.$ac_ext
11222LIBS=$ac_check_lib_save_LIBS
11223fi
11224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11225$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11226if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11227 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11228else
11229
11230 lt_cv_dlopen="dyld"
11231 lt_cv_dlopen_libs=
11232 lt_cv_dlopen_self=yes
11233
11234fi
11235
11236 ;;
11237
11238 *)
11239 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11240if test "x$ac_cv_func_shl_load" = xyes; then :
11241 lt_cv_dlopen="shl_load"
11242else
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11244$as_echo_n "checking for shl_load in -ldld... " >&6; }
11245if ${ac_cv_lib_dld_shl_load+:} false; then :
11246 $as_echo_n "(cached) " >&6
11247else
11248 ac_check_lib_save_LIBS=$LIBS
11249LIBS="-ldld $LIBS"
11250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11251/* end confdefs.h. */
11252
11253/* Override any GCC internal prototype to avoid an error.
11254 Use char because int might match the return type of a GCC
11255 builtin and then its argument prototype would still apply. */
11256#ifdef __cplusplus
11257extern "C"
11258#endif
11259char shl_load ();
11260int
11261main ()
11262{
11263return shl_load ();
11264 ;
11265 return 0;
11266}
11267_ACEOF
11268if ac_fn_c_try_link "$LINENO"; then :
11269 ac_cv_lib_dld_shl_load=yes
11270else
11271 ac_cv_lib_dld_shl_load=no
11272fi
11273rm -f core conftest.err conftest.$ac_objext \
11274 conftest$ac_exeext conftest.$ac_ext
11275LIBS=$ac_check_lib_save_LIBS
11276fi
11277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11278$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11279if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11280 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11281else
11282 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11283if test "x$ac_cv_func_dlopen" = xyes; then :
11284 lt_cv_dlopen="dlopen"
11285else
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11287$as_echo_n "checking for dlopen in -ldl... " >&6; }
11288if ${ac_cv_lib_dl_dlopen+:} false; then :
11289 $as_echo_n "(cached) " >&6
11290else
11291 ac_check_lib_save_LIBS=$LIBS
11292LIBS="-ldl $LIBS"
11293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11294/* end confdefs.h. */
11295
11296/* Override any GCC internal prototype to avoid an error.
11297 Use char because int might match the return type of a GCC
11298 builtin and then its argument prototype would still apply. */
11299#ifdef __cplusplus
11300extern "C"
11301#endif
11302char dlopen ();
11303int
11304main ()
11305{
11306return dlopen ();
11307 ;
11308 return 0;
11309}
11310_ACEOF
11311if ac_fn_c_try_link "$LINENO"; then :
11312 ac_cv_lib_dl_dlopen=yes
11313else
11314 ac_cv_lib_dl_dlopen=no
11315fi
11316rm -f core conftest.err conftest.$ac_objext \
11317 conftest$ac_exeext conftest.$ac_ext
11318LIBS=$ac_check_lib_save_LIBS
11319fi
11320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11321$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11322if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11323 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11324else
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11326$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11327if ${ac_cv_lib_svld_dlopen+:} false; then :
11328 $as_echo_n "(cached) " >&6
11329else
11330 ac_check_lib_save_LIBS=$LIBS
11331LIBS="-lsvld $LIBS"
11332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11333/* end confdefs.h. */
11334
11335/* Override any GCC internal prototype to avoid an error.
11336 Use char because int might match the return type of a GCC
11337 builtin and then its argument prototype would still apply. */
11338#ifdef __cplusplus
11339extern "C"
11340#endif
11341char dlopen ();
11342int
11343main ()
11344{
11345return dlopen ();
11346 ;
11347 return 0;
11348}
11349_ACEOF
11350if ac_fn_c_try_link "$LINENO"; then :
11351 ac_cv_lib_svld_dlopen=yes
11352else
11353 ac_cv_lib_svld_dlopen=no
11354fi
11355rm -f core conftest.err conftest.$ac_objext \
11356 conftest$ac_exeext conftest.$ac_ext
11357LIBS=$ac_check_lib_save_LIBS
11358fi
11359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11360$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11361if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11362 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11363else
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11365$as_echo_n "checking for dld_link in -ldld... " >&6; }
11366if ${ac_cv_lib_dld_dld_link+:} false; then :
11367 $as_echo_n "(cached) " >&6
11368else
11369 ac_check_lib_save_LIBS=$LIBS
11370LIBS="-ldld $LIBS"
11371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11372/* end confdefs.h. */
11373
11374/* Override any GCC internal prototype to avoid an error.
11375 Use char because int might match the return type of a GCC
11376 builtin and then its argument prototype would still apply. */
11377#ifdef __cplusplus
11378extern "C"
11379#endif
11380char dld_link ();
11381int
11382main ()
11383{
11384return dld_link ();
11385 ;
11386 return 0;
11387}
11388_ACEOF
11389if ac_fn_c_try_link "$LINENO"; then :
11390 ac_cv_lib_dld_dld_link=yes
11391else
11392 ac_cv_lib_dld_dld_link=no
11393fi
11394rm -f core conftest.err conftest.$ac_objext \
11395 conftest$ac_exeext conftest.$ac_ext
11396LIBS=$ac_check_lib_save_LIBS
11397fi
11398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11399$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11400if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11401 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11402fi
11403
11404
11405fi
11406
11407
11408fi
11409
11410
11411fi
11412
11413
11414fi
11415
11416
11417fi
11418
11419 ;;
11420 esac
11421
11422 if test "x$lt_cv_dlopen" != xno; then
11423 enable_dlopen=yes
11424 else
11425 enable_dlopen=no
11426 fi
11427
11428 case $lt_cv_dlopen in
11429 dlopen)
11430 save_CPPFLAGS="$CPPFLAGS"
11431 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11432
11433 save_LDFLAGS="$LDFLAGS"
11434 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11435
11436 save_LIBS="$LIBS"
11437 LIBS="$lt_cv_dlopen_libs $LIBS"
11438
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11440$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11441if ${lt_cv_dlopen_self+:} false; then :
11442 $as_echo_n "(cached) " >&6
11443else
11444 if test "$cross_compiling" = yes; then :
11445 lt_cv_dlopen_self=cross
11446else
11447 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11448 lt_status=$lt_dlunknown
11449 cat > conftest.$ac_ext <<_LT_EOF
11450#line $LINENO "configure"
11451#include "confdefs.h"
11452
11453#if HAVE_DLFCN_H
11454#include <dlfcn.h>
11455#endif
11456
11457#include <stdio.h>
11458
11459#ifdef RTLD_GLOBAL
11460# define LT_DLGLOBAL RTLD_GLOBAL
11461#else
11462# ifdef DL_GLOBAL
11463# define LT_DLGLOBAL DL_GLOBAL
11464# else
11465# define LT_DLGLOBAL 0
11466# endif
11467#endif
11468
11469/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11470 find out it does not work in some platform. */
11471#ifndef LT_DLLAZY_OR_NOW
11472# ifdef RTLD_LAZY
11473# define LT_DLLAZY_OR_NOW RTLD_LAZY
11474# else
11475# ifdef DL_LAZY
11476# define LT_DLLAZY_OR_NOW DL_LAZY
11477# else
11478# ifdef RTLD_NOW
11479# define LT_DLLAZY_OR_NOW RTLD_NOW
11480# else
11481# ifdef DL_NOW
11482# define LT_DLLAZY_OR_NOW DL_NOW
11483# else
11484# define LT_DLLAZY_OR_NOW 0
11485# endif
11486# endif
11487# endif
11488# endif
11489#endif
11490
11491/* When -fvisbility=hidden is used, assume the code has been annotated
11492 correspondingly for the symbols needed. */
11493#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11494int fnord () __attribute__((visibility("default")));
11495#endif
11496
11497int fnord () { return 42; }
11498int main ()
11499{
11500 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11501 int status = $lt_dlunknown;
11502
11503 if (self)
11504 {
11505 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11506 else
11507 {
11508 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11509 else puts (dlerror ());
11510 }
11511 /* dlclose (self); */
11512 }
11513 else
11514 puts (dlerror ());
11515
11516 return status;
11517}
11518_LT_EOF
11519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11520 (eval $ac_link) 2>&5
11521 ac_status=$?
11522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11523 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11524 (./conftest; exit; ) >&5 2>/dev/null
11525 lt_status=$?
11526 case x$lt_status in
11527 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11528 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11529 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11530 esac
11531 else :
11532 # compilation failed
11533 lt_cv_dlopen_self=no
11534 fi
11535fi
11536rm -fr conftest*
11537
11538
11539fi
11540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11541$as_echo "$lt_cv_dlopen_self" >&6; }
11542
11543 if test "x$lt_cv_dlopen_self" = xyes; then
11544 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11546$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11547if ${lt_cv_dlopen_self_static+:} false; then :
11548 $as_echo_n "(cached) " >&6
11549else
11550 if test "$cross_compiling" = yes; then :
11551 lt_cv_dlopen_self_static=cross
11552else
11553 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11554 lt_status=$lt_dlunknown
11555 cat > conftest.$ac_ext <<_LT_EOF
11556#line $LINENO "configure"
11557#include "confdefs.h"
11558
11559#if HAVE_DLFCN_H
11560#include <dlfcn.h>
11561#endif
11562
11563#include <stdio.h>
11564
11565#ifdef RTLD_GLOBAL
11566# define LT_DLGLOBAL RTLD_GLOBAL
11567#else
11568# ifdef DL_GLOBAL
11569# define LT_DLGLOBAL DL_GLOBAL
11570# else
11571# define LT_DLGLOBAL 0
11572# endif
11573#endif
11574
11575/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11576 find out it does not work in some platform. */
11577#ifndef LT_DLLAZY_OR_NOW
11578# ifdef RTLD_LAZY
11579# define LT_DLLAZY_OR_NOW RTLD_LAZY
11580# else
11581# ifdef DL_LAZY
11582# define LT_DLLAZY_OR_NOW DL_LAZY
11583# else
11584# ifdef RTLD_NOW
11585# define LT_DLLAZY_OR_NOW RTLD_NOW
11586# else
11587# ifdef DL_NOW
11588# define LT_DLLAZY_OR_NOW DL_NOW
11589# else
11590# define LT_DLLAZY_OR_NOW 0
11591# endif
11592# endif
11593# endif
11594# endif
11595#endif
11596
11597/* When -fvisbility=hidden is used, assume the code has been annotated
11598 correspondingly for the symbols needed. */
11599#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11600int fnord () __attribute__((visibility("default")));
11601#endif
11602
11603int fnord () { return 42; }
11604int main ()
11605{
11606 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11607 int status = $lt_dlunknown;
11608
11609 if (self)
11610 {
11611 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11612 else
11613 {
11614 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11615 else puts (dlerror ());
11616 }
11617 /* dlclose (self); */
11618 }
11619 else
11620 puts (dlerror ());
11621
11622 return status;
11623}
11624_LT_EOF
11625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11626 (eval $ac_link) 2>&5
11627 ac_status=$?
11628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11629 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11630 (./conftest; exit; ) >&5 2>/dev/null
11631 lt_status=$?
11632 case x$lt_status in
11633 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11634 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11635 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11636 esac
11637 else :
11638 # compilation failed
11639 lt_cv_dlopen_self_static=no
11640 fi
11641fi
11642rm -fr conftest*
11643
11644
11645fi
11646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11647$as_echo "$lt_cv_dlopen_self_static" >&6; }
11648 fi
11649
11650 CPPFLAGS="$save_CPPFLAGS"
11651 LDFLAGS="$save_LDFLAGS"
11652 LIBS="$save_LIBS"
11653 ;;
11654 esac
11655
11656 case $lt_cv_dlopen_self in
11657 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11658 *) enable_dlopen_self=unknown ;;
11659 esac
11660
11661 case $lt_cv_dlopen_self_static in
11662 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11663 *) enable_dlopen_self_static=unknown ;;
11664 esac
11665fi
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683striplib=
11684old_striplib=
11685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11686$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11687if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11688 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11689 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11691$as_echo "yes" >&6; }
11692else
11693# FIXME - insert some real tests, host_os isn't really good enough
11694 case $host_os in
11695 darwin*)
11696 if test -n "$STRIP" ; then
11697 striplib="$STRIP -x"
11698 old_striplib="$STRIP -S"
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11700$as_echo "yes" >&6; }
11701 else
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11703$as_echo "no" >&6; }
11704 fi
11705 ;;
11706 *)
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708$as_echo "no" >&6; }
11709 ;;
11710 esac
11711fi
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724 # Report which library types will actually be built
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11726$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11728$as_echo "$can_build_shared" >&6; }
11729
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11731$as_echo_n "checking whether to build shared libraries... " >&6; }
11732 test "$can_build_shared" = "no" && enable_shared=no
11733
11734 # On AIX, shared libraries and static libraries use the same namespace, and
11735 # are all built from PIC.
11736 case $host_os in
11737 aix3*)
11738 test "$enable_shared" = yes && enable_static=no
11739 if test -n "$RANLIB"; then
11740 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11741 postinstall_cmds='$RANLIB $lib'
11742 fi
11743 ;;
11744
11745 aix[4-9]*)
11746 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11747 test "$enable_shared" = yes && enable_static=no
11748 fi
11749 ;;
11750 esac
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11752$as_echo "$enable_shared" >&6; }
11753
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11755$as_echo_n "checking whether to build static libraries... " >&6; }
11756 # Make sure either enable_shared or enable_static is yes.
11757 test "$enable_shared" = yes || enable_static=yes
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11759$as_echo "$enable_static" >&6; }
11760
11761
11762
11763
11764fi
11765ac_ext=c
11766ac_cpp='$CPP $CPPFLAGS'
11767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11769ac_compiler_gnu=$ac_cv_c_compiler_gnu
11770
11771CC="$lt_save_CC"
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787 ac_config_commands="$ac_config_commands libtool"
11788
11789
11790
11791
11792# Only expand once:
11793
11794
11795ac_ext=cpp
11796ac_cpp='$CXXCPP $CPPFLAGS'
11797ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11798ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11799ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11800if test -z "$CXX"; then
11801 if test -n "$CCC"; then
11802 CXX=$CCC
11803 else
11804 if test -n "$ac_tool_prefix"; then
11805 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11806 do
11807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11808set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11810$as_echo_n "checking for $ac_word... " >&6; }
11811if ${ac_cv_prog_CXX+:} false; then :
11812 $as_echo_n "(cached) " >&6
11813else
11814 if test -n "$CXX"; then
11815 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11816else
11817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11818for as_dir in $PATH
11819do
11820 IFS=$as_save_IFS
11821 test -z "$as_dir" && as_dir=.
11822 for ac_exec_ext in '' $ac_executable_extensions; do
11823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11824 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11826 break 2
11827 fi
11828done
11829 done
11830IFS=$as_save_IFS
11831
11832fi
11833fi
11834CXX=$ac_cv_prog_CXX
11835if test -n "$CXX"; then
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11837$as_echo "$CXX" >&6; }
11838else
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840$as_echo "no" >&6; }
11841fi
11842
11843
11844 test -n "$CXX" && break
11845 done
11846fi
11847if test -z "$CXX"; then
11848 ac_ct_CXX=$CXX
11849 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11850do
11851 # Extract the first word of "$ac_prog", so it can be a program name with args.
11852set dummy $ac_prog; ac_word=$2
11853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11854$as_echo_n "checking for $ac_word... " >&6; }
11855if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11856 $as_echo_n "(cached) " >&6
11857else
11858 if test -n "$ac_ct_CXX"; then
11859 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11860else
11861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11862for as_dir in $PATH
11863do
11864 IFS=$as_save_IFS
11865 test -z "$as_dir" && as_dir=.
11866 for ac_exec_ext in '' $ac_executable_extensions; do
11867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11868 ac_cv_prog_ac_ct_CXX="$ac_prog"
11869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11870 break 2
11871 fi
11872done
11873 done
11874IFS=$as_save_IFS
11875
11876fi
11877fi
11878ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11879if test -n "$ac_ct_CXX"; then
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11881$as_echo "$ac_ct_CXX" >&6; }
11882else
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884$as_echo "no" >&6; }
11885fi
11886
11887
11888 test -n "$ac_ct_CXX" && break
11889done
11890
11891 if test "x$ac_ct_CXX" = x; then
11892 CXX="g++"
11893 else
11894 case $cross_compiling:$ac_tool_warned in
11895yes:)
11896{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11898ac_tool_warned=yes ;;
11899esac
11900 CXX=$ac_ct_CXX
11901 fi
11902fi
11903
11904 fi
11905fi
11906# Provide some information about the compiler.
11907$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11908set X $ac_compile
11909ac_compiler=$2
11910for ac_option in --version -v -V -qversion; do
11911 { { ac_try="$ac_compiler $ac_option >&5"
11912case "(($ac_try" in
11913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914 *) ac_try_echo=$ac_try;;
11915esac
11916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11917$as_echo "$ac_try_echo"; } >&5
11918 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11919 ac_status=$?
11920 if test -s conftest.err; then
11921 sed '10a\
11922... rest of stderr output deleted ...
11923 10q' conftest.err >conftest.er1
11924 cat conftest.er1 >&5
11925 fi
11926 rm -f conftest.er1 conftest.err
11927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11928 test $ac_status = 0; }
11929done
11930
11931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11932$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11933if ${ac_cv_cxx_compiler_gnu+:} false; then :
11934 $as_echo_n "(cached) " >&6
11935else
11936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11937/* end confdefs.h. */
11938
11939int
11940main ()
11941{
11942#ifndef __GNUC__
11943 choke me
11944#endif
11945
11946 ;
11947 return 0;
11948}
11949_ACEOF
11950if ac_fn_cxx_try_compile "$LINENO"; then :
11951 ac_compiler_gnu=yes
11952else
11953 ac_compiler_gnu=no
11954fi
11955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11956ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11957
11958fi
11959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11960$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11961if test $ac_compiler_gnu = yes; then
11962 GXX=yes
11963else
11964 GXX=
11965fi
11966ac_test_CXXFLAGS=${CXXFLAGS+set}
11967ac_save_CXXFLAGS=$CXXFLAGS
11968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11969$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11970if ${ac_cv_prog_cxx_g+:} false; then :
11971 $as_echo_n "(cached) " >&6
11972else
11973 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11974 ac_cxx_werror_flag=yes
11975 ac_cv_prog_cxx_g=no
11976 CXXFLAGS="-g"
11977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11978/* end confdefs.h. */
11979
11980int
11981main ()
11982{
11983
11984 ;
11985 return 0;
11986}
11987_ACEOF
11988if ac_fn_cxx_try_compile "$LINENO"; then :
11989 ac_cv_prog_cxx_g=yes
11990else
11991 CXXFLAGS=""
11992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993/* end confdefs.h. */
11994
11995int
11996main ()
11997{
11998
11999 ;
12000 return 0;
12001}
12002_ACEOF
12003if ac_fn_cxx_try_compile "$LINENO"; then :
12004
12005else
12006 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12007 CXXFLAGS="-g"
12008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009/* end confdefs.h. */
12010
12011int
12012main ()
12013{
12014
12015 ;
12016 return 0;
12017}
12018_ACEOF
12019if ac_fn_cxx_try_compile "$LINENO"; then :
12020 ac_cv_prog_cxx_g=yes
12021fi
12022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12023fi
12024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12025fi
12026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12027 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12028fi
12029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12030$as_echo "$ac_cv_prog_cxx_g" >&6; }
12031if test "$ac_test_CXXFLAGS" = set; then
12032 CXXFLAGS=$ac_save_CXXFLAGS
12033elif test $ac_cv_prog_cxx_g = yes; then
12034 if test "$GXX" = yes; then
12035 CXXFLAGS="-g -O2"
12036 else
12037 CXXFLAGS="-g"
12038 fi
12039else
12040 if test "$GXX" = yes; then
12041 CXXFLAGS="-O2"
12042 else
12043 CXXFLAGS=
12044 fi
12045fi
12046ac_ext=c
12047ac_cpp='$CPP $CPPFLAGS'
12048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12050ac_compiler_gnu=$ac_cv_c_compiler_gnu
12051
12052depcc="$CXX" am_compiler_list=
12053
12054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12055$as_echo_n "checking dependency style of $depcc... " >&6; }
12056if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12057 $as_echo_n "(cached) " >&6
12058else
12059 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12060 # We make a subdir and do the tests there. Otherwise we can end up
12061 # making bogus files that we don't know about and never remove. For
12062 # instance it was reported that on HP-UX the gcc test will end up
12063 # making a dummy file named 'D' -- because '-MD' means "put the output
12064 # in D".
12065 rm -rf conftest.dir
12066 mkdir conftest.dir
12067 # Copy depcomp to subdir because otherwise we won't find it if we're
12068 # using a relative directory.
12069 cp "$am_depcomp" conftest.dir
12070 cd conftest.dir
12071 # We will build objects and dependencies in a subdirectory because
12072 # it helps to detect inapplicable dependency modes. For instance
12073 # both Tru64's cc and ICC support -MD to output dependencies as a
12074 # side effect of compilation, but ICC will put the dependencies in
12075 # the current directory while Tru64 will put them in the object
12076 # directory.
12077 mkdir sub
12078
12079 am_cv_CXX_dependencies_compiler_type=none
12080 if test "$am_compiler_list" = ""; then
12081 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12082 fi
12083 am__universal=false
12084 case " $depcc " in #(
12085 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12086 esac
12087
12088 for depmode in $am_compiler_list; do
12089 # Setup a source with many dependencies, because some compilers
12090 # like to wrap large dependency lists on column 80 (with \), and
12091 # we should not choose a depcomp mode which is confused by this.
12092 #
12093 # We need to recreate these files for each test, as the compiler may
12094 # overwrite some of them when testing with obscure command lines.
12095 # This happens at least with the AIX C compiler.
12096 : > sub/conftest.c
12097 for i in 1 2 3 4 5 6; do
12098 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12099 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12100 # Solaris 10 /bin/sh.
12101 echo '/* dummy */' > sub/conftst$i.h
12102 done
12103 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12104
12105 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12106 # mode. It turns out that the SunPro C++ compiler does not properly
12107 # handle '-M -o', and we need to detect this. Also, some Intel
12108 # versions had trouble with output in subdirs.
12109 am__obj=sub/conftest.${OBJEXT-o}
12110 am__minus_obj="-o $am__obj"
12111 case $depmode in
12112 gcc)
12113 # This depmode causes a compiler race in universal mode.
12114 test "$am__universal" = false || continue
12115 ;;
12116 nosideeffect)
12117 # After this tag, mechanisms are not by side-effect, so they'll
12118 # only be used when explicitly requested.
12119 if test "x$enable_dependency_tracking" = xyes; then
12120 continue
12121 else
12122 break
12123 fi
12124 ;;
12125 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12126 # This compiler won't grok '-c -o', but also, the minuso test has
12127 # not run yet. These depmodes are late enough in the game, and
12128 # so weak that their functioning should not be impacted.
12129 am__obj=conftest.${OBJEXT-o}
12130 am__minus_obj=
12131 ;;
12132 none) break ;;
12133 esac
12134 if depmode=$depmode \
12135 source=sub/conftest.c object=$am__obj \
12136 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12137 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12138 >/dev/null 2>conftest.err &&
12139 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12140 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12141 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12142 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12143 # icc doesn't choke on unknown options, it will just issue warnings
12144 # or remarks (even with -Werror). So we grep stderr for any message
12145 # that says an option was ignored or not supported.
12146 # When given -MP, icc 7.0 and 7.1 complain thusly:
12147 # icc: Command line warning: ignoring option '-M'; no argument required
12148 # The diagnosis changed in icc 8.0:
12149 # icc: Command line remark: option '-MP' not supported
12150 if (grep 'ignoring option' conftest.err ||
12151 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12152 am_cv_CXX_dependencies_compiler_type=$depmode
12153 break
12154 fi
12155 fi
12156 done
12157
12158 cd ..
12159 rm -rf conftest.dir
12160else
12161 am_cv_CXX_dependencies_compiler_type=none
12162fi
12163
12164fi
12165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12166$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12167CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12168
12169 if
12170 test "x$enable_dependency_tracking" != xno \
12171 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12172 am__fastdepCXX_TRUE=
12173 am__fastdepCXX_FALSE='#'
12174else
12175 am__fastdepCXX_TRUE='#'
12176 am__fastdepCXX_FALSE=
12177fi
12178
12179
12180
12181
12182func_stripname_cnf ()
12183{
12184 case ${2} in
12185 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12186 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12187 esac
12188} # func_stripname_cnf
12189
12190 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12191 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12192 (test "X$CXX" != "Xg++"))) ; then
12193 ac_ext=cpp
12194ac_cpp='$CXXCPP $CPPFLAGS'
12195ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12196ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12197ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12199$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12200if test -z "$CXXCPP"; then
12201 if ${ac_cv_prog_CXXCPP+:} false; then :
12202 $as_echo_n "(cached) " >&6
12203else
12204 # Double quotes because CXXCPP needs to be expanded
12205 for CXXCPP in "$CXX -E" "/lib/cpp"
12206 do
12207 ac_preproc_ok=false
12208for ac_cxx_preproc_warn_flag in '' yes
12209do
12210 # Use a header file that comes with gcc, so configuring glibc
12211 # with a fresh cross-compiler works.
12212 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12213 # <limits.h> exists even on freestanding compilers.
12214 # On the NeXT, cc -E runs the code through the compiler's parser,
12215 # not just through cpp. "Syntax error" is here to catch this case.
12216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12217/* end confdefs.h. */
12218#ifdef __STDC__
12219# include <limits.h>
12220#else
12221# include <assert.h>
12222#endif
12223 Syntax error
12224_ACEOF
12225if ac_fn_cxx_try_cpp "$LINENO"; then :
12226
12227else
12228 # Broken: fails on valid input.
12229continue
12230fi
12231rm -f conftest.err conftest.i conftest.$ac_ext
12232
12233 # OK, works on sane cases. Now check whether nonexistent headers
12234 # can be detected and how.
12235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12236/* end confdefs.h. */
12237#include <ac_nonexistent.h>
12238_ACEOF
12239if ac_fn_cxx_try_cpp "$LINENO"; then :
12240 # Broken: success on invalid input.
12241continue
12242else
12243 # Passes both tests.
12244ac_preproc_ok=:
12245break
12246fi
12247rm -f conftest.err conftest.i conftest.$ac_ext
12248
12249done
12250# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12251rm -f conftest.i conftest.err conftest.$ac_ext
12252if $ac_preproc_ok; then :
12253 break
12254fi
12255
12256 done
12257 ac_cv_prog_CXXCPP=$CXXCPP
12258
12259fi
12260 CXXCPP=$ac_cv_prog_CXXCPP
12261else
12262 ac_cv_prog_CXXCPP=$CXXCPP
12263fi
12264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12265$as_echo "$CXXCPP" >&6; }
12266ac_preproc_ok=false
12267for ac_cxx_preproc_warn_flag in '' yes
12268do
12269 # Use a header file that comes with gcc, so configuring glibc
12270 # with a fresh cross-compiler works.
12271 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12272 # <limits.h> exists even on freestanding compilers.
12273 # On the NeXT, cc -E runs the code through the compiler's parser,
12274 # not just through cpp. "Syntax error" is here to catch this case.
12275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12276/* end confdefs.h. */
12277#ifdef __STDC__
12278# include <limits.h>
12279#else
12280# include <assert.h>
12281#endif
12282 Syntax error
12283_ACEOF
12284if ac_fn_cxx_try_cpp "$LINENO"; then :
12285
12286else
12287 # Broken: fails on valid input.
12288continue
12289fi
12290rm -f conftest.err conftest.i conftest.$ac_ext
12291
12292 # OK, works on sane cases. Now check whether nonexistent headers
12293 # can be detected and how.
12294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12295/* end confdefs.h. */
12296#include <ac_nonexistent.h>
12297_ACEOF
12298if ac_fn_cxx_try_cpp "$LINENO"; then :
12299 # Broken: success on invalid input.
12300continue
12301else
12302 # Passes both tests.
12303ac_preproc_ok=:
12304break
12305fi
12306rm -f conftest.err conftest.i conftest.$ac_ext
12307
12308done
12309# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12310rm -f conftest.i conftest.err conftest.$ac_ext
12311if $ac_preproc_ok; then :
12312
12313else
12314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12316as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12317See \`config.log' for more details" "$LINENO" 5; }
12318fi
12319
12320ac_ext=c
12321ac_cpp='$CPP $CPPFLAGS'
12322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12324ac_compiler_gnu=$ac_cv_c_compiler_gnu
12325
12326else
12327 _lt_caught_CXX_error=yes
12328fi
12329
12330ac_ext=cpp
12331ac_cpp='$CXXCPP $CPPFLAGS'
12332ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12333ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12334ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12335
12336archive_cmds_need_lc_CXX=no
12337allow_undefined_flag_CXX=
12338always_export_symbols_CXX=no
12339archive_expsym_cmds_CXX=
12340compiler_needs_object_CXX=no
12341export_dynamic_flag_spec_CXX=
12342hardcode_direct_CXX=no
12343hardcode_direct_absolute_CXX=no
12344hardcode_libdir_flag_spec_CXX=
12345hardcode_libdir_separator_CXX=
12346hardcode_minus_L_CXX=no
12347hardcode_shlibpath_var_CXX=unsupported
12348hardcode_automatic_CXX=no
12349inherit_rpath_CXX=no
12350module_cmds_CXX=
12351module_expsym_cmds_CXX=
12352link_all_deplibs_CXX=unknown
12353old_archive_cmds_CXX=$old_archive_cmds
12354reload_flag_CXX=$reload_flag
12355reload_cmds_CXX=$reload_cmds
12356no_undefined_flag_CXX=
12357whole_archive_flag_spec_CXX=
12358enable_shared_with_static_runtimes_CXX=no
12359
12360# Source file extension for C++ test sources.
12361ac_ext=cpp
12362
12363# Object file extension for compiled C++ test sources.
12364objext=o
12365objext_CXX=$objext
12366
12367# No sense in running all these tests if we already determined that
12368# the CXX compiler isn't working. Some variables (like enable_shared)
12369# are currently assumed to apply to all compilers on this platform,
12370# and will be corrupted by setting them based on a non-working compiler.
12371if test "$_lt_caught_CXX_error" != yes; then
12372 # Code to be used in simple compile tests
12373 lt_simple_compile_test_code="int some_variable = 0;"
12374
12375 # Code to be used in simple link tests
12376 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12377
12378 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12379
12380
12381
12382
12383
12384
12385# If no C compiler was specified, use CC.
12386LTCC=${LTCC-"$CC"}
12387
12388# If no C compiler flags were specified, use CFLAGS.
12389LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12390
12391# Allow CC to be a program name with arguments.
12392compiler=$CC
12393
12394
12395 # save warnings/boilerplate of simple test code
12396 ac_outfile=conftest.$ac_objext
12397echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12398eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12399_lt_compiler_boilerplate=`cat conftest.err`
12400$RM conftest*
12401
12402 ac_outfile=conftest.$ac_objext
12403echo "$lt_simple_link_test_code" >conftest.$ac_ext
12404eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12405_lt_linker_boilerplate=`cat conftest.err`
12406$RM -r conftest*
12407
12408
12409 # Allow CC to be a program name with arguments.
12410 lt_save_CC=$CC
12411 lt_save_CFLAGS=$CFLAGS
12412 lt_save_LD=$LD
12413 lt_save_GCC=$GCC
12414 GCC=$GXX
12415 lt_save_with_gnu_ld=$with_gnu_ld
12416 lt_save_path_LD=$lt_cv_path_LD
12417 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12418 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12419 else
12420 $as_unset lt_cv_prog_gnu_ld
12421 fi
12422 if test -n "${lt_cv_path_LDCXX+set}"; then
12423 lt_cv_path_LD=$lt_cv_path_LDCXX
12424 else
12425 $as_unset lt_cv_path_LD
12426 fi
12427 test -z "${LDCXX+set}" || LD=$LDCXX
12428 CC=${CXX-"c++"}
12429 CFLAGS=$CXXFLAGS
12430 compiler=$CC
12431 compiler_CXX=$CC
12432 for cc_temp in $compiler""; do
12433 case $cc_temp in
12434 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12435 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12436 \-*) ;;
12437 *) break;;
12438 esac
12439done
12440cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12441
12442
12443 if test -n "$compiler"; then
12444 # We don't want -fno-exception when compiling C++ code, so set the
12445 # no_builtin_flag separately
12446 if test "$GXX" = yes; then
12447 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12448 else
12449 lt_prog_compiler_no_builtin_flag_CXX=
12450 fi
12451
12452 if test "$GXX" = yes; then
12453 # Set up default GNU C++ configuration
12454
12455
12456
12457# Check whether --with-gnu-ld was given.
12458if test "${with_gnu_ld+set}" = set; then :
12459 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12460else
12461 with_gnu_ld=no
12462fi
12463
12464ac_prog=ld
12465if test "$GCC" = yes; then
12466 # Check if gcc -print-prog-name=ld gives a path.
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12468$as_echo_n "checking for ld used by $CC... " >&6; }
12469 case $host in
12470 *-*-mingw*)
12471 # gcc leaves a trailing carriage return which upsets mingw
12472 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12473 *)
12474 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12475 esac
12476 case $ac_prog in
12477 # Accept absolute paths.
12478 [\\/]* | ?:[\\/]*)
12479 re_direlt='/[^/][^/]*/\.\./'
12480 # Canonicalize the pathname of ld
12481 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12482 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12483 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12484 done
12485 test -z "$LD" && LD="$ac_prog"
12486 ;;
12487 "")
12488 # If it fails, then pretend we aren't using GCC.
12489 ac_prog=ld
12490 ;;
12491 *)
12492 # If it is relative, then search for the first ld in PATH.
12493 with_gnu_ld=unknown
12494 ;;
12495 esac
12496elif test "$with_gnu_ld" = yes; then
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12498$as_echo_n "checking for GNU ld... " >&6; }
12499else
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12501$as_echo_n "checking for non-GNU ld... " >&6; }
12502fi
12503if ${lt_cv_path_LD+:} false; then :
12504 $as_echo_n "(cached) " >&6
12505else
12506 if test -z "$LD"; then
12507 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12508 for ac_dir in $PATH; do
12509 IFS="$lt_save_ifs"
12510 test -z "$ac_dir" && ac_dir=.
12511 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12512 lt_cv_path_LD="$ac_dir/$ac_prog"
12513 # Check to see if the program is GNU ld. I'd rather use --version,
12514 # but apparently some variants of GNU ld only accept -v.
12515 # Break only if it was the GNU/non-GNU ld that we prefer.
12516 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12517 *GNU* | *'with BFD'*)
12518 test "$with_gnu_ld" != no && break
12519 ;;
12520 *)
12521 test "$with_gnu_ld" != yes && break
12522 ;;
12523 esac
12524 fi
12525 done
12526 IFS="$lt_save_ifs"
12527else
12528 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12529fi
12530fi
12531
12532LD="$lt_cv_path_LD"
12533if test -n "$LD"; then
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12535$as_echo "$LD" >&6; }
12536else
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12538$as_echo "no" >&6; }
12539fi
12540test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12542$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12543if ${lt_cv_prog_gnu_ld+:} false; then :
12544 $as_echo_n "(cached) " >&6
12545else
12546 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12547case `$LD -v 2>&1 </dev/null` in
12548*GNU* | *'with BFD'*)
12549 lt_cv_prog_gnu_ld=yes
12550 ;;
12551*)
12552 lt_cv_prog_gnu_ld=no
12553 ;;
12554esac
12555fi
12556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12557$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12558with_gnu_ld=$lt_cv_prog_gnu_ld
12559
12560
12561
12562
12563
12564
12565
12566 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12567 # archiving commands below assume that GNU ld is being used.
12568 if test "$with_gnu_ld" = yes; then
12569 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12570 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'
12571
12572 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12573 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12574
12575 # If archive_cmds runs LD, not CC, wlarc should be empty
12576 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12577 # investigate it a little bit more. (MM)
12578 wlarc='${wl}'
12579
12580 # ancient GNU ld didn't support --whole-archive et. al.
12581 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12582 $GREP 'no-whole-archive' > /dev/null; then
12583 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12584 else
12585 whole_archive_flag_spec_CXX=
12586 fi
12587 else
12588 with_gnu_ld=no
12589 wlarc=
12590
12591 # A generic and very simple default shared library creation
12592 # command for GNU C++ for the case where it uses the native
12593 # linker, instead of GNU ld. If possible, this setting should
12594 # overridden to take advantage of the native linker features on
12595 # the platform it is being used on.
12596 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12597 fi
12598
12599 # Commands to make compiler produce verbose output that lists
12600 # what "hidden" libraries, object files and flags are used when
12601 # linking a shared library.
12602 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12603
12604 else
12605 GXX=no
12606 with_gnu_ld=no
12607 wlarc=
12608 fi
12609
12610 # PORTME: fill in a description of your system's C++ link characteristics
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12612$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12613 ld_shlibs_CXX=yes
12614 case $host_os in
12615 aix3*)
12616 # FIXME: insert proper C++ library support
12617 ld_shlibs_CXX=no
12618 ;;
12619 aix[4-9]*)
12620 if test "$host_cpu" = ia64; then
12621 # On IA64, the linker does run time linking by default, so we don't
12622 # have to do anything special.
12623 aix_use_runtimelinking=no
12624 exp_sym_flag='-Bexport'
12625 no_entry_flag=""
12626 else
12627 aix_use_runtimelinking=no
12628
12629 # Test if we are trying to use run time linking or normal
12630 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12631 # need to do runtime linking.
12632 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12633 for ld_flag in $LDFLAGS; do
12634 case $ld_flag in
12635 *-brtl*)
12636 aix_use_runtimelinking=yes
12637 break
12638 ;;
12639 esac
12640 done
12641 ;;
12642 esac
12643
12644 exp_sym_flag='-bexport'
12645 no_entry_flag='-bnoentry'
12646 fi
12647
12648 # When large executables or shared objects are built, AIX ld can
12649 # have problems creating the table of contents. If linking a library
12650 # or program results in "error TOC overflow" add -mminimal-toc to
12651 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12652 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12653
12654 archive_cmds_CXX=''
12655 hardcode_direct_CXX=yes
12656 hardcode_direct_absolute_CXX=yes
12657 hardcode_libdir_separator_CXX=':'
12658 link_all_deplibs_CXX=yes
12659 file_list_spec_CXX='${wl}-f,'
12660
12661 if test "$GXX" = yes; then
12662 case $host_os in aix4.[012]|aix4.[012].*)
12663 # We only want to do this on AIX 4.2 and lower, the check
12664 # below for broken collect2 doesn't work under 4.3+
12665 collect2name=`${CC} -print-prog-name=collect2`
12666 if test -f "$collect2name" &&
12667 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12668 then
12669 # We have reworked collect2
12670 :
12671 else
12672 # We have old collect2
12673 hardcode_direct_CXX=unsupported
12674 # It fails to find uninstalled libraries when the uninstalled
12675 # path is not listed in the libpath. Setting hardcode_minus_L
12676 # to unsupported forces relinking
12677 hardcode_minus_L_CXX=yes
12678 hardcode_libdir_flag_spec_CXX='-L$libdir'
12679 hardcode_libdir_separator_CXX=
12680 fi
12681 esac
12682 shared_flag='-shared'
12683 if test "$aix_use_runtimelinking" = yes; then
12684 shared_flag="$shared_flag "'${wl}-G'
12685 fi
12686 else
12687 # not using gcc
12688 if test "$host_cpu" = ia64; then
12689 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12690 # chokes on -Wl,-G. The following line is correct:
12691 shared_flag='-G'
12692 else
12693 if test "$aix_use_runtimelinking" = yes; then
12694 shared_flag='${wl}-G'
12695 else
12696 shared_flag='${wl}-bM:SRE'
12697 fi
12698 fi
12699 fi
12700
12701 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12702 # It seems that -bexpall does not export symbols beginning with
12703 # underscore (_), so it is better to generate a list of symbols to
12704 # export.
12705 always_export_symbols_CXX=yes
12706 if test "$aix_use_runtimelinking" = yes; then
12707 # Warning - without using the other runtime loading flags (-brtl),
12708 # -berok will link without error, but may produce a broken library.
12709 allow_undefined_flag_CXX='-berok'
12710 # Determine the default libpath from the value encoded in an empty
12711 # executable.
12712 if test "${lt_cv_aix_libpath+set}" = set; then
12713 aix_libpath=$lt_cv_aix_libpath
12714else
12715 if ${lt_cv_aix_libpath__CXX+:} false; then :
12716 $as_echo_n "(cached) " >&6
12717else
12718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12719/* end confdefs.h. */
12720
12721int
12722main ()
12723{
12724
12725 ;
12726 return 0;
12727}
12728_ACEOF
12729if ac_fn_cxx_try_link "$LINENO"; then :
12730
12731 lt_aix_libpath_sed='
12732 /Import File Strings/,/^$/ {
12733 /^0/ {
12734 s/^0 *\([^ ]*\) *$/\1/
12735 p
12736 }
12737 }'
12738 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12739 # Check for a 64-bit object if we didn't find anything.
12740 if test -z "$lt_cv_aix_libpath__CXX"; then
12741 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12742 fi
12743fi
12744rm -f core conftest.err conftest.$ac_objext \
12745 conftest$ac_exeext conftest.$ac_ext
12746 if test -z "$lt_cv_aix_libpath__CXX"; then
12747 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12748 fi
12749
12750fi
12751
12752 aix_libpath=$lt_cv_aix_libpath__CXX
12753fi
12754
12755 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12756
12757 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"
12758 else
12759 if test "$host_cpu" = ia64; then
12760 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12761 allow_undefined_flag_CXX="-z nodefs"
12762 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"
12763 else
12764 # Determine the default libpath from the value encoded in an
12765 # empty executable.
12766 if test "${lt_cv_aix_libpath+set}" = set; then
12767 aix_libpath=$lt_cv_aix_libpath
12768else
12769 if ${lt_cv_aix_libpath__CXX+:} false; then :
12770 $as_echo_n "(cached) " >&6
12771else
12772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12773/* end confdefs.h. */
12774
12775int
12776main ()
12777{
12778
12779 ;
12780 return 0;
12781}
12782_ACEOF
12783if ac_fn_cxx_try_link "$LINENO"; then :
12784
12785 lt_aix_libpath_sed='
12786 /Import File Strings/,/^$/ {
12787 /^0/ {
12788 s/^0 *\([^ ]*\) *$/\1/
12789 p
12790 }
12791 }'
12792 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12793 # Check for a 64-bit object if we didn't find anything.
12794 if test -z "$lt_cv_aix_libpath__CXX"; then
12795 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12796 fi
12797fi
12798rm -f core conftest.err conftest.$ac_objext \
12799 conftest$ac_exeext conftest.$ac_ext
12800 if test -z "$lt_cv_aix_libpath__CXX"; then
12801 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12802 fi
12803
12804fi
12805
12806 aix_libpath=$lt_cv_aix_libpath__CXX
12807fi
12808
12809 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12810 # Warning - without using the other run time loading flags,
12811 # -berok will link without error, but may produce a broken library.
12812 no_undefined_flag_CXX=' ${wl}-bernotok'
12813 allow_undefined_flag_CXX=' ${wl}-berok'
12814 if test "$with_gnu_ld" = yes; then
12815 # We only use this code for GNU lds that support --whole-archive.
12816 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12817 else
12818 # Exported symbols can be pulled into shared objects from archives
12819 whole_archive_flag_spec_CXX='$convenience'
12820 fi
12821 archive_cmds_need_lc_CXX=yes
12822 # This is similar to how AIX traditionally builds its shared
12823 # libraries.
12824 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'
12825 fi
12826 fi
12827 ;;
12828
12829 beos*)
12830 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12831 allow_undefined_flag_CXX=unsupported
12832 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12833 # support --undefined. This deserves some investigation. FIXME
12834 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12835 else
12836 ld_shlibs_CXX=no
12837 fi
12838 ;;
12839
12840 chorus*)
12841 case $cc_basename in
12842 *)
12843 # FIXME: insert proper C++ library support
12844 ld_shlibs_CXX=no
12845 ;;
12846 esac
12847 ;;
12848
12849 cygwin* | mingw* | pw32* | cegcc*)
12850 case $GXX,$cc_basename in
12851 ,cl* | no,cl*)
12852 # Native MSVC
12853 # hardcode_libdir_flag_spec is actually meaningless, as there is
12854 # no search path for DLLs.
12855 hardcode_libdir_flag_spec_CXX=' '
12856 allow_undefined_flag_CXX=unsupported
12857 always_export_symbols_CXX=yes
12858 file_list_spec_CXX='@'
12859 # Tell ltmain to make .lib files, not .a files.
12860 libext=lib
12861 # Tell ltmain to make .dll files, not .so files.
12862 shrext_cmds=".dll"
12863 # FIXME: Setting linknames here is a bad hack.
12864 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12865 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12866 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12867 else
12868 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12869 fi~
12870 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12871 linknames='
12872 # The linker will not automatically build a static lib if we build a DLL.
12873 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12874 enable_shared_with_static_runtimes_CXX=yes
12875 # Don't use ranlib
12876 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12877 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12878 lt_tool_outputfile="@TOOL_OUTPUT@"~
12879 case $lt_outputfile in
12880 *.exe|*.EXE) ;;
12881 *)
12882 lt_outputfile="$lt_outputfile.exe"
12883 lt_tool_outputfile="$lt_tool_outputfile.exe"
12884 ;;
12885 esac~
12886 func_to_tool_file "$lt_outputfile"~
12887 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12888 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12889 $RM "$lt_outputfile.manifest";
12890 fi'
12891 ;;
12892 *)
12893 # g++
12894 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12895 # as there is no search path for DLLs.
12896 hardcode_libdir_flag_spec_CXX='-L$libdir'
12897 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12898 allow_undefined_flag_CXX=unsupported
12899 always_export_symbols_CXX=no
12900 enable_shared_with_static_runtimes_CXX=yes
12901
12902 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12903 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'
12904 # If the export-symbols file already is a .def file (1st line
12905 # is EXPORTS), use it as is; otherwise, prepend...
12906 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12907 cp $export_symbols $output_objdir/$soname.def;
12908 else
12909 echo EXPORTS > $output_objdir/$soname.def;
12910 cat $export_symbols >> $output_objdir/$soname.def;
12911 fi~
12912 $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'
12913 else
12914 ld_shlibs_CXX=no
12915 fi
12916 ;;
12917 esac
12918 ;;
12919 darwin* | rhapsody*)
12920
12921
12922 archive_cmds_need_lc_CXX=no
12923 hardcode_direct_CXX=no
12924 hardcode_automatic_CXX=yes
12925 hardcode_shlibpath_var_CXX=unsupported
12926 if test "$lt_cv_ld_force_load" = "yes"; then
12927 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\"`'
12928
12929 else
12930 whole_archive_flag_spec_CXX=''
12931 fi
12932 link_all_deplibs_CXX=yes
12933 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12934 case $cc_basename in
12935 ifort*) _lt_dar_can_shared=yes ;;
12936 *) _lt_dar_can_shared=$GCC ;;
12937 esac
12938 if test "$_lt_dar_can_shared" = "yes"; then
12939 output_verbose_link_cmd=func_echo_all
12940 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}"
12941 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12942 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}"
12943 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}"
12944 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12945 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}"
12946 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}"
12947 fi
12948
12949 else
12950 ld_shlibs_CXX=no
12951 fi
12952
12953 ;;
12954
12955 dgux*)
12956 case $cc_basename in
12957 ec++*)
12958 # FIXME: insert proper C++ library support
12959 ld_shlibs_CXX=no
12960 ;;
12961 ghcx*)
12962 # Green Hills C++ Compiler
12963 # FIXME: insert proper C++ library support
12964 ld_shlibs_CXX=no
12965 ;;
12966 *)
12967 # FIXME: insert proper C++ library support
12968 ld_shlibs_CXX=no
12969 ;;
12970 esac
12971 ;;
12972
12973 freebsd2.*)
12974 # C++ shared libraries reported to be fairly broken before
12975 # switch to ELF
12976 ld_shlibs_CXX=no
12977 ;;
12978
12979 freebsd-elf*)
12980 archive_cmds_need_lc_CXX=no
12981 ;;
12982
12983 freebsd* | dragonfly*)
12984 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12985 # conventions
12986 ld_shlibs_CXX=yes
12987 ;;
12988
12989 gnu*)
12990 ;;
12991
12992 haiku*)
12993 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12994 link_all_deplibs_CXX=yes
12995 ;;
12996
12997 hpux9*)
12998 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12999 hardcode_libdir_separator_CXX=:
13000 export_dynamic_flag_spec_CXX='${wl}-E'
13001 hardcode_direct_CXX=yes
13002 hardcode_minus_L_CXX=yes # Not in the search PATH,
13003 # but as the default
13004 # location of the library.
13005
13006 case $cc_basename in
13007 CC*)
13008 # FIXME: insert proper C++ library support
13009 ld_shlibs_CXX=no
13010 ;;
13011 aCC*)
13012 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'
13013 # Commands to make compiler produce verbose output that lists
13014 # what "hidden" libraries, object files and flags are used when
13015 # linking a shared library.
13016 #
13017 # There doesn't appear to be a way to prevent this compiler from
13018 # explicitly linking system object files so we need to strip them
13019 # from the output so that they don't get included in the library
13020 # dependencies.
13021 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"'
13022 ;;
13023 *)
13024 if test "$GXX" = yes; then
13025 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'
13026 else
13027 # FIXME: insert proper C++ library support
13028 ld_shlibs_CXX=no
13029 fi
13030 ;;
13031 esac
13032 ;;
13033
13034 hpux10*|hpux11*)
13035 if test $with_gnu_ld = no; then
13036 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13037 hardcode_libdir_separator_CXX=:
13038
13039 case $host_cpu in
13040 hppa*64*|ia64*)
13041 ;;
13042 *)
13043 export_dynamic_flag_spec_CXX='${wl}-E'
13044 ;;
13045 esac
13046 fi
13047 case $host_cpu in
13048 hppa*64*|ia64*)
13049 hardcode_direct_CXX=no
13050 hardcode_shlibpath_var_CXX=no
13051 ;;
13052 *)
13053 hardcode_direct_CXX=yes
13054 hardcode_direct_absolute_CXX=yes
13055 hardcode_minus_L_CXX=yes # Not in the search PATH,
13056 # but as the default
13057 # location of the library.
13058 ;;
13059 esac
13060
13061 case $cc_basename in
13062 CC*)
13063 # FIXME: insert proper C++ library support
13064 ld_shlibs_CXX=no
13065 ;;
13066 aCC*)
13067 case $host_cpu in
13068 hppa*64*)
13069 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13070 ;;
13071 ia64*)
13072 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13073 ;;
13074 *)
13075 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13076 ;;
13077 esac
13078 # Commands to make compiler produce verbose output that lists
13079 # what "hidden" libraries, object files and flags are used when
13080 # linking a shared library.
13081 #
13082 # There doesn't appear to be a way to prevent this compiler from
13083 # explicitly linking system object files so we need to strip them
13084 # from the output so that they don't get included in the library
13085 # dependencies.
13086 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"'
13087 ;;
13088 *)
13089 if test "$GXX" = yes; then
13090 if test $with_gnu_ld = no; then
13091 case $host_cpu in
13092 hppa*64*)
13093 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13094 ;;
13095 ia64*)
13096 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13097 ;;
13098 *)
13099 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'
13100 ;;
13101 esac
13102 fi
13103 else
13104 # FIXME: insert proper C++ library support
13105 ld_shlibs_CXX=no
13106 fi
13107 ;;
13108 esac
13109 ;;
13110
13111 interix[3-9]*)
13112 hardcode_direct_CXX=no
13113 hardcode_shlibpath_var_CXX=no
13114 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13115 export_dynamic_flag_spec_CXX='${wl}-E'
13116 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13117 # Instead, shared libraries are loaded at an image base (0x10000000 by
13118 # default) and relocated if they conflict, which is a slow very memory
13119 # consuming and fragmenting process. To avoid this, we pick a random,
13120 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13121 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13122 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'
13123 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'
13124 ;;
13125 irix5* | irix6*)
13126 case $cc_basename in
13127 CC*)
13128 # SGI C++
13129 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'
13130
13131 # Archives containing C++ object files must be created using
13132 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13133 # necessary to make sure instantiated templates are included
13134 # in the archive.
13135 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13136 ;;
13137 *)
13138 if test "$GXX" = yes; then
13139 if test "$with_gnu_ld" = no; then
13140 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'
13141 else
13142 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'
13143 fi
13144 fi
13145 link_all_deplibs_CXX=yes
13146 ;;
13147 esac
13148 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13149 hardcode_libdir_separator_CXX=:
13150 inherit_rpath_CXX=yes
13151 ;;
13152
13153 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13154 case $cc_basename in
13155 KCC*)
13156 # Kuck and Associates, Inc. (KAI) C++ Compiler
13157
13158 # KCC will only create a shared library if the output file
13159 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13160 # to its proper name (with version) after linking.
13161 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'
13162 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'
13163 # Commands to make compiler produce verbose output that lists
13164 # what "hidden" libraries, object files and flags are used when
13165 # linking a shared library.
13166 #
13167 # There doesn't appear to be a way to prevent this compiler from
13168 # explicitly linking system object files so we need to strip them
13169 # from the output so that they don't get included in the library
13170 # dependencies.
13171 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"'
13172
13173 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13174 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13175
13176 # Archives containing C++ object files must be created using
13177 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13178 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13179 ;;
13180 icpc* | ecpc* )
13181 # Intel C++
13182 with_gnu_ld=yes
13183 # version 8.0 and above of icpc choke on multiply defined symbols
13184 # if we add $predep_objects and $postdep_objects, however 7.1 and
13185 # earlier do not add the objects themselves.
13186 case `$CC -V 2>&1` in
13187 *"Version 7."*)
13188 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13189 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'
13190 ;;
13191 *) # Version 8.0 or newer
13192 tmp_idyn=
13193 case $host_cpu in
13194 ia64*) tmp_idyn=' -i_dynamic';;
13195 esac
13196 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13197 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'
13198 ;;
13199 esac
13200 archive_cmds_need_lc_CXX=no
13201 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13202 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13203 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13204 ;;
13205 pgCC* | pgcpp*)
13206 # Portland Group C++ compiler
13207 case `$CC -V` in
13208 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13209 prelink_cmds_CXX='tpldir=Template.dir~
13210 rm -rf $tpldir~
13211 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13212 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13213 old_archive_cmds_CXX='tpldir=Template.dir~
13214 rm -rf $tpldir~
13215 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13216 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13217 $RANLIB $oldlib'
13218 archive_cmds_CXX='tpldir=Template.dir~
13219 rm -rf $tpldir~
13220 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13221 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13222 archive_expsym_cmds_CXX='tpldir=Template.dir~
13223 rm -rf $tpldir~
13224 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13225 $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'
13226 ;;
13227 *) # Version 6 and above use weak symbols
13228 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13229 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'
13230 ;;
13231 esac
13232
13233 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13234 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13235 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'
13236 ;;
13237 cxx*)
13238 # Compaq C++
13239 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13240 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'
13241
13242 runpath_var=LD_RUN_PATH
13243 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13244 hardcode_libdir_separator_CXX=:
13245
13246 # Commands to make compiler produce verbose output that lists
13247 # what "hidden" libraries, object files and flags are used when
13248 # linking a shared library.
13249 #
13250 # There doesn't appear to be a way to prevent this compiler from
13251 # explicitly linking system object files so we need to strip them
13252 # from the output so that they don't get included in the library
13253 # dependencies.
13254 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'
13255 ;;
13256 xl* | mpixl* | bgxl*)
13257 # IBM XL 8.0 on PPC, with GNU ld
13258 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13259 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13260 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13261 if test "x$supports_anon_versioning" = xyes; then
13262 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13263 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13264 echo "local: *; };" >> $output_objdir/$libname.ver~
13265 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13266 fi
13267 ;;
13268 *)
13269 case `$CC -V 2>&1 | sed 5q` in
13270 *Sun\ C*)
13271 # Sun C++ 5.9
13272 no_undefined_flag_CXX=' -zdefs'
13273 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13274 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'
13275 hardcode_libdir_flag_spec_CXX='-R$libdir'
13276 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'
13277 compiler_needs_object_CXX=yes
13278
13279 # Not sure whether something based on
13280 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13281 # would be better.
13282 output_verbose_link_cmd='func_echo_all'
13283
13284 # Archives containing C++ object files must be created using
13285 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13286 # necessary to make sure instantiated templates are included
13287 # in the archive.
13288 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13289 ;;
13290 esac
13291 ;;
13292 esac
13293 ;;
13294
13295 lynxos*)
13296 # FIXME: insert proper C++ library support
13297 ld_shlibs_CXX=no
13298 ;;
13299
13300 m88k*)
13301 # FIXME: insert proper C++ library support
13302 ld_shlibs_CXX=no
13303 ;;
13304
13305 mvs*)
13306 case $cc_basename in
13307 cxx*)
13308 # FIXME: insert proper C++ library support
13309 ld_shlibs_CXX=no
13310 ;;
13311 *)
13312 # FIXME: insert proper C++ library support
13313 ld_shlibs_CXX=no
13314 ;;
13315 esac
13316 ;;
13317
13318 netbsd*)
13319 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13320 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13321 wlarc=
13322 hardcode_libdir_flag_spec_CXX='-R$libdir'
13323 hardcode_direct_CXX=yes
13324 hardcode_shlibpath_var_CXX=no
13325 fi
13326 # Workaround some broken pre-1.5 toolchains
13327 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13328 ;;
13329
13330 *nto* | *qnx*)
13331 ld_shlibs_CXX=yes
13332 ;;
13333
13334 openbsd2*)
13335 # C++ shared libraries are fairly broken
13336 ld_shlibs_CXX=no
13337 ;;
13338
13339 openbsd*)
13340 if test -f /usr/libexec/ld.so; then
13341 hardcode_direct_CXX=yes
13342 hardcode_shlibpath_var_CXX=no
13343 hardcode_direct_absolute_CXX=yes
13344 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13345 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13346 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13347 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13348 export_dynamic_flag_spec_CXX='${wl}-E'
13349 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13350 fi
13351 output_verbose_link_cmd=func_echo_all
13352 else
13353 ld_shlibs_CXX=no
13354 fi
13355 ;;
13356
13357 osf3* | osf4* | osf5*)
13358 case $cc_basename in
13359 KCC*)
13360 # Kuck and Associates, Inc. (KAI) C++ Compiler
13361
13362 # KCC will only create a shared library if the output file
13363 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13364 # to its proper name (with version) after linking.
13365 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'
13366
13367 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13368 hardcode_libdir_separator_CXX=:
13369
13370 # Archives containing C++ object files must be created using
13371 # the KAI C++ compiler.
13372 case $host in
13373 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13374 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13375 esac
13376 ;;
13377 RCC*)
13378 # Rational C++ 2.4.1
13379 # FIXME: insert proper C++ library support
13380 ld_shlibs_CXX=no
13381 ;;
13382 cxx*)
13383 case $host in
13384 osf3*)
13385 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13386 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'
13387 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13388 ;;
13389 *)
13390 allow_undefined_flag_CXX=' -expect_unresolved \*'
13391 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'
13392 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13393 echo "-hidden">> $lib.exp~
13394 $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~
13395 $RM $lib.exp'
13396 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13397 ;;
13398 esac
13399
13400 hardcode_libdir_separator_CXX=:
13401
13402 # Commands to make compiler produce verbose output that lists
13403 # what "hidden" libraries, object files and flags are used when
13404 # linking a shared library.
13405 #
13406 # There doesn't appear to be a way to prevent this compiler from
13407 # explicitly linking system object files so we need to strip them
13408 # from the output so that they don't get included in the library
13409 # dependencies.
13410 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"'
13411 ;;
13412 *)
13413 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13414 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13415 case $host in
13416 osf3*)
13417 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'
13418 ;;
13419 *)
13420 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'
13421 ;;
13422 esac
13423
13424 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13425 hardcode_libdir_separator_CXX=:
13426
13427 # Commands to make compiler produce verbose output that lists
13428 # what "hidden" libraries, object files and flags are used when
13429 # linking a shared library.
13430 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13431
13432 else
13433 # FIXME: insert proper C++ library support
13434 ld_shlibs_CXX=no
13435 fi
13436 ;;
13437 esac
13438 ;;
13439
13440 psos*)
13441 # FIXME: insert proper C++ library support
13442 ld_shlibs_CXX=no
13443 ;;
13444
13445 sunos4*)
13446 case $cc_basename in
13447 CC*)
13448 # Sun C++ 4.x
13449 # FIXME: insert proper C++ library support
13450 ld_shlibs_CXX=no
13451 ;;
13452 lcc*)
13453 # Lucid
13454 # FIXME: insert proper C++ library support
13455 ld_shlibs_CXX=no
13456 ;;
13457 *)
13458 # FIXME: insert proper C++ library support
13459 ld_shlibs_CXX=no
13460 ;;
13461 esac
13462 ;;
13463
13464 solaris*)
13465 case $cc_basename in
13466 CC* | sunCC*)
13467 # Sun C++ 4.2, 5.x and Centerline C++
13468 archive_cmds_need_lc_CXX=yes
13469 no_undefined_flag_CXX=' -zdefs'
13470 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13471 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13472 $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'
13473
13474 hardcode_libdir_flag_spec_CXX='-R$libdir'
13475 hardcode_shlibpath_var_CXX=no
13476 case $host_os in
13477 solaris2.[0-5] | solaris2.[0-5].*) ;;
13478 *)
13479 # The compiler driver will combine and reorder linker options,
13480 # but understands `-z linker_flag'.
13481 # Supported since Solaris 2.6 (maybe 2.5.1?)
13482 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13483 ;;
13484 esac
13485 link_all_deplibs_CXX=yes
13486
13487 output_verbose_link_cmd='func_echo_all'
13488
13489 # Archives containing C++ object files must be created using
13490 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13491 # necessary to make sure instantiated templates are included
13492 # in the archive.
13493 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13494 ;;
13495 gcx*)
13496 # Green Hills C++ Compiler
13497 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13498
13499 # The C++ compiler must be used to create the archive.
13500 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13501 ;;
13502 *)
13503 # GNU C++ compiler with Solaris linker
13504 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13505 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13506 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13507 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13508 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13509 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13510
13511 # Commands to make compiler produce verbose output that lists
13512 # what "hidden" libraries, object files and flags are used when
13513 # linking a shared library.
13514 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13515 else
13516 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13517 # platform.
13518 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13519 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13520 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13521
13522 # Commands to make compiler produce verbose output that lists
13523 # what "hidden" libraries, object files and flags are used when
13524 # linking a shared library.
13525 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13526 fi
13527
13528 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13529 case $host_os in
13530 solaris2.[0-5] | solaris2.[0-5].*) ;;
13531 *)
13532 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13533 ;;
13534 esac
13535 fi
13536 ;;
13537 esac
13538 ;;
13539
13540 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13541 no_undefined_flag_CXX='${wl}-z,text'
13542 archive_cmds_need_lc_CXX=no
13543 hardcode_shlibpath_var_CXX=no
13544 runpath_var='LD_RUN_PATH'
13545
13546 case $cc_basename in
13547 CC*)
13548 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13549 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13550 ;;
13551 *)
13552 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13553 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13554 ;;
13555 esac
13556 ;;
13557
13558 sysv5* | sco3.2v5* | sco5v6*)
13559 # Note: We can NOT use -z defs as we might desire, because we do not
13560 # link with -lc, and that would cause any symbols used from libc to
13561 # always be unresolved, which means just about no library would
13562 # ever link correctly. If we're not using GNU ld we use -z text
13563 # though, which does catch some bad symbols but isn't as heavy-handed
13564 # as -z defs.
13565 no_undefined_flag_CXX='${wl}-z,text'
13566 allow_undefined_flag_CXX='${wl}-z,nodefs'
13567 archive_cmds_need_lc_CXX=no
13568 hardcode_shlibpath_var_CXX=no
13569 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13570 hardcode_libdir_separator_CXX=':'
13571 link_all_deplibs_CXX=yes
13572 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13573 runpath_var='LD_RUN_PATH'
13574
13575 case $cc_basename in
13576 CC*)
13577 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13578 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13579 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13580 '"$old_archive_cmds_CXX"
13581 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13582 '"$reload_cmds_CXX"
13583 ;;
13584 *)
13585 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13586 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13587 ;;
13588 esac
13589 ;;
13590
13591 tandem*)
13592 case $cc_basename in
13593 NCC*)
13594 # NonStop-UX NCC 3.20
13595 # FIXME: insert proper C++ library support
13596 ld_shlibs_CXX=no
13597 ;;
13598 *)
13599 # FIXME: insert proper C++ library support
13600 ld_shlibs_CXX=no
13601 ;;
13602 esac
13603 ;;
13604
13605 vxworks*)
13606 # FIXME: insert proper C++ library support
13607 ld_shlibs_CXX=no
13608 ;;
13609
13610 *)
13611 # FIXME: insert proper C++ library support
13612 ld_shlibs_CXX=no
13613 ;;
13614 esac
13615
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13617$as_echo "$ld_shlibs_CXX" >&6; }
13618 test "$ld_shlibs_CXX" = no && can_build_shared=no
13619
13620 GCC_CXX="$GXX"
13621 LD_CXX="$LD"
13622
13623 ## CAVEAT EMPTOR:
13624 ## There is no encapsulation within the following macros, do not change
13625 ## the running order or otherwise move them around unless you know exactly
13626 ## what you are doing...
13627 # Dependencies to place before and after the object being linked:
13628predep_objects_CXX=
13629postdep_objects_CXX=
13630predeps_CXX=
13631postdeps_CXX=
13632compiler_lib_search_path_CXX=
13633
13634cat > conftest.$ac_ext <<_LT_EOF
13635class Foo
13636{
13637public:
13638 Foo (void) { a = 0; }
13639private:
13640 int a;
13641};
13642_LT_EOF
13643
13644
13645_lt_libdeps_save_CFLAGS=$CFLAGS
13646case "$CC $CFLAGS " in #(
13647*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13648*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13649*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13650esac
13651
13652if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13653 (eval $ac_compile) 2>&5
13654 ac_status=$?
13655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13656 test $ac_status = 0; }; then
13657 # Parse the compiler output and extract the necessary
13658 # objects, libraries and library flags.
13659
13660 # Sentinel used to keep track of whether or not we are before
13661 # the conftest object file.
13662 pre_test_object_deps_done=no
13663
13664 for p in `eval "$output_verbose_link_cmd"`; do
13665 case ${prev}${p} in
13666
13667 -L* | -R* | -l*)
13668 # Some compilers place space between "-{L,R}" and the path.
13669 # Remove the space.
13670 if test $p = "-L" ||
13671 test $p = "-R"; then
13672 prev=$p
13673 continue
13674 fi
13675
13676 # Expand the sysroot to ease extracting the directories later.
13677 if test -z "$prev"; then
13678 case $p in
13679 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13680 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13681 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13682 esac
13683 fi
13684 case $p in
13685 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13686 esac
13687 if test "$pre_test_object_deps_done" = no; then
13688 case ${prev} in
13689 -L | -R)
13690 # Internal compiler library paths should come after those
13691 # provided the user. The postdeps already come after the
13692 # user supplied libs so there is no need to process them.
13693 if test -z "$compiler_lib_search_path_CXX"; then
13694 compiler_lib_search_path_CXX="${prev}${p}"
13695 else
13696 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13697 fi
13698 ;;
13699 # The "-l" case would never come before the object being
13700 # linked, so don't bother handling this case.
13701 esac
13702 else
13703 if test -z "$postdeps_CXX"; then
13704 postdeps_CXX="${prev}${p}"
13705 else
13706 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13707 fi
13708 fi
13709 prev=
13710 ;;
13711
13712 *.lto.$objext) ;; # Ignore GCC LTO objects
13713 *.$objext)
13714 # This assumes that the test object file only shows up
13715 # once in the compiler output.
13716 if test "$p" = "conftest.$objext"; then
13717 pre_test_object_deps_done=yes
13718 continue
13719 fi
13720
13721 if test "$pre_test_object_deps_done" = no; then
13722 if test -z "$predep_objects_CXX"; then
13723 predep_objects_CXX="$p"
13724 else
13725 predep_objects_CXX="$predep_objects_CXX $p"
13726 fi
13727 else
13728 if test -z "$postdep_objects_CXX"; then
13729 postdep_objects_CXX="$p"
13730 else
13731 postdep_objects_CXX="$postdep_objects_CXX $p"
13732 fi
13733 fi
13734 ;;
13735
13736 *) ;; # Ignore the rest.
13737
13738 esac
13739 done
13740
13741 # Clean up.
13742 rm -f a.out a.exe
13743else
13744 echo "libtool.m4: error: problem compiling CXX test program"
13745fi
13746
13747$RM -f confest.$objext
13748CFLAGS=$_lt_libdeps_save_CFLAGS
13749
13750# PORTME: override above test on systems where it is broken
13751case $host_os in
13752interix[3-9]*)
13753 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13754 # hack all around it, let's just trust "g++" to DTRT.
13755 predep_objects_CXX=
13756 postdep_objects_CXX=
13757 postdeps_CXX=
13758 ;;
13759
13760linux*)
13761 case `$CC -V 2>&1 | sed 5q` in
13762 *Sun\ C*)
13763 # Sun C++ 5.9
13764
13765 # The more standards-conforming stlport4 library is
13766 # incompatible with the Cstd library. Avoid specifying
13767 # it if it's in CXXFLAGS. Ignore libCrun as
13768 # -library=stlport4 depends on it.
13769 case " $CXX $CXXFLAGS " in
13770 *" -library=stlport4 "*)
13771 solaris_use_stlport4=yes
13772 ;;
13773 esac
13774
13775 if test "$solaris_use_stlport4" != yes; then
13776 postdeps_CXX='-library=Cstd -library=Crun'
13777 fi
13778 ;;
13779 esac
13780 ;;
13781
13782solaris*)
13783 case $cc_basename in
13784 CC* | sunCC*)
13785 # The more standards-conforming stlport4 library is
13786 # incompatible with the Cstd library. Avoid specifying
13787 # it if it's in CXXFLAGS. Ignore libCrun as
13788 # -library=stlport4 depends on it.
13789 case " $CXX $CXXFLAGS " in
13790 *" -library=stlport4 "*)
13791 solaris_use_stlport4=yes
13792 ;;
13793 esac
13794
13795 # Adding this requires a known-good setup of shared libraries for
13796 # Sun compiler versions before 5.6, else PIC objects from an old
13797 # archive will be linked into the output, leading to subtle bugs.
13798 if test "$solaris_use_stlport4" != yes; then
13799 postdeps_CXX='-library=Cstd -library=Crun'
13800 fi
13801 ;;
13802 esac
13803 ;;
13804esac
13805
13806
13807case " $postdeps_CXX " in
13808*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13809esac
13810 compiler_lib_search_dirs_CXX=
13811if test -n "${compiler_lib_search_path_CXX}"; then
13812 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13813fi
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845 lt_prog_compiler_wl_CXX=
13846lt_prog_compiler_pic_CXX=
13847lt_prog_compiler_static_CXX=
13848
13849
13850 # C++ specific cases for pic, static, wl, etc.
13851 if test "$GXX" = yes; then
13852 lt_prog_compiler_wl_CXX='-Wl,'
13853 lt_prog_compiler_static_CXX='-static'
13854
13855 case $host_os in
13856 aix*)
13857 # All AIX code is PIC.
13858 if test "$host_cpu" = ia64; then
13859 # AIX 5 now supports IA64 processor
13860 lt_prog_compiler_static_CXX='-Bstatic'
13861 fi
13862 ;;
13863
13864 amigaos*)
13865 case $host_cpu in
13866 powerpc)
13867 # see comment about AmigaOS4 .so support
13868 lt_prog_compiler_pic_CXX='-fPIC'
13869 ;;
13870 m68k)
13871 # FIXME: we need at least 68020 code to build shared libraries, but
13872 # adding the `-m68020' flag to GCC prevents building anything better,
13873 # like `-m68040'.
13874 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13875 ;;
13876 esac
13877 ;;
13878
13879 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13880 # PIC is the default for these OSes.
13881 ;;
13882 mingw* | cygwin* | os2* | pw32* | cegcc*)
13883 # This hack is so that the source file can tell whether it is being
13884 # built for inclusion in a dll (and should export symbols for example).
13885 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13886 # (--disable-auto-import) libraries
13887 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13888 ;;
13889 darwin* | rhapsody*)
13890 # PIC is the default on this platform
13891 # Common symbols not allowed in MH_DYLIB files
13892 lt_prog_compiler_pic_CXX='-fno-common'
13893 ;;
13894 *djgpp*)
13895 # DJGPP does not support shared libraries at all
13896 lt_prog_compiler_pic_CXX=
13897 ;;
13898 haiku*)
13899 # PIC is the default for Haiku.
13900 # The "-static" flag exists, but is broken.
13901 lt_prog_compiler_static_CXX=
13902 ;;
13903 interix[3-9]*)
13904 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13905 # Instead, we relocate shared libraries at runtime.
13906 ;;
13907 sysv4*MP*)
13908 if test -d /usr/nec; then
13909 lt_prog_compiler_pic_CXX=-Kconform_pic
13910 fi
13911 ;;
13912 hpux*)
13913 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13914 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13915 # sets the default TLS model and affects inlining.
13916 case $host_cpu in
13917 hppa*64*)
13918 ;;
13919 *)
13920 lt_prog_compiler_pic_CXX='-fPIC'
13921 ;;
13922 esac
13923 ;;
13924 *qnx* | *nto*)
13925 # QNX uses GNU C++, but need to define -shared option too, otherwise
13926 # it will coredump.
13927 lt_prog_compiler_pic_CXX='-fPIC -shared'
13928 ;;
13929 *)
13930 lt_prog_compiler_pic_CXX='-fPIC'
13931 ;;
13932 esac
13933 else
13934 case $host_os in
13935 aix[4-9]*)
13936 # All AIX code is PIC.
13937 if test "$host_cpu" = ia64; then
13938 # AIX 5 now supports IA64 processor
13939 lt_prog_compiler_static_CXX='-Bstatic'
13940 else
13941 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13942 fi
13943 ;;
13944 chorus*)
13945 case $cc_basename in
13946 cxch68*)
13947 # Green Hills C++ Compiler
13948 # _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"
13949 ;;
13950 esac
13951 ;;
13952 mingw* | cygwin* | os2* | pw32* | cegcc*)
13953 # This hack is so that the source file can tell whether it is being
13954 # built for inclusion in a dll (and should export symbols for example).
13955 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13956 ;;
13957 dgux*)
13958 case $cc_basename in
13959 ec++*)
13960 lt_prog_compiler_pic_CXX='-KPIC'
13961 ;;
13962 ghcx*)
13963 # Green Hills C++ Compiler
13964 lt_prog_compiler_pic_CXX='-pic'
13965 ;;
13966 *)
13967 ;;
13968 esac
13969 ;;
13970 freebsd* | dragonfly*)
13971 # FreeBSD uses GNU C++
13972 ;;
13973 hpux9* | hpux10* | hpux11*)
13974 case $cc_basename in
13975 CC*)
13976 lt_prog_compiler_wl_CXX='-Wl,'
13977 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13978 if test "$host_cpu" != ia64; then
13979 lt_prog_compiler_pic_CXX='+Z'
13980 fi
13981 ;;
13982 aCC*)
13983 lt_prog_compiler_wl_CXX='-Wl,'
13984 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13985 case $host_cpu in
13986 hppa*64*|ia64*)
13987 # +Z the default
13988 ;;
13989 *)
13990 lt_prog_compiler_pic_CXX='+Z'
13991 ;;
13992 esac
13993 ;;
13994 *)
13995 ;;
13996 esac
13997 ;;
13998 interix*)
13999 # This is c89, which is MS Visual C++ (no shared libs)
14000 # Anyone wants to do a port?
14001 ;;
14002 irix5* | irix6* | nonstopux*)
14003 case $cc_basename in
14004 CC*)
14005 lt_prog_compiler_wl_CXX='-Wl,'
14006 lt_prog_compiler_static_CXX='-non_shared'
14007 # CC pic flag -KPIC is the default.
14008 ;;
14009 *)
14010 ;;
14011 esac
14012 ;;
14013 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14014 case $cc_basename in
14015 KCC*)
14016 # KAI C++ Compiler
14017 lt_prog_compiler_wl_CXX='--backend -Wl,'
14018 lt_prog_compiler_pic_CXX='-fPIC'
14019 ;;
14020 ecpc* )
14021 # old Intel C++ for x86_64 which still supported -KPIC.
14022 lt_prog_compiler_wl_CXX='-Wl,'
14023 lt_prog_compiler_pic_CXX='-KPIC'
14024 lt_prog_compiler_static_CXX='-static'
14025 ;;
14026 icpc* )
14027 # Intel C++, used to be incompatible with GCC.
14028 # ICC 10 doesn't accept -KPIC any more.
14029 lt_prog_compiler_wl_CXX='-Wl,'
14030 lt_prog_compiler_pic_CXX='-fPIC'
14031 lt_prog_compiler_static_CXX='-static'
14032 ;;
14033 pgCC* | pgcpp*)
14034 # Portland Group C++ compiler
14035 lt_prog_compiler_wl_CXX='-Wl,'
14036 lt_prog_compiler_pic_CXX='-fpic'
14037 lt_prog_compiler_static_CXX='-Bstatic'
14038 ;;
14039 cxx*)
14040 # Compaq C++
14041 # Make sure the PIC flag is empty. It appears that all Alpha
14042 # Linux and Compaq Tru64 Unix objects are PIC.
14043 lt_prog_compiler_pic_CXX=
14044 lt_prog_compiler_static_CXX='-non_shared'
14045 ;;
14046 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14047 # IBM XL 8.0, 9.0 on PPC and BlueGene
14048 lt_prog_compiler_wl_CXX='-Wl,'
14049 lt_prog_compiler_pic_CXX='-qpic'
14050 lt_prog_compiler_static_CXX='-qstaticlink'
14051 ;;
14052 *)
14053 case `$CC -V 2>&1 | sed 5q` in
14054 *Sun\ C*)
14055 # Sun C++ 5.9
14056 lt_prog_compiler_pic_CXX='-KPIC'
14057 lt_prog_compiler_static_CXX='-Bstatic'
14058 lt_prog_compiler_wl_CXX='-Qoption ld '
14059 ;;
14060 esac
14061 ;;
14062 esac
14063 ;;
14064 lynxos*)
14065 ;;
14066 m88k*)
14067 ;;
14068 mvs*)
14069 case $cc_basename in
14070 cxx*)
14071 lt_prog_compiler_pic_CXX='-W c,exportall'
14072 ;;
14073 *)
14074 ;;
14075 esac
14076 ;;
14077 netbsd*)
14078 ;;
14079 *qnx* | *nto*)
14080 # QNX uses GNU C++, but need to define -shared option too, otherwise
14081 # it will coredump.
14082 lt_prog_compiler_pic_CXX='-fPIC -shared'
14083 ;;
14084 osf3* | osf4* | osf5*)
14085 case $cc_basename in
14086 KCC*)
14087 lt_prog_compiler_wl_CXX='--backend -Wl,'
14088 ;;
14089 RCC*)
14090 # Rational C++ 2.4.1
14091 lt_prog_compiler_pic_CXX='-pic'
14092 ;;
14093 cxx*)
14094 # Digital/Compaq C++
14095 lt_prog_compiler_wl_CXX='-Wl,'
14096 # Make sure the PIC flag is empty. It appears that all Alpha
14097 # Linux and Compaq Tru64 Unix objects are PIC.
14098 lt_prog_compiler_pic_CXX=
14099 lt_prog_compiler_static_CXX='-non_shared'
14100 ;;
14101 *)
14102 ;;
14103 esac
14104 ;;
14105 psos*)
14106 ;;
14107 solaris*)
14108 case $cc_basename in
14109 CC* | sunCC*)
14110 # Sun C++ 4.2, 5.x and Centerline C++
14111 lt_prog_compiler_pic_CXX='-KPIC'
14112 lt_prog_compiler_static_CXX='-Bstatic'
14113 lt_prog_compiler_wl_CXX='-Qoption ld '
14114 ;;
14115 gcx*)
14116 # Green Hills C++ Compiler
14117 lt_prog_compiler_pic_CXX='-PIC'
14118 ;;
14119 *)
14120 ;;
14121 esac
14122 ;;
14123 sunos4*)
14124 case $cc_basename in
14125 CC*)
14126 # Sun C++ 4.x
14127 lt_prog_compiler_pic_CXX='-pic'
14128 lt_prog_compiler_static_CXX='-Bstatic'
14129 ;;
14130 lcc*)
14131 # Lucid
14132 lt_prog_compiler_pic_CXX='-pic'
14133 ;;
14134 *)
14135 ;;
14136 esac
14137 ;;
14138 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14139 case $cc_basename in
14140 CC*)
14141 lt_prog_compiler_wl_CXX='-Wl,'
14142 lt_prog_compiler_pic_CXX='-KPIC'
14143 lt_prog_compiler_static_CXX='-Bstatic'
14144 ;;
14145 esac
14146 ;;
14147 tandem*)
14148 case $cc_basename in
14149 NCC*)
14150 # NonStop-UX NCC 3.20
14151 lt_prog_compiler_pic_CXX='-KPIC'
14152 ;;
14153 *)
14154 ;;
14155 esac
14156 ;;
14157 vxworks*)
14158 ;;
14159 *)
14160 lt_prog_compiler_can_build_shared_CXX=no
14161 ;;
14162 esac
14163 fi
14164
14165case $host_os in
14166 # For platforms which do not support PIC, -DPIC is meaningless:
14167 *djgpp*)
14168 lt_prog_compiler_pic_CXX=
14169 ;;
14170 *)
14171 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14172 ;;
14173esac
14174
14175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14176$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14177if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14178 $as_echo_n "(cached) " >&6
14179else
14180 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14181fi
14182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14183$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14184lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14185
14186#
14187# Check to make sure the PIC flag actually works.
14188#
14189if test -n "$lt_prog_compiler_pic_CXX"; then
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14191$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14192if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14193 $as_echo_n "(cached) " >&6
14194else
14195 lt_cv_prog_compiler_pic_works_CXX=no
14196 ac_outfile=conftest.$ac_objext
14197 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14198 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14199 # Insert the option either (1) after the last *FLAGS variable, or
14200 # (2) before a word containing "conftest.", or (3) at the end.
14201 # Note that $ac_compile itself does not contain backslashes and begins
14202 # with a dollar sign (not a hyphen), so the echo should work correctly.
14203 # The option is referenced via a variable to avoid confusing sed.
14204 lt_compile=`echo "$ac_compile" | $SED \
14205 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14206 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14207 -e 's:$: $lt_compiler_flag:'`
14208 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14209 (eval "$lt_compile" 2>conftest.err)
14210 ac_status=$?
14211 cat conftest.err >&5
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 if (exit $ac_status) && test -s "$ac_outfile"; then
14214 # The compiler can only warn and ignore the option if not recognized
14215 # So say no if there are warnings other than the usual output.
14216 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14217 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14218 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14219 lt_cv_prog_compiler_pic_works_CXX=yes
14220 fi
14221 fi
14222 $RM conftest*
14223
14224fi
14225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14226$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14227
14228if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14229 case $lt_prog_compiler_pic_CXX in
14230 "" | " "*) ;;
14231 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14232 esac
14233else
14234 lt_prog_compiler_pic_CXX=
14235 lt_prog_compiler_can_build_shared_CXX=no
14236fi
14237
14238fi
14239
14240
14241
14242
14243
14244#
14245# Check to make sure the static flag actually works.
14246#
14247wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14249$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14250if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14251 $as_echo_n "(cached) " >&6
14252else
14253 lt_cv_prog_compiler_static_works_CXX=no
14254 save_LDFLAGS="$LDFLAGS"
14255 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14256 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14257 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14258 # The linker can only warn and ignore the option if not recognized
14259 # So say no if there are warnings
14260 if test -s conftest.err; then
14261 # Append any errors to the config.log.
14262 cat conftest.err 1>&5
14263 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14264 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14265 if diff conftest.exp conftest.er2 >/dev/null; then
14266 lt_cv_prog_compiler_static_works_CXX=yes
14267 fi
14268 else
14269 lt_cv_prog_compiler_static_works_CXX=yes
14270 fi
14271 fi
14272 $RM -r conftest*
14273 LDFLAGS="$save_LDFLAGS"
14274
14275fi
14276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14277$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14278
14279if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14280 :
14281else
14282 lt_prog_compiler_static_CXX=
14283fi
14284
14285
14286
14287
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14289$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14290if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14291 $as_echo_n "(cached) " >&6
14292else
14293 lt_cv_prog_compiler_c_o_CXX=no
14294 $RM -r conftest 2>/dev/null
14295 mkdir conftest
14296 cd conftest
14297 mkdir out
14298 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14299
14300 lt_compiler_flag="-o out/conftest2.$ac_objext"
14301 # Insert the option either (1) after the last *FLAGS variable, or
14302 # (2) before a word containing "conftest.", or (3) at the end.
14303 # Note that $ac_compile itself does not contain backslashes and begins
14304 # with a dollar sign (not a hyphen), so the echo should work correctly.
14305 lt_compile=`echo "$ac_compile" | $SED \
14306 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14307 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14308 -e 's:$: $lt_compiler_flag:'`
14309 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14310 (eval "$lt_compile" 2>out/conftest.err)
14311 ac_status=$?
14312 cat out/conftest.err >&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14315 then
14316 # The compiler can only warn and ignore the option if not recognized
14317 # So say no if there are warnings
14318 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14319 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14320 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14321 lt_cv_prog_compiler_c_o_CXX=yes
14322 fi
14323 fi
14324 chmod u+w . 2>&5
14325 $RM conftest*
14326 # SGI C++ compiler will create directory out/ii_files/ for
14327 # template instantiation
14328 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14329 $RM out/* && rmdir out
14330 cd ..
14331 $RM -r conftest
14332 $RM conftest*
14333
14334fi
14335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14336$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14337
14338
14339
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14341$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14342if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14343 $as_echo_n "(cached) " >&6
14344else
14345 lt_cv_prog_compiler_c_o_CXX=no
14346 $RM -r conftest 2>/dev/null
14347 mkdir conftest
14348 cd conftest
14349 mkdir out
14350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14351
14352 lt_compiler_flag="-o out/conftest2.$ac_objext"
14353 # Insert the option either (1) after the last *FLAGS variable, or
14354 # (2) before a word containing "conftest.", or (3) at the end.
14355 # Note that $ac_compile itself does not contain backslashes and begins
14356 # with a dollar sign (not a hyphen), so the echo should work correctly.
14357 lt_compile=`echo "$ac_compile" | $SED \
14358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14360 -e 's:$: $lt_compiler_flag:'`
14361 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14362 (eval "$lt_compile" 2>out/conftest.err)
14363 ac_status=$?
14364 cat out/conftest.err >&5
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14367 then
14368 # The compiler can only warn and ignore the option if not recognized
14369 # So say no if there are warnings
14370 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14371 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14372 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14373 lt_cv_prog_compiler_c_o_CXX=yes
14374 fi
14375 fi
14376 chmod u+w . 2>&5
14377 $RM conftest*
14378 # SGI C++ compiler will create directory out/ii_files/ for
14379 # template instantiation
14380 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14381 $RM out/* && rmdir out
14382 cd ..
14383 $RM -r conftest
14384 $RM conftest*
14385
14386fi
14387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14388$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14389
14390
14391
14392
14393hard_links="nottested"
14394if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14395 # do not overwrite the value of need_locks provided by the user
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14397$as_echo_n "checking if we can lock with hard links... " >&6; }
14398 hard_links=yes
14399 $RM conftest*
14400 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14401 touch conftest.a
14402 ln conftest.a conftest.b 2>&5 || hard_links=no
14403 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14405$as_echo "$hard_links" >&6; }
14406 if test "$hard_links" = no; then
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14408$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14409 need_locks=warn
14410 fi
14411else
14412 need_locks=no
14413fi
14414
14415
14416
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14418$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14419
14420 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14421 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14422 case $host_os in
14423 aix[4-9]*)
14424 # If we're using GNU nm, then we don't want the "-C" option.
14425 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14426 # Also, AIX nm treats weak defined symbols like other global defined
14427 # symbols, whereas GNU nm marks them as "W".
14428 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14429 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'
14430 else
14431 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'
14432 fi
14433 ;;
14434 pw32*)
14435 export_symbols_cmds_CXX="$ltdll_cmds"
14436 ;;
14437 cygwin* | mingw* | cegcc*)
14438 case $cc_basename in
14439 cl*)
14440 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14441 ;;
14442 *)
14443 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'
14444 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14445 ;;
14446 esac
14447 ;;
14448 *)
14449 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14450 ;;
14451 esac
14452
14453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14454$as_echo "$ld_shlibs_CXX" >&6; }
14455test "$ld_shlibs_CXX" = no && can_build_shared=no
14456
14457with_gnu_ld_CXX=$with_gnu_ld
14458
14459
14460
14461
14462
14463
14464#
14465# Do we need to explicitly link libc?
14466#
14467case "x$archive_cmds_need_lc_CXX" in
14468x|xyes)
14469 # Assume -lc should be added
14470 archive_cmds_need_lc_CXX=yes
14471
14472 if test "$enable_shared" = yes && test "$GCC" = yes; then
14473 case $archive_cmds_CXX in
14474 *'~'*)
14475 # FIXME: we may have to deal with multi-command sequences.
14476 ;;
14477 '$CC '*)
14478 # Test whether the compiler implicitly links with -lc since on some
14479 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14480 # to ld, don't add -lc before -lgcc.
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14482$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14483if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14484 $as_echo_n "(cached) " >&6
14485else
14486 $RM conftest*
14487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14488
14489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14490 (eval $ac_compile) 2>&5
14491 ac_status=$?
14492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14493 test $ac_status = 0; } 2>conftest.err; then
14494 soname=conftest
14495 lib=conftest
14496 libobjs=conftest.$ac_objext
14497 deplibs=
14498 wl=$lt_prog_compiler_wl_CXX
14499 pic_flag=$lt_prog_compiler_pic_CXX
14500 compiler_flags=-v
14501 linker_flags=-v
14502 verstring=
14503 output_objdir=.
14504 libname=conftest
14505 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14506 allow_undefined_flag_CXX=
14507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14508 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14509 ac_status=$?
14510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14511 test $ac_status = 0; }
14512 then
14513 lt_cv_archive_cmds_need_lc_CXX=no
14514 else
14515 lt_cv_archive_cmds_need_lc_CXX=yes
14516 fi
14517 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14518 else
14519 cat conftest.err 1>&5
14520 fi
14521 $RM conftest*
14522
14523fi
14524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14525$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14526 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14527 ;;
14528 esac
14529 fi
14530 ;;
14531esac
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14595$as_echo_n "checking dynamic linker characteristics... " >&6; }
14596
14597library_names_spec=
14598libname_spec='lib$name'
14599soname_spec=
14600shrext_cmds=".so"
14601postinstall_cmds=
14602postuninstall_cmds=
14603finish_cmds=
14604finish_eval=
14605shlibpath_var=
14606shlibpath_overrides_runpath=unknown
14607version_type=none
14608dynamic_linker="$host_os ld.so"
14609sys_lib_dlsearch_path_spec="/lib /usr/lib"
14610need_lib_prefix=unknown
14611hardcode_into_libs=no
14612
14613# when you set need_version to no, make sure it does not cause -set_version
14614# flags to be left without arguments
14615need_version=unknown
14616
14617case $host_os in
14618aix3*)
14619 version_type=linux # correct to gnu/linux during the next big refactor
14620 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14621 shlibpath_var=LIBPATH
14622
14623 # AIX 3 has no versioning support, so we append a major version to the name.
14624 soname_spec='${libname}${release}${shared_ext}$major'
14625 ;;
14626
14627aix[4-9]*)
14628 version_type=linux # correct to gnu/linux during the next big refactor
14629 need_lib_prefix=no
14630 need_version=no
14631 hardcode_into_libs=yes
14632 if test "$host_cpu" = ia64; then
14633 # AIX 5 supports IA64
14634 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14635 shlibpath_var=LD_LIBRARY_PATH
14636 else
14637 # With GCC up to 2.95.x, collect2 would create an import file
14638 # for dependence libraries. The import file would start with
14639 # the line `#! .'. This would cause the generated library to
14640 # depend on `.', always an invalid library. This was fixed in
14641 # development snapshots of GCC prior to 3.0.
14642 case $host_os in
14643 aix4 | aix4.[01] | aix4.[01].*)
14644 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14645 echo ' yes '
14646 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14647 :
14648 else
14649 can_build_shared=no
14650 fi
14651 ;;
14652 esac
14653 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14654 # soname into executable. Probably we can add versioning support to
14655 # collect2, so additional links can be useful in future.
14656 if test "$aix_use_runtimelinking" = yes; then
14657 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14658 # instead of lib<name>.a to let people know that these are not
14659 # typical AIX shared libraries.
14660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14661 else
14662 # We preserve .a as extension for shared libraries through AIX4.2
14663 # and later when we are not doing run time linking.
14664 library_names_spec='${libname}${release}.a $libname.a'
14665 soname_spec='${libname}${release}${shared_ext}$major'
14666 fi
14667 shlibpath_var=LIBPATH
14668 fi
14669 ;;
14670
14671amigaos*)
14672 case $host_cpu in
14673 powerpc)
14674 # Since July 2007 AmigaOS4 officially supports .so libraries.
14675 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14677 ;;
14678 m68k)
14679 library_names_spec='$libname.ixlibrary $libname.a'
14680 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14681 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'
14682 ;;
14683 esac
14684 ;;
14685
14686beos*)
14687 library_names_spec='${libname}${shared_ext}'
14688 dynamic_linker="$host_os ld.so"
14689 shlibpath_var=LIBRARY_PATH
14690 ;;
14691
14692bsdi[45]*)
14693 version_type=linux # correct to gnu/linux during the next big refactor
14694 need_version=no
14695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14696 soname_spec='${libname}${release}${shared_ext}$major'
14697 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14698 shlibpath_var=LD_LIBRARY_PATH
14699 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14700 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14701 # the default ld.so.conf also contains /usr/contrib/lib and
14702 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14703 # libtool to hard-code these into programs
14704 ;;
14705
14706cygwin* | mingw* | pw32* | cegcc*)
14707 version_type=windows
14708 shrext_cmds=".dll"
14709 need_version=no
14710 need_lib_prefix=no
14711
14712 case $GCC,$cc_basename in
14713 yes,*)
14714 # gcc
14715 library_names_spec='$libname.dll.a'
14716 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14717 postinstall_cmds='base_file=`basename \${file}`~
14718 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14719 dldir=$destdir/`dirname \$dlpath`~
14720 test -d \$dldir || mkdir -p \$dldir~
14721 $install_prog $dir/$dlname \$dldir/$dlname~
14722 chmod a+x \$dldir/$dlname~
14723 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14724 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14725 fi'
14726 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14727 dlpath=$dir/\$dldll~
14728 $RM \$dlpath'
14729 shlibpath_overrides_runpath=yes
14730
14731 case $host_os in
14732 cygwin*)
14733 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14734 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14735
14736 ;;
14737 mingw* | cegcc*)
14738 # MinGW DLLs use traditional 'lib' prefix
14739 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14740 ;;
14741 pw32*)
14742 # pw32 DLLs use 'pw' prefix rather than 'lib'
14743 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14744 ;;
14745 esac
14746 dynamic_linker='Win32 ld.exe'
14747 ;;
14748
14749 *,cl*)
14750 # Native MSVC
14751 libname_spec='$name'
14752 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14753 library_names_spec='${libname}.dll.lib'
14754
14755 case $build_os in
14756 mingw*)
14757 sys_lib_search_path_spec=
14758 lt_save_ifs=$IFS
14759 IFS=';'
14760 for lt_path in $LIB
14761 do
14762 IFS=$lt_save_ifs
14763 # Let DOS variable expansion print the short 8.3 style file name.
14764 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14765 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14766 done
14767 IFS=$lt_save_ifs
14768 # Convert to MSYS style.
14769 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14770 ;;
14771 cygwin*)
14772 # Convert to unix form, then to dos form, then back to unix form
14773 # but this time dos style (no spaces!) so that the unix form looks
14774 # like /cygdrive/c/PROGRA~1:/cygdr...
14775 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14776 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14777 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14778 ;;
14779 *)
14780 sys_lib_search_path_spec="$LIB"
14781 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14782 # It is most probably a Windows format PATH.
14783 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14784 else
14785 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14786 fi
14787 # FIXME: find the short name or the path components, as spaces are
14788 # common. (e.g. "Program Files" -> "PROGRA~1")
14789 ;;
14790 esac
14791
14792 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14793 postinstall_cmds='base_file=`basename \${file}`~
14794 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14795 dldir=$destdir/`dirname \$dlpath`~
14796 test -d \$dldir || mkdir -p \$dldir~
14797 $install_prog $dir/$dlname \$dldir/$dlname'
14798 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14799 dlpath=$dir/\$dldll~
14800 $RM \$dlpath'
14801 shlibpath_overrides_runpath=yes
14802 dynamic_linker='Win32 link.exe'
14803 ;;
14804
14805 *)
14806 # Assume MSVC wrapper
14807 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14808 dynamic_linker='Win32 ld.exe'
14809 ;;
14810 esac
14811 # FIXME: first we should search . and the directory the executable is in
14812 shlibpath_var=PATH
14813 ;;
14814
14815darwin* | rhapsody*)
14816 dynamic_linker="$host_os dyld"
14817 version_type=darwin
14818 need_lib_prefix=no
14819 need_version=no
14820 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14821 soname_spec='${libname}${release}${major}$shared_ext'
14822 shlibpath_overrides_runpath=yes
14823 shlibpath_var=DYLD_LIBRARY_PATH
14824 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14825
14826 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14827 ;;
14828
14829dgux*)
14830 version_type=linux # correct to gnu/linux during the next big refactor
14831 need_lib_prefix=no
14832 need_version=no
14833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14834 soname_spec='${libname}${release}${shared_ext}$major'
14835 shlibpath_var=LD_LIBRARY_PATH
14836 ;;
14837
14838freebsd* | dragonfly*)
14839 # DragonFly does not have aout. When/if they implement a new
14840 # versioning mechanism, adjust this.
14841 if test -x /usr/bin/objformat; then
14842 objformat=`/usr/bin/objformat`
14843 else
14844 case $host_os in
14845 freebsd[23].*) objformat=aout ;;
14846 *) objformat=elf ;;
14847 esac
14848 fi
14849 version_type=freebsd-$objformat
14850 case $version_type in
14851 freebsd-elf*)
14852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14853 need_version=no
14854 need_lib_prefix=no
14855 ;;
14856 freebsd-*)
14857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14858 need_version=yes
14859 ;;
14860 esac
14861 shlibpath_var=LD_LIBRARY_PATH
14862 case $host_os in
14863 freebsd2.*)
14864 shlibpath_overrides_runpath=yes
14865 ;;
14866 freebsd3.[01]* | freebsdelf3.[01]*)
14867 shlibpath_overrides_runpath=yes
14868 hardcode_into_libs=yes
14869 ;;
14870 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14871 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14872 shlibpath_overrides_runpath=no
14873 hardcode_into_libs=yes
14874 ;;
14875 *) # from 4.6 on, and DragonFly
14876 shlibpath_overrides_runpath=yes
14877 hardcode_into_libs=yes
14878 ;;
14879 esac
14880 ;;
14881
14882gnu*)
14883 version_type=linux # correct to gnu/linux during the next big refactor
14884 need_lib_prefix=no
14885 need_version=no
14886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14887 soname_spec='${libname}${release}${shared_ext}$major'
14888 shlibpath_var=LD_LIBRARY_PATH
14889 shlibpath_overrides_runpath=no
14890 hardcode_into_libs=yes
14891 ;;
14892
14893haiku*)
14894 version_type=linux # correct to gnu/linux during the next big refactor
14895 need_lib_prefix=no
14896 need_version=no
14897 dynamic_linker="$host_os runtime_loader"
14898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14899 soname_spec='${libname}${release}${shared_ext}$major'
14900 shlibpath_var=LIBRARY_PATH
14901 shlibpath_overrides_runpath=yes
14902 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14903 hardcode_into_libs=yes
14904 ;;
14905
14906hpux9* | hpux10* | hpux11*)
14907 # Give a soname corresponding to the major version so that dld.sl refuses to
14908 # link against other versions.
14909 version_type=sunos
14910 need_lib_prefix=no
14911 need_version=no
14912 case $host_cpu in
14913 ia64*)
14914 shrext_cmds='.so'
14915 hardcode_into_libs=yes
14916 dynamic_linker="$host_os dld.so"
14917 shlibpath_var=LD_LIBRARY_PATH
14918 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14920 soname_spec='${libname}${release}${shared_ext}$major'
14921 if test "X$HPUX_IA64_MODE" = X32; then
14922 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14923 else
14924 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14925 fi
14926 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14927 ;;
14928 hppa*64*)
14929 shrext_cmds='.sl'
14930 hardcode_into_libs=yes
14931 dynamic_linker="$host_os dld.sl"
14932 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14933 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14935 soname_spec='${libname}${release}${shared_ext}$major'
14936 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14937 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14938 ;;
14939 *)
14940 shrext_cmds='.sl'
14941 dynamic_linker="$host_os dld.sl"
14942 shlibpath_var=SHLIB_PATH
14943 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14945 soname_spec='${libname}${release}${shared_ext}$major'
14946 ;;
14947 esac
14948 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14949 postinstall_cmds='chmod 555 $lib'
14950 # or fails outright, so override atomically:
14951 install_override_mode=555
14952 ;;
14953
14954interix[3-9]*)
14955 version_type=linux # correct to gnu/linux during the next big refactor
14956 need_lib_prefix=no
14957 need_version=no
14958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14959 soname_spec='${libname}${release}${shared_ext}$major'
14960 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14961 shlibpath_var=LD_LIBRARY_PATH
14962 shlibpath_overrides_runpath=no
14963 hardcode_into_libs=yes
14964 ;;
14965
14966irix5* | irix6* | nonstopux*)
14967 case $host_os in
14968 nonstopux*) version_type=nonstopux ;;
14969 *)
14970 if test "$lt_cv_prog_gnu_ld" = yes; then
14971 version_type=linux # correct to gnu/linux during the next big refactor
14972 else
14973 version_type=irix
14974 fi ;;
14975 esac
14976 need_lib_prefix=no
14977 need_version=no
14978 soname_spec='${libname}${release}${shared_ext}$major'
14979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14980 case $host_os in
14981 irix5* | nonstopux*)
14982 libsuff= shlibsuff=
14983 ;;
14984 *)
14985 case $LD in # libtool.m4 will add one of these switches to LD
14986 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14987 libsuff= shlibsuff= libmagic=32-bit;;
14988 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14989 libsuff=32 shlibsuff=N32 libmagic=N32;;
14990 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14991 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14992 *) libsuff= shlibsuff= libmagic=never-match;;
14993 esac
14994 ;;
14995 esac
14996 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14997 shlibpath_overrides_runpath=no
14998 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14999 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15000 hardcode_into_libs=yes
15001 ;;
15002
15003# No shared lib support for Linux oldld, aout, or coff.
15004linux*oldld* | linux*aout* | linux*coff*)
15005 dynamic_linker=no
15006 ;;
15007
15008# This must be glibc/ELF.
15009linux* | k*bsd*-gnu | kopensolaris*-gnu)
15010 version_type=linux # correct to gnu/linux during the next big refactor
15011 need_lib_prefix=no
15012 need_version=no
15013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15014 soname_spec='${libname}${release}${shared_ext}$major'
15015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15016 shlibpath_var=LD_LIBRARY_PATH
15017 shlibpath_overrides_runpath=no
15018
15019 # Some binutils ld are patched to set DT_RUNPATH
15020 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15021 $as_echo_n "(cached) " >&6
15022else
15023 lt_cv_shlibpath_overrides_runpath=no
15024 save_LDFLAGS=$LDFLAGS
15025 save_libdir=$libdir
15026 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15027 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15029/* end confdefs.h. */
15030
15031int
15032main ()
15033{
15034
15035 ;
15036 return 0;
15037}
15038_ACEOF
15039if ac_fn_cxx_try_link "$LINENO"; then :
15040 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15041 lt_cv_shlibpath_overrides_runpath=yes
15042fi
15043fi
15044rm -f core conftest.err conftest.$ac_objext \
15045 conftest$ac_exeext conftest.$ac_ext
15046 LDFLAGS=$save_LDFLAGS
15047 libdir=$save_libdir
15048
15049fi
15050
15051 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15052
15053 # This implies no fast_install, which is unacceptable.
15054 # Some rework will be needed to allow for fast_install
15055 # before this can be enabled.
15056 hardcode_into_libs=yes
15057
15058 # Append ld.so.conf contents to the search path
15059 if test -f /etc/ld.so.conf; then
15060 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' ' '`
15061 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15062 fi
15063
15064 # We used to test for /lib/ld.so.1 and disable shared libraries on
15065 # powerpc, because MkLinux only supported shared libraries with the
15066 # GNU dynamic linker. Since this was broken with cross compilers,
15067 # most powerpc-linux boxes support dynamic linking these days and
15068 # people can always --disable-shared, the test was removed, and we
15069 # assume the GNU/Linux dynamic linker is in use.
15070 dynamic_linker='GNU/Linux ld.so'
15071 ;;
15072
15073netbsd*)
15074 version_type=sunos
15075 need_lib_prefix=no
15076 need_version=no
15077 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15079 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15080 dynamic_linker='NetBSD (a.out) ld.so'
15081 else
15082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15083 soname_spec='${libname}${release}${shared_ext}$major'
15084 dynamic_linker='NetBSD ld.elf_so'
15085 fi
15086 shlibpath_var=LD_LIBRARY_PATH
15087 shlibpath_overrides_runpath=yes
15088 hardcode_into_libs=yes
15089 ;;
15090
15091newsos6)
15092 version_type=linux # correct to gnu/linux during the next big refactor
15093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15094 shlibpath_var=LD_LIBRARY_PATH
15095 shlibpath_overrides_runpath=yes
15096 ;;
15097
15098*nto* | *qnx*)
15099 version_type=qnx
15100 need_lib_prefix=no
15101 need_version=no
15102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15103 soname_spec='${libname}${release}${shared_ext}$major'
15104 shlibpath_var=LD_LIBRARY_PATH
15105 shlibpath_overrides_runpath=no
15106 hardcode_into_libs=yes
15107 dynamic_linker='ldqnx.so'
15108 ;;
15109
15110openbsd*)
15111 version_type=sunos
15112 sys_lib_dlsearch_path_spec="/usr/lib"
15113 need_lib_prefix=no
15114 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15115 case $host_os in
15116 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15117 *) need_version=no ;;
15118 esac
15119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15120 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15121 shlibpath_var=LD_LIBRARY_PATH
15122 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15123 case $host_os in
15124 openbsd2.[89] | openbsd2.[89].*)
15125 shlibpath_overrides_runpath=no
15126 ;;
15127 *)
15128 shlibpath_overrides_runpath=yes
15129 ;;
15130 esac
15131 else
15132 shlibpath_overrides_runpath=yes
15133 fi
15134 ;;
15135
15136os2*)
15137 libname_spec='$name'
15138 shrext_cmds=".dll"
15139 need_lib_prefix=no
15140 library_names_spec='$libname${shared_ext} $libname.a'
15141 dynamic_linker='OS/2 ld.exe'
15142 shlibpath_var=LIBPATH
15143 ;;
15144
15145osf3* | osf4* | osf5*)
15146 version_type=osf
15147 need_lib_prefix=no
15148 need_version=no
15149 soname_spec='${libname}${release}${shared_ext}$major'
15150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15151 shlibpath_var=LD_LIBRARY_PATH
15152 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15153 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15154 ;;
15155
15156rdos*)
15157 dynamic_linker=no
15158 ;;
15159
15160solaris*)
15161 version_type=linux # correct to gnu/linux during the next big refactor
15162 need_lib_prefix=no
15163 need_version=no
15164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15165 soname_spec='${libname}${release}${shared_ext}$major'
15166 shlibpath_var=LD_LIBRARY_PATH
15167 shlibpath_overrides_runpath=yes
15168 hardcode_into_libs=yes
15169 # ldd complains unless libraries are executable
15170 postinstall_cmds='chmod +x $lib'
15171 ;;
15172
15173sunos4*)
15174 version_type=sunos
15175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15176 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15177 shlibpath_var=LD_LIBRARY_PATH
15178 shlibpath_overrides_runpath=yes
15179 if test "$with_gnu_ld" = yes; then
15180 need_lib_prefix=no
15181 fi
15182 need_version=yes
15183 ;;
15184
15185sysv4 | sysv4.3*)
15186 version_type=linux # correct to gnu/linux during the next big refactor
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 case $host_vendor in
15191 sni)
15192 shlibpath_overrides_runpath=no
15193 need_lib_prefix=no
15194 runpath_var=LD_RUN_PATH
15195 ;;
15196 siemens)
15197 need_lib_prefix=no
15198 ;;
15199 motorola)
15200 need_lib_prefix=no
15201 need_version=no
15202 shlibpath_overrides_runpath=no
15203 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15204 ;;
15205 esac
15206 ;;
15207
15208sysv4*MP*)
15209 if test -d /usr/nec ;then
15210 version_type=linux # correct to gnu/linux during the next big refactor
15211 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15212 soname_spec='$libname${shared_ext}.$major'
15213 shlibpath_var=LD_LIBRARY_PATH
15214 fi
15215 ;;
15216
15217sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15218 version_type=freebsd-elf
15219 need_lib_prefix=no
15220 need_version=no
15221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15222 soname_spec='${libname}${release}${shared_ext}$major'
15223 shlibpath_var=LD_LIBRARY_PATH
15224 shlibpath_overrides_runpath=yes
15225 hardcode_into_libs=yes
15226 if test "$with_gnu_ld" = yes; then
15227 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15228 else
15229 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15230 case $host_os in
15231 sco3.2v5*)
15232 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15233 ;;
15234 esac
15235 fi
15236 sys_lib_dlsearch_path_spec='/usr/lib'
15237 ;;
15238
15239tpf*)
15240 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15241 version_type=linux # correct to gnu/linux during the next big refactor
15242 need_lib_prefix=no
15243 need_version=no
15244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15245 shlibpath_var=LD_LIBRARY_PATH
15246 shlibpath_overrides_runpath=no
15247 hardcode_into_libs=yes
15248 ;;
15249
15250uts4*)
15251 version_type=linux # correct to gnu/linux during the next big refactor
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=LD_LIBRARY_PATH
15255 ;;
15256
15257*)
15258 dynamic_linker=no
15259 ;;
15260esac
15261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15262$as_echo "$dynamic_linker" >&6; }
15263test "$dynamic_linker" = no && can_build_shared=no
15264
15265variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15266if test "$GCC" = yes; then
15267 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15268fi
15269
15270if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15271 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15272fi
15273if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15274 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15275fi
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15315$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15316hardcode_action_CXX=
15317if test -n "$hardcode_libdir_flag_spec_CXX" ||
15318 test -n "$runpath_var_CXX" ||
15319 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15320
15321 # We can hardcode non-existent directories.
15322 if test "$hardcode_direct_CXX" != no &&
15323 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15324 # have to relink, otherwise we might link with an installed library
15325 # when we should be linking with a yet-to-be-installed one
15326 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15327 test "$hardcode_minus_L_CXX" != no; then
15328 # Linking always hardcodes the temporary library directory.
15329 hardcode_action_CXX=relink
15330 else
15331 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15332 hardcode_action_CXX=immediate
15333 fi
15334else
15335 # We cannot hardcode anything, or else we can only hardcode existing
15336 # directories.
15337 hardcode_action_CXX=unsupported
15338fi
15339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15340$as_echo "$hardcode_action_CXX" >&6; }
15341
15342if test "$hardcode_action_CXX" = relink ||
15343 test "$inherit_rpath_CXX" = yes; then
15344 # Fast installation is not supported
15345 enable_fast_install=no
15346elif test "$shlibpath_overrides_runpath" = yes ||
15347 test "$enable_shared" = no; then
15348 # Fast installation is not necessary
15349 enable_fast_install=needless
15350fi
15351
15352
15353
15354
15355
15356
15357
15358 fi # test -n "$compiler"
15359
15360 CC=$lt_save_CC
15361 CFLAGS=$lt_save_CFLAGS
15362 LDCXX=$LD
15363 LD=$lt_save_LD
15364 GCC=$lt_save_GCC
15365 with_gnu_ld=$lt_save_with_gnu_ld
15366 lt_cv_path_LDCXX=$lt_cv_path_LD
15367 lt_cv_path_LD=$lt_save_path_LD
15368 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15369 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15370fi # test "$_lt_caught_CXX_error" != yes
15371
15372ac_ext=c
15373ac_cpp='$CPP $CPPFLAGS'
15374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15376ac_compiler_gnu=$ac_cv_c_compiler_gnu
15377
15378
Jeff Thompson1a1b4c02013-06-28 22:28:51 -070015379
Jeff Thompson965a3242013-10-02 09:59:35 -070015380ac_ext=mm
15381ac_cpp='$OBJCXXCPP $CPPFLAGS'
15382ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15383ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15384ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
15385if test -n "$ac_tool_prefix"; then
15386 for ac_prog in g++ objc++ objcxx c++ CXX
15387 do
15388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15389set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15391$as_echo_n "checking for $ac_word... " >&6; }
15392if ${ac_cv_prog_OBJCXX+:} false; then :
15393 $as_echo_n "(cached) " >&6
15394else
15395 if test -n "$OBJCXX"; then
15396 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
15397else
15398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15399for as_dir in $PATH
15400do
15401 IFS=$as_save_IFS
15402 test -z "$as_dir" && as_dir=.
15403 for ac_exec_ext in '' $ac_executable_extensions; do
15404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15405 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
15406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15407 break 2
15408 fi
15409done
15410 done
15411IFS=$as_save_IFS
15412
15413fi
15414fi
15415OBJCXX=$ac_cv_prog_OBJCXX
15416if test -n "$OBJCXX"; then
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
15418$as_echo "$OBJCXX" >&6; }
15419else
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15421$as_echo "no" >&6; }
15422fi
15423
15424
15425 test -n "$OBJCXX" && break
15426 done
15427fi
15428if test -z "$OBJCXX"; then
15429 ac_ct_OBJCXX=$OBJCXX
15430 for ac_prog in g++ objc++ objcxx c++ CXX
15431do
15432 # Extract the first word of "$ac_prog", so it can be a program name with args.
15433set dummy $ac_prog; ac_word=$2
15434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15435$as_echo_n "checking for $ac_word... " >&6; }
15436if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
15437 $as_echo_n "(cached) " >&6
15438else
15439 if test -n "$ac_ct_OBJCXX"; then
15440 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
15441else
15442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15443for as_dir in $PATH
15444do
15445 IFS=$as_save_IFS
15446 test -z "$as_dir" && as_dir=.
15447 for ac_exec_ext in '' $ac_executable_extensions; do
15448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15449 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
15450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15451 break 2
15452 fi
15453done
15454 done
15455IFS=$as_save_IFS
15456
15457fi
15458fi
15459ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
15460if test -n "$ac_ct_OBJCXX"; then
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
15462$as_echo "$ac_ct_OBJCXX" >&6; }
15463else
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15465$as_echo "no" >&6; }
15466fi
15467
15468
15469 test -n "$ac_ct_OBJCXX" && break
15470done
15471
15472 if test "x$ac_ct_OBJCXX" = x; then
15473 OBJCXX="g++"
15474 else
15475 case $cross_compiling:$ac_tool_warned in
15476yes:)
15477{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15478$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15479ac_tool_warned=yes ;;
15480esac
15481 OBJCXX=$ac_ct_OBJCXX
15482 fi
15483fi
15484
15485# Provide some information about the compiler.
15486$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
15487set X $ac_compile
15488ac_compiler=$2
15489for ac_option in --version -v -V -qversion; do
15490 { { ac_try="$ac_compiler $ac_option >&5"
15491case "(($ac_try" in
15492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493 *) ac_try_echo=$ac_try;;
15494esac
15495eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15496$as_echo "$ac_try_echo"; } >&5
15497 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15498 ac_status=$?
15499 if test -s conftest.err; then
15500 sed '10a\
15501... rest of stderr output deleted ...
15502 10q' conftest.err >conftest.er1
15503 cat conftest.er1 >&5
15504 fi
15505 rm -f conftest.er1 conftest.err
15506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15507 test $ac_status = 0; }
15508done
15509
15510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
15511$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
15512if ${ac_cv_objcxx_compiler_gnu+:} false; then :
15513 $as_echo_n "(cached) " >&6
15514else
15515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15516/* end confdefs.h. */
15517
15518int
15519main ()
15520{
15521#ifndef __GNUC__
15522 choke me
15523#endif
15524
15525 ;
15526 return 0;
15527}
15528_ACEOF
15529if ac_fn_objcxx_try_compile "$LINENO"; then :
15530 ac_compiler_gnu=yes
15531else
15532 ac_compiler_gnu=no
15533fi
15534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15535ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
15536
15537fi
15538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
15539$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
15540if test $ac_compiler_gnu = yes; then
15541 GOBJCXX=yes
15542else
15543 GOBJCXX=
15544fi
15545ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
15546ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
15547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
15548$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
15549if ${ac_cv_prog_objcxx_g+:} false; then :
15550 $as_echo_n "(cached) " >&6
15551else
15552 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
15553 ac_objcxx_werror_flag=yes
15554 ac_cv_prog_objcxx_g=no
15555 OBJCXXFLAGS="-g"
15556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15557/* end confdefs.h. */
15558
15559int
15560main ()
15561{
15562
15563 ;
15564 return 0;
15565}
15566_ACEOF
15567if ac_fn_objcxx_try_compile "$LINENO"; then :
15568 ac_cv_prog_objcxx_g=yes
15569else
15570 OBJCXXFLAGS=""
15571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15572/* end confdefs.h. */
15573
15574int
15575main ()
15576{
15577
15578 ;
15579 return 0;
15580}
15581_ACEOF
15582if ac_fn_objcxx_try_compile "$LINENO"; then :
15583
15584else
15585 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
15586 OBJCXXFLAGS="-g"
15587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15588/* end confdefs.h. */
15589
15590int
15591main ()
15592{
15593
15594 ;
15595 return 0;
15596}
15597_ACEOF
15598if ac_fn_objcxx_try_compile "$LINENO"; then :
15599 ac_cv_prog_objcxx_g=yes
15600fi
15601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15602fi
15603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15604fi
15605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15606 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
15607fi
15608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
15609$as_echo "$ac_cv_prog_objcxx_g" >&6; }
15610if test "$ac_test_OBJCXXFLAGS" = set; then
15611 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
15612elif test $ac_cv_prog_objcxx_g = yes; then
15613 if test "$GOBJCXX" = yes; then
15614 OBJCXXFLAGS="-g -O2"
15615 else
15616 OBJCXXFLAGS="-g"
15617 fi
15618else
15619 if test "$GOBJCXX" = yes; then
15620 OBJCXXFLAGS="-O2"
15621 else
15622 OBJCXXFLAGS=
15623 fi
15624fi
15625ac_ext=c
15626ac_cpp='$CPP $CPPFLAGS'
15627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15629ac_compiler_gnu=$ac_cv_c_compiler_gnu
15630
15631depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
15632
15633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15634$as_echo_n "checking dependency style of $depcc... " >&6; }
15635if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
15636 $as_echo_n "(cached) " >&6
15637else
15638 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15639 # We make a subdir and do the tests there. Otherwise we can end up
15640 # making bogus files that we don't know about and never remove. For
15641 # instance it was reported that on HP-UX the gcc test will end up
15642 # making a dummy file named 'D' -- because '-MD' means "put the output
15643 # in D".
15644 rm -rf conftest.dir
15645 mkdir conftest.dir
15646 # Copy depcomp to subdir because otherwise we won't find it if we're
15647 # using a relative directory.
15648 cp "$am_depcomp" conftest.dir
15649 cd conftest.dir
15650 # We will build objects and dependencies in a subdirectory because
15651 # it helps to detect inapplicable dependency modes. For instance
15652 # both Tru64's cc and ICC support -MD to output dependencies as a
15653 # side effect of compilation, but ICC will put the dependencies in
15654 # the current directory while Tru64 will put them in the object
15655 # directory.
15656 mkdir sub
15657
15658 am_cv_OBJCXX_dependencies_compiler_type=none
15659 if test "$am_compiler_list" = ""; then
15660 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15661 fi
15662 am__universal=false
15663
15664
15665 for depmode in $am_compiler_list; do
15666 # Setup a source with many dependencies, because some compilers
15667 # like to wrap large dependency lists on column 80 (with \), and
15668 # we should not choose a depcomp mode which is confused by this.
15669 #
15670 # We need to recreate these files for each test, as the compiler may
15671 # overwrite some of them when testing with obscure command lines.
15672 # This happens at least with the AIX C compiler.
15673 : > sub/conftest.c
15674 for i in 1 2 3 4 5 6; do
15675 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15676 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
15677 # Solaris 10 /bin/sh.
15678 echo '/* dummy */' > sub/conftst$i.h
15679 done
15680 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15681
15682 # We check with '-c' and '-o' for the sake of the "dashmstdout"
15683 # mode. It turns out that the SunPro C++ compiler does not properly
15684 # handle '-M -o', and we need to detect this. Also, some Intel
15685 # versions had trouble with output in subdirs.
15686 am__obj=sub/conftest.${OBJEXT-o}
15687 am__minus_obj="-o $am__obj"
15688 case $depmode in
15689 gcc)
15690 # This depmode causes a compiler race in universal mode.
15691 test "$am__universal" = false || continue
15692 ;;
15693 nosideeffect)
15694 # After this tag, mechanisms are not by side-effect, so they'll
15695 # only be used when explicitly requested.
15696 if test "x$enable_dependency_tracking" = xyes; then
15697 continue
15698 else
15699 break
15700 fi
15701 ;;
15702 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
15703 # This compiler won't grok '-c -o', but also, the minuso test has
15704 # not run yet. These depmodes are late enough in the game, and
15705 # so weak that their functioning should not be impacted.
15706 am__obj=conftest.${OBJEXT-o}
15707 am__minus_obj=
15708 ;;
15709 none) break ;;
15710 esac
15711 if depmode=$depmode \
15712 source=sub/conftest.c object=$am__obj \
15713 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15714 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15715 >/dev/null 2>conftest.err &&
15716 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15717 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15718 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15719 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15720 # icc doesn't choke on unknown options, it will just issue warnings
15721 # or remarks (even with -Werror). So we grep stderr for any message
15722 # that says an option was ignored or not supported.
15723 # When given -MP, icc 7.0 and 7.1 complain thusly:
15724 # icc: Command line warning: ignoring option '-M'; no argument required
15725 # The diagnosis changed in icc 8.0:
15726 # icc: Command line remark: option '-MP' not supported
15727 if (grep 'ignoring option' conftest.err ||
15728 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15729 am_cv_OBJCXX_dependencies_compiler_type=$depmode
15730 break
15731 fi
15732 fi
15733 done
15734
15735 cd ..
15736 rm -rf conftest.dir
15737else
15738 am_cv_OBJCXX_dependencies_compiler_type=none
15739fi
15740
15741fi
15742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
15743$as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
15744OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
15745
15746 if
15747 test "x$enable_dependency_tracking" != xno \
15748 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
15749 am__fastdepOBJCXX_TRUE=
15750 am__fastdepOBJCXX_FALSE='#'
15751else
15752 am__fastdepOBJCXX_TRUE='#'
15753 am__fastdepOBJCXX_FALSE=
15754fi
15755
15756
Jeff Thompson36174062013-06-21 16:03:44 -070015757ac_ext=cpp
15758ac_cpp='$CXXCPP $CPPFLAGS'
15759ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15760ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15761ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15762
Jeff Thompson36174062013-06-21 16:03:44 -070015763
Jeff Thompson965a3242013-10-02 09:59:35 -070015764
15765# Check whether --with-sqlite3 was given.
15766if test "${with_sqlite3+set}" = set; then :
15767 withval=$with_sqlite3;
15768 if test "$withval" = "no"; then
15769 WANT_SQLITE3="no"
15770 elif test "$withval" = "yes"; then
15771 WANT_SQLITE3="yes"
15772 ac_sqlite3_path=""
15773 else
15774 WANT_SQLITE3="yes"
15775 ac_sqlite3_path="$withval"
15776 fi
15777
15778else
15779 WANT_SQLITE3="yes"
15780
15781fi
15782
15783
15784 SQLITE3_CFLAGS=""
15785 SQLITE3_LDFLAGS=""
15786 SQLITE3_VERSION=""
15787
15788 if test "x$WANT_SQLITE3" = "xyes"; then
15789
15790 ac_sqlite3_header="sqlite3.h"
15791
15792 sqlite3_version_req=3.0.0
15793 sqlite3_version_req_shorten=`expr $sqlite3_version_req : '\([0-9]*\.[0-9]*\)'`
15794 sqlite3_version_req_major=`expr $sqlite3_version_req : '\([0-9]*\)'`
15795 sqlite3_version_req_minor=`expr $sqlite3_version_req : '[0-9]*\.\([0-9]*\)'`
15796 sqlite3_version_req_micro=`expr $sqlite3_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
15797 if test "x$sqlite3_version_req_micro" = "x" ; then
15798 sqlite3_version_req_micro="0"
15799 fi
15800
15801 sqlite3_version_req_number=`expr $sqlite3_version_req_major \* 1000000 \
15802 \+ $sqlite3_version_req_minor \* 1000 \
15803 \+ $sqlite3_version_req_micro`
15804
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 library >= $sqlite3_version_req" >&5
15806$as_echo_n "checking for SQLite3 library >= $sqlite3_version_req... " >&6; }
15807
15808 if test "$ac_sqlite3_path" != ""; then
15809 ac_sqlite3_ldflags="-L$ac_sqlite3_path/lib"
15810 ac_sqlite3_cppflags="-I$ac_sqlite3_path/include"
15811 else
15812 for ac_sqlite3_path_tmp in /usr /usr/local /opt ; do
15813 if test -f "$ac_sqlite3_path_tmp/include/$ac_sqlite3_header" \
15814 && test -r "$ac_sqlite3_path_tmp/include/$ac_sqlite3_header"; then
15815 ac_sqlite3_path=$ac_sqlite3_path_tmp
15816 ac_sqlite3_cppflags="-I$ac_sqlite3_path_tmp/include"
15817 ac_sqlite3_ldflags="-L$ac_sqlite3_path_tmp/lib"
15818 break;
15819 fi
15820 done
15821 fi
15822
15823 ac_sqlite3_ldflags="$ac_sqlite3_ldflags -lsqlite3"
15824
15825 saved_CPPFLAGS="$CPPFLAGS"
15826 CPPFLAGS="$CPPFLAGS $ac_sqlite3_cppflags"
15827
15828 ac_ext=c
15829ac_cpp='$CPP $CPPFLAGS'
15830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15832ac_compiler_gnu=$ac_cv_c_compiler_gnu
15833
15834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15835/* end confdefs.h. */
15836
15837 #include <sqlite3.h>
15838int
15839main ()
15840{
15841
15842#if (SQLITE_VERSION_NUMBER >= $sqlite3_version_req_number)
15843/* Everything is okay */
15844#else
15845# error SQLite version is too old
15846#endif
15847
15848
15849 ;
15850 return 0;
15851}
15852
15853_ACEOF
15854if ac_fn_c_try_compile "$LINENO"; then :
15855
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15857$as_echo "yes" >&6; }
15858 success="yes"
15859
15860else
15861
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15863$as_echo "not found" >&6; }
15864 success="no"
15865
15866
15867fi
15868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15869 ac_ext=cpp
15870ac_cpp='$CXXCPP $CPPFLAGS'
15871ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15872ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15873ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15874
15875
15876 CPPFLAGS="$saved_CPPFLAGS"
15877
15878 if test "$success" = "yes"; then
15879
15880 SQLITE3_CFLAGS="$ac_sqlite3_cppflags"
15881 SQLITE3_LDFLAGS="$ac_sqlite3_ldflags"
15882
15883 ac_sqlite3_header_path="$ac_sqlite3_path/include/$ac_sqlite3_header"
15884
15885 if test "x$ac_sqlite3_header_path" != "x"; then
15886 ac_sqlite3_version=`cat $ac_sqlite3_header_path \
15887 | grep '#define.*SQLITE_VERSION.*\"' | sed -e 's/.* "//' \
15888 | sed -e 's/"//'`
15889 if test $ac_sqlite3_version != ""; then
15890 SQLITE3_VERSION=$ac_sqlite3_version
15891 else
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find SQLITE_VERSION macro in sqlite3.h header to retrieve SQLite version!" >&5
15893$as_echo "$as_me: WARNING: Cannot find SQLITE_VERSION macro in sqlite3.h header to retrieve SQLite version!" >&2;}
15894 fi
15895 fi
15896
15897
15898
15899
15900
15901$as_echo "#define HAVE_SQLITE3 /**/" >>confdefs.h
15902
15903 fi
15904 fi
15905
15906
Jeff Thompson1b8f4c92013-06-19 16:18:46 -070015907 ax_cxx_compile_cxx11_required=falsednl
15908 ac_ext=cpp
15909ac_cpp='$CXXCPP $CPPFLAGS'
15910ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15911ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15912ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15913 ac_success=no
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
15915$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
15916if ${ax_cv_cxx_compile_cxx11+:} false; then :
15917 $as_echo_n "(cached) " >&6
15918else
15919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15920/* end confdefs.h. */
15921
15922 template <typename T>
15923 struct check
15924 {
15925 static_assert(sizeof(int) <= sizeof(T), "not big enough");
15926 };
15927
15928 typedef check<check<bool>> right_angle_brackets;
15929
15930 int a;
15931 decltype(a) b;
15932
15933 typedef check<int> check_type;
15934 check_type c;
15935 check_type&& cr = static_cast<check_type&&>(c);
15936
15937 auto d = a;
15938
15939_ACEOF
15940if ac_fn_cxx_try_compile "$LINENO"; then :
15941 ax_cv_cxx_compile_cxx11=yes
15942else
15943 ax_cv_cxx_compile_cxx11=no
15944fi
15945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15946fi
15947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
15948$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
15949 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
15950 ac_success=yes
15951 fi
15952
15953 if test x$ac_success = xno; then
15954 for switch in -std=gnu++11 -std=gnu++0x; do
15955 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
15957$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
15958if eval \${$cachevar+:} false; then :
15959 $as_echo_n "(cached) " >&6
15960else
15961 ac_save_CXXFLAGS="$CXXFLAGS"
15962 CXXFLAGS="$CXXFLAGS $switch"
15963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15964/* end confdefs.h. */
15965
15966 template <typename T>
15967 struct check
15968 {
15969 static_assert(sizeof(int) <= sizeof(T), "not big enough");
15970 };
15971
15972 typedef check<check<bool>> right_angle_brackets;
15973
15974 int a;
15975 decltype(a) b;
15976
15977 typedef check<int> check_type;
15978 check_type c;
15979 check_type&& cr = static_cast<check_type&&>(c);
15980
15981 auto d = a;
15982
15983_ACEOF
15984if ac_fn_cxx_try_compile "$LINENO"; then :
15985 eval $cachevar=yes
15986else
15987 eval $cachevar=no
15988fi
15989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15990 CXXFLAGS="$ac_save_CXXFLAGS"
15991fi
15992eval ac_res=\$$cachevar
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15994$as_echo "$ac_res" >&6; }
15995 if eval test x\$$cachevar = xyes; then
15996 CXXFLAGS="$CXXFLAGS $switch"
15997 ac_success=yes
15998 break
15999 fi
16000 done
16001 fi
16002
16003 if test x$ac_success = xno; then
16004 for switch in -std=c++11 -std=c++0x; do
16005 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
16007$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
16008if eval \${$cachevar+:} false; then :
16009 $as_echo_n "(cached) " >&6
16010else
16011 ac_save_CXXFLAGS="$CXXFLAGS"
16012 CXXFLAGS="$CXXFLAGS $switch"
16013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16014/* end confdefs.h. */
16015
16016 template <typename T>
16017 struct check
16018 {
16019 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16020 };
16021
16022 typedef check<check<bool>> right_angle_brackets;
16023
16024 int a;
16025 decltype(a) b;
16026
16027 typedef check<int> check_type;
16028 check_type c;
16029 check_type&& cr = static_cast<check_type&&>(c);
16030
16031 auto d = a;
16032
16033_ACEOF
16034if ac_fn_cxx_try_compile "$LINENO"; then :
16035 eval $cachevar=yes
16036else
16037 eval $cachevar=no
16038fi
16039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16040 CXXFLAGS="$ac_save_CXXFLAGS"
16041fi
16042eval ac_res=\$$cachevar
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16044$as_echo "$ac_res" >&6; }
16045 if eval test x\$$cachevar = xyes; then
16046 CXXFLAGS="$CXXFLAGS $switch"
16047 ac_success=yes
16048 break
16049 fi
16050 done
16051 fi
16052 ac_ext=cpp
16053ac_cpp='$CXXCPP $CPPFLAGS'
16054ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16055ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16056ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16057
16058 if test x$ax_cxx_compile_cxx11_required = xtrue; then
16059 if test x$ac_success = xno; then
16060 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
16061 fi
16062 else
16063 if test x$ac_success = xno; then
16064 HAVE_CXX11=0
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
16066$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
16067 else
16068 HAVE_CXX11=1
16069
16070$as_echo "#define HAVE_CXX11 1" >>confdefs.h
16071
16072 fi
16073
16074
16075 fi
16076
Jeff Thompson8a055e02013-08-09 10:44:28 -070016077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_EncryptInit in -lcrypto" >&5
16078$as_echo_n "checking for EVP_EncryptInit in -lcrypto... " >&6; }
16079if ${ac_cv_lib_crypto_EVP_EncryptInit+:} false; then :
16080 $as_echo_n "(cached) " >&6
16081else
16082 ac_check_lib_save_LIBS=$LIBS
16083LIBS="-lcrypto $LIBS"
16084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16085/* end confdefs.h. */
Jeff Thompsonb3768ae2013-08-08 21:22:45 -070016086
Jeff Thompson8a055e02013-08-09 10:44:28 -070016087/* Override any GCC internal prototype to avoid an error.
16088 Use char because int might match the return type of a GCC
16089 builtin and then its argument prototype would still apply. */
16090#ifdef __cplusplus
16091extern "C"
16092#endif
16093char EVP_EncryptInit ();
16094int
16095main ()
16096{
16097return EVP_EncryptInit ();
16098 ;
16099 return 0;
16100}
16101_ACEOF
16102if ac_fn_cxx_try_link "$LINENO"; then :
16103 ac_cv_lib_crypto_EVP_EncryptInit=yes
16104else
16105 ac_cv_lib_crypto_EVP_EncryptInit=no
16106fi
16107rm -f core conftest.err conftest.$ac_objext \
16108 conftest$ac_exeext conftest.$ac_ext
16109LIBS=$ac_check_lib_save_LIBS
16110fi
16111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_EncryptInit" >&5
16112$as_echo "$ac_cv_lib_crypto_EVP_EncryptInit" >&6; }
16113if test "x$ac_cv_lib_crypto_EVP_EncryptInit" = xyes; then :
16114 cat >>confdefs.h <<_ACEOF
16115#define HAVE_LIBCRYPTO 1
16116_ACEOF
16117
16118 LIBS="-lcrypto $LIBS"
16119
16120else
16121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16123as_fn_error $? "can't find openssl crypto lib
16124See \`config.log' for more details" "$LINENO" 5; }
16125fi
Jeff Thompsonb3768ae2013-08-08 21:22:45 -070016126
16127
Jeff Thompson39128c62013-06-19 14:08:51 -070016128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::shared_ptr" >&5
16129$as_echo_n "checking for std::shared_ptr... " >&6; }
Jeff Thompson39128c62013-06-19 14:08:51 -070016130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16131/* end confdefs.h. */
16132#include <memory>
16133 std::shared_ptr<int> have_shared_ptr;
16134int
16135main ()
16136{
16137
16138 ;
16139 return 0;
16140}
16141
16142_ACEOF
16143if ac_fn_cxx_try_compile "$LINENO"; then :
16144
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16146$as_echo "yes" >&6; }
16147
16148cat >>confdefs.h <<_ACEOF
16149#define HAVE_STD_SHARED_PTR 1
16150_ACEOF
16151
16152
16153else
16154
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16156$as_echo "no" >&6; }
16157
16158cat >>confdefs.h <<_ACEOF
16159#define HAVE_STD_SHARED_PTR 0
16160_ACEOF
16161
16162
16163fi
16164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jeff Thompson9e9ea9f2013-06-22 10:31:18 -070016165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost::shared_ptr" >&5
16166$as_echo_n "checking for boost::shared_ptr... " >&6; }
Jeff Thompson39128c62013-06-19 14:08:51 -070016167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16168/* end confdefs.h. */
16169#include <boost/shared_ptr.hpp>
16170 boost::shared_ptr<int> have_shared_ptr;
16171int
16172main ()
16173{
16174
16175 ;
16176 return 0;
16177}
16178
16179_ACEOF
16180if ac_fn_cxx_try_compile "$LINENO"; then :
16181
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16183$as_echo "yes" >&6; }
16184
16185cat >>confdefs.h <<_ACEOF
16186#define HAVE_BOOST_SHARED_PTR 1
16187_ACEOF
16188
16189
16190else
16191
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16193$as_echo "no" >&6; }
16194
16195cat >>confdefs.h <<_ACEOF
16196#define HAVE_BOOST_SHARED_PTR 0
16197_ACEOF
16198
16199
16200fi
16201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16202
Jeff Thompsona28eed82013-08-22 16:21:10 -070016203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::function" >&5
16204$as_echo_n "checking for std::function... " >&6; }
16205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16206/* end confdefs.h. */
16207#include <functional>
16208 std::function<int> have_function();
16209int
16210main ()
16211{
16212
16213 ;
16214 return 0;
16215}
16216
16217_ACEOF
16218if ac_fn_cxx_try_compile "$LINENO"; then :
16219
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16221$as_echo "yes" >&6; }
16222
16223cat >>confdefs.h <<_ACEOF
16224#define HAVE_STD_FUNCTION 1
16225_ACEOF
16226
16227
16228else
16229
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16231$as_echo "no" >&6; }
16232
16233cat >>confdefs.h <<_ACEOF
16234#define HAVE_STD_FUNCTION 0
16235_ACEOF
16236
16237
16238fi
16239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost::function" >&5
16241$as_echo_n "checking for boost::function... " >&6; }
16242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16243/* end confdefs.h. */
16244#include <boost/function.hpp>
16245 boost::function<int> have_function();
16246int
16247main ()
16248{
16249
16250 ;
16251 return 0;
16252}
16253
16254_ACEOF
16255if ac_fn_cxx_try_compile "$LINENO"; then :
16256
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16258$as_echo "yes" >&6; }
16259
16260cat >>confdefs.h <<_ACEOF
16261#define HAVE_BOOST_FUNCTION 1
16262_ACEOF
16263
16264
16265else
16266
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16268$as_echo "no" >&6; }
16269
16270cat >>confdefs.h <<_ACEOF
16271#define HAVE_BOOST_FUNCTION 0
16272_ACEOF
16273
16274
16275fi
16276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16277
Jeff Thompsond4a1e162013-07-11 12:41:31 -070016278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcmp" >&5
16279$as_echo_n "checking for memcmp... " >&6; }
16280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16281/* end confdefs.h. */
16282#include <memory.h>
16283 void test() { unsigned char buffer[1]; memcmp(buffer, buffer, 1); }
16284int
16285main ()
16286{
16287
16288 ;
16289 return 0;
16290}
16291
16292_ACEOF
16293if ac_fn_cxx_try_compile "$LINENO"; then :
16294
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16296$as_echo "yes" >&6; }
16297
16298cat >>confdefs.h <<_ACEOF
16299#define HAVE_MEMCMP 1
16300_ACEOF
16301
16302
16303else
16304
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16306$as_echo "no" >&6; }
16307
16308cat >>confdefs.h <<_ACEOF
16309#define HAVE_MEMCMP 0
16310_ACEOF
16311
16312
16313fi
16314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jeff Thompsonc804d522013-06-27 16:54:27 -070016315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcpy" >&5
16316$as_echo_n "checking for memcpy... " >&6; }
16317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16318/* end confdefs.h. */
16319#include <memory.h>
16320 void test() { unsigned char buffer[1]; memcpy(buffer, buffer, 1); }
16321int
16322main ()
16323{
16324
16325 ;
16326 return 0;
16327}
16328
16329_ACEOF
16330if ac_fn_cxx_try_compile "$LINENO"; then :
16331
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16333$as_echo "yes" >&6; }
16334
16335cat >>confdefs.h <<_ACEOF
16336#define HAVE_MEMCPY 1
16337_ACEOF
16338
16339
16340else
16341
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16343$as_echo "no" >&6; }
16344
16345cat >>confdefs.h <<_ACEOF
16346#define HAVE_MEMCPY 0
16347_ACEOF
16348
16349
16350fi
16351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memset" >&5
16353$as_echo_n "checking for memset... " >&6; }
16354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16355/* end confdefs.h. */
16356#include <memory.h>
16357 void test() { unsigned char buffer[1]; memset(buffer, 0, 1); }
16358int
16359main ()
16360{
16361
16362 ;
16363 return 0;
16364}
16365
16366_ACEOF
16367if ac_fn_cxx_try_compile "$LINENO"; then :
16368
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16370$as_echo "yes" >&6; }
16371
16372cat >>confdefs.h <<_ACEOF
16373#define HAVE_MEMSET 1
16374_ACEOF
16375
16376
16377else
16378
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16380$as_echo "no" >&6; }
16381
16382cat >>confdefs.h <<_ACEOF
16383#define HAVE_MEMSET 0
16384_ACEOF
16385
16386
16387fi
16388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16389
Jeff Thompson0c13a532013-09-24 15:43:41 -070016390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint" >&5
16391$as_echo_n "checking for stdint... " >&6; }
16392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16393/* end confdefs.h. */
16394#include <stdint.h>
16395 void test() { uint8_t x; }
16396int
16397main ()
16398{
16399
16400 ;
16401 return 0;
16402}
16403
16404_ACEOF
16405if ac_fn_cxx_try_compile "$LINENO"; then :
16406
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16408$as_echo "yes" >&6; }
16409
16410cat >>confdefs.h <<_ACEOF
16411#define HAVE_STDINT 1
16412_ACEOF
16413
16414
16415else
16416
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16418$as_echo "no" >&6; }
16419
16420cat >>confdefs.h <<_ACEOF
16421#define HAVE_STDINT 0
16422_ACEOF
16423
16424
16425fi
16426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16427
Jeff Thompsonca45e552013-06-26 17:40:06 -070016428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438# Files:
16439DX_PROJECT=$PACKAGE_NAME
16440
16441DX_CONFIG=Doxyfile
16442
16443DX_DOCDIR=doxygen-doc
16444
16445
16446# Environment variables used inside doxygen.cfg:
16447DX_ENV="$DX_ENV SRCDIR='$srcdir'"
16448
16449DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
16450
16451DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
16452
16453DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
16454
16455
16456# Doxygen itself:
16457
16458
16459
16460 # Check whether --enable-doxygen-doc was given.
16461if test "${enable_doxygen_doc+set}" = set; then :
16462 enableval=$enable_doxygen_doc;
16463case "$enableval" in
16464#(
16465y|Y|yes|Yes|YES)
16466 DX_FLAG_doc=1
16467
16468
16469;; #(
16470n|N|no|No|NO)
16471 DX_FLAG_doc=0
16472
16473;; #(
16474*)
16475 as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
16476;;
16477esac
16478
16479else
16480
16481DX_FLAG_doc=1
16482
16483
16484
16485fi
16486
16487if test "$DX_FLAG_doc" = 1; then
16488
16489if test -n "$ac_tool_prefix"; then
16490 # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
16491set dummy ${ac_tool_prefix}doxygen; ac_word=$2
16492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16493$as_echo_n "checking for $ac_word... " >&6; }
16494if ${ac_cv_path_DX_DOXYGEN+:} false; then :
16495 $as_echo_n "(cached) " >&6
16496else
16497 case $DX_DOXYGEN in
16498 [\\/]* | ?:[\\/]*)
16499 ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
16500 ;;
16501 *)
16502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16503for as_dir in $PATH
16504do
16505 IFS=$as_save_IFS
16506 test -z "$as_dir" && as_dir=.
16507 for ac_exec_ext in '' $ac_executable_extensions; do
16508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16509 ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
16510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16511 break 2
16512 fi
16513done
16514 done
16515IFS=$as_save_IFS
16516
16517 ;;
16518esac
16519fi
16520DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
16521if test -n "$DX_DOXYGEN"; then
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
16523$as_echo "$DX_DOXYGEN" >&6; }
16524else
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16526$as_echo "no" >&6; }
16527fi
16528
16529
16530fi
16531if test -z "$ac_cv_path_DX_DOXYGEN"; then
16532 ac_pt_DX_DOXYGEN=$DX_DOXYGEN
16533 # Extract the first word of "doxygen", so it can be a program name with args.
16534set dummy doxygen; ac_word=$2
16535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16536$as_echo_n "checking for $ac_word... " >&6; }
16537if ${ac_cv_path_ac_pt_DX_DOXYGEN+:} false; then :
16538 $as_echo_n "(cached) " >&6
16539else
16540 case $ac_pt_DX_DOXYGEN in
16541 [\\/]* | ?:[\\/]*)
16542 ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
16543 ;;
16544 *)
16545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16546for as_dir in $PATH
16547do
16548 IFS=$as_save_IFS
16549 test -z "$as_dir" && as_dir=.
16550 for ac_exec_ext in '' $ac_executable_extensions; do
16551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16552 ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
16553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16554 break 2
16555 fi
16556done
16557 done
16558IFS=$as_save_IFS
16559
16560 ;;
16561esac
16562fi
16563ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
16564if test -n "$ac_pt_DX_DOXYGEN"; then
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
16566$as_echo "$ac_pt_DX_DOXYGEN" >&6; }
16567else
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16569$as_echo "no" >&6; }
16570fi
16571
16572 if test "x$ac_pt_DX_DOXYGEN" = x; then
16573 DX_DOXYGEN=""
16574 else
16575 case $cross_compiling:$ac_tool_warned in
16576yes:)
16577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16579ac_tool_warned=yes ;;
16580esac
16581 DX_DOXYGEN=$ac_pt_DX_DOXYGEN
16582 fi
16583else
16584 DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
16585fi
16586
16587if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
16589$as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
16590 DX_FLAG_doc=0
16591
16592fi
16593
16594
16595if test -n "$ac_tool_prefix"; then
16596 # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
16597set dummy ${ac_tool_prefix}perl; ac_word=$2
16598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16599$as_echo_n "checking for $ac_word... " >&6; }
16600if ${ac_cv_path_DX_PERL+:} false; then :
16601 $as_echo_n "(cached) " >&6
16602else
16603 case $DX_PERL in
16604 [\\/]* | ?:[\\/]*)
16605 ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
16606 ;;
16607 *)
16608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16609for as_dir in $PATH
16610do
16611 IFS=$as_save_IFS
16612 test -z "$as_dir" && as_dir=.
16613 for ac_exec_ext in '' $ac_executable_extensions; do
16614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16615 ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
16616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16617 break 2
16618 fi
16619done
16620 done
16621IFS=$as_save_IFS
16622
16623 ;;
16624esac
16625fi
16626DX_PERL=$ac_cv_path_DX_PERL
16627if test -n "$DX_PERL"; then
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
16629$as_echo "$DX_PERL" >&6; }
16630else
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16632$as_echo "no" >&6; }
16633fi
16634
16635
16636fi
16637if test -z "$ac_cv_path_DX_PERL"; then
16638 ac_pt_DX_PERL=$DX_PERL
16639 # Extract the first word of "perl", so it can be a program name with args.
16640set dummy perl; ac_word=$2
16641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16642$as_echo_n "checking for $ac_word... " >&6; }
16643if ${ac_cv_path_ac_pt_DX_PERL+:} false; then :
16644 $as_echo_n "(cached) " >&6
16645else
16646 case $ac_pt_DX_PERL in
16647 [\\/]* | ?:[\\/]*)
16648 ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
16649 ;;
16650 *)
16651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16652for as_dir in $PATH
16653do
16654 IFS=$as_save_IFS
16655 test -z "$as_dir" && as_dir=.
16656 for ac_exec_ext in '' $ac_executable_extensions; do
16657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16658 ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
16659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16660 break 2
16661 fi
16662done
16663 done
16664IFS=$as_save_IFS
16665
16666 ;;
16667esac
16668fi
16669ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
16670if test -n "$ac_pt_DX_PERL"; then
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
16672$as_echo "$ac_pt_DX_PERL" >&6; }
16673else
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16675$as_echo "no" >&6; }
16676fi
16677
16678 if test "x$ac_pt_DX_PERL" = x; then
16679 DX_PERL=""
16680 else
16681 case $cross_compiling:$ac_tool_warned in
16682yes:)
16683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16685ac_tool_warned=yes ;;
16686esac
16687 DX_PERL=$ac_pt_DX_PERL
16688 fi
16689else
16690 DX_PERL="$ac_cv_path_DX_PERL"
16691fi
16692
16693if test "$DX_FLAG_doc$DX_PERL" = 1; then
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
16695$as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
16696 DX_FLAG_doc=0
16697
16698fi
16699
16700 :
16701fi
16702 if test "$DX_FLAG_doc" = 1; then
16703 DX_COND_doc_TRUE=
16704 DX_COND_doc_FALSE='#'
16705else
16706 DX_COND_doc_TRUE='#'
16707 DX_COND_doc_FALSE=
16708fi
16709
16710if test "$DX_FLAG_doc" = 1; then
16711 DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
16712
16713 :
16714else
16715
16716 :
16717fi
16718
16719
16720# Dot for graphics:
16721
16722
16723
16724 # Check whether --enable-doxygen-dot was given.
16725if test "${enable_doxygen_dot+set}" = set; then :
16726 enableval=$enable_doxygen_dot;
16727case "$enableval" in
16728#(
16729y|Y|yes|Yes|YES)
16730 DX_FLAG_dot=1
16731
16732
16733test "$DX_FLAG_doc" = "1" \
16734|| as_fn_error $? "doxygen-dot requires doxygen-dot" "$LINENO" 5
16735
16736;; #(
16737n|N|no|No|NO)
16738 DX_FLAG_dot=0
16739
16740;; #(
16741*)
16742 as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
16743;;
16744esac
16745
16746else
16747
16748DX_FLAG_dot=0
16749
16750
16751test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
16752
16753
16754
16755fi
16756
16757if test "$DX_FLAG_dot" = 1; then
16758
16759if test -n "$ac_tool_prefix"; then
16760 # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
16761set dummy ${ac_tool_prefix}dot; ac_word=$2
16762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16763$as_echo_n "checking for $ac_word... " >&6; }
16764if ${ac_cv_path_DX_DOT+:} false; then :
16765 $as_echo_n "(cached) " >&6
16766else
16767 case $DX_DOT in
16768 [\\/]* | ?:[\\/]*)
16769 ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
16770 ;;
16771 *)
16772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16773for as_dir in $PATH
16774do
16775 IFS=$as_save_IFS
16776 test -z "$as_dir" && as_dir=.
16777 for ac_exec_ext in '' $ac_executable_extensions; do
16778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16779 ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
16780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16781 break 2
16782 fi
16783done
16784 done
16785IFS=$as_save_IFS
16786
16787 ;;
16788esac
16789fi
16790DX_DOT=$ac_cv_path_DX_DOT
16791if test -n "$DX_DOT"; then
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
16793$as_echo "$DX_DOT" >&6; }
16794else
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16796$as_echo "no" >&6; }
16797fi
16798
16799
16800fi
16801if test -z "$ac_cv_path_DX_DOT"; then
16802 ac_pt_DX_DOT=$DX_DOT
16803 # Extract the first word of "dot", so it can be a program name with args.
16804set dummy dot; ac_word=$2
16805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16806$as_echo_n "checking for $ac_word... " >&6; }
16807if ${ac_cv_path_ac_pt_DX_DOT+:} false; then :
16808 $as_echo_n "(cached) " >&6
16809else
16810 case $ac_pt_DX_DOT in
16811 [\\/]* | ?:[\\/]*)
16812 ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
16813 ;;
16814 *)
16815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16816for as_dir in $PATH
16817do
16818 IFS=$as_save_IFS
16819 test -z "$as_dir" && as_dir=.
16820 for ac_exec_ext in '' $ac_executable_extensions; do
16821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16822 ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
16823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16824 break 2
16825 fi
16826done
16827 done
16828IFS=$as_save_IFS
16829
16830 ;;
16831esac
16832fi
16833ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
16834if test -n "$ac_pt_DX_DOT"; then
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
16836$as_echo "$ac_pt_DX_DOT" >&6; }
16837else
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16839$as_echo "no" >&6; }
16840fi
16841
16842 if test "x$ac_pt_DX_DOT" = x; then
16843 DX_DOT=""
16844 else
16845 case $cross_compiling:$ac_tool_warned in
16846yes:)
16847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16849ac_tool_warned=yes ;;
16850esac
16851 DX_DOT=$ac_pt_DX_DOT
16852 fi
16853else
16854 DX_DOT="$ac_cv_path_DX_DOT"
16855fi
16856
16857if test "$DX_FLAG_dot$DX_DOT" = 1; then
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
16859$as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
16860 DX_FLAG_dot=0
16861
16862fi
16863
16864 :
16865fi
16866 if test "$DX_FLAG_dot" = 1; then
16867 DX_COND_dot_TRUE=
16868 DX_COND_dot_FALSE='#'
16869else
16870 DX_COND_dot_TRUE='#'
16871 DX_COND_dot_FALSE=
16872fi
16873
16874if test "$DX_FLAG_dot" = 1; then
16875 DX_ENV="$DX_ENV HAVE_DOT='YES'"
16876
16877 DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
16878
16879 :
16880else
16881 DX_ENV="$DX_ENV HAVE_DOT='NO'"
16882
16883 :
16884fi
16885
16886
16887# Man pages generation:
16888
16889
16890
16891 # Check whether --enable-doxygen-man was given.
16892if test "${enable_doxygen_man+set}" = set; then :
16893 enableval=$enable_doxygen_man;
16894case "$enableval" in
16895#(
16896y|Y|yes|Yes|YES)
16897 DX_FLAG_man=1
16898
16899
16900test "$DX_FLAG_doc" = "1" \
16901|| as_fn_error $? "doxygen-man requires doxygen-man" "$LINENO" 5
16902
16903;; #(
16904n|N|no|No|NO)
16905 DX_FLAG_man=0
16906
16907;; #(
16908*)
16909 as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
16910;;
16911esac
16912
16913else
16914
16915DX_FLAG_man=0
16916
16917
16918test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
16919
16920
16921
16922fi
16923
16924if test "$DX_FLAG_man" = 1; then
16925
16926 :
16927fi
16928 if test "$DX_FLAG_man" = 1; then
16929 DX_COND_man_TRUE=
16930 DX_COND_man_FALSE='#'
16931else
16932 DX_COND_man_TRUE='#'
16933 DX_COND_man_FALSE=
16934fi
16935
16936if test "$DX_FLAG_man" = 1; then
16937 DX_ENV="$DX_ENV GENERATE_MAN='YES'"
16938
16939 :
16940else
16941 DX_ENV="$DX_ENV GENERATE_MAN='NO'"
16942
16943 :
16944fi
16945
16946
16947# RTF file generation:
16948
16949
16950
16951 # Check whether --enable-doxygen-rtf was given.
16952if test "${enable_doxygen_rtf+set}" = set; then :
16953 enableval=$enable_doxygen_rtf;
16954case "$enableval" in
16955#(
16956y|Y|yes|Yes|YES)
16957 DX_FLAG_rtf=1
16958
16959
16960test "$DX_FLAG_doc" = "1" \
16961|| as_fn_error $? "doxygen-rtf requires doxygen-rtf" "$LINENO" 5
16962
16963;; #(
16964n|N|no|No|NO)
16965 DX_FLAG_rtf=0
16966
16967;; #(
16968*)
16969 as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
16970;;
16971esac
16972
16973else
16974
16975DX_FLAG_rtf=0
16976
16977
16978test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
16979
16980
16981
16982fi
16983
16984if test "$DX_FLAG_rtf" = 1; then
16985
16986 :
16987fi
16988 if test "$DX_FLAG_rtf" = 1; then
16989 DX_COND_rtf_TRUE=
16990 DX_COND_rtf_FALSE='#'
16991else
16992 DX_COND_rtf_TRUE='#'
16993 DX_COND_rtf_FALSE=
16994fi
16995
16996if test "$DX_FLAG_rtf" = 1; then
16997 DX_ENV="$DX_ENV GENERATE_RTF='YES'"
16998
16999 :
17000else
17001 DX_ENV="$DX_ENV GENERATE_RTF='NO'"
17002
17003 :
17004fi
17005
17006
17007# XML file generation:
17008
17009
17010
17011 # Check whether --enable-doxygen-xml was given.
17012if test "${enable_doxygen_xml+set}" = set; then :
17013 enableval=$enable_doxygen_xml;
17014case "$enableval" in
17015#(
17016y|Y|yes|Yes|YES)
17017 DX_FLAG_xml=1
17018
17019
17020test "$DX_FLAG_doc" = "1" \
17021|| as_fn_error $? "doxygen-xml requires doxygen-xml" "$LINENO" 5
17022
17023;; #(
17024n|N|no|No|NO)
17025 DX_FLAG_xml=0
17026
17027;; #(
17028*)
17029 as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
17030;;
17031esac
17032
17033else
17034
17035DX_FLAG_xml=0
17036
17037
17038test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
17039
17040
17041
17042fi
17043
17044if test "$DX_FLAG_xml" = 1; then
17045
17046 :
17047fi
17048 if test "$DX_FLAG_xml" = 1; then
17049 DX_COND_xml_TRUE=
17050 DX_COND_xml_FALSE='#'
17051else
17052 DX_COND_xml_TRUE='#'
17053 DX_COND_xml_FALSE=
17054fi
17055
17056if test "$DX_FLAG_xml" = 1; then
17057 DX_ENV="$DX_ENV GENERATE_XML='YES'"
17058
17059 :
17060else
17061 DX_ENV="$DX_ENV GENERATE_XML='NO'"
17062
17063 :
17064fi
17065
17066
17067# (Compressed) HTML help generation:
17068
17069
17070
17071 # Check whether --enable-doxygen-chm was given.
17072if test "${enable_doxygen_chm+set}" = set; then :
17073 enableval=$enable_doxygen_chm;
17074case "$enableval" in
17075#(
17076y|Y|yes|Yes|YES)
17077 DX_FLAG_chm=1
17078
17079
17080test "$DX_FLAG_doc" = "1" \
17081|| as_fn_error $? "doxygen-chm requires doxygen-chm" "$LINENO" 5
17082
17083;; #(
17084n|N|no|No|NO)
17085 DX_FLAG_chm=0
17086
17087;; #(
17088*)
17089 as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
17090;;
17091esac
17092
17093else
17094
17095DX_FLAG_chm=0
17096
17097
17098test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
17099
17100
17101
17102fi
17103
17104if test "$DX_FLAG_chm" = 1; then
17105
17106if test -n "$ac_tool_prefix"; then
17107 # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
17108set dummy ${ac_tool_prefix}hhc; ac_word=$2
17109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17110$as_echo_n "checking for $ac_word... " >&6; }
17111if ${ac_cv_path_DX_HHC+:} false; then :
17112 $as_echo_n "(cached) " >&6
17113else
17114 case $DX_HHC in
17115 [\\/]* | ?:[\\/]*)
17116 ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
17117 ;;
17118 *)
17119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17120for as_dir in $PATH
17121do
17122 IFS=$as_save_IFS
17123 test -z "$as_dir" && as_dir=.
17124 for ac_exec_ext in '' $ac_executable_extensions; do
17125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17126 ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
17127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17128 break 2
17129 fi
17130done
17131 done
17132IFS=$as_save_IFS
17133
17134 ;;
17135esac
17136fi
17137DX_HHC=$ac_cv_path_DX_HHC
17138if test -n "$DX_HHC"; then
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
17140$as_echo "$DX_HHC" >&6; }
17141else
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17143$as_echo "no" >&6; }
17144fi
17145
17146
17147fi
17148if test -z "$ac_cv_path_DX_HHC"; then
17149 ac_pt_DX_HHC=$DX_HHC
17150 # Extract the first word of "hhc", so it can be a program name with args.
17151set dummy hhc; ac_word=$2
17152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17153$as_echo_n "checking for $ac_word... " >&6; }
17154if ${ac_cv_path_ac_pt_DX_HHC+:} false; then :
17155 $as_echo_n "(cached) " >&6
17156else
17157 case $ac_pt_DX_HHC in
17158 [\\/]* | ?:[\\/]*)
17159 ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
17160 ;;
17161 *)
17162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17163for as_dir in $PATH
17164do
17165 IFS=$as_save_IFS
17166 test -z "$as_dir" && as_dir=.
17167 for ac_exec_ext in '' $ac_executable_extensions; do
17168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17169 ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
17170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17171 break 2
17172 fi
17173done
17174 done
17175IFS=$as_save_IFS
17176
17177 ;;
17178esac
17179fi
17180ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
17181if test -n "$ac_pt_DX_HHC"; then
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
17183$as_echo "$ac_pt_DX_HHC" >&6; }
17184else
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17186$as_echo "no" >&6; }
17187fi
17188
17189 if test "x$ac_pt_DX_HHC" = x; then
17190 DX_HHC=""
17191 else
17192 case $cross_compiling:$ac_tool_warned in
17193yes:)
17194{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17196ac_tool_warned=yes ;;
17197esac
17198 DX_HHC=$ac_pt_DX_HHC
17199 fi
17200else
17201 DX_HHC="$ac_cv_path_DX_HHC"
17202fi
17203
17204if test "$DX_FLAG_chm$DX_HHC" = 1; then
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
17206$as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
17207 DX_FLAG_chm=0
17208
17209fi
17210
17211 :
17212fi
17213 if test "$DX_FLAG_chm" = 1; then
17214 DX_COND_chm_TRUE=
17215 DX_COND_chm_FALSE='#'
17216else
17217 DX_COND_chm_TRUE='#'
17218 DX_COND_chm_FALSE=
17219fi
17220
17221if test "$DX_FLAG_chm" = 1; then
17222 DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
17223
17224 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
17225
17226 DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
17227
17228 :
17229else
17230 DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
17231
17232 :
17233fi
17234
17235
17236# Seperate CHI file generation.
17237
17238
17239
17240 # Check whether --enable-doxygen-chi was given.
17241if test "${enable_doxygen_chi+set}" = set; then :
17242 enableval=$enable_doxygen_chi;
17243case "$enableval" in
17244#(
17245y|Y|yes|Yes|YES)
17246 DX_FLAG_chi=1
17247
17248
17249test "$DX_FLAG_chm" = "1" \
17250|| as_fn_error $? "doxygen-chi requires doxygen-chi" "$LINENO" 5
17251
17252;; #(
17253n|N|no|No|NO)
17254 DX_FLAG_chi=0
17255
17256;; #(
17257*)
17258 as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
17259;;
17260esac
17261
17262else
17263
17264DX_FLAG_chi=0
17265
17266
17267test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
17268
17269
17270
17271fi
17272
17273if test "$DX_FLAG_chi" = 1; then
17274
17275 :
17276fi
17277 if test "$DX_FLAG_chi" = 1; then
17278 DX_COND_chi_TRUE=
17279 DX_COND_chi_FALSE='#'
17280else
17281 DX_COND_chi_TRUE='#'
17282 DX_COND_chi_FALSE=
17283fi
17284
17285if test "$DX_FLAG_chi" = 1; then
17286 DX_ENV="$DX_ENV GENERATE_CHI='YES'"
17287
17288 :
17289else
17290 DX_ENV="$DX_ENV GENERATE_CHI='NO'"
17291
17292 :
17293fi
17294
17295
17296# Plain HTML pages generation:
17297
17298
17299
17300 # Check whether --enable-doxygen-html was given.
17301if test "${enable_doxygen_html+set}" = set; then :
17302 enableval=$enable_doxygen_html;
17303case "$enableval" in
17304#(
17305y|Y|yes|Yes|YES)
17306 DX_FLAG_html=1
17307
17308
17309test "$DX_FLAG_doc" = "1" \
17310|| as_fn_error $? "doxygen-html requires doxygen-html" "$LINENO" 5
17311
17312test "$DX_FLAG_chm" = "0" \
17313|| as_fn_error $? "doxygen-html contradicts doxygen-html" "$LINENO" 5
17314
17315;; #(
17316n|N|no|No|NO)
17317 DX_FLAG_html=0
17318
17319;; #(
17320*)
17321 as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
17322;;
17323esac
17324
17325else
17326
17327DX_FLAG_html=1
17328
17329
17330test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
17331
17332
17333test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
17334
17335
17336
17337fi
17338
17339if test "$DX_FLAG_html" = 1; then
17340
17341 :
17342fi
17343 if test "$DX_FLAG_html" = 1; then
17344 DX_COND_html_TRUE=
17345 DX_COND_html_FALSE='#'
17346else
17347 DX_COND_html_TRUE='#'
17348 DX_COND_html_FALSE=
17349fi
17350
17351if test "$DX_FLAG_html" = 1; then
17352 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
17353
17354 :
17355else
17356 test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
17357
17358 :
17359fi
17360
17361
17362# PostScript file generation:
17363
17364
17365
17366 # Check whether --enable-doxygen-ps was given.
17367if test "${enable_doxygen_ps+set}" = set; then :
17368 enableval=$enable_doxygen_ps;
17369case "$enableval" in
17370#(
17371y|Y|yes|Yes|YES)
17372 DX_FLAG_ps=1
17373
17374
17375test "$DX_FLAG_doc" = "1" \
17376|| as_fn_error $? "doxygen-ps requires doxygen-ps" "$LINENO" 5
17377
17378;; #(
17379n|N|no|No|NO)
17380 DX_FLAG_ps=0
17381
17382;; #(
17383*)
17384 as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
17385;;
17386esac
17387
17388else
17389
17390DX_FLAG_ps=0
17391
17392
17393test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
17394
17395
17396
17397fi
17398
17399if test "$DX_FLAG_ps" = 1; then
17400
17401if test -n "$ac_tool_prefix"; then
17402 # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
17403set dummy ${ac_tool_prefix}latex; ac_word=$2
17404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17405$as_echo_n "checking for $ac_word... " >&6; }
17406if ${ac_cv_path_DX_LATEX+:} false; then :
17407 $as_echo_n "(cached) " >&6
17408else
17409 case $DX_LATEX in
17410 [\\/]* | ?:[\\/]*)
17411 ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
17412 ;;
17413 *)
17414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17415for as_dir in $PATH
17416do
17417 IFS=$as_save_IFS
17418 test -z "$as_dir" && as_dir=.
17419 for ac_exec_ext in '' $ac_executable_extensions; do
17420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17421 ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
17422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17423 break 2
17424 fi
17425done
17426 done
17427IFS=$as_save_IFS
17428
17429 ;;
17430esac
17431fi
17432DX_LATEX=$ac_cv_path_DX_LATEX
17433if test -n "$DX_LATEX"; then
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
17435$as_echo "$DX_LATEX" >&6; }
17436else
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17438$as_echo "no" >&6; }
17439fi
17440
17441
17442fi
17443if test -z "$ac_cv_path_DX_LATEX"; then
17444 ac_pt_DX_LATEX=$DX_LATEX
17445 # Extract the first word of "latex", so it can be a program name with args.
17446set dummy latex; ac_word=$2
17447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17448$as_echo_n "checking for $ac_word... " >&6; }
17449if ${ac_cv_path_ac_pt_DX_LATEX+:} false; then :
17450 $as_echo_n "(cached) " >&6
17451else
17452 case $ac_pt_DX_LATEX in
17453 [\\/]* | ?:[\\/]*)
17454 ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
17455 ;;
17456 *)
17457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17458for as_dir in $PATH
17459do
17460 IFS=$as_save_IFS
17461 test -z "$as_dir" && as_dir=.
17462 for ac_exec_ext in '' $ac_executable_extensions; do
17463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17464 ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
17465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17466 break 2
17467 fi
17468done
17469 done
17470IFS=$as_save_IFS
17471
17472 ;;
17473esac
17474fi
17475ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
17476if test -n "$ac_pt_DX_LATEX"; then
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
17478$as_echo "$ac_pt_DX_LATEX" >&6; }
17479else
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17481$as_echo "no" >&6; }
17482fi
17483
17484 if test "x$ac_pt_DX_LATEX" = x; then
17485 DX_LATEX=""
17486 else
17487 case $cross_compiling:$ac_tool_warned in
17488yes:)
17489{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17490$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17491ac_tool_warned=yes ;;
17492esac
17493 DX_LATEX=$ac_pt_DX_LATEX
17494 fi
17495else
17496 DX_LATEX="$ac_cv_path_DX_LATEX"
17497fi
17498
17499if test "$DX_FLAG_ps$DX_LATEX" = 1; then
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
17501$as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
17502 DX_FLAG_ps=0
17503
17504fi
17505
17506
17507if test -n "$ac_tool_prefix"; then
17508 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
17509set dummy ${ac_tool_prefix}makeindex; ac_word=$2
17510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17511$as_echo_n "checking for $ac_word... " >&6; }
17512if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
17513 $as_echo_n "(cached) " >&6
17514else
17515 case $DX_MAKEINDEX in
17516 [\\/]* | ?:[\\/]*)
17517 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
17518 ;;
17519 *)
17520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17521for as_dir in $PATH
17522do
17523 IFS=$as_save_IFS
17524 test -z "$as_dir" && as_dir=.
17525 for ac_exec_ext in '' $ac_executable_extensions; do
17526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17527 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
17528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17529 break 2
17530 fi
17531done
17532 done
17533IFS=$as_save_IFS
17534
17535 ;;
17536esac
17537fi
17538DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
17539if test -n "$DX_MAKEINDEX"; then
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
17541$as_echo "$DX_MAKEINDEX" >&6; }
17542else
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17544$as_echo "no" >&6; }
17545fi
17546
17547
17548fi
17549if test -z "$ac_cv_path_DX_MAKEINDEX"; then
17550 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
17551 # Extract the first word of "makeindex", so it can be a program name with args.
17552set dummy makeindex; ac_word=$2
17553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17554$as_echo_n "checking for $ac_word... " >&6; }
17555if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
17556 $as_echo_n "(cached) " >&6
17557else
17558 case $ac_pt_DX_MAKEINDEX in
17559 [\\/]* | ?:[\\/]*)
17560 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
17561 ;;
17562 *)
17563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17564for as_dir in $PATH
17565do
17566 IFS=$as_save_IFS
17567 test -z "$as_dir" && as_dir=.
17568 for ac_exec_ext in '' $ac_executable_extensions; do
17569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17570 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
17571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17572 break 2
17573 fi
17574done
17575 done
17576IFS=$as_save_IFS
17577
17578 ;;
17579esac
17580fi
17581ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
17582if test -n "$ac_pt_DX_MAKEINDEX"; then
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
17584$as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
17585else
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17587$as_echo "no" >&6; }
17588fi
17589
17590 if test "x$ac_pt_DX_MAKEINDEX" = x; then
17591 DX_MAKEINDEX=""
17592 else
17593 case $cross_compiling:$ac_tool_warned in
17594yes:)
17595{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17596$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17597ac_tool_warned=yes ;;
17598esac
17599 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
17600 fi
17601else
17602 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
17603fi
17604
17605if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
17607$as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
17608 DX_FLAG_ps=0
17609
17610fi
17611
17612
17613if test -n "$ac_tool_prefix"; then
17614 # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
17615set dummy ${ac_tool_prefix}dvips; ac_word=$2
17616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17617$as_echo_n "checking for $ac_word... " >&6; }
17618if ${ac_cv_path_DX_DVIPS+:} false; then :
17619 $as_echo_n "(cached) " >&6
17620else
17621 case $DX_DVIPS in
17622 [\\/]* | ?:[\\/]*)
17623 ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
17624 ;;
17625 *)
17626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17627for as_dir in $PATH
17628do
17629 IFS=$as_save_IFS
17630 test -z "$as_dir" && as_dir=.
17631 for ac_exec_ext in '' $ac_executable_extensions; do
17632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17633 ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
17634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17635 break 2
17636 fi
17637done
17638 done
17639IFS=$as_save_IFS
17640
17641 ;;
17642esac
17643fi
17644DX_DVIPS=$ac_cv_path_DX_DVIPS
17645if test -n "$DX_DVIPS"; then
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
17647$as_echo "$DX_DVIPS" >&6; }
17648else
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17650$as_echo "no" >&6; }
17651fi
17652
17653
17654fi
17655if test -z "$ac_cv_path_DX_DVIPS"; then
17656 ac_pt_DX_DVIPS=$DX_DVIPS
17657 # Extract the first word of "dvips", so it can be a program name with args.
17658set dummy dvips; ac_word=$2
17659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17660$as_echo_n "checking for $ac_word... " >&6; }
17661if ${ac_cv_path_ac_pt_DX_DVIPS+:} false; then :
17662 $as_echo_n "(cached) " >&6
17663else
17664 case $ac_pt_DX_DVIPS in
17665 [\\/]* | ?:[\\/]*)
17666 ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
17667 ;;
17668 *)
17669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17670for as_dir in $PATH
17671do
17672 IFS=$as_save_IFS
17673 test -z "$as_dir" && as_dir=.
17674 for ac_exec_ext in '' $ac_executable_extensions; do
17675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17676 ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
17677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17678 break 2
17679 fi
17680done
17681 done
17682IFS=$as_save_IFS
17683
17684 ;;
17685esac
17686fi
17687ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
17688if test -n "$ac_pt_DX_DVIPS"; then
17689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
17690$as_echo "$ac_pt_DX_DVIPS" >&6; }
17691else
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17693$as_echo "no" >&6; }
17694fi
17695
17696 if test "x$ac_pt_DX_DVIPS" = x; then
17697 DX_DVIPS=""
17698 else
17699 case $cross_compiling:$ac_tool_warned in
17700yes:)
17701{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17703ac_tool_warned=yes ;;
17704esac
17705 DX_DVIPS=$ac_pt_DX_DVIPS
17706 fi
17707else
17708 DX_DVIPS="$ac_cv_path_DX_DVIPS"
17709fi
17710
17711if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
17713$as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
17714 DX_FLAG_ps=0
17715
17716fi
17717
17718
17719if test -n "$ac_tool_prefix"; then
17720 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
17721set dummy ${ac_tool_prefix}egrep; ac_word=$2
17722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17723$as_echo_n "checking for $ac_word... " >&6; }
17724if ${ac_cv_path_DX_EGREP+:} false; then :
17725 $as_echo_n "(cached) " >&6
17726else
17727 case $DX_EGREP in
17728 [\\/]* | ?:[\\/]*)
17729 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
17730 ;;
17731 *)
17732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17733for as_dir in $PATH
17734do
17735 IFS=$as_save_IFS
17736 test -z "$as_dir" && as_dir=.
17737 for ac_exec_ext in '' $ac_executable_extensions; do
17738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17739 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
17740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17741 break 2
17742 fi
17743done
17744 done
17745IFS=$as_save_IFS
17746
17747 ;;
17748esac
17749fi
17750DX_EGREP=$ac_cv_path_DX_EGREP
17751if test -n "$DX_EGREP"; then
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
17753$as_echo "$DX_EGREP" >&6; }
17754else
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17756$as_echo "no" >&6; }
17757fi
17758
17759
17760fi
17761if test -z "$ac_cv_path_DX_EGREP"; then
17762 ac_pt_DX_EGREP=$DX_EGREP
17763 # Extract the first word of "egrep", so it can be a program name with args.
17764set dummy egrep; ac_word=$2
17765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17766$as_echo_n "checking for $ac_word... " >&6; }
17767if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
17768 $as_echo_n "(cached) " >&6
17769else
17770 case $ac_pt_DX_EGREP in
17771 [\\/]* | ?:[\\/]*)
17772 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
17773 ;;
17774 *)
17775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17776for as_dir in $PATH
17777do
17778 IFS=$as_save_IFS
17779 test -z "$as_dir" && as_dir=.
17780 for ac_exec_ext in '' $ac_executable_extensions; do
17781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17782 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
17783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17784 break 2
17785 fi
17786done
17787 done
17788IFS=$as_save_IFS
17789
17790 ;;
17791esac
17792fi
17793ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
17794if test -n "$ac_pt_DX_EGREP"; then
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
17796$as_echo "$ac_pt_DX_EGREP" >&6; }
17797else
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17799$as_echo "no" >&6; }
17800fi
17801
17802 if test "x$ac_pt_DX_EGREP" = x; then
17803 DX_EGREP=""
17804 else
17805 case $cross_compiling:$ac_tool_warned in
17806yes:)
17807{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17808$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17809ac_tool_warned=yes ;;
17810esac
17811 DX_EGREP=$ac_pt_DX_EGREP
17812 fi
17813else
17814 DX_EGREP="$ac_cv_path_DX_EGREP"
17815fi
17816
17817if test "$DX_FLAG_ps$DX_EGREP" = 1; then
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
17819$as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
17820 DX_FLAG_ps=0
17821
17822fi
17823
17824 :
17825fi
17826 if test "$DX_FLAG_ps" = 1; then
17827 DX_COND_ps_TRUE=
17828 DX_COND_ps_FALSE='#'
17829else
17830 DX_COND_ps_TRUE='#'
17831 DX_COND_ps_FALSE=
17832fi
17833
17834if test "$DX_FLAG_ps" = 1; then
17835
17836 :
17837else
17838
17839 :
17840fi
17841
17842
17843# PDF file generation:
17844
17845
17846
17847 # Check whether --enable-doxygen-pdf was given.
17848if test "${enable_doxygen_pdf+set}" = set; then :
17849 enableval=$enable_doxygen_pdf;
17850case "$enableval" in
17851#(
17852y|Y|yes|Yes|YES)
17853 DX_FLAG_pdf=1
17854
17855
17856test "$DX_FLAG_doc" = "1" \
17857|| as_fn_error $? "doxygen-pdf requires doxygen-pdf" "$LINENO" 5
17858
17859;; #(
17860n|N|no|No|NO)
17861 DX_FLAG_pdf=0
17862
17863;; #(
17864*)
17865 as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
17866;;
17867esac
17868
17869else
17870
17871DX_FLAG_pdf=0
17872
17873
17874test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
17875
17876
17877
17878fi
17879
17880if test "$DX_FLAG_pdf" = 1; then
17881
17882if test -n "$ac_tool_prefix"; then
17883 # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
17884set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
17885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17886$as_echo_n "checking for $ac_word... " >&6; }
17887if ${ac_cv_path_DX_PDFLATEX+:} false; then :
17888 $as_echo_n "(cached) " >&6
17889else
17890 case $DX_PDFLATEX in
17891 [\\/]* | ?:[\\/]*)
17892 ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
17893 ;;
17894 *)
17895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17896for as_dir in $PATH
17897do
17898 IFS=$as_save_IFS
17899 test -z "$as_dir" && as_dir=.
17900 for ac_exec_ext in '' $ac_executable_extensions; do
17901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17902 ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
17903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17904 break 2
17905 fi
17906done
17907 done
17908IFS=$as_save_IFS
17909
17910 ;;
17911esac
17912fi
17913DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
17914if test -n "$DX_PDFLATEX"; then
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
17916$as_echo "$DX_PDFLATEX" >&6; }
17917else
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17919$as_echo "no" >&6; }
17920fi
17921
17922
17923fi
17924if test -z "$ac_cv_path_DX_PDFLATEX"; then
17925 ac_pt_DX_PDFLATEX=$DX_PDFLATEX
17926 # Extract the first word of "pdflatex", so it can be a program name with args.
17927set dummy pdflatex; ac_word=$2
17928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17929$as_echo_n "checking for $ac_word... " >&6; }
17930if ${ac_cv_path_ac_pt_DX_PDFLATEX+:} false; then :
17931 $as_echo_n "(cached) " >&6
17932else
17933 case $ac_pt_DX_PDFLATEX in
17934 [\\/]* | ?:[\\/]*)
17935 ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
17936 ;;
17937 *)
17938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17939for as_dir in $PATH
17940do
17941 IFS=$as_save_IFS
17942 test -z "$as_dir" && as_dir=.
17943 for ac_exec_ext in '' $ac_executable_extensions; do
17944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17945 ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
17946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17947 break 2
17948 fi
17949done
17950 done
17951IFS=$as_save_IFS
17952
17953 ;;
17954esac
17955fi
17956ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
17957if test -n "$ac_pt_DX_PDFLATEX"; then
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
17959$as_echo "$ac_pt_DX_PDFLATEX" >&6; }
17960else
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17962$as_echo "no" >&6; }
17963fi
17964
17965 if test "x$ac_pt_DX_PDFLATEX" = x; then
17966 DX_PDFLATEX=""
17967 else
17968 case $cross_compiling:$ac_tool_warned in
17969yes:)
17970{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17972ac_tool_warned=yes ;;
17973esac
17974 DX_PDFLATEX=$ac_pt_DX_PDFLATEX
17975 fi
17976else
17977 DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
17978fi
17979
17980if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
17982$as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
17983 DX_FLAG_pdf=0
17984
17985fi
17986
17987
17988if test -n "$ac_tool_prefix"; then
17989 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
17990set dummy ${ac_tool_prefix}makeindex; ac_word=$2
17991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17992$as_echo_n "checking for $ac_word... " >&6; }
17993if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
17994 $as_echo_n "(cached) " >&6
17995else
17996 case $DX_MAKEINDEX in
17997 [\\/]* | ?:[\\/]*)
17998 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
17999 ;;
18000 *)
18001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18002for as_dir in $PATH
18003do
18004 IFS=$as_save_IFS
18005 test -z "$as_dir" && as_dir=.
18006 for ac_exec_ext in '' $ac_executable_extensions; do
18007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18008 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
18009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18010 break 2
18011 fi
18012done
18013 done
18014IFS=$as_save_IFS
18015
18016 ;;
18017esac
18018fi
18019DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
18020if test -n "$DX_MAKEINDEX"; then
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
18022$as_echo "$DX_MAKEINDEX" >&6; }
18023else
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18025$as_echo "no" >&6; }
18026fi
18027
18028
18029fi
18030if test -z "$ac_cv_path_DX_MAKEINDEX"; then
18031 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
18032 # Extract the first word of "makeindex", so it can be a program name with args.
18033set dummy makeindex; ac_word=$2
18034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18035$as_echo_n "checking for $ac_word... " >&6; }
18036if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
18037 $as_echo_n "(cached) " >&6
18038else
18039 case $ac_pt_DX_MAKEINDEX in
18040 [\\/]* | ?:[\\/]*)
18041 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
18042 ;;
18043 *)
18044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18045for as_dir in $PATH
18046do
18047 IFS=$as_save_IFS
18048 test -z "$as_dir" && as_dir=.
18049 for ac_exec_ext in '' $ac_executable_extensions; do
18050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18051 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
18052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18053 break 2
18054 fi
18055done
18056 done
18057IFS=$as_save_IFS
18058
18059 ;;
18060esac
18061fi
18062ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
18063if test -n "$ac_pt_DX_MAKEINDEX"; then
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
18065$as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
18066else
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18068$as_echo "no" >&6; }
18069fi
18070
18071 if test "x$ac_pt_DX_MAKEINDEX" = x; then
18072 DX_MAKEINDEX=""
18073 else
18074 case $cross_compiling:$ac_tool_warned in
18075yes:)
18076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18078ac_tool_warned=yes ;;
18079esac
18080 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
18081 fi
18082else
18083 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
18084fi
18085
18086if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
18088$as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
18089 DX_FLAG_pdf=0
18090
18091fi
18092
18093
18094if test -n "$ac_tool_prefix"; then
18095 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
18096set dummy ${ac_tool_prefix}egrep; ac_word=$2
18097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18098$as_echo_n "checking for $ac_word... " >&6; }
18099if ${ac_cv_path_DX_EGREP+:} false; then :
18100 $as_echo_n "(cached) " >&6
18101else
18102 case $DX_EGREP in
18103 [\\/]* | ?:[\\/]*)
18104 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
18105 ;;
18106 *)
18107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18108for as_dir in $PATH
18109do
18110 IFS=$as_save_IFS
18111 test -z "$as_dir" && as_dir=.
18112 for ac_exec_ext in '' $ac_executable_extensions; do
18113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18114 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
18115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18116 break 2
18117 fi
18118done
18119 done
18120IFS=$as_save_IFS
18121
18122 ;;
18123esac
18124fi
18125DX_EGREP=$ac_cv_path_DX_EGREP
18126if test -n "$DX_EGREP"; then
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
18128$as_echo "$DX_EGREP" >&6; }
18129else
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18131$as_echo "no" >&6; }
18132fi
18133
18134
18135fi
18136if test -z "$ac_cv_path_DX_EGREP"; then
18137 ac_pt_DX_EGREP=$DX_EGREP
18138 # Extract the first word of "egrep", so it can be a program name with args.
18139set dummy egrep; ac_word=$2
18140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18141$as_echo_n "checking for $ac_word... " >&6; }
18142if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
18143 $as_echo_n "(cached) " >&6
18144else
18145 case $ac_pt_DX_EGREP in
18146 [\\/]* | ?:[\\/]*)
18147 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
18148 ;;
18149 *)
18150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18151for as_dir in $PATH
18152do
18153 IFS=$as_save_IFS
18154 test -z "$as_dir" && as_dir=.
18155 for ac_exec_ext in '' $ac_executable_extensions; do
18156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18157 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
18158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18159 break 2
18160 fi
18161done
18162 done
18163IFS=$as_save_IFS
18164
18165 ;;
18166esac
18167fi
18168ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
18169if test -n "$ac_pt_DX_EGREP"; then
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
18171$as_echo "$ac_pt_DX_EGREP" >&6; }
18172else
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18174$as_echo "no" >&6; }
18175fi
18176
18177 if test "x$ac_pt_DX_EGREP" = x; then
18178 DX_EGREP=""
18179 else
18180 case $cross_compiling:$ac_tool_warned in
18181yes:)
18182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18184ac_tool_warned=yes ;;
18185esac
18186 DX_EGREP=$ac_pt_DX_EGREP
18187 fi
18188else
18189 DX_EGREP="$ac_cv_path_DX_EGREP"
18190fi
18191
18192if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
18194$as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
18195 DX_FLAG_pdf=0
18196
18197fi
18198
18199 :
18200fi
18201 if test "$DX_FLAG_pdf" = 1; then
18202 DX_COND_pdf_TRUE=
18203 DX_COND_pdf_FALSE='#'
18204else
18205 DX_COND_pdf_TRUE='#'
18206 DX_COND_pdf_FALSE=
18207fi
18208
18209if test "$DX_FLAG_pdf" = 1; then
18210
18211 :
18212else
18213
18214 :
18215fi
18216
18217
18218# LaTeX generation for PS and/or PDF:
18219 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
18220 DX_COND_latex_TRUE=
18221 DX_COND_latex_FALSE='#'
18222else
18223 DX_COND_latex_TRUE='#'
18224 DX_COND_latex_FALSE=
18225fi
18226
18227if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
18228 DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
18229
18230else
18231 DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
18232
18233fi
18234
18235# Paper size for PS and/or PDF:
18236
18237case "$DOXYGEN_PAPER_SIZE" in
18238#(
18239"")
18240 DOXYGEN_PAPER_SIZE=""
18241
18242;; #(
18243a4wide|a4|letter|legal|executive)
18244 DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
18245
18246;; #(
18247*)
18248 as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
18249;;
18250esac
18251
18252#For debugging:
18253#echo DX_FLAG_doc=$DX_FLAG_doc
18254#echo DX_FLAG_dot=$DX_FLAG_dot
18255#echo DX_FLAG_man=$DX_FLAG_man
18256#echo DX_FLAG_html=$DX_FLAG_html
18257#echo DX_FLAG_chm=$DX_FLAG_chm
18258#echo DX_FLAG_chi=$DX_FLAG_chi
18259#echo DX_FLAG_rtf=$DX_FLAG_rtf
18260#echo DX_FLAG_xml=$DX_FLAG_xml
18261#echo DX_FLAG_pdf=$DX_FLAG_pdf
18262#echo DX_FLAG_ps=$DX_FLAG_ps
18263#echo DX_ENV=$DX_ENV
18264
18265
Jeff Thompson39128c62013-06-19 14:08:51 -070018266ac_config_files="$ac_config_files Makefile"
18267
18268cat >confcache <<\_ACEOF
18269# This file is a shell script that caches the results of configure
18270# tests run on this system so they can be shared between configure
18271# scripts and configure runs, see configure's option --config-cache.
18272# It is not useful on other systems. If it contains results you don't
18273# want to keep, you may remove or edit it.
18274#
18275# config.status only pays attention to the cache file if you give it
18276# the --recheck option to rerun configure.
18277#
18278# `ac_cv_env_foo' variables (set or unset) will be overridden when
18279# loading this file, other *unset* `ac_cv_foo' will be assigned the
18280# following values.
18281
18282_ACEOF
18283
18284# The following way of writing the cache mishandles newlines in values,
18285# but we know of no workaround that is simple, portable, and efficient.
18286# So, we kill variables containing newlines.
18287# Ultrix sh set writes to stderr and can't be redirected directly,
18288# and sets the high bit in the cache file unless we assign to the vars.
18289(
18290 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18291 eval ac_val=\$$ac_var
18292 case $ac_val in #(
18293 *${as_nl}*)
18294 case $ac_var in #(
18295 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18296$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18297 esac
18298 case $ac_var in #(
18299 _ | IFS | as_nl) ;; #(
18300 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18301 *) { eval $ac_var=; unset $ac_var;} ;;
18302 esac ;;
18303 esac
18304 done
18305
18306 (set) 2>&1 |
18307 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18308 *${as_nl}ac_space=\ *)
18309 # `set' does not quote correctly, so add quotes: double-quote
18310 # substitution turns \\\\ into \\, and sed turns \\ into \.
18311 sed -n \
18312 "s/'/'\\\\''/g;
18313 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18314 ;; #(
18315 *)
18316 # `set' quotes correctly as required by POSIX, so do not add quotes.
18317 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18318 ;;
18319 esac |
18320 sort
18321) |
18322 sed '
18323 /^ac_cv_env_/b end
18324 t clear
18325 :clear
18326 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18327 t end
18328 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18329 :end' >>confcache
18330if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18331 if test -w "$cache_file"; then
18332 if test "x$cache_file" != "x/dev/null"; then
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18334$as_echo "$as_me: updating cache $cache_file" >&6;}
18335 if test ! -f "$cache_file" || test -h "$cache_file"; then
18336 cat confcache >"$cache_file"
18337 else
18338 case $cache_file in #(
18339 */* | ?:*)
18340 mv -f confcache "$cache_file"$$ &&
18341 mv -f "$cache_file"$$ "$cache_file" ;; #(
18342 *)
18343 mv -f confcache "$cache_file" ;;
18344 esac
18345 fi
18346 fi
18347 else
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18349$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18350 fi
18351fi
18352rm -f confcache
18353
18354test "x$prefix" = xNONE && prefix=$ac_default_prefix
18355# Let make expand exec_prefix.
18356test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18357
18358DEFS=-DHAVE_CONFIG_H
18359
18360ac_libobjs=
18361ac_ltlibobjs=
18362U=
18363for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18364 # 1. Remove the extension, and $U if already installed.
18365 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18366 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18367 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18368 # will be set to the directory where LIBOBJS objects are built.
18369 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18370 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18371done
18372LIBOBJS=$ac_libobjs
18373
18374LTLIBOBJS=$ac_ltlibobjs
18375
18376
18377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18378$as_echo_n "checking that generated files are newer than configure... " >&6; }
18379 if test -n "$am_sleep_pid"; then
18380 # Hide warnings about reused PIDs.
18381 wait $am_sleep_pid 2>/dev/null
18382 fi
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18384$as_echo "done" >&6; }
18385 if test -n "$EXEEXT"; then
18386 am__EXEEXT_TRUE=
18387 am__EXEEXT_FALSE='#'
18388else
18389 am__EXEEXT_TRUE='#'
18390 am__EXEEXT_FALSE=
18391fi
18392
Jeff Thompson47053ad2013-08-05 10:36:53 -070018393if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18394 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18395Usually this means the macro was only invoked conditionally." "$LINENO" 5
18396fi
Jeff Thompson39128c62013-06-19 14:08:51 -070018397if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18398 as_fn_error $? "conditional \"AMDEP\" was never defined.
18399Usually this means the macro was only invoked conditionally." "$LINENO" 5
18400fi
Jeff Thompson36174062013-06-21 16:03:44 -070018401if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18402 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18403Usually this means the macro was only invoked conditionally." "$LINENO" 5
18404fi
Jeff Thompson4f031642013-08-05 11:03:16 -070018405if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18406 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18407Usually this means the macro was only invoked conditionally." "$LINENO" 5
18408fi
Jeff Thompson965a3242013-10-02 09:59:35 -070018409if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
18410 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
18411Usually this means the macro was only invoked conditionally." "$LINENO" 5
18412fi
Jeff Thompsonca45e552013-06-26 17:40:06 -070018413if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
18414 as_fn_error $? "conditional \"DX_COND_doc\" was never defined.
18415Usually this means the macro was only invoked conditionally." "$LINENO" 5
18416fi
18417if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
18418 as_fn_error $? "conditional \"DX_COND_dot\" was never defined.
18419Usually this means the macro was only invoked conditionally." "$LINENO" 5
18420fi
18421if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
18422 as_fn_error $? "conditional \"DX_COND_man\" was never defined.
18423Usually this means the macro was only invoked conditionally." "$LINENO" 5
18424fi
18425if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
18426 as_fn_error $? "conditional \"DX_COND_rtf\" was never defined.
18427Usually this means the macro was only invoked conditionally." "$LINENO" 5
18428fi
18429if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
18430 as_fn_error $? "conditional \"DX_COND_xml\" was never defined.
18431Usually this means the macro was only invoked conditionally." "$LINENO" 5
18432fi
18433if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
18434 as_fn_error $? "conditional \"DX_COND_chm\" was never defined.
18435Usually this means the macro was only invoked conditionally." "$LINENO" 5
18436fi
18437if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
18438 as_fn_error $? "conditional \"DX_COND_chi\" was never defined.
18439Usually this means the macro was only invoked conditionally." "$LINENO" 5
18440fi
18441if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
18442 as_fn_error $? "conditional \"DX_COND_html\" was never defined.
18443Usually this means the macro was only invoked conditionally." "$LINENO" 5
18444fi
18445if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
18446 as_fn_error $? "conditional \"DX_COND_ps\" was never defined.
18447Usually this means the macro was only invoked conditionally." "$LINENO" 5
18448fi
18449if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
18450 as_fn_error $? "conditional \"DX_COND_pdf\" was never defined.
18451Usually this means the macro was only invoked conditionally." "$LINENO" 5
18452fi
18453if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
18454 as_fn_error $? "conditional \"DX_COND_latex\" was never defined.
18455Usually this means the macro was only invoked conditionally." "$LINENO" 5
18456fi
Jeff Thompson39128c62013-06-19 14:08:51 -070018457
18458: "${CONFIG_STATUS=./config.status}"
18459ac_write_fail=0
18460ac_clean_files_save=$ac_clean_files
18461ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18462{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18463$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18464as_write_fail=0
18465cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18466#! $SHELL
18467# Generated by $as_me.
18468# Run this file to recreate the current configuration.
18469# Compiler output produced by configure, useful for debugging
18470# configure, is in config.log if it exists.
18471
18472debug=false
18473ac_cs_recheck=false
18474ac_cs_silent=false
18475
18476SHELL=\${CONFIG_SHELL-$SHELL}
18477export SHELL
18478_ASEOF
18479cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18480## -------------------- ##
18481## M4sh Initialization. ##
18482## -------------------- ##
18483
18484# Be more Bourne compatible
18485DUALCASE=1; export DUALCASE # for MKS sh
18486if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18487 emulate sh
18488 NULLCMD=:
18489 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18490 # is contrary to our usage. Disable this feature.
18491 alias -g '${1+"$@"}'='"$@"'
18492 setopt NO_GLOB_SUBST
18493else
18494 case `(set -o) 2>/dev/null` in #(
18495 *posix*) :
18496 set -o posix ;; #(
18497 *) :
18498 ;;
18499esac
18500fi
18501
18502
18503as_nl='
18504'
18505export as_nl
18506# Printing a long string crashes Solaris 7 /usr/bin/printf.
18507as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18508as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18509as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18510# Prefer a ksh shell builtin over an external printf program on Solaris,
18511# but without wasting forks for bash or zsh.
18512if test -z "$BASH_VERSION$ZSH_VERSION" \
18513 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18514 as_echo='print -r --'
18515 as_echo_n='print -rn --'
18516elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18517 as_echo='printf %s\n'
18518 as_echo_n='printf %s'
18519else
18520 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18521 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18522 as_echo_n='/usr/ucb/echo -n'
18523 else
18524 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18525 as_echo_n_body='eval
18526 arg=$1;
18527 case $arg in #(
18528 *"$as_nl"*)
18529 expr "X$arg" : "X\\(.*\\)$as_nl";
18530 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18531 esac;
18532 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18533 '
18534 export as_echo_n_body
18535 as_echo_n='sh -c $as_echo_n_body as_echo'
18536 fi
18537 export as_echo_body
18538 as_echo='sh -c $as_echo_body as_echo'
18539fi
18540
18541# The user is always right.
18542if test "${PATH_SEPARATOR+set}" != set; then
18543 PATH_SEPARATOR=:
18544 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18545 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18546 PATH_SEPARATOR=';'
18547 }
18548fi
18549
18550
18551# IFS
18552# We need space, tab and new line, in precisely that order. Quoting is
18553# there to prevent editors from complaining about space-tab.
18554# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18555# splitting by setting IFS to empty value.)
18556IFS=" "" $as_nl"
18557
18558# Find who we are. Look in the path if we contain no directory separator.
18559as_myself=
18560case $0 in #((
18561 *[\\/]* ) as_myself=$0 ;;
18562 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18563for as_dir in $PATH
18564do
18565 IFS=$as_save_IFS
18566 test -z "$as_dir" && as_dir=.
18567 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18568 done
18569IFS=$as_save_IFS
18570
18571 ;;
18572esac
18573# We did not find ourselves, most probably we were run as `sh COMMAND'
18574# in which case we are not to be found in the path.
18575if test "x$as_myself" = x; then
18576 as_myself=$0
18577fi
18578if test ! -f "$as_myself"; then
18579 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18580 exit 1
18581fi
18582
18583# Unset variables that we do not need and which cause bugs (e.g. in
18584# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18585# suppresses any "Segmentation fault" message there. '((' could
18586# trigger a bug in pdksh 5.2.14.
18587for as_var in BASH_ENV ENV MAIL MAILPATH
18588do eval test x\${$as_var+set} = xset \
18589 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18590done
18591PS1='$ '
18592PS2='> '
18593PS4='+ '
18594
18595# NLS nuisances.
18596LC_ALL=C
18597export LC_ALL
18598LANGUAGE=C
18599export LANGUAGE
18600
18601# CDPATH.
18602(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18603
18604
18605# as_fn_error STATUS ERROR [LINENO LOG_FD]
18606# ----------------------------------------
18607# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18608# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18609# script with STATUS, using 1 if that was 0.
18610as_fn_error ()
18611{
18612 as_status=$1; test $as_status -eq 0 && as_status=1
18613 if test "$4"; then
18614 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18615 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18616 fi
18617 $as_echo "$as_me: error: $2" >&2
18618 as_fn_exit $as_status
18619} # as_fn_error
18620
18621
18622# as_fn_set_status STATUS
18623# -----------------------
18624# Set $? to STATUS, without forking.
18625as_fn_set_status ()
18626{
18627 return $1
18628} # as_fn_set_status
18629
18630# as_fn_exit STATUS
18631# -----------------
18632# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18633as_fn_exit ()
18634{
18635 set +e
18636 as_fn_set_status $1
18637 exit $1
18638} # as_fn_exit
18639
18640# as_fn_unset VAR
18641# ---------------
18642# Portably unset VAR.
18643as_fn_unset ()
18644{
18645 { eval $1=; unset $1;}
18646}
18647as_unset=as_fn_unset
18648# as_fn_append VAR VALUE
18649# ----------------------
18650# Append the text in VALUE to the end of the definition contained in VAR. Take
18651# advantage of any shell optimizations that allow amortized linear growth over
18652# repeated appends, instead of the typical quadratic growth present in naive
18653# implementations.
18654if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18655 eval 'as_fn_append ()
18656 {
18657 eval $1+=\$2
18658 }'
18659else
18660 as_fn_append ()
18661 {
18662 eval $1=\$$1\$2
18663 }
18664fi # as_fn_append
18665
18666# as_fn_arith ARG...
18667# ------------------
18668# Perform arithmetic evaluation on the ARGs, and store the result in the
18669# global $as_val. Take advantage of shells that can avoid forks. The arguments
18670# must be portable across $(()) and expr.
18671if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18672 eval 'as_fn_arith ()
18673 {
18674 as_val=$(( $* ))
18675 }'
18676else
18677 as_fn_arith ()
18678 {
18679 as_val=`expr "$@" || test $? -eq 1`
18680 }
18681fi # as_fn_arith
18682
18683
18684if expr a : '\(a\)' >/dev/null 2>&1 &&
18685 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18686 as_expr=expr
18687else
18688 as_expr=false
18689fi
18690
18691if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18692 as_basename=basename
18693else
18694 as_basename=false
18695fi
18696
18697if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18698 as_dirname=dirname
18699else
18700 as_dirname=false
18701fi
18702
18703as_me=`$as_basename -- "$0" ||
18704$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18705 X"$0" : 'X\(//\)$' \| \
18706 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18707$as_echo X/"$0" |
18708 sed '/^.*\/\([^/][^/]*\)\/*$/{
18709 s//\1/
18710 q
18711 }
18712 /^X\/\(\/\/\)$/{
18713 s//\1/
18714 q
18715 }
18716 /^X\/\(\/\).*/{
18717 s//\1/
18718 q
18719 }
18720 s/.*/./; q'`
18721
18722# Avoid depending upon Character Ranges.
18723as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18724as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18725as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18726as_cr_digits='0123456789'
18727as_cr_alnum=$as_cr_Letters$as_cr_digits
18728
18729ECHO_C= ECHO_N= ECHO_T=
18730case `echo -n x` in #(((((
18731-n*)
18732 case `echo 'xy\c'` in
18733 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18734 xy) ECHO_C='\c';;
18735 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18736 ECHO_T=' ';;
18737 esac;;
18738*)
18739 ECHO_N='-n';;
18740esac
18741
18742rm -f conf$$ conf$$.exe conf$$.file
18743if test -d conf$$.dir; then
18744 rm -f conf$$.dir/conf$$.file
18745else
18746 rm -f conf$$.dir
18747 mkdir conf$$.dir 2>/dev/null
18748fi
18749if (echo >conf$$.file) 2>/dev/null; then
18750 if ln -s conf$$.file conf$$ 2>/dev/null; then
18751 as_ln_s='ln -s'
18752 # ... but there are two gotchas:
18753 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18754 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18755 # In both cases, we have to default to `cp -pR'.
18756 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18757 as_ln_s='cp -pR'
18758 elif ln conf$$.file conf$$ 2>/dev/null; then
18759 as_ln_s=ln
18760 else
18761 as_ln_s='cp -pR'
18762 fi
18763else
18764 as_ln_s='cp -pR'
18765fi
18766rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18767rmdir conf$$.dir 2>/dev/null
18768
18769
18770# as_fn_mkdir_p
18771# -------------
18772# Create "$as_dir" as a directory, including parents if necessary.
18773as_fn_mkdir_p ()
18774{
18775
18776 case $as_dir in #(
18777 -*) as_dir=./$as_dir;;
18778 esac
18779 test -d "$as_dir" || eval $as_mkdir_p || {
18780 as_dirs=
18781 while :; do
18782 case $as_dir in #(
18783 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18784 *) as_qdir=$as_dir;;
18785 esac
18786 as_dirs="'$as_qdir' $as_dirs"
18787 as_dir=`$as_dirname -- "$as_dir" ||
18788$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18789 X"$as_dir" : 'X\(//\)[^/]' \| \
18790 X"$as_dir" : 'X\(//\)$' \| \
18791 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18792$as_echo X"$as_dir" |
18793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18794 s//\1/
18795 q
18796 }
18797 /^X\(\/\/\)[^/].*/{
18798 s//\1/
18799 q
18800 }
18801 /^X\(\/\/\)$/{
18802 s//\1/
18803 q
18804 }
18805 /^X\(\/\).*/{
18806 s//\1/
18807 q
18808 }
18809 s/.*/./; q'`
18810 test -d "$as_dir" && break
18811 done
18812 test -z "$as_dirs" || eval "mkdir $as_dirs"
18813 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18814
18815
18816} # as_fn_mkdir_p
18817if mkdir -p . 2>/dev/null; then
18818 as_mkdir_p='mkdir -p "$as_dir"'
18819else
18820 test -d ./-p && rmdir ./-p
18821 as_mkdir_p=false
18822fi
18823
18824
18825# as_fn_executable_p FILE
18826# -----------------------
18827# Test if FILE is an executable regular file.
18828as_fn_executable_p ()
18829{
18830 test -f "$1" && test -x "$1"
18831} # as_fn_executable_p
18832as_test_x='test -x'
18833as_executable_p=as_fn_executable_p
18834
18835# Sed expression to map a string onto a valid CPP name.
18836as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18837
18838# Sed expression to map a string onto a valid variable name.
18839as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18840
18841
18842exec 6>&1
18843## ----------------------------------- ##
18844## Main body of $CONFIG_STATUS script. ##
18845## ----------------------------------- ##
18846_ASEOF
18847test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18848
18849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18850# Save the log message, to keep $0 and so on meaningful, and to
18851# report actual input values of CONFIG_FILES etc. instead of their
18852# values after options handling.
18853ac_log="
Jeff Thompson93a24162013-09-27 13:28:13 -070018854This file was extended by ndn-cpp $as_me 0.2, which was
Jeff Thompson39128c62013-06-19 14:08:51 -070018855generated by GNU Autoconf 2.69. Invocation command line was
18856
18857 CONFIG_FILES = $CONFIG_FILES
18858 CONFIG_HEADERS = $CONFIG_HEADERS
18859 CONFIG_LINKS = $CONFIG_LINKS
18860 CONFIG_COMMANDS = $CONFIG_COMMANDS
18861 $ $0 $@
18862
18863on `(hostname || uname -n) 2>/dev/null | sed 1q`
18864"
18865
18866_ACEOF
18867
18868case $ac_config_files in *"
18869"*) set x $ac_config_files; shift; ac_config_files=$*;;
18870esac
18871
18872case $ac_config_headers in *"
18873"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18874esac
18875
18876
18877cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18878# Files that config.status was made for.
18879config_files="$ac_config_files"
18880config_headers="$ac_config_headers"
18881config_commands="$ac_config_commands"
18882
18883_ACEOF
18884
18885cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18886ac_cs_usage="\
18887\`$as_me' instantiates files and other configuration actions
18888from templates according to the current configuration. Unless the files
18889and actions are specified as TAGs, all are instantiated by default.
18890
18891Usage: $0 [OPTION]... [TAG]...
18892
18893 -h, --help print this help, then exit
18894 -V, --version print version number and configuration settings, then exit
18895 --config print configuration, then exit
18896 -q, --quiet, --silent
18897 do not print progress messages
18898 -d, --debug don't remove temporary files
18899 --recheck update $as_me by reconfiguring in the same conditions
18900 --file=FILE[:TEMPLATE]
18901 instantiate the configuration file FILE
18902 --header=FILE[:TEMPLATE]
18903 instantiate the configuration header FILE
18904
18905Configuration files:
18906$config_files
18907
18908Configuration headers:
18909$config_headers
18910
18911Configuration commands:
18912$config_commands
18913
Jeff Thompson93a24162013-09-27 13:28:13 -070018914Report bugs to <ndn-lib@lists.cs.ucla.edu>.
Jeff Thompson39128c62013-06-19 14:08:51 -070018915ndn-cpp home page: <https://github.com/named-data/ndn-cpp>."
18916
18917_ACEOF
18918cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18919ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18920ac_cs_version="\\
Jeff Thompson93a24162013-09-27 13:28:13 -070018921ndn-cpp config.status 0.2
Jeff Thompson39128c62013-06-19 14:08:51 -070018922configured by $0, generated by GNU Autoconf 2.69,
18923 with options \\"\$ac_cs_config\\"
18924
18925Copyright (C) 2012 Free Software Foundation, Inc.
18926This config.status script is free software; the Free Software Foundation
18927gives unlimited permission to copy, distribute and modify it."
18928
18929ac_pwd='$ac_pwd'
18930srcdir='$srcdir'
18931INSTALL='$INSTALL'
18932MKDIR_P='$MKDIR_P'
18933AWK='$AWK'
18934test -n "\$AWK" || AWK=awk
18935_ACEOF
18936
18937cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18938# The default lists apply if the user does not specify any file.
18939ac_need_defaults=:
18940while test $# != 0
18941do
18942 case $1 in
18943 --*=?*)
18944 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18945 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18946 ac_shift=:
18947 ;;
18948 --*=)
18949 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18950 ac_optarg=
18951 ac_shift=:
18952 ;;
18953 *)
18954 ac_option=$1
18955 ac_optarg=$2
18956 ac_shift=shift
18957 ;;
18958 esac
18959
18960 case $ac_option in
18961 # Handling of the options.
18962 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18963 ac_cs_recheck=: ;;
18964 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18965 $as_echo "$ac_cs_version"; exit ;;
18966 --config | --confi | --conf | --con | --co | --c )
18967 $as_echo "$ac_cs_config"; exit ;;
18968 --debug | --debu | --deb | --de | --d | -d )
18969 debug=: ;;
18970 --file | --fil | --fi | --f )
18971 $ac_shift
18972 case $ac_optarg in
18973 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18974 '') as_fn_error $? "missing file argument" ;;
18975 esac
18976 as_fn_append CONFIG_FILES " '$ac_optarg'"
18977 ac_need_defaults=false;;
18978 --header | --heade | --head | --hea )
18979 $ac_shift
18980 case $ac_optarg in
18981 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18982 esac
18983 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18984 ac_need_defaults=false;;
18985 --he | --h)
18986 # Conflict between --help and --header
18987 as_fn_error $? "ambiguous option: \`$1'
18988Try \`$0 --help' for more information.";;
18989 --help | --hel | -h )
18990 $as_echo "$ac_cs_usage"; exit ;;
18991 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18992 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18993 ac_cs_silent=: ;;
18994
18995 # This is an error.
18996 -*) as_fn_error $? "unrecognized option: \`$1'
18997Try \`$0 --help' for more information." ;;
18998
18999 *) as_fn_append ac_config_targets " $1"
19000 ac_need_defaults=false ;;
19001
19002 esac
19003 shift
19004done
19005
19006ac_configure_extra_args=
19007
19008if $ac_cs_silent; then
19009 exec 6>/dev/null
19010 ac_configure_extra_args="$ac_configure_extra_args --silent"
19011fi
19012
19013_ACEOF
19014cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19015if \$ac_cs_recheck; then
19016 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19017 shift
19018 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19019 CONFIG_SHELL='$SHELL'
19020 export CONFIG_SHELL
19021 exec "\$@"
19022fi
19023
19024_ACEOF
19025cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19026exec 5>>config.log
19027{
19028 echo
19029 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19030## Running $as_me. ##
19031_ASBOX
19032 $as_echo "$ac_log"
19033} >&5
19034
19035_ACEOF
19036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19037#
19038# INIT-COMMANDS
19039#
19040AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19041
Jeff Thompson4f031642013-08-05 11:03:16 -070019042
19043# The HP-UX ksh and POSIX shell print the target directory to stdout
19044# if CDPATH is set.
19045(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19046
19047sed_quote_subst='$sed_quote_subst'
19048double_quote_subst='$double_quote_subst'
19049delay_variable_subst='$delay_variable_subst'
19050macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19051macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19052enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19053enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19054pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19055enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19056SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19057ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19058PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19059host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19060host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19061host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19062build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19063build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19064build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19065SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19066Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19067GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19068EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19069FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19070LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19071NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19072LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19073max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19074ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19075exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19076lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19077lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19078lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19079lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19080lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19081reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19082reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19083OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19084deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19085file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19086file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19087want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19088DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19089sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19090AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19091AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19092archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19093STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19094RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19095old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19096old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19097old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19098lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19099CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19100CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19101compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19102GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19103lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19104lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19105lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19106lt_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"`'
19107nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19108lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19109objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19110MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19111lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19112lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19113lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19114lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19115lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19116need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19117MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19118DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19119NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19120LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19121OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19122OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19123libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19124shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19125extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19126archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19127enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19128export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19129whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19130compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19131old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19132old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19133archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19134archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19135module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19136module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19137with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19138allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19139no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19140hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19141hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19142hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19143hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19144hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19145hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19146hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19147inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19148link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19149always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19150export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19151exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19152include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19153prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19154postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19155file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19156variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19157need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19158need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19159version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19160runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19161shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19162shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19163libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19164library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19165soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19166install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19167postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19168postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19169finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19170finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19171hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19172sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19173sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19174hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19175enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19176enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19177enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19178old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19179striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19180compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19181predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19182postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19183predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19184postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19185compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19186LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19187reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19188reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19189old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19190compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19191GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19192lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19193lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19194lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19195lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19196lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19197archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19198enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19199export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19200whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19201compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19202old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19203old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19204archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19205archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19206module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19207module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19208with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19209allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19210no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19211hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19212hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19213hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19214hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19215hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19216hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19217hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19218inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19219link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19220always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19221export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19222exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19223include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19224prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19225postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19226file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19227hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19228compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19229predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19230postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19231predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19232postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19233compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19234
19235LTCC='$LTCC'
19236LTCFLAGS='$LTCFLAGS'
19237compiler='$compiler_DEFAULT'
19238
19239# A function that is used when there is no print builtin or printf.
19240func_fallback_echo ()
19241{
19242 eval 'cat <<_LTECHO_EOF
19243\$1
19244_LTECHO_EOF'
19245}
19246
19247# Quote evaled strings.
19248for var in SHELL \
19249ECHO \
19250PATH_SEPARATOR \
19251SED \
19252GREP \
19253EGREP \
19254FGREP \
19255LD \
19256NM \
19257LN_S \
19258lt_SP2NL \
19259lt_NL2SP \
19260reload_flag \
19261OBJDUMP \
19262deplibs_check_method \
19263file_magic_cmd \
19264file_magic_glob \
19265want_nocaseglob \
19266DLLTOOL \
19267sharedlib_from_linklib_cmd \
19268AR \
19269AR_FLAGS \
19270archiver_list_spec \
19271STRIP \
19272RANLIB \
19273CC \
19274CFLAGS \
19275compiler \
19276lt_cv_sys_global_symbol_pipe \
19277lt_cv_sys_global_symbol_to_cdecl \
19278lt_cv_sys_global_symbol_to_c_name_address \
19279lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19280nm_file_list_spec \
19281lt_prog_compiler_no_builtin_flag \
19282lt_prog_compiler_pic \
19283lt_prog_compiler_wl \
19284lt_prog_compiler_static \
19285lt_cv_prog_compiler_c_o \
19286need_locks \
19287MANIFEST_TOOL \
19288DSYMUTIL \
19289NMEDIT \
19290LIPO \
19291OTOOL \
19292OTOOL64 \
19293shrext_cmds \
19294export_dynamic_flag_spec \
19295whole_archive_flag_spec \
19296compiler_needs_object \
19297with_gnu_ld \
19298allow_undefined_flag \
19299no_undefined_flag \
19300hardcode_libdir_flag_spec \
19301hardcode_libdir_separator \
19302exclude_expsyms \
19303include_expsyms \
19304file_list_spec \
19305variables_saved_for_relink \
19306libname_spec \
19307library_names_spec \
19308soname_spec \
19309install_override_mode \
19310finish_eval \
19311old_striplib \
19312striplib \
19313compiler_lib_search_dirs \
19314predep_objects \
19315postdep_objects \
19316predeps \
19317postdeps \
19318compiler_lib_search_path \
19319LD_CXX \
19320reload_flag_CXX \
19321compiler_CXX \
19322lt_prog_compiler_no_builtin_flag_CXX \
19323lt_prog_compiler_pic_CXX \
19324lt_prog_compiler_wl_CXX \
19325lt_prog_compiler_static_CXX \
19326lt_cv_prog_compiler_c_o_CXX \
19327export_dynamic_flag_spec_CXX \
19328whole_archive_flag_spec_CXX \
19329compiler_needs_object_CXX \
19330with_gnu_ld_CXX \
19331allow_undefined_flag_CXX \
19332no_undefined_flag_CXX \
19333hardcode_libdir_flag_spec_CXX \
19334hardcode_libdir_separator_CXX \
19335exclude_expsyms_CXX \
19336include_expsyms_CXX \
19337file_list_spec_CXX \
19338compiler_lib_search_dirs_CXX \
19339predep_objects_CXX \
19340postdep_objects_CXX \
19341predeps_CXX \
19342postdeps_CXX \
19343compiler_lib_search_path_CXX; do
19344 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19345 *[\\\\\\\`\\"\\\$]*)
19346 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19347 ;;
19348 *)
19349 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19350 ;;
19351 esac
19352done
19353
19354# Double-quote double-evaled strings.
19355for var in reload_cmds \
19356old_postinstall_cmds \
19357old_postuninstall_cmds \
19358old_archive_cmds \
19359extract_expsyms_cmds \
19360old_archive_from_new_cmds \
19361old_archive_from_expsyms_cmds \
19362archive_cmds \
19363archive_expsym_cmds \
19364module_cmds \
19365module_expsym_cmds \
19366export_symbols_cmds \
19367prelink_cmds \
19368postlink_cmds \
19369postinstall_cmds \
19370postuninstall_cmds \
19371finish_cmds \
19372sys_lib_search_path_spec \
19373sys_lib_dlsearch_path_spec \
19374reload_cmds_CXX \
19375old_archive_cmds_CXX \
19376old_archive_from_new_cmds_CXX \
19377old_archive_from_expsyms_cmds_CXX \
19378archive_cmds_CXX \
19379archive_expsym_cmds_CXX \
19380module_cmds_CXX \
19381module_expsym_cmds_CXX \
19382export_symbols_cmds_CXX \
19383prelink_cmds_CXX \
19384postlink_cmds_CXX; do
19385 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19386 *[\\\\\\\`\\"\\\$]*)
19387 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19388 ;;
19389 *)
19390 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19391 ;;
19392 esac
19393done
19394
19395ac_aux_dir='$ac_aux_dir'
19396xsi_shell='$xsi_shell'
19397lt_shell_append='$lt_shell_append'
19398
19399# See if we are running on zsh, and set the options which allow our
19400# commands through without removal of \ escapes INIT.
19401if test -n "\${ZSH_VERSION+set}" ; then
19402 setopt NO_GLOB_SUBST
19403fi
19404
19405
19406 PACKAGE='$PACKAGE'
19407 VERSION='$VERSION'
19408 TIMESTAMP='$TIMESTAMP'
19409 RM='$RM'
19410 ofile='$ofile'
19411
19412
19413
19414
19415
19416
Jeff Thompson39128c62013-06-19 14:08:51 -070019417_ACEOF
19418
19419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19420
19421# Handling of arguments.
19422for ac_config_target in $ac_config_targets
19423do
19424 case $ac_config_target in
19425 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19426 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Jeff Thompson4f031642013-08-05 11:03:16 -070019427 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Jeff Thompson39128c62013-06-19 14:08:51 -070019428 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19429
19430 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19431 esac
19432done
19433
19434
19435# If the user did not use the arguments to specify the items to instantiate,
19436# then the envvar interface is used. Set only those that are not.
19437# We use the long form for the default assignment because of an extremely
19438# bizarre bug on SunOS 4.1.3.
19439if $ac_need_defaults; then
19440 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19441 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19442 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19443fi
19444
19445# Have a temporary directory for convenience. Make it in the build tree
19446# simply because there is no reason against having it here, and in addition,
19447# creating and moving files from /tmp can sometimes cause problems.
19448# Hook for its removal unless debugging.
19449# Note that there is a small window in which the directory will not be cleaned:
19450# after its creation but before its name has been assigned to `$tmp'.
19451$debug ||
19452{
19453 tmp= ac_tmp=
19454 trap 'exit_status=$?
19455 : "${ac_tmp:=$tmp}"
19456 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19457' 0
19458 trap 'as_fn_exit 1' 1 2 13 15
19459}
19460# Create a (secure) tmp directory for tmp files.
19461
19462{
19463 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19464 test -d "$tmp"
19465} ||
19466{
19467 tmp=./conf$$-$RANDOM
19468 (umask 077 && mkdir "$tmp")
19469} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19470ac_tmp=$tmp
19471
19472# Set up the scripts for CONFIG_FILES section.
19473# No need to generate them if there are no CONFIG_FILES.
19474# This happens for instance with `./config.status config.h'.
19475if test -n "$CONFIG_FILES"; then
19476
19477
19478ac_cr=`echo X | tr X '\015'`
19479# On cygwin, bash can eat \r inside `` if the user requested igncr.
19480# But we know of no other shell where ac_cr would be empty at this
19481# point, so we can use a bashism as a fallback.
19482if test "x$ac_cr" = x; then
19483 eval ac_cr=\$\'\\r\'
19484fi
19485ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19486if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19487 ac_cs_awk_cr='\\r'
19488else
19489 ac_cs_awk_cr=$ac_cr
19490fi
19491
19492echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19493_ACEOF
19494
19495
19496{
19497 echo "cat >conf$$subs.awk <<_ACEOF" &&
19498 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19499 echo "_ACEOF"
19500} >conf$$subs.sh ||
19501 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19502ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19503ac_delim='%!_!# '
19504for ac_last_try in false false false false false :; do
19505 . ./conf$$subs.sh ||
19506 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19507
19508 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19509 if test $ac_delim_n = $ac_delim_num; then
19510 break
19511 elif $ac_last_try; then
19512 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19513 else
19514 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19515 fi
19516done
19517rm -f conf$$subs.sh
19518
19519cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19520cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19521_ACEOF
19522sed -n '
19523h
19524s/^/S["/; s/!.*/"]=/
19525p
19526g
19527s/^[^!]*!//
19528:repl
19529t repl
19530s/'"$ac_delim"'$//
19531t delim
19532:nl
19533h
19534s/\(.\{148\}\)..*/\1/
19535t more1
19536s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19537p
19538n
19539b repl
19540:more1
19541s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19542p
19543g
19544s/.\{148\}//
19545t nl
19546:delim
19547h
19548s/\(.\{148\}\)..*/\1/
19549t more2
19550s/["\\]/\\&/g; s/^/"/; s/$/"/
19551p
19552b
19553:more2
19554s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19555p
19556g
19557s/.\{148\}//
19558t delim
19559' <conf$$subs.awk | sed '
19560/^[^""]/{
19561 N
19562 s/\n//
19563}
19564' >>$CONFIG_STATUS || ac_write_fail=1
19565rm -f conf$$subs.awk
19566cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19567_ACAWK
19568cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19569 for (key in S) S_is_set[key] = 1
19570 FS = ""
19571
19572}
19573{
19574 line = $ 0
19575 nfields = split(line, field, "@")
19576 substed = 0
19577 len = length(field[1])
19578 for (i = 2; i < nfields; i++) {
19579 key = field[i]
19580 keylen = length(key)
19581 if (S_is_set[key]) {
19582 value = S[key]
19583 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19584 len += length(value) + length(field[++i])
19585 substed = 1
19586 } else
19587 len += 1 + keylen
19588 }
19589
19590 print line
19591}
19592
19593_ACAWK
19594_ACEOF
19595cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19596if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19597 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19598else
19599 cat
19600fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19601 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19602_ACEOF
19603
19604# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19605# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19606# trailing colons and then remove the whole line if VPATH becomes empty
19607# (actually we leave an empty line to preserve line numbers).
19608if test "x$srcdir" = x.; then
19609 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19610h
19611s///
19612s/^/:/
19613s/[ ]*$/:/
19614s/:\$(srcdir):/:/g
19615s/:\${srcdir}:/:/g
19616s/:@srcdir@:/:/g
19617s/^:*//
19618s/:*$//
19619x
19620s/\(=[ ]*\).*/\1/
19621G
19622s/\n//
19623s/^[^=]*=[ ]*$//
19624}'
19625fi
19626
19627cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19628fi # test -n "$CONFIG_FILES"
19629
19630# Set up the scripts for CONFIG_HEADERS section.
19631# No need to generate them if there are no CONFIG_HEADERS.
19632# This happens for instance with `./config.status Makefile'.
19633if test -n "$CONFIG_HEADERS"; then
19634cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19635BEGIN {
19636_ACEOF
19637
19638# Transform confdefs.h into an awk script `defines.awk', embedded as
19639# here-document in config.status, that substitutes the proper values into
19640# config.h.in to produce config.h.
19641
19642# Create a delimiter string that does not exist in confdefs.h, to ease
19643# handling of long lines.
19644ac_delim='%!_!# '
19645for ac_last_try in false false :; do
19646 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19647 if test -z "$ac_tt"; then
19648 break
19649 elif $ac_last_try; then
19650 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19651 else
19652 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19653 fi
19654done
19655
19656# For the awk script, D is an array of macro values keyed by name,
19657# likewise P contains macro parameters if any. Preserve backslash
19658# newline sequences.
19659
19660ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19661sed -n '
19662s/.\{148\}/&'"$ac_delim"'/g
19663t rset
19664:rset
19665s/^[ ]*#[ ]*define[ ][ ]*/ /
19666t def
19667d
19668:def
19669s/\\$//
19670t bsnl
19671s/["\\]/\\&/g
19672s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19673D["\1"]=" \3"/p
19674s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19675d
19676:bsnl
19677s/["\\]/\\&/g
19678s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19679D["\1"]=" \3\\\\\\n"\\/p
19680t cont
19681s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19682t cont
19683d
19684:cont
19685n
19686s/.\{148\}/&'"$ac_delim"'/g
19687t clear
19688:clear
19689s/\\$//
19690t bsnlc
19691s/["\\]/\\&/g; s/^/"/; s/$/"/p
19692d
19693:bsnlc
19694s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19695b cont
19696' <confdefs.h | sed '
19697s/'"$ac_delim"'/"\\\
19698"/g' >>$CONFIG_STATUS || ac_write_fail=1
19699
19700cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19701 for (key in D) D_is_set[key] = 1
19702 FS = ""
19703}
19704/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19705 line = \$ 0
19706 split(line, arg, " ")
19707 if (arg[1] == "#") {
19708 defundef = arg[2]
19709 mac1 = arg[3]
19710 } else {
19711 defundef = substr(arg[1], 2)
19712 mac1 = arg[2]
19713 }
19714 split(mac1, mac2, "(") #)
19715 macro = mac2[1]
19716 prefix = substr(line, 1, index(line, defundef) - 1)
19717 if (D_is_set[macro]) {
19718 # Preserve the white space surrounding the "#".
19719 print prefix "define", macro P[macro] D[macro]
19720 next
19721 } else {
19722 # Replace #undef with comments. This is necessary, for example,
19723 # in the case of _POSIX_SOURCE, which is predefined and required
19724 # on some systems where configure will not decide to define it.
19725 if (defundef == "undef") {
19726 print "/*", prefix defundef, macro, "*/"
19727 next
19728 }
19729 }
19730}
19731{ print }
19732_ACAWK
19733_ACEOF
19734cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19735 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19736fi # test -n "$CONFIG_HEADERS"
19737
19738
19739eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19740shift
19741for ac_tag
19742do
19743 case $ac_tag in
19744 :[FHLC]) ac_mode=$ac_tag; continue;;
19745 esac
19746 case $ac_mode$ac_tag in
19747 :[FHL]*:*);;
19748 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19749 :[FH]-) ac_tag=-:-;;
19750 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19751 esac
19752 ac_save_IFS=$IFS
19753 IFS=:
19754 set x $ac_tag
19755 IFS=$ac_save_IFS
19756 shift
19757 ac_file=$1
19758 shift
19759
19760 case $ac_mode in
19761 :L) ac_source=$1;;
19762 :[FH])
19763 ac_file_inputs=
19764 for ac_f
19765 do
19766 case $ac_f in
19767 -) ac_f="$ac_tmp/stdin";;
19768 *) # Look for the file first in the build tree, then in the source tree
19769 # (if the path is not absolute). The absolute path cannot be DOS-style,
19770 # because $ac_f cannot contain `:'.
19771 test -f "$ac_f" ||
19772 case $ac_f in
19773 [\\/$]*) false;;
19774 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19775 esac ||
19776 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19777 esac
19778 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19779 as_fn_append ac_file_inputs " '$ac_f'"
19780 done
19781
19782 # Let's still pretend it is `configure' which instantiates (i.e., don't
19783 # use $as_me), people would be surprised to read:
19784 # /* config.h. Generated by config.status. */
19785 configure_input='Generated from '`
19786 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19787 `' by configure.'
19788 if test x"$ac_file" != x-; then
19789 configure_input="$ac_file. $configure_input"
19790 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19791$as_echo "$as_me: creating $ac_file" >&6;}
19792 fi
19793 # Neutralize special characters interpreted by sed in replacement strings.
19794 case $configure_input in #(
19795 *\&* | *\|* | *\\* )
19796 ac_sed_conf_input=`$as_echo "$configure_input" |
19797 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19798 *) ac_sed_conf_input=$configure_input;;
19799 esac
19800
19801 case $ac_tag in
19802 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19803 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19804 esac
19805 ;;
19806 esac
19807
19808 ac_dir=`$as_dirname -- "$ac_file" ||
19809$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19810 X"$ac_file" : 'X\(//\)[^/]' \| \
19811 X"$ac_file" : 'X\(//\)$' \| \
19812 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19813$as_echo X"$ac_file" |
19814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19815 s//\1/
19816 q
19817 }
19818 /^X\(\/\/\)[^/].*/{
19819 s//\1/
19820 q
19821 }
19822 /^X\(\/\/\)$/{
19823 s//\1/
19824 q
19825 }
19826 /^X\(\/\).*/{
19827 s//\1/
19828 q
19829 }
19830 s/.*/./; q'`
19831 as_dir="$ac_dir"; as_fn_mkdir_p
19832 ac_builddir=.
19833
19834case "$ac_dir" in
19835.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19836*)
19837 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19838 # A ".." for each directory in $ac_dir_suffix.
19839 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19840 case $ac_top_builddir_sub in
19841 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19842 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19843 esac ;;
19844esac
19845ac_abs_top_builddir=$ac_pwd
19846ac_abs_builddir=$ac_pwd$ac_dir_suffix
19847# for backward compatibility:
19848ac_top_builddir=$ac_top_build_prefix
19849
19850case $srcdir in
19851 .) # We are building in place.
19852 ac_srcdir=.
19853 ac_top_srcdir=$ac_top_builddir_sub
19854 ac_abs_top_srcdir=$ac_pwd ;;
19855 [\\/]* | ?:[\\/]* ) # Absolute name.
19856 ac_srcdir=$srcdir$ac_dir_suffix;
19857 ac_top_srcdir=$srcdir
19858 ac_abs_top_srcdir=$srcdir ;;
19859 *) # Relative name.
19860 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19861 ac_top_srcdir=$ac_top_build_prefix$srcdir
19862 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19863esac
19864ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19865
19866
19867 case $ac_mode in
19868 :F)
19869 #
19870 # CONFIG_FILE
19871 #
19872
19873 case $INSTALL in
19874 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19875 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19876 esac
19877 ac_MKDIR_P=$MKDIR_P
19878 case $MKDIR_P in
19879 [\\/$]* | ?:[\\/]* ) ;;
19880 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19881 esac
19882_ACEOF
19883
19884cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19885# If the template does not know about datarootdir, expand it.
19886# FIXME: This hack should be removed a few years after 2.60.
19887ac_datarootdir_hack=; ac_datarootdir_seen=
19888ac_sed_dataroot='
19889/datarootdir/ {
19890 p
19891 q
19892}
19893/@datadir@/p
19894/@docdir@/p
19895/@infodir@/p
19896/@localedir@/p
19897/@mandir@/p'
19898case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19899*datarootdir*) ac_datarootdir_seen=yes;;
19900*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19902$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19903_ACEOF
19904cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19905 ac_datarootdir_hack='
19906 s&@datadir@&$datadir&g
19907 s&@docdir@&$docdir&g
19908 s&@infodir@&$infodir&g
19909 s&@localedir@&$localedir&g
19910 s&@mandir@&$mandir&g
19911 s&\\\${datarootdir}&$datarootdir&g' ;;
19912esac
19913_ACEOF
19914
19915# Neutralize VPATH when `$srcdir' = `.'.
19916# Shell code in configure.ac might set extrasub.
19917# FIXME: do we really want to maintain this feature?
19918cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19919ac_sed_extra="$ac_vpsub
19920$extrasub
19921_ACEOF
19922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19923:t
19924/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19925s|@configure_input@|$ac_sed_conf_input|;t t
19926s&@top_builddir@&$ac_top_builddir_sub&;t t
19927s&@top_build_prefix@&$ac_top_build_prefix&;t t
19928s&@srcdir@&$ac_srcdir&;t t
19929s&@abs_srcdir@&$ac_abs_srcdir&;t t
19930s&@top_srcdir@&$ac_top_srcdir&;t t
19931s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19932s&@builddir@&$ac_builddir&;t t
19933s&@abs_builddir@&$ac_abs_builddir&;t t
19934s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19935s&@INSTALL@&$ac_INSTALL&;t t
19936s&@MKDIR_P@&$ac_MKDIR_P&;t t
19937$ac_datarootdir_hack
19938"
19939eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19940 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19941
19942test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19943 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19944 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19945 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19947which seems to be undefined. Please make sure it is defined" >&5
19948$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19949which seems to be undefined. Please make sure it is defined" >&2;}
19950
19951 rm -f "$ac_tmp/stdin"
19952 case $ac_file in
19953 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19954 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19955 esac \
19956 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19957 ;;
19958 :H)
19959 #
19960 # CONFIG_HEADER
19961 #
19962 if test x"$ac_file" != x-; then
19963 {
19964 $as_echo "/* $configure_input */" \
19965 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19966 } >"$ac_tmp/config.h" \
19967 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19968 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19970$as_echo "$as_me: $ac_file is unchanged" >&6;}
19971 else
19972 rm -f "$ac_file"
19973 mv "$ac_tmp/config.h" "$ac_file" \
19974 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19975 fi
19976 else
19977 $as_echo "/* $configure_input */" \
19978 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19979 || as_fn_error $? "could not create -" "$LINENO" 5
19980 fi
19981# Compute "$ac_file"'s index in $config_headers.
19982_am_arg="$ac_file"
19983_am_stamp_count=1
19984for _am_header in $config_headers :; do
19985 case $_am_header in
19986 $_am_arg | $_am_arg:* )
19987 break ;;
19988 * )
19989 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19990 esac
19991done
19992echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19993$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19994 X"$_am_arg" : 'X\(//\)[^/]' \| \
19995 X"$_am_arg" : 'X\(//\)$' \| \
19996 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19997$as_echo X"$_am_arg" |
19998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19999 s//\1/
20000 q
20001 }
20002 /^X\(\/\/\)[^/].*/{
20003 s//\1/
20004 q
20005 }
20006 /^X\(\/\/\)$/{
20007 s//\1/
20008 q
20009 }
20010 /^X\(\/\).*/{
20011 s//\1/
20012 q
20013 }
20014 s/.*/./; q'`/stamp-h$_am_stamp_count
20015 ;;
20016
20017 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20018$as_echo "$as_me: executing $ac_file commands" >&6;}
20019 ;;
20020 esac
20021
20022
20023 case $ac_file$ac_mode in
20024 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20025 # Older Autoconf quotes --file arguments for eval, but not when files
20026 # are listed without --file. Let's play safe and only enable the eval
20027 # if we detect the quoting.
20028 case $CONFIG_FILES in
20029 *\'*) eval set x "$CONFIG_FILES" ;;
20030 *) set x $CONFIG_FILES ;;
20031 esac
20032 shift
20033 for mf
20034 do
20035 # Strip MF so we end up with the name of the file.
20036 mf=`echo "$mf" | sed -e 's/:.*$//'`
20037 # Check whether this is an Automake generated Makefile or not.
20038 # We used to match only the files named 'Makefile.in', but
20039 # some people rename them; so instead we look at the file content.
20040 # Grep'ing the first line is not enough: some people post-process
20041 # each Makefile.in and add a new line on top of each file to say so.
20042 # Grep'ing the whole file is not good either: AIX grep has a line
20043 # limit of 2048, but all sed's we know have understand at least 4000.
20044 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20045 dirpart=`$as_dirname -- "$mf" ||
20046$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20047 X"$mf" : 'X\(//\)[^/]' \| \
20048 X"$mf" : 'X\(//\)$' \| \
20049 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20050$as_echo X"$mf" |
20051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20052 s//\1/
20053 q
20054 }
20055 /^X\(\/\/\)[^/].*/{
20056 s//\1/
20057 q
20058 }
20059 /^X\(\/\/\)$/{
20060 s//\1/
20061 q
20062 }
20063 /^X\(\/\).*/{
20064 s//\1/
20065 q
20066 }
20067 s/.*/./; q'`
20068 else
20069 continue
20070 fi
20071 # Extract the definition of DEPDIR, am__include, and am__quote
20072 # from the Makefile without running 'make'.
20073 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20074 test -z "$DEPDIR" && continue
20075 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20076 test -z "$am__include" && continue
20077 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20078 # Find all dependency output files, they are included files with
20079 # $(DEPDIR) in their names. We invoke sed twice because it is the
20080 # simplest approach to changing $(DEPDIR) to its actual value in the
20081 # expansion.
20082 for file in `sed -n "
20083 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20084 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20085 # Make sure the directory exists.
20086 test -f "$dirpart/$file" && continue
20087 fdir=`$as_dirname -- "$file" ||
20088$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20089 X"$file" : 'X\(//\)[^/]' \| \
20090 X"$file" : 'X\(//\)$' \| \
20091 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20092$as_echo X"$file" |
20093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20094 s//\1/
20095 q
20096 }
20097 /^X\(\/\/\)[^/].*/{
20098 s//\1/
20099 q
20100 }
20101 /^X\(\/\/\)$/{
20102 s//\1/
20103 q
20104 }
20105 /^X\(\/\).*/{
20106 s//\1/
20107 q
20108 }
20109 s/.*/./; q'`
20110 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20111 # echo "creating $dirpart/$file"
20112 echo '# dummy' > "$dirpart/$file"
20113 done
20114 done
20115}
20116 ;;
Jeff Thompson4f031642013-08-05 11:03:16 -070020117 "libtool":C)
20118
20119 # See if we are running on zsh, and set the options which allow our
20120 # commands through without removal of \ escapes.
20121 if test -n "${ZSH_VERSION+set}" ; then
20122 setopt NO_GLOB_SUBST
20123 fi
20124
20125 cfgfile="${ofile}T"
20126 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20127 $RM "$cfgfile"
20128
20129 cat <<_LT_EOF >> "$cfgfile"
20130#! $SHELL
20131
20132# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20133# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20134# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20135# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20136#
20137# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20138# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20139# Foundation, Inc.
20140# Written by Gordon Matzigkeit, 1996
20141#
20142# This file is part of GNU Libtool.
20143#
20144# GNU Libtool is free software; you can redistribute it and/or
20145# modify it under the terms of the GNU General Public License as
20146# published by the Free Software Foundation; either version 2 of
20147# the License, or (at your option) any later version.
20148#
20149# As a special exception to the GNU General Public License,
20150# if you distribute this file as part of a program or library that
20151# is built using GNU Libtool, you may include this file under the
20152# same distribution terms that you use for the rest of that program.
20153#
20154# GNU Libtool is distributed in the hope that it will be useful,
20155# but WITHOUT ANY WARRANTY; without even the implied warranty of
20156# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20157# GNU General Public License for more details.
20158#
20159# You should have received a copy of the GNU General Public License
20160# along with GNU Libtool; see the file COPYING. If not, a copy
20161# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20162# obtained by writing to the Free Software Foundation, Inc.,
20163# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20164
20165
20166# The names of the tagged configurations supported by this script.
20167available_tags="CXX "
20168
20169# ### BEGIN LIBTOOL CONFIG
20170
20171# Which release of libtool.m4 was used?
20172macro_version=$macro_version
20173macro_revision=$macro_revision
20174
20175# Whether or not to build shared libraries.
20176build_libtool_libs=$enable_shared
20177
20178# Whether or not to build static libraries.
20179build_old_libs=$enable_static
20180
20181# What type of objects to build.
20182pic_mode=$pic_mode
20183
20184# Whether or not to optimize for fast installation.
20185fast_install=$enable_fast_install
20186
20187# Shell to use when invoking shell scripts.
20188SHELL=$lt_SHELL
20189
20190# An echo program that protects backslashes.
20191ECHO=$lt_ECHO
20192
20193# The PATH separator for the build system.
20194PATH_SEPARATOR=$lt_PATH_SEPARATOR
20195
20196# The host system.
20197host_alias=$host_alias
20198host=$host
20199host_os=$host_os
20200
20201# The build system.
20202build_alias=$build_alias
20203build=$build
20204build_os=$build_os
20205
20206# A sed program that does not truncate output.
20207SED=$lt_SED
20208
20209# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20210Xsed="\$SED -e 1s/^X//"
20211
20212# A grep program that handles long lines.
20213GREP=$lt_GREP
20214
20215# An ERE matcher.
20216EGREP=$lt_EGREP
20217
20218# A literal string matcher.
20219FGREP=$lt_FGREP
20220
20221# A BSD- or MS-compatible name lister.
20222NM=$lt_NM
20223
20224# Whether we need soft or hard links.
20225LN_S=$lt_LN_S
20226
20227# What is the maximum length of a command?
20228max_cmd_len=$max_cmd_len
20229
20230# Object file suffix (normally "o").
20231objext=$ac_objext
20232
20233# Executable file suffix (normally "").
20234exeext=$exeext
20235
20236# whether the shell understands "unset".
20237lt_unset=$lt_unset
20238
20239# turn spaces into newlines.
20240SP2NL=$lt_lt_SP2NL
20241
20242# turn newlines into spaces.
20243NL2SP=$lt_lt_NL2SP
20244
20245# convert \$build file names to \$host format.
20246to_host_file_cmd=$lt_cv_to_host_file_cmd
20247
20248# convert \$build files to toolchain format.
20249to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20250
20251# An object symbol dumper.
20252OBJDUMP=$lt_OBJDUMP
20253
20254# Method to check whether dependent libraries are shared objects.
20255deplibs_check_method=$lt_deplibs_check_method
20256
20257# Command to use when deplibs_check_method = "file_magic".
20258file_magic_cmd=$lt_file_magic_cmd
20259
20260# How to find potential files when deplibs_check_method = "file_magic".
20261file_magic_glob=$lt_file_magic_glob
20262
20263# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20264want_nocaseglob=$lt_want_nocaseglob
20265
20266# DLL creation program.
20267DLLTOOL=$lt_DLLTOOL
20268
20269# Command to associate shared and link libraries.
20270sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20271
20272# The archiver.
20273AR=$lt_AR
20274
20275# Flags to create an archive.
20276AR_FLAGS=$lt_AR_FLAGS
20277
20278# How to feed a file listing to the archiver.
20279archiver_list_spec=$lt_archiver_list_spec
20280
20281# A symbol stripping program.
20282STRIP=$lt_STRIP
20283
20284# Commands used to install an old-style archive.
20285RANLIB=$lt_RANLIB
20286old_postinstall_cmds=$lt_old_postinstall_cmds
20287old_postuninstall_cmds=$lt_old_postuninstall_cmds
20288
20289# Whether to use a lock for old archive extraction.
20290lock_old_archive_extraction=$lock_old_archive_extraction
20291
20292# A C compiler.
20293LTCC=$lt_CC
20294
20295# LTCC compiler flags.
20296LTCFLAGS=$lt_CFLAGS
20297
20298# Take the output of nm and produce a listing of raw symbols and C names.
20299global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20300
20301# Transform the output of nm in a proper C declaration.
20302global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20303
20304# Transform the output of nm in a C name address pair.
20305global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20306
20307# Transform the output of nm in a C name address pair when lib prefix is needed.
20308global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20309
20310# Specify filename containing input files for \$NM.
20311nm_file_list_spec=$lt_nm_file_list_spec
20312
20313# The root where to search for dependent libraries,and in which our libraries should be installed.
20314lt_sysroot=$lt_sysroot
20315
20316# The name of the directory that contains temporary libtool files.
20317objdir=$objdir
20318
20319# Used to examine libraries when file_magic_cmd begins with "file".
20320MAGIC_CMD=$MAGIC_CMD
20321
20322# Must we lock files when doing compilation?
20323need_locks=$lt_need_locks
20324
20325# Manifest tool.
20326MANIFEST_TOOL=$lt_MANIFEST_TOOL
20327
20328# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20329DSYMUTIL=$lt_DSYMUTIL
20330
20331# Tool to change global to local symbols on Mac OS X.
20332NMEDIT=$lt_NMEDIT
20333
20334# Tool to manipulate fat objects and archives on Mac OS X.
20335LIPO=$lt_LIPO
20336
20337# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20338OTOOL=$lt_OTOOL
20339
20340# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20341OTOOL64=$lt_OTOOL64
20342
20343# Old archive suffix (normally "a").
20344libext=$libext
20345
20346# Shared library suffix (normally ".so").
20347shrext_cmds=$lt_shrext_cmds
20348
20349# The commands to extract the exported symbol list from a shared archive.
20350extract_expsyms_cmds=$lt_extract_expsyms_cmds
20351
20352# Variables whose values should be saved in libtool wrapper scripts and
20353# restored at link time.
20354variables_saved_for_relink=$lt_variables_saved_for_relink
20355
20356# Do we need the "lib" prefix for modules?
20357need_lib_prefix=$need_lib_prefix
20358
20359# Do we need a version for libraries?
20360need_version=$need_version
20361
20362# Library versioning type.
20363version_type=$version_type
20364
20365# Shared library runtime path variable.
20366runpath_var=$runpath_var
20367
20368# Shared library path variable.
20369shlibpath_var=$shlibpath_var
20370
20371# Is shlibpath searched before the hard-coded library search path?
20372shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20373
20374# Format of library name prefix.
20375libname_spec=$lt_libname_spec
20376
20377# List of archive names. First name is the real one, the rest are links.
20378# The last name is the one that the linker finds with -lNAME
20379library_names_spec=$lt_library_names_spec
20380
20381# The coded name of the library, if different from the real name.
20382soname_spec=$lt_soname_spec
20383
20384# Permission mode override for installation of shared libraries.
20385install_override_mode=$lt_install_override_mode
20386
20387# Command to use after installation of a shared archive.
20388postinstall_cmds=$lt_postinstall_cmds
20389
20390# Command to use after uninstallation of a shared archive.
20391postuninstall_cmds=$lt_postuninstall_cmds
20392
20393# Commands used to finish a libtool library installation in a directory.
20394finish_cmds=$lt_finish_cmds
20395
20396# As "finish_cmds", except a single script fragment to be evaled but
20397# not shown.
20398finish_eval=$lt_finish_eval
20399
20400# Whether we should hardcode library paths into libraries.
20401hardcode_into_libs=$hardcode_into_libs
20402
20403# Compile-time system search path for libraries.
20404sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20405
20406# Run-time system search path for libraries.
20407sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20408
20409# Whether dlopen is supported.
20410dlopen_support=$enable_dlopen
20411
20412# Whether dlopen of programs is supported.
20413dlopen_self=$enable_dlopen_self
20414
20415# Whether dlopen of statically linked programs is supported.
20416dlopen_self_static=$enable_dlopen_self_static
20417
20418# Commands to strip libraries.
20419old_striplib=$lt_old_striplib
20420striplib=$lt_striplib
20421
20422
20423# The linker used to build libraries.
20424LD=$lt_LD
20425
20426# How to create reloadable object files.
20427reload_flag=$lt_reload_flag
20428reload_cmds=$lt_reload_cmds
20429
20430# Commands used to build an old-style archive.
20431old_archive_cmds=$lt_old_archive_cmds
20432
20433# A language specific compiler.
20434CC=$lt_compiler
20435
20436# Is the compiler the GNU compiler?
20437with_gcc=$GCC
20438
20439# Compiler flag to turn off builtin functions.
20440no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20441
20442# Additional compiler flags for building library objects.
20443pic_flag=$lt_lt_prog_compiler_pic
20444
20445# How to pass a linker flag through the compiler.
20446wl=$lt_lt_prog_compiler_wl
20447
20448# Compiler flag to prevent dynamic linking.
20449link_static_flag=$lt_lt_prog_compiler_static
20450
20451# Does compiler simultaneously support -c and -o options?
20452compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20453
20454# Whether or not to add -lc for building shared libraries.
20455build_libtool_need_lc=$archive_cmds_need_lc
20456
20457# Whether or not to disallow shared libs when runtime libs are static.
20458allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20459
20460# Compiler flag to allow reflexive dlopens.
20461export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20462
20463# Compiler flag to generate shared objects directly from archives.
20464whole_archive_flag_spec=$lt_whole_archive_flag_spec
20465
20466# Whether the compiler copes with passing no objects directly.
20467compiler_needs_object=$lt_compiler_needs_object
20468
20469# Create an old-style archive from a shared archive.
20470old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20471
20472# Create a temporary old-style archive to link instead of a shared archive.
20473old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20474
20475# Commands used to build a shared archive.
20476archive_cmds=$lt_archive_cmds
20477archive_expsym_cmds=$lt_archive_expsym_cmds
20478
20479# Commands used to build a loadable module if different from building
20480# a shared archive.
20481module_cmds=$lt_module_cmds
20482module_expsym_cmds=$lt_module_expsym_cmds
20483
20484# Whether we are building with GNU ld or not.
20485with_gnu_ld=$lt_with_gnu_ld
20486
20487# Flag that allows shared libraries with undefined symbols to be built.
20488allow_undefined_flag=$lt_allow_undefined_flag
20489
20490# Flag that enforces no undefined symbols.
20491no_undefined_flag=$lt_no_undefined_flag
20492
20493# Flag to hardcode \$libdir into a binary during linking.
20494# This must work even if \$libdir does not exist
20495hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20496
20497# Whether we need a single "-rpath" flag with a separated argument.
20498hardcode_libdir_separator=$lt_hardcode_libdir_separator
20499
20500# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20501# DIR into the resulting binary.
20502hardcode_direct=$hardcode_direct
20503
20504# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20505# DIR into the resulting binary and the resulting library dependency is
20506# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20507# library is relocated.
20508hardcode_direct_absolute=$hardcode_direct_absolute
20509
20510# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20511# into the resulting binary.
20512hardcode_minus_L=$hardcode_minus_L
20513
20514# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20515# into the resulting binary.
20516hardcode_shlibpath_var=$hardcode_shlibpath_var
20517
20518# Set to "yes" if building a shared library automatically hardcodes DIR
20519# into the library and all subsequent libraries and executables linked
20520# against it.
20521hardcode_automatic=$hardcode_automatic
20522
20523# Set to yes if linker adds runtime paths of dependent libraries
20524# to runtime path list.
20525inherit_rpath=$inherit_rpath
20526
20527# Whether libtool must link a program against all its dependency libraries.
20528link_all_deplibs=$link_all_deplibs
20529
20530# Set to "yes" if exported symbols are required.
20531always_export_symbols=$always_export_symbols
20532
20533# The commands to list exported symbols.
20534export_symbols_cmds=$lt_export_symbols_cmds
20535
20536# Symbols that should not be listed in the preloaded symbols.
20537exclude_expsyms=$lt_exclude_expsyms
20538
20539# Symbols that must always be exported.
20540include_expsyms=$lt_include_expsyms
20541
20542# Commands necessary for linking programs (against libraries) with templates.
20543prelink_cmds=$lt_prelink_cmds
20544
20545# Commands necessary for finishing linking programs.
20546postlink_cmds=$lt_postlink_cmds
20547
20548# Specify filename containing input files.
20549file_list_spec=$lt_file_list_spec
20550
20551# How to hardcode a shared library path into an executable.
20552hardcode_action=$hardcode_action
20553
20554# The directories searched by this compiler when creating a shared library.
20555compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20556
20557# Dependencies to place before and after the objects being linked to
20558# create a shared library.
20559predep_objects=$lt_predep_objects
20560postdep_objects=$lt_postdep_objects
20561predeps=$lt_predeps
20562postdeps=$lt_postdeps
20563
20564# The library search path used internally by the compiler when linking
20565# a shared library.
20566compiler_lib_search_path=$lt_compiler_lib_search_path
20567
20568# ### END LIBTOOL CONFIG
20569
20570_LT_EOF
20571
20572 case $host_os in
20573 aix3*)
20574 cat <<\_LT_EOF >> "$cfgfile"
20575# AIX sometimes has problems with the GCC collect2 program. For some
20576# reason, if we set the COLLECT_NAMES environment variable, the problems
20577# vanish in a puff of smoke.
20578if test "X${COLLECT_NAMES+set}" != Xset; then
20579 COLLECT_NAMES=
20580 export COLLECT_NAMES
20581fi
20582_LT_EOF
20583 ;;
20584 esac
20585
20586
20587ltmain="$ac_aux_dir/ltmain.sh"
20588
20589
20590 # We use sed instead of cat because bash on DJGPP gets confused if
20591 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20592 # text mode, it properly converts lines to CR/LF. This bash problem
20593 # is reportedly fixed, but why not run on old versions too?
20594 sed '$q' "$ltmain" >> "$cfgfile" \
20595 || (rm -f "$cfgfile"; exit 1)
20596
20597 if test x"$xsi_shell" = xyes; then
20598 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20599func_dirname ()\
20600{\
20601\ case ${1} in\
20602\ */*) func_dirname_result="${1%/*}${2}" ;;\
20603\ * ) func_dirname_result="${3}" ;;\
20604\ esac\
20605} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20606 && mv -f "$cfgfile.tmp" "$cfgfile" \
20607 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20608test 0 -eq $? || _lt_function_replace_fail=:
20609
20610
20611 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20612func_basename ()\
20613{\
20614\ func_basename_result="${1##*/}"\
20615} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20616 && mv -f "$cfgfile.tmp" "$cfgfile" \
20617 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20618test 0 -eq $? || _lt_function_replace_fail=:
20619
20620
20621 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20622func_dirname_and_basename ()\
20623{\
20624\ case ${1} in\
20625\ */*) func_dirname_result="${1%/*}${2}" ;;\
20626\ * ) func_dirname_result="${3}" ;;\
20627\ esac\
20628\ func_basename_result="${1##*/}"\
20629} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20630 && mv -f "$cfgfile.tmp" "$cfgfile" \
20631 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20632test 0 -eq $? || _lt_function_replace_fail=:
20633
20634
20635 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20636func_stripname ()\
20637{\
20638\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20639\ # positional parameters, so assign one to ordinary parameter first.\
20640\ func_stripname_result=${3}\
20641\ func_stripname_result=${func_stripname_result#"${1}"}\
20642\ func_stripname_result=${func_stripname_result%"${2}"}\
20643} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20644 && mv -f "$cfgfile.tmp" "$cfgfile" \
20645 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20646test 0 -eq $? || _lt_function_replace_fail=:
20647
20648
20649 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20650func_split_long_opt ()\
20651{\
20652\ func_split_long_opt_name=${1%%=*}\
20653\ func_split_long_opt_arg=${1#*=}\
20654} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20655 && mv -f "$cfgfile.tmp" "$cfgfile" \
20656 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20657test 0 -eq $? || _lt_function_replace_fail=:
20658
20659
20660 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20661func_split_short_opt ()\
20662{\
20663\ func_split_short_opt_arg=${1#??}\
20664\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20665} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20666 && mv -f "$cfgfile.tmp" "$cfgfile" \
20667 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20668test 0 -eq $? || _lt_function_replace_fail=:
20669
20670
20671 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20672func_lo2o ()\
20673{\
20674\ case ${1} in\
20675\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20676\ *) func_lo2o_result=${1} ;;\
20677\ esac\
20678} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20679 && mv -f "$cfgfile.tmp" "$cfgfile" \
20680 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20681test 0 -eq $? || _lt_function_replace_fail=:
20682
20683
20684 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20685func_xform ()\
20686{\
20687 func_xform_result=${1%.*}.lo\
20688} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20689 && mv -f "$cfgfile.tmp" "$cfgfile" \
20690 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20691test 0 -eq $? || _lt_function_replace_fail=:
20692
20693
20694 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20695func_arith ()\
20696{\
20697 func_arith_result=$(( $* ))\
20698} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20699 && mv -f "$cfgfile.tmp" "$cfgfile" \
20700 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20701test 0 -eq $? || _lt_function_replace_fail=:
20702
20703
20704 sed -e '/^func_len ()$/,/^} # func_len /c\
20705func_len ()\
20706{\
20707 func_len_result=${#1}\
20708} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20709 && mv -f "$cfgfile.tmp" "$cfgfile" \
20710 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20711test 0 -eq $? || _lt_function_replace_fail=:
20712
20713fi
20714
20715if test x"$lt_shell_append" = xyes; then
20716 sed -e '/^func_append ()$/,/^} # func_append /c\
20717func_append ()\
20718{\
20719 eval "${1}+=\\${2}"\
20720} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20721 && mv -f "$cfgfile.tmp" "$cfgfile" \
20722 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20723test 0 -eq $? || _lt_function_replace_fail=:
20724
20725
20726 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20727func_append_quoted ()\
20728{\
20729\ func_quote_for_eval "${2}"\
20730\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20731} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20732 && mv -f "$cfgfile.tmp" "$cfgfile" \
20733 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20734test 0 -eq $? || _lt_function_replace_fail=:
20735
20736
20737 # Save a `func_append' function call where possible by direct use of '+='
20738 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20739 && mv -f "$cfgfile.tmp" "$cfgfile" \
20740 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20741 test 0 -eq $? || _lt_function_replace_fail=:
20742else
20743 # Save a `func_append' function call even when '+=' is not available
20744 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20745 && mv -f "$cfgfile.tmp" "$cfgfile" \
20746 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20747 test 0 -eq $? || _lt_function_replace_fail=:
20748fi
20749
20750if test x"$_lt_function_replace_fail" = x":"; then
20751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20752$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20753fi
20754
20755
20756 mv -f "$cfgfile" "$ofile" ||
20757 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20758 chmod +x "$ofile"
20759
20760
20761 cat <<_LT_EOF >> "$ofile"
20762
20763# ### BEGIN LIBTOOL TAG CONFIG: CXX
20764
20765# The linker used to build libraries.
20766LD=$lt_LD_CXX
20767
20768# How to create reloadable object files.
20769reload_flag=$lt_reload_flag_CXX
20770reload_cmds=$lt_reload_cmds_CXX
20771
20772# Commands used to build an old-style archive.
20773old_archive_cmds=$lt_old_archive_cmds_CXX
20774
20775# A language specific compiler.
20776CC=$lt_compiler_CXX
20777
20778# Is the compiler the GNU compiler?
20779with_gcc=$GCC_CXX
20780
20781# Compiler flag to turn off builtin functions.
20782no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20783
20784# Additional compiler flags for building library objects.
20785pic_flag=$lt_lt_prog_compiler_pic_CXX
20786
20787# How to pass a linker flag through the compiler.
20788wl=$lt_lt_prog_compiler_wl_CXX
20789
20790# Compiler flag to prevent dynamic linking.
20791link_static_flag=$lt_lt_prog_compiler_static_CXX
20792
20793# Does compiler simultaneously support -c and -o options?
20794compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20795
20796# Whether or not to add -lc for building shared libraries.
20797build_libtool_need_lc=$archive_cmds_need_lc_CXX
20798
20799# Whether or not to disallow shared libs when runtime libs are static.
20800allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20801
20802# Compiler flag to allow reflexive dlopens.
20803export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20804
20805# Compiler flag to generate shared objects directly from archives.
20806whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20807
20808# Whether the compiler copes with passing no objects directly.
20809compiler_needs_object=$lt_compiler_needs_object_CXX
20810
20811# Create an old-style archive from a shared archive.
20812old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20813
20814# Create a temporary old-style archive to link instead of a shared archive.
20815old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20816
20817# Commands used to build a shared archive.
20818archive_cmds=$lt_archive_cmds_CXX
20819archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20820
20821# Commands used to build a loadable module if different from building
20822# a shared archive.
20823module_cmds=$lt_module_cmds_CXX
20824module_expsym_cmds=$lt_module_expsym_cmds_CXX
20825
20826# Whether we are building with GNU ld or not.
20827with_gnu_ld=$lt_with_gnu_ld_CXX
20828
20829# Flag that allows shared libraries with undefined symbols to be built.
20830allow_undefined_flag=$lt_allow_undefined_flag_CXX
20831
20832# Flag that enforces no undefined symbols.
20833no_undefined_flag=$lt_no_undefined_flag_CXX
20834
20835# Flag to hardcode \$libdir into a binary during linking.
20836# This must work even if \$libdir does not exist
20837hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20838
20839# Whether we need a single "-rpath" flag with a separated argument.
20840hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20841
20842# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20843# DIR into the resulting binary.
20844hardcode_direct=$hardcode_direct_CXX
20845
20846# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20847# DIR into the resulting binary and the resulting library dependency is
20848# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20849# library is relocated.
20850hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20851
20852# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20853# into the resulting binary.
20854hardcode_minus_L=$hardcode_minus_L_CXX
20855
20856# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20857# into the resulting binary.
20858hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20859
20860# Set to "yes" if building a shared library automatically hardcodes DIR
20861# into the library and all subsequent libraries and executables linked
20862# against it.
20863hardcode_automatic=$hardcode_automatic_CXX
20864
20865# Set to yes if linker adds runtime paths of dependent libraries
20866# to runtime path list.
20867inherit_rpath=$inherit_rpath_CXX
20868
20869# Whether libtool must link a program against all its dependency libraries.
20870link_all_deplibs=$link_all_deplibs_CXX
20871
20872# Set to "yes" if exported symbols are required.
20873always_export_symbols=$always_export_symbols_CXX
20874
20875# The commands to list exported symbols.
20876export_symbols_cmds=$lt_export_symbols_cmds_CXX
20877
20878# Symbols that should not be listed in the preloaded symbols.
20879exclude_expsyms=$lt_exclude_expsyms_CXX
20880
20881# Symbols that must always be exported.
20882include_expsyms=$lt_include_expsyms_CXX
20883
20884# Commands necessary for linking programs (against libraries) with templates.
20885prelink_cmds=$lt_prelink_cmds_CXX
20886
20887# Commands necessary for finishing linking programs.
20888postlink_cmds=$lt_postlink_cmds_CXX
20889
20890# Specify filename containing input files.
20891file_list_spec=$lt_file_list_spec_CXX
20892
20893# How to hardcode a shared library path into an executable.
20894hardcode_action=$hardcode_action_CXX
20895
20896# The directories searched by this compiler when creating a shared library.
20897compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20898
20899# Dependencies to place before and after the objects being linked to
20900# create a shared library.
20901predep_objects=$lt_predep_objects_CXX
20902postdep_objects=$lt_postdep_objects_CXX
20903predeps=$lt_predeps_CXX
20904postdeps=$lt_postdeps_CXX
20905
20906# The library search path used internally by the compiler when linking
20907# a shared library.
20908compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20909
20910# ### END LIBTOOL TAG CONFIG: CXX
20911_LT_EOF
20912
20913 ;;
Jeff Thompson39128c62013-06-19 14:08:51 -070020914
20915 esac
20916done # for ac_tag
20917
20918
20919as_fn_exit 0
20920_ACEOF
20921ac_clean_files=$ac_clean_files_save
20922
20923test $ac_write_fail = 0 ||
20924 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20925
20926
20927# configure is writing to config.log, and then calls config.status.
20928# config.status does its own redirection, appending to config.log.
20929# Unfortunately, on DOS this fails, as config.log is still kept open
20930# by configure, so config.status won't be able to write to it; its
20931# output is simply discarded. So we exec the FD to /dev/null,
20932# effectively closing config.log, so it can be properly (re)opened and
20933# appended to by config.status. When coming back to configure, we
20934# need to make the FD available again.
20935if test "$no_create" != yes; then
20936 ac_cs_success=:
20937 ac_config_status_args=
20938 test "$silent" = yes &&
20939 ac_config_status_args="$ac_config_status_args --quiet"
20940 exec 5>/dev/null
20941 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20942 exec 5>>config.log
20943 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20944 # would make configure fail if this is the last instruction.
20945 $ac_cs_success || as_fn_exit 1
20946fi
20947if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20949$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20950fi
20951