Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for genders 1.27.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='genders'
589 PACKAGE_TARNAME='genders'
590 PACKAGE_VERSION='1.27'
591 PACKAGE_STRING='genders 1.27'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="README"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 WITH_JAVA_EXTENSIONS_FALSE
637 WITH_JAVA_EXTENSIONS_TRUE
638 WITH_CPLUSPLUS_EXTENSIONS_FALSE
639 WITH_CPLUSPLUS_EXTENSIONS_TRUE
640 WITH_PYTHON_EXTENSIONS_FALSE
641 WITH_PYTHON_EXTENSIONS_TRUE
642 PERL_ARCH_INSTALL
643 PERLMAN3EXT
644 WITH_PERL_EXTENSIONS_FALSE
645 WITH_PERL_EXTENSIONS_TRUE
646 EXTENSION_DESTDIR
647 GENDERS_DEFAULT_FILE
648 FORCE_YACC
649 MANPAGE_DEBUG
650 JAVADOC
651 JAR
652 JAVA
653 JAVAH
654 JAVAC
655 POD2MAN
656 PYTHON
657 PERL
658 WITH_GNU_LD_FALSE
659 WITH_GNU_LD_TRUE
660 YFLAGS
661 YACC
662 LEXLIB
663 LEX_OUTPUT_ROOT
664 LEX
665 CXXCPP
666 CPP
667 OTOOL64
668 OTOOL
669 LIPO
670 NMEDIT
671 DSYMUTIL
672 MANIFEST_TOOL
673 RANLIB
674 ac_ct_AR
675 AR
676 DLLTOOL
677 OBJDUMP
678 LN_S
679 NM
680 ac_ct_DUMPBIN
681 DUMPBIN
682 LD
683 FGREP
684 EGREP
685 GREP
686 SED
687 LIBTOOL
688 am__fastdepCXX_FALSE
689 am__fastdepCXX_TRUE
690 CXXDEPMODE
691 ac_ct_CXX
692 CXXFLAGS
693 CXX
694 am__fastdepCC_FALSE
695 am__fastdepCC_TRUE
696 CCDEPMODE
697 am__nodep
698 AMDEPBACKSLASH
699 AMDEP_FALSE
700 AMDEP_TRUE
701 am__quote
702 am__include
703 DEPDIR
704 OBJEXT
705 EXEEXT
706 ac_ct_CC
707 CPPFLAGS
708 LDFLAGS
709 CFLAGS
710 CC
711 PYTHONGENDERS_VERSION
712 PERLGENDERS_VERSION
713 LIBGENDERSJNI_VERSION_INFO
714 LIBGENDERSPLUSPLUS_VERSION_INFO
715 LIBGENDERS_VERSION_INFO
716 MAINT
717 MAINTAINER_MODE_FALSE
718 MAINTAINER_MODE_TRUE
719 AM_BACKSLASH
720 AM_DEFAULT_VERBOSITY
721 AM_DEFAULT_V
722 AM_V
723 am__untar
724 am__tar
725 AMTAR
726 am__leading_dot
727 SET_MAKE
728 AWK
729 mkdir_p
730 MKDIR_P
731 INSTALL_STRIP_PROGRAM
732 STRIP
733 install_sh
734 MAKEINFO
735 AUTOHEADER
736 AUTOMAKE
737 AUTOCONF
738 ACLOCAL
739 PACKAGE
740 CYGPATH_W
741 am__isrc
742 INSTALL_DATA
743 INSTALL_SCRIPT
744 INSTALL_PROGRAM
745 target_os
746 target_vendor
747 target_cpu
748 target
749 host_os
750 host_vendor
751 host_cpu
752 host
753 build_os
754 build_vendor
755 build_cpu
756 build
757 RELEASE
758 VERSION
759 PROJECT
760 target_alias
761 host_alias
762 build_alias
763 LIBS
764 ECHO_T
765 ECHO_N
766 ECHO_C
767 DEFS
768 mandir
769 localedir
770 libdir
771 psdir
772 pdfdir
773 dvidir
774 htmldir
775 infodir
776 docdir
777 oldincludedir
778 includedir
779 localstatedir
780 sharedstatedir
781 sysconfdir
782 datadir
783 datarootdir
784 libexecdir
785 sbindir
786 bindir
787 program_transform_name
788 prefix
789 exec_prefix
790 PACKAGE_URL
791 PACKAGE_BUGREPORT
792 PACKAGE_STRING
793 PACKAGE_VERSION
794 PACKAGE_TARNAME
795 PACKAGE_NAME
796 PATH_SEPARATOR
797 SHELL'
798 ac_subst_files=''
799 ac_user_opts='
800 enable_option_checking
801 enable_silent_rules
802 enable_maintainer_mode
803 enable_dependency_tracking
804 enable_shared
805 enable_static
806 with_pic
807 enable_fast_install
808 with_gnu_ld
809 with_sysroot
810 enable_libtool_lock
811 enable_debug
812 with_force_yacc
813 with_non_shortened_hostnames
814 with_genders_file
815 with_extension_destdir
816 with_perl_extensions
817 with_perl_site_arch
818 with_perl_vendor_arch
819 with_python_extensions
820 with_cplusplus_extensions
821 with_java_extensions
822 '
823 ac_precious_vars='build_alias
824 host_alias
825 target_alias
826 CC
827 CFLAGS
828 LDFLAGS
829 LIBS
830 CPPFLAGS
831 CXX
832 CXXFLAGS
833 CCC
834 CPP
835 CXXCPP
836 YACC
837 YFLAGS'
838
839
840 # Initialize some variables set by options.
841 ac_init_help=
842 ac_init_version=false
843 ac_unrecognized_opts=
844 ac_unrecognized_sep=
845 # The variables have the same names as the options, with
846 # dashes changed to underlines.
847 cache_file=/dev/null
848 exec_prefix=NONE
849 no_create=
850 no_recursion=
851 prefix=NONE
852 program_prefix=NONE
853 program_suffix=NONE
854 program_transform_name=s,x,x,
855 silent=
856 site=
857 srcdir=
858 verbose=
859 x_includes=NONE
860 x_libraries=NONE
861
862 # Installation directory options.
863 # These are left unexpanded so users can "make install exec_prefix=/foo"
864 # and all the variables that are supposed to be based on exec_prefix
865 # by default will actually change.
866 # Use braces instead of parens because sh, perl, etc. also accept them.
867 # (The list follows the same order as the GNU Coding Standards.)
868 bindir='${exec_prefix}/bin'
869 sbindir='${exec_prefix}/sbin'
870 libexecdir='${exec_prefix}/libexec'
871 datarootdir='${prefix}/share'
872 datadir='${datarootdir}'
873 sysconfdir='${prefix}/etc'
874 sharedstatedir='${prefix}/com'
875 localstatedir='${prefix}/var'
876 includedir='${prefix}/include'
877 oldincludedir='/usr/include'
878 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
879 infodir='${datarootdir}/info'
880 htmldir='${docdir}'
881 dvidir='${docdir}'
882 pdfdir='${docdir}'
883 psdir='${docdir}'
884 libdir='${exec_prefix}/lib'
885 localedir='${datarootdir}/locale'
886 mandir='${datarootdir}/man'
887
888 ac_prev=
889 ac_dashdash=
890 for ac_option
891 do
892 # If the previous option needs an argument, assign it.
893 if test -n "$ac_prev"; then
894 eval $ac_prev=\$ac_option
895 ac_prev=
896 continue
897 fi
898
899 case $ac_option in
900 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901 *=) ac_optarg= ;;
902 *) ac_optarg=yes ;;
903 esac
904
905 # Accept the important Cygnus configure options, so we can diagnose typos.
906
907 case $ac_dashdash$ac_option in
908 --)
909 ac_dashdash=yes ;;
910
911 -bindir | --bindir | --bindi | --bind | --bin | --bi)
912 ac_prev=bindir ;;
913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914 bindir=$ac_optarg ;;
915
916 -build | --build | --buil | --bui | --bu)
917 ac_prev=build_alias ;;
918 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919 build_alias=$ac_optarg ;;
920
921 -cache-file | --cache-file | --cache-fil | --cache-fi \
922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923 ac_prev=cache_file ;;
924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926 cache_file=$ac_optarg ;;
927
928 --config-cache | -C)
929 cache_file=config.cache ;;
930
931 -datadir | --datadir | --datadi | --datad)
932 ac_prev=datadir ;;
933 -datadir=* | --datadir=* | --datadi=* | --datad=*)
934 datadir=$ac_optarg ;;
935
936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937 | --dataroo | --dataro | --datar)
938 ac_prev=datarootdir ;;
939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941 datarootdir=$ac_optarg ;;
942
943 -disable-* | --disable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error $? "invalid feature name: $ac_useropt"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
951 *"
952 "enable_$ac_useropt"
953 "*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=no ;;
958
959 -docdir | --docdir | --docdi | --doc | --do)
960 ac_prev=docdir ;;
961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962 docdir=$ac_optarg ;;
963
964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965 ac_prev=dvidir ;;
966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967 dvidir=$ac_optarg ;;
968
969 -enable-* | --enable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error $? "invalid feature name: $ac_useropt"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
977 *"
978 "enable_$ac_useropt"
979 "*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=\$ac_optarg ;;
984
985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987 | --exec | --exe | --ex)
988 ac_prev=exec_prefix ;;
989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991 | --exec=* | --exe=* | --ex=*)
992 exec_prefix=$ac_optarg ;;
993
994 -gas | --gas | --ga | --g)
995 # Obsolete; use --with-gas.
996 with_gas=yes ;;
997
998 -help | --help | --hel | --he | -h)
999 ac_init_help=long ;;
1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001 ac_init_help=recursive ;;
1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003 ac_init_help=short ;;
1004
1005 -host | --host | --hos | --ho)
1006 ac_prev=host_alias ;;
1007 -host=* | --host=* | --hos=* | --ho=*)
1008 host_alias=$ac_optarg ;;
1009
1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011 ac_prev=htmldir ;;
1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013 | --ht=*)
1014 htmldir=$ac_optarg ;;
1015
1016 -includedir | --includedir | --includedi | --included | --include \
1017 | --includ | --inclu | --incl | --inc)
1018 ac_prev=includedir ;;
1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020 | --includ=* | --inclu=* | --incl=* | --inc=*)
1021 includedir=$ac_optarg ;;
1022
1023 -infodir | --infodir | --infodi | --infod | --info | --inf)
1024 ac_prev=infodir ;;
1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026 infodir=$ac_optarg ;;
1027
1028 -libdir | --libdir | --libdi | --libd)
1029 ac_prev=libdir ;;
1030 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031 libdir=$ac_optarg ;;
1032
1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034 | --libexe | --libex | --libe)
1035 ac_prev=libexecdir ;;
1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037 | --libexe=* | --libex=* | --libe=*)
1038 libexecdir=$ac_optarg ;;
1039
1040 -localedir | --localedir | --localedi | --localed | --locale)
1041 ac_prev=localedir ;;
1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043 localedir=$ac_optarg ;;
1044
1045 -localstatedir | --localstatedir | --localstatedi | --localstated \
1046 | --localstate | --localstat | --localsta | --localst | --locals)
1047 ac_prev=localstatedir ;;
1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050 localstatedir=$ac_optarg ;;
1051
1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053 ac_prev=mandir ;;
1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055 mandir=$ac_optarg ;;
1056
1057 -nfp | --nfp | --nf)
1058 # Obsolete; use --without-fp.
1059 with_fp=no ;;
1060
1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062 | --no-cr | --no-c | -n)
1063 no_create=yes ;;
1064
1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067 no_recursion=yes ;;
1068
1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071 | --oldin | --oldi | --old | --ol | --o)
1072 ac_prev=oldincludedir ;;
1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076 oldincludedir=$ac_optarg ;;
1077
1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079 ac_prev=prefix ;;
1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081 prefix=$ac_optarg ;;
1082
1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084 | --program-pre | --program-pr | --program-p)
1085 ac_prev=program_prefix ;;
1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088 program_prefix=$ac_optarg ;;
1089
1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091 | --program-suf | --program-su | --program-s)
1092 ac_prev=program_suffix ;;
1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095 program_suffix=$ac_optarg ;;
1096
1097 -program-transform-name | --program-transform-name \
1098 | --program-transform-nam | --program-transform-na \
1099 | --program-transform-n | --program-transform- \
1100 | --program-transform | --program-transfor \
1101 | --program-transfo | --program-transf \
1102 | --program-trans | --program-tran \
1103 | --progr-tra | --program-tr | --program-t)
1104 ac_prev=program_transform_name ;;
1105 -program-transform-name=* | --program-transform-name=* \
1106 | --program-transform-nam=* | --program-transform-na=* \
1107 | --program-transform-n=* | --program-transform-=* \
1108 | --program-transform=* | --program-transfor=* \
1109 | --program-transfo=* | --program-transf=* \
1110 | --program-trans=* | --program-tran=* \
1111 | --progr-tra=* | --program-tr=* | --program-t=*)
1112 program_transform_name=$ac_optarg ;;
1113
1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115 ac_prev=pdfdir ;;
1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117 pdfdir=$ac_optarg ;;
1118
1119 -psdir | --psdir | --psdi | --psd | --ps)
1120 ac_prev=psdir ;;
1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122 psdir=$ac_optarg ;;
1123
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1126 silent=yes ;;
1127
1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129 ac_prev=sbindir ;;
1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131 | --sbi=* | --sb=*)
1132 sbindir=$ac_optarg ;;
1133
1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136 | --sharedst | --shareds | --shared | --share | --shar \
1137 | --sha | --sh)
1138 ac_prev=sharedstatedir ;;
1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142 | --sha=* | --sh=*)
1143 sharedstatedir=$ac_optarg ;;
1144
1145 -site | --site | --sit)
1146 ac_prev=site ;;
1147 -site=* | --site=* | --sit=*)
1148 site=$ac_optarg ;;
1149
1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151 ac_prev=srcdir ;;
1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153 srcdir=$ac_optarg ;;
1154
1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156 | --syscon | --sysco | --sysc | --sys | --sy)
1157 ac_prev=sysconfdir ;;
1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160 sysconfdir=$ac_optarg ;;
1161
1162 -target | --target | --targe | --targ | --tar | --ta | --t)
1163 ac_prev=target_alias ;;
1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165 target_alias=$ac_optarg ;;
1166
1167 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168 verbose=yes ;;
1169
1170 -version | --version | --versio | --versi | --vers | -V)
1171 ac_init_version=: ;;
1172
1173 -with-* | --with-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error $? "invalid package name: $ac_useropt"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1181 *"
1182 "with_$ac_useropt"
1183 "*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval with_$ac_useropt=\$ac_optarg ;;
1188
1189 -without-* | --without-*)
1190 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error $? "invalid package name: $ac_useropt"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1197 *"
1198 "with_$ac_useropt"
1199 "*) ;;
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1202 esac
1203 eval with_$ac_useropt=no ;;
1204
1205 --x)
1206 # Obsolete; use --with-x.
1207 with_x=yes ;;
1208
1209 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210 | --x-incl | --x-inc | --x-in | --x-i)
1211 ac_prev=x_includes ;;
1212 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214 x_includes=$ac_optarg ;;
1215
1216 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218 ac_prev=x_libraries ;;
1219 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221 x_libraries=$ac_optarg ;;
1222
1223 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1224 Try \`$0 --help' for more information"
1225 ;;
1226
1227 *=*)
1228 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
1230 case $ac_envvar in #(
1231 '' | [0-9]* | *[!_$as_cr_alnum]* )
1232 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1233 esac
1234 eval $ac_envvar=\$ac_optarg
1235 export $ac_envvar ;;
1236
1237 *)
1238 # FIXME: should be removed in autoconf 3.0.
1239 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1240 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1242 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1243 ;;
1244
1245 esac
1246 done
1247
1248 if test -n "$ac_prev"; then
1249 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1250 as_fn_error $? "missing argument to $ac_option"
1251 fi
1252
1253 if test -n "$ac_unrecognized_opts"; then
1254 case $enable_option_checking in
1255 no) ;;
1256 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1257 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1258 esac
1259 fi
1260
1261 # Check all directory arguments for consistency.
1262 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263 datadir sysconfdir sharedstatedir localstatedir includedir \
1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265 libdir localedir mandir
1266 do
1267 eval ac_val=\$$ac_var
1268 # Remove trailing slashes.
1269 case $ac_val in
1270 */ )
1271 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272 eval $ac_var=\$ac_val;;
1273 esac
1274 # Be sure to have absolute directory names.
1275 case $ac_val in
1276 [\\/$]* | ?:[\\/]* ) continue;;
1277 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1278 esac
1279 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1280 done
1281
1282 # There might be people who depend on the old broken behavior: `$host'
1283 # used to hold the argument of --host etc.
1284 # FIXME: To remove some day.
1285 build=$build_alias
1286 host=$host_alias
1287 target=$target_alias
1288
1289 # FIXME: To remove some day.
1290 if test "x$host_alias" != x; then
1291 if test "x$build_alias" = x; then
1292 cross_compiling=maybe
1293 elif test "x$build_alias" != "x$host_alias"; then
1294 cross_compiling=yes
1295 fi
1296 fi
1297
1298 ac_tool_prefix=
1299 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300
1301 test "$silent" = yes && exec 6>/dev/null
1302
1303
1304 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305 ac_ls_di=`ls -di .` &&
1306 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1307 as_fn_error $? "working directory cannot be determined"
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309 as_fn_error $? "pwd does not report name of working directory"
1310
1311
1312 # Find the source files, if location was not specified.
1313 if test -z "$srcdir"; then
1314 ac_srcdir_defaulted=yes
1315 # Try the directory containing this script, then the parent directory.
1316 ac_confdir=`$as_dirname -- "$as_myself" ||
1317 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318 X"$as_myself" : 'X\(//\)[^/]' \| \
1319 X"$as_myself" : 'X\(//\)$' \| \
1320 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321 $as_echo X"$as_myself" |
1322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\/\)[^/].*/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\/\)$/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\).*/{
1335 s//\1/
1336 q
1337 }
1338 s/.*/./; q'`
1339 srcdir=$ac_confdir
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 srcdir=..
1342 fi
1343 else
1344 ac_srcdir_defaulted=no
1345 fi
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1349 fi
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 ac_abs_confdir=`(
1352 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1353 pwd)`
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356 srcdir=.
1357 fi
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1361 case $srcdir in
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363 esac
1364 for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 done
1370
1371 #
1372 # Report the --help message.
1373 #
1374 if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1377 cat <<_ACEOF
1378 \`configure' configures genders 1.27 to adapt to many kinds of systems.
1379
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE. See below for descriptions of some of the useful variables.
1384
1385 Defaults for the options are specified in brackets.
1386
1387 Configuration:
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking ...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1397
1398 Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
1400 [$ac_default_prefix]
1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1402 [PREFIX]
1403
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1408
1409 For better control, use the options below.
1410
1411 Fine tuning of the installation directories:
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/genders]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
1431 _ACEOF
1432
1433 cat <<\_ACEOF
1434
1435 Program names:
1436 --program-prefix=PREFIX prepend PREFIX to installed program names
1437 --program-suffix=SUFFIX append SUFFIX to installed program names
1438 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1439
1440 System types:
1441 --build=BUILD configure for building on BUILD [guessed]
1442 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1443 --target=TARGET configure for building compilers for TARGET [HOST]
1444 _ACEOF
1445 fi
1446
1447 if test -n "$ac_init_help"; then
1448 case $ac_init_help in
1449 short | recursive ) echo "Configuration of genders 1.27:";;
1450 esac
1451 cat <<\_ACEOF
1452
1453 Optional Features:
1454 --disable-option-checking ignore unrecognized --enable/--with options
1455 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1456 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1457 --enable-silent-rules less verbose build output (undo: "make V=1")
1458 --disable-silent-rules verbose build output (undo: "make V=0")
1459 --enable-maintainer-mode
1460 enable make rules and dependencies not useful (and
1461 sometimes confusing) to the casual installer
1462 --enable-dependency-tracking
1463 do not reject slow dependency extractors
1464 --disable-dependency-tracking
1465 speeds up one-time build
1466 --enable-shared[=PKGS] build shared libraries [default=yes]
1467 --enable-static[=PKGS] build static libraries [default=yes]
1468 --enable-fast-install[=PKGS]
1469 optimize for fast installation [default=yes]
1470 --disable-libtool-lock avoid locking (might break parallel builds)
1471 --enable-debug enable debugging code for development
1472
1473 Optional Packages:
1474 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1475 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1476 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1477 both]
1478 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1479 --with-sysroot=DIR Search for dependent libraries within DIR
1480 (or the compiler's sysroot if not specified).
1481 --with-force-yacc force yacc to be used
1482 --with-non-shortened-hostnames
1483 allow non-shortened hostnames with periods
1484 --with-genders-file=PATH
1485 define default genders file
1486 --with-extension-destdir=path
1487 define extension modules install prefix
1488 --with-perl-extensions= enable or disable perl extensions build
1489 --with-perl-site-arch= enable or disable perl extensions install in site
1490 arch
1491 --with-perl-vendor-arch=
1492 enable or disable perl extensions install in vendor
1493 arch
1494 --with-python-extensions=
1495 enable or disable python extensions build
1496 --with-cplusplus-extensions=
1497 enable or disable c++ extensions build
1498 --with-java-extensions= enable or disable java extensions build
1499
1500 Some influential environment variables:
1501 CC C compiler command
1502 CFLAGS C compiler flags
1503 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1504 nonstandard directory <lib dir>
1505 LIBS libraries to pass to the linker, e.g. -l<library>
1506 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1507 you have headers in a nonstandard directory <include dir>
1508 CXX C++ compiler command
1509 CXXFLAGS C++ compiler flags
1510 CPP C preprocessor
1511 CXXCPP C++ preprocessor
1512 YACC The `Yet Another Compiler Compiler' implementation to use.
1513 Defaults to the first program found out of: `bison -y', `byacc',
1514 `yacc'.
1515 YFLAGS The list of arguments that will be passed by default to $YACC.
1516 This script will default YFLAGS to the empty string to avoid a
1517 default value of `-d' given by some make applications.
1518
1519 Use these variables to override the choices made by `configure' or to help
1520 it to find libraries and programs with nonstandard names/locations.
1521
1522 Report bugs to the package provider.
1523 _ACEOF
1524 ac_status=$?
1525 fi
1526
1527 if test "$ac_init_help" = "recursive"; then
1528 # If there are subdirs, report their specific --help.
1529 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1530 test -d "$ac_dir" ||
1531 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1532 continue
1533 ac_builddir=.
1534
1535 case "$ac_dir" in
1536 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *)
1538 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1539 # A ".." for each directory in $ac_dir_suffix.
1540 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1541 case $ac_top_builddir_sub in
1542 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1544 esac ;;
1545 esac
1546 ac_abs_top_builddir=$ac_pwd
1547 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1548 # for backward compatibility:
1549 ac_top_builddir=$ac_top_build_prefix
1550
1551 case $srcdir in
1552 .) # We are building in place.
1553 ac_srcdir=.
1554 ac_top_srcdir=$ac_top_builddir_sub
1555 ac_abs_top_srcdir=$ac_pwd ;;
1556 [\\/]* | ?:[\\/]* ) # Absolute name.
1557 ac_srcdir=$srcdir$ac_dir_suffix;
1558 ac_top_srcdir=$srcdir
1559 ac_abs_top_srcdir=$srcdir ;;
1560 *) # Relative name.
1561 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1562 ac_top_srcdir=$ac_top_build_prefix$srcdir
1563 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1564 esac
1565 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1566
1567 cd "$ac_dir" || { ac_status=$?; continue; }
1568 # Check for guested configure.
1569 if test -f "$ac_srcdir/configure.gnu"; then
1570 echo &&
1571 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1572 elif test -f "$ac_srcdir/configure"; then
1573 echo &&
1574 $SHELL "$ac_srcdir/configure" --help=recursive
1575 else
1576 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1577 fi || ac_status=$?
1578 cd "$ac_pwd" || { ac_status=$?; break; }
1579 done
1580 fi
1581
1582 test -n "$ac_init_help" && exit $ac_status
1583 if $ac_init_version; then
1584 cat <<\_ACEOF
1585 genders configure 1.27
1586 generated by GNU Autoconf 2.69
1587
1588 Copyright (C) 2012 Free Software Foundation, Inc.
1589 This configure script is free software; the Free Software Foundation
1590 gives unlimited permission to copy, distribute and modify it.
1591 _ACEOF
1592 exit
1593 fi
1594
1595 ## ------------------------ ##
1596 ## Autoconf initialization. ##
1597 ## ------------------------ ##
1598
1599 # ac_fn_c_try_compile LINENO
1600 # --------------------------
1601 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1602 ac_fn_c_try_compile ()
1603 {
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 rm -f conftest.$ac_objext
1606 if { { ac_try="$ac_compile"
1607 case "(($ac_try" in
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1610 esac
1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612 $as_echo "$ac_try_echo"; } >&5
1613 (eval "$ac_compile") 2>conftest.err
1614 ac_status=$?
1615 if test -s conftest.err; then
1616 grep -v '^ *+' conftest.err >conftest.er1
1617 cat conftest.er1 >&5
1618 mv -f conftest.er1 conftest.err
1619 fi
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; } && {
1622 test -z "$ac_c_werror_flag" ||
1623 test ! -s conftest.err
1624 } && test -s conftest.$ac_objext; then :
1625 ac_retval=0
1626 else
1627 $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1629
1630 ac_retval=1
1631 fi
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633 as_fn_set_status $ac_retval
1634
1635 } # ac_fn_c_try_compile
1636
1637 # ac_fn_cxx_try_compile LINENO
1638 # ----------------------------
1639 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1640 ac_fn_cxx_try_compile ()
1641 {
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 rm -f conftest.$ac_objext
1644 if { { ac_try="$ac_compile"
1645 case "(($ac_try" in
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1648 esac
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_compile") 2>conftest.err
1652 ac_status=$?
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1657 fi
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } && {
1660 test -z "$ac_cxx_werror_flag" ||
1661 test ! -s conftest.err
1662 } && test -s conftest.$ac_objext; then :
1663 ac_retval=0
1664 else
1665 $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1667
1668 ac_retval=1
1669 fi
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 as_fn_set_status $ac_retval
1672
1673 } # ac_fn_cxx_try_compile
1674
1675 # ac_fn_c_try_link LINENO
1676 # -----------------------
1677 # Try to link conftest.$ac_ext, and return whether this succeeded.
1678 ac_fn_c_try_link ()
1679 {
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 rm -f conftest.$ac_objext conftest$ac_exeext
1682 if { { ac_try="$ac_link"
1683 case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_link") 2>conftest.err
1690 ac_status=$?
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1695 fi
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && {
1698 test -z "$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1700 } && test -s conftest$ac_exeext && {
1701 test "$cross_compiling" = yes ||
1702 test -x conftest$ac_exeext
1703 }; then :
1704 ac_retval=0
1705 else
1706 $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1708
1709 ac_retval=1
1710 fi
1711 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1712 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1713 # interfere with the next link command; also delete a directory that is
1714 # left behind by Apple's compiler. We do this before executing the actions.
1715 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717 as_fn_set_status $ac_retval
1718
1719 } # ac_fn_c_try_link
1720
1721 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1722 # -------------------------------------------------------
1723 # Tests whether HEADER exists and can be compiled using the include files in
1724 # INCLUDES, setting the cache variable VAR accordingly.
1725 ac_fn_c_check_header_compile ()
1726 {
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 $as_echo_n "checking for $2... " >&6; }
1730 if eval \${$3+:} false; then :
1731 $as_echo_n "(cached) " >&6
1732 else
1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1735 $4
1736 #include <$2>
1737 _ACEOF
1738 if ac_fn_c_try_compile "$LINENO"; then :
1739 eval "$3=yes"
1740 else
1741 eval "$3=no"
1742 fi
1743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1744 fi
1745 eval ac_res=\$$3
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1747 $as_echo "$ac_res" >&6; }
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749
1750 } # ac_fn_c_check_header_compile
1751
1752 # ac_fn_c_try_cpp LINENO
1753 # ----------------------
1754 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1755 ac_fn_c_try_cpp ()
1756 {
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 if { { ac_try="$ac_cpp conftest.$ac_ext"
1759 case "(($ac_try" in
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1762 esac
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1766 ac_status=$?
1767 if test -s conftest.err; then
1768 grep -v '^ *+' conftest.err >conftest.er1
1769 cat conftest.er1 >&5
1770 mv -f conftest.er1 conftest.err
1771 fi
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } > conftest.i && {
1774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1775 test ! -s conftest.err
1776 }; then :
1777 ac_retval=0
1778 else
1779 $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1781
1782 ac_retval=1
1783 fi
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785 as_fn_set_status $ac_retval
1786
1787 } # ac_fn_c_try_cpp
1788
1789 # ac_fn_c_try_run LINENO
1790 # ----------------------
1791 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1792 # that executables *can* be run.
1793 ac_fn_c_try_run ()
1794 {
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 if { { ac_try="$ac_link"
1797 case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_link") 2>&5
1804 ac_status=$?
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1807 { { case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810 esac
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_try") 2>&5
1814 ac_status=$?
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; }; }; then :
1817 ac_retval=0
1818 else
1819 $as_echo "$as_me: program exited with status $ac_status" >&5
1820 $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1822
1823 ac_retval=$ac_status
1824 fi
1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 as_fn_set_status $ac_retval
1828
1829 } # ac_fn_c_try_run
1830
1831 # ac_fn_c_check_func LINENO FUNC VAR
1832 # ----------------------------------
1833 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1834 ac_fn_c_check_func ()
1835 {
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838 $as_echo_n "checking for $2... " >&6; }
1839 if eval \${$3+:} false; then :
1840 $as_echo_n "(cached) " >&6
1841 else
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1844 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1846 #define $2 innocuous_$2
1847
1848 /* System header to define __stub macros and hopefully few prototypes,
1849 which can conflict with char $2 (); below.
1850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1851 <limits.h> exists even on freestanding compilers. */
1852
1853 #ifdef __STDC__
1854 # include <limits.h>
1855 #else
1856 # include <assert.h>
1857 #endif
1858
1859 #undef $2
1860
1861 /* Override any GCC internal prototype to avoid an error.
1862 Use char because int might match the return type of a GCC
1863 builtin and then its argument prototype would still apply. */
1864 #ifdef __cplusplus
1865 extern "C"
1866 #endif
1867 char $2 ();
1868 /* The GNU C library defines this for functions which it implements
1869 to always fail with ENOSYS. Some functions are actually named
1870 something starting with __ and the normal name is an alias. */
1871 #if defined __stub_$2 || defined __stub___$2
1872 choke me
1873 #endif
1874
1875 int
1876 main ()
1877 {
1878 return $2 ();
1879 ;
1880 return 0;
1881 }
1882 _ACEOF
1883 if ac_fn_c_try_link "$LINENO"; then :
1884 eval "$3=yes"
1885 else
1886 eval "$3=no"
1887 fi
1888 rm -f core conftest.err conftest.$ac_objext \
1889 conftest$ac_exeext conftest.$ac_ext
1890 fi
1891 eval ac_res=\$$3
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893 $as_echo "$ac_res" >&6; }
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895
1896 } # ac_fn_c_check_func
1897
1898 # ac_fn_cxx_try_cpp LINENO
1899 # ------------------------
1900 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1901 ac_fn_cxx_try_cpp ()
1902 {
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 if { { ac_try="$ac_cpp conftest.$ac_ext"
1905 case "(($ac_try" in
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1908 esac
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1912 ac_status=$?
1913 if test -s conftest.err; then
1914 grep -v '^ *+' conftest.err >conftest.er1
1915 cat conftest.er1 >&5
1916 mv -f conftest.er1 conftest.err
1917 fi
1918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919 test $ac_status = 0; } > conftest.i && {
1920 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1921 test ! -s conftest.err
1922 }; then :
1923 ac_retval=0
1924 else
1925 $as_echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.$ac_ext >&5
1927
1928 ac_retval=1
1929 fi
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 as_fn_set_status $ac_retval
1932
1933 } # ac_fn_cxx_try_cpp
1934
1935 # ac_fn_cxx_try_link LINENO
1936 # -------------------------
1937 # Try to link conftest.$ac_ext, and return whether this succeeded.
1938 ac_fn_cxx_try_link ()
1939 {
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 rm -f conftest.$ac_objext conftest$ac_exeext
1942 if { { ac_try="$ac_link"
1943 case "(($ac_try" in
1944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945 *) ac_try_echo=$ac_try;;
1946 esac
1947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948 $as_echo "$ac_try_echo"; } >&5
1949 (eval "$ac_link") 2>conftest.err
1950 ac_status=$?
1951 if test -s conftest.err; then
1952 grep -v '^ *+' conftest.err >conftest.er1
1953 cat conftest.er1 >&5
1954 mv -f conftest.er1 conftest.err
1955 fi
1956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957 test $ac_status = 0; } && {
1958 test -z "$ac_cxx_werror_flag" ||
1959 test ! -s conftest.err
1960 } && test -s conftest$ac_exeext && {
1961 test "$cross_compiling" = yes ||
1962 test -x conftest$ac_exeext
1963 }; then :
1964 ac_retval=0
1965 else
1966 $as_echo "$as_me: failed program was:" >&5
1967 sed 's/^/| /' conftest.$ac_ext >&5
1968
1969 ac_retval=1
1970 fi
1971 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1972 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1973 # interfere with the next link command; also delete a directory that is
1974 # left behind by Apple's compiler. We do this before executing the actions.
1975 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977 as_fn_set_status $ac_retval
1978
1979 } # ac_fn_cxx_try_link
1980
1981 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1982 # -------------------------------------------------------
1983 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1984 # the include files in INCLUDES and setting the cache variable VAR
1985 # accordingly.
1986 ac_fn_c_check_header_mongrel ()
1987 {
1988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989 if eval \${$3+:} false; then :
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1991 $as_echo_n "checking for $2... " >&6; }
1992 if eval \${$3+:} false; then :
1993 $as_echo_n "(cached) " >&6
1994 fi
1995 eval ac_res=\$$3
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997 $as_echo "$ac_res" >&6; }
1998 else
1999 # Is the header compilable?
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2001 $as_echo_n "checking $2 usability... " >&6; }
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2004 $4
2005 #include <$2>
2006 _ACEOF
2007 if ac_fn_c_try_compile "$LINENO"; then :
2008 ac_header_compiler=yes
2009 else
2010 ac_header_compiler=no
2011 fi
2012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2014 $as_echo "$ac_header_compiler" >&6; }
2015
2016 # Is the header present?
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2018 $as_echo_n "checking $2 presence... " >&6; }
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2021 #include <$2>
2022 _ACEOF
2023 if ac_fn_c_try_cpp "$LINENO"; then :
2024 ac_header_preproc=yes
2025 else
2026 ac_header_preproc=no
2027 fi
2028 rm -f conftest.err conftest.i conftest.$ac_ext
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2030 $as_echo "$ac_header_preproc" >&6; }
2031
2032 # So? What about this header?
2033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2034 yes:no: )
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2036 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2038 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2039 ;;
2040 no:yes:* )
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2042 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2044 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2046 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2048 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2050 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2051 ;;
2052 esac
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2054 $as_echo_n "checking for $2... " >&6; }
2055 if eval \${$3+:} false; then :
2056 $as_echo_n "(cached) " >&6
2057 else
2058 eval "$3=\$ac_header_compiler"
2059 fi
2060 eval ac_res=\$$3
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2062 $as_echo "$ac_res" >&6; }
2063 fi
2064 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2065
2066 } # ac_fn_c_check_header_mongrel
2067 cat >config.log <<_ACEOF
2068 This file contains any messages produced by compilers while
2069 running configure, to aid debugging if configure makes a mistake.
2070
2071 It was created by genders $as_me 1.27, which was
2072 generated by GNU Autoconf 2.69. Invocation command line was
2073
2074 $ $0 $@
2075
2076 _ACEOF
2077 exec 5>>config.log
2078 {
2079 cat <<_ASUNAME
2080 ## --------- ##
2081 ## Platform. ##
2082 ## --------- ##
2083
2084 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2085 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2086 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2087 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2088 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2089
2090 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2091 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2092
2093 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2094 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2095 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2096 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2097 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2098 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2099 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2100
2101 _ASUNAME
2102
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104 for as_dir in $PATH
2105 do
2106 IFS=$as_save_IFS
2107 test -z "$as_dir" && as_dir=.
2108 $as_echo "PATH: $as_dir"
2109 done
2110 IFS=$as_save_IFS
2111
2112 } >&5
2113
2114 cat >&5 <<_ACEOF
2115
2116
2117 ## ----------- ##
2118 ## Core tests. ##
2119 ## ----------- ##
2120
2121 _ACEOF
2122
2123
2124 # Keep a trace of the command line.
2125 # Strip out --no-create and --no-recursion so they do not pile up.
2126 # Strip out --silent because we don't want to record it for future runs.
2127 # Also quote any args containing shell meta-characters.
2128 # Make two passes to allow for proper duplicate-argument suppression.
2129 ac_configure_args=
2130 ac_configure_args0=
2131 ac_configure_args1=
2132 ac_must_keep_next=false
2133 for ac_pass in 1 2
2134 do
2135 for ac_arg
2136 do
2137 case $ac_arg in
2138 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2140 | -silent | --silent | --silen | --sile | --sil)
2141 continue ;;
2142 *\'*)
2143 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2144 esac
2145 case $ac_pass in
2146 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2147 2)
2148 as_fn_append ac_configure_args1 " '$ac_arg'"
2149 if test $ac_must_keep_next = true; then
2150 ac_must_keep_next=false # Got value, back to normal.
2151 else
2152 case $ac_arg in
2153 *=* | --config-cache | -C | -disable-* | --disable-* \
2154 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2155 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2156 | -with-* | --with-* | -without-* | --without-* | --x)
2157 case "$ac_configure_args0 " in
2158 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2159 esac
2160 ;;
2161 -* ) ac_must_keep_next=true ;;
2162 esac
2163 fi
2164 as_fn_append ac_configure_args " '$ac_arg'"
2165 ;;
2166 esac
2167 done
2168 done
2169 { ac_configure_args0=; unset ac_configure_args0;}
2170 { ac_configure_args1=; unset ac_configure_args1;}
2171
2172 # When interrupted or exit'd, cleanup temporary files, and complete
2173 # config.log. We remove comments because anyway the quotes in there
2174 # would cause problems or look ugly.
2175 # WARNING: Use '\'' to represent an apostrophe within the trap.
2176 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2177 trap 'exit_status=$?
2178 # Save into config.log some information that might help in debugging.
2179 {
2180 echo
2181
2182 $as_echo "## ---------------- ##
2183 ## Cache variables. ##
2184 ## ---------------- ##"
2185 echo
2186 # The following way of writing the cache mishandles newlines in values,
2187 (
2188 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2189 eval ac_val=\$$ac_var
2190 case $ac_val in #(
2191 *${as_nl}*)
2192 case $ac_var in #(
2193 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2194 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2195 esac
2196 case $ac_var in #(
2197 _ | IFS | as_nl) ;; #(
2198 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2199 *) { eval $ac_var=; unset $ac_var;} ;;
2200 esac ;;
2201 esac
2202 done
2203 (set) 2>&1 |
2204 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2205 *${as_nl}ac_space=\ *)
2206 sed -n \
2207 "s/'\''/'\''\\\\'\'''\''/g;
2208 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2209 ;; #(
2210 *)
2211 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2212 ;;
2213 esac |
2214 sort
2215 )
2216 echo
2217
2218 $as_echo "## ----------------- ##
2219 ## Output variables. ##
2220 ## ----------------- ##"
2221 echo
2222 for ac_var in $ac_subst_vars
2223 do
2224 eval ac_val=\$$ac_var
2225 case $ac_val in
2226 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2227 esac
2228 $as_echo "$ac_var='\''$ac_val'\''"
2229 done | sort
2230 echo
2231
2232 if test -n "$ac_subst_files"; then
2233 $as_echo "## ------------------- ##
2234 ## File substitutions. ##
2235 ## ------------------- ##"
2236 echo
2237 for ac_var in $ac_subst_files
2238 do
2239 eval ac_val=\$$ac_var
2240 case $ac_val in
2241 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2242 esac
2243 $as_echo "$ac_var='\''$ac_val'\''"
2244 done | sort
2245 echo
2246 fi
2247
2248 if test -s confdefs.h; then
2249 $as_echo "## ----------- ##
2250 ## confdefs.h. ##
2251 ## ----------- ##"
2252 echo
2253 cat confdefs.h
2254 echo
2255 fi
2256 test "$ac_signal" != 0 &&
2257 $as_echo "$as_me: caught signal $ac_signal"
2258 $as_echo "$as_me: exit $exit_status"
2259 } >&5
2260 rm -f core *.core core.conftest.* &&
2261 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2262 exit $exit_status
2263 ' 0
2264 for ac_signal in 1 2 13 15; do
2265 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2266 done
2267 ac_signal=0
2268
2269 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2270 rm -f -r conftest* confdefs.h
2271
2272 $as_echo "/* confdefs.h */" > confdefs.h
2273
2274 # Predefined preprocessor variables.
2275
2276 cat >>confdefs.h <<_ACEOF
2277 #define PACKAGE_NAME "$PACKAGE_NAME"
2278 _ACEOF
2279
2280 cat >>confdefs.h <<_ACEOF
2281 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2282 _ACEOF
2283
2284 cat >>confdefs.h <<_ACEOF
2285 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2286 _ACEOF
2287
2288 cat >>confdefs.h <<_ACEOF
2289 #define PACKAGE_STRING "$PACKAGE_STRING"
2290 _ACEOF
2291
2292 cat >>confdefs.h <<_ACEOF
2293 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2294 _ACEOF
2295
2296 cat >>confdefs.h <<_ACEOF
2297 #define PACKAGE_URL "$PACKAGE_URL"
2298 _ACEOF
2299
2300
2301 # Let the site file select an alternate cache file if it wants to.
2302 # Prefer an explicitly selected file to automatically selected ones.
2303 ac_site_file1=NONE
2304 ac_site_file2=NONE
2305 if test -n "$CONFIG_SITE"; then
2306 # We do not want a PATH search for config.site.
2307 case $CONFIG_SITE in #((
2308 -*) ac_site_file1=./$CONFIG_SITE;;
2309 */*) ac_site_file1=$CONFIG_SITE;;
2310 *) ac_site_file1=./$CONFIG_SITE;;
2311 esac
2312 elif test "x$prefix" != xNONE; then
2313 ac_site_file1=$prefix/share/config.site
2314 ac_site_file2=$prefix/etc/config.site
2315 else
2316 ac_site_file1=$ac_default_prefix/share/config.site
2317 ac_site_file2=$ac_default_prefix/etc/config.site
2318 fi
2319 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2320 do
2321 test "x$ac_site_file" = xNONE && continue
2322 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2324 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2325 sed 's/^/| /' "$ac_site_file" >&5
2326 . "$ac_site_file" \
2327 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2329 as_fn_error $? "failed to load site script $ac_site_file
2330 See \`config.log' for more details" "$LINENO" 5; }
2331 fi
2332 done
2333
2334 if test -r "$cache_file"; then
2335 # Some versions of bash will fail to source /dev/null (special files
2336 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2337 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2339 $as_echo "$as_me: loading cache $cache_file" >&6;}
2340 case $cache_file in
2341 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2342 *) . "./$cache_file";;
2343 esac
2344 fi
2345 else
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2347 $as_echo "$as_me: creating cache $cache_file" >&6;}
2348 >$cache_file
2349 fi
2350
2351 # Check that the precious variables saved in the cache have kept the same
2352 # value.
2353 ac_cache_corrupted=false
2354 for ac_var in $ac_precious_vars; do
2355 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2356 eval ac_new_set=\$ac_env_${ac_var}_set
2357 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2358 eval ac_new_val=\$ac_env_${ac_var}_value
2359 case $ac_old_set,$ac_new_set in
2360 set,)
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2362 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2363 ac_cache_corrupted=: ;;
2364 ,set)
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2366 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2367 ac_cache_corrupted=: ;;
2368 ,);;
2369 *)
2370 if test "x$ac_old_val" != "x$ac_new_val"; then
2371 # differences in whitespace do not lead to failure.
2372 ac_old_val_w=`echo x $ac_old_val`
2373 ac_new_val_w=`echo x $ac_new_val`
2374 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2376 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2377 ac_cache_corrupted=:
2378 else
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2380 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2381 eval $ac_var=\$ac_old_val
2382 fi
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2384 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2386 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2387 fi;;
2388 esac
2389 # Pass precious variables to config.status.
2390 if test "$ac_new_set" = set; then
2391 case $ac_new_val in
2392 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2393 *) ac_arg=$ac_var=$ac_new_val ;;
2394 esac
2395 case " $ac_configure_args " in
2396 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2397 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2398 esac
2399 fi
2400 done
2401 if $ac_cache_corrupted; then
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2405 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2406 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2407 fi
2408 ## -------------------- ##
2409 ## Main body of script. ##
2410 ## -------------------- ##
2411
2412 ac_ext=c
2413 ac_cpp='$CPP $CPPFLAGS'
2414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2417
2418
2419
2420 PROJECT="`perl -ne 'print,exit if s/^\s*NAME:\s*(\S*).*/\1/i' $srcdir/META`"
2421
2422 cat >>confdefs.h <<_ACEOF
2423 #define PROJECT "$PROJECT"
2424 _ACEOF
2425
2426
2427
2428 VERSION="`perl -ne 'print,exit if s/^\s*VERSION:\s*(\S*).*/\1/i' $srcdir/META`"
2429
2430 cat >>confdefs.h <<_ACEOF
2431 #define VERSION "$VERSION"
2432 _ACEOF
2433
2434
2435
2436 RELEASE="`perl -ne 'print,exit if s/^\s*RELEASE:\s*(\S*).*/\1/i' $srcdir/META`"
2437
2438 cat >>confdefs.h <<_ACEOF
2439 #define RELEASE "$RELEASE"
2440 _ACEOF
2441
2442
2443
2444 ac_aux_dir=
2445 for ac_dir in config "$srcdir"/config; do
2446 if test -f "$ac_dir/install-sh"; then
2447 ac_aux_dir=$ac_dir
2448 ac_install_sh="$ac_aux_dir/install-sh -c"
2449 break
2450 elif test -f "$ac_dir/install.sh"; then
2451 ac_aux_dir=$ac_dir
2452 ac_install_sh="$ac_aux_dir/install.sh -c"
2453 break
2454 elif test -f "$ac_dir/shtool"; then
2455 ac_aux_dir=$ac_dir
2456 ac_install_sh="$ac_aux_dir/shtool install -c"
2457 break
2458 fi
2459 done
2460 if test -z "$ac_aux_dir"; then
2461 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2462 fi
2463
2464 # These three variables are undocumented and unsupported,
2465 # and are intended to be withdrawn in a future Autoconf release.
2466 # They can cause serious problems if a builder's source tree is in a directory
2467 # whose full name contains unusual characters.
2468 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2469 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2470 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2471
2472
2473
2474 # Make sure we can run config.sub.
2475 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2476 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2477
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2479 $as_echo_n "checking build system type... " >&6; }
2480 if ${ac_cv_build+:} false; then :
2481 $as_echo_n "(cached) " >&6
2482 else
2483 ac_build_alias=$build_alias
2484 test "x$ac_build_alias" = x &&
2485 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2486 test "x$ac_build_alias" = x &&
2487 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2488 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2489 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2490
2491 fi
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2493 $as_echo "$ac_cv_build" >&6; }
2494 case $ac_cv_build in
2495 *-*-*) ;;
2496 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2497 esac
2498 build=$ac_cv_build
2499 ac_save_IFS=$IFS; IFS='-'
2500 set x $ac_cv_build
2501 shift
2502 build_cpu=$1
2503 build_vendor=$2
2504 shift; shift
2505 # Remember, the first character of IFS is used to create $*,
2506 # except with old shells:
2507 build_os=$*
2508 IFS=$ac_save_IFS
2509 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2510
2511
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2513 $as_echo_n "checking host system type... " >&6; }
2514 if ${ac_cv_host+:} false; then :
2515 $as_echo_n "(cached) " >&6
2516 else
2517 if test "x$host_alias" = x; then
2518 ac_cv_host=$ac_cv_build
2519 else
2520 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2521 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2522 fi
2523
2524 fi
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2526 $as_echo "$ac_cv_host" >&6; }
2527 case $ac_cv_host in
2528 *-*-*) ;;
2529 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2530 esac
2531 host=$ac_cv_host
2532 ac_save_IFS=$IFS; IFS='-'
2533 set x $ac_cv_host
2534 shift
2535 host_cpu=$1
2536 host_vendor=$2
2537 shift; shift
2538 # Remember, the first character of IFS is used to create $*,
2539 # except with old shells:
2540 host_os=$*
2541 IFS=$ac_save_IFS
2542 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2543
2544
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2546 $as_echo_n "checking target system type... " >&6; }
2547 if ${ac_cv_target+:} false; then :
2548 $as_echo_n "(cached) " >&6
2549 else
2550 if test "x$target_alias" = x; then
2551 ac_cv_target=$ac_cv_host
2552 else
2553 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2554 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2555 fi
2556
2557 fi
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2559 $as_echo "$ac_cv_target" >&6; }
2560 case $ac_cv_target in
2561 *-*-*) ;;
2562 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2563 esac
2564 target=$ac_cv_target
2565 ac_save_IFS=$IFS; IFS='-'
2566 set x $ac_cv_target
2567 shift
2568 target_cpu=$1
2569 target_vendor=$2
2570 shift; shift
2571 # Remember, the first character of IFS is used to create $*,
2572 # except with old shells:
2573 target_os=$*
2574 IFS=$ac_save_IFS
2575 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2576
2577
2578 # The aliases save the names the user supplied, while $host etc.
2579 # will get canonicalized.
2580 test -n "$target_alias" &&
2581 test "$program_prefix$program_suffix$program_transform_name" = \
2582 NONENONEs,x,x, &&
2583 program_prefix=${target_alias}-
2584
2585 ##
2586 # Automake support.
2587 ##
2588 am__api_version='1.13'
2589
2590 # Find a good install program. We prefer a C program (faster),
2591 # so one script is as good as another. But avoid the broken or
2592 # incompatible versions:
2593 # SysV /etc/install, /usr/sbin/install
2594 # SunOS /usr/etc/install
2595 # IRIX /sbin/install
2596 # AIX /bin/install
2597 # AmigaOS /C/install, which installs bootblocks on floppy discs
2598 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2599 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2600 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2601 # OS/2's system install, which has a completely different semantic
2602 # ./install, which can be erroneously created by make from ./install.sh.
2603 # Reject install programs that cannot install multiple files.
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2605 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2606 if test -z "$INSTALL"; then
2607 if ${ac_cv_path_install+:} false; then :
2608 $as_echo_n "(cached) " >&6
2609 else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2612 do
2613 IFS=$as_save_IFS
2614 test -z "$as_dir" && as_dir=.
2615 # Account for people who put trailing slashes in PATH elements.
2616 case $as_dir/ in #((
2617 ./ | .// | /[cC]/* | \
2618 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2619 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2620 /usr/ucb/* ) ;;
2621 *)
2622 # OSF1 and SCO ODT 3.0 have their own names for install.
2623 # Don't use installbsd from OSF since it installs stuff as root
2624 # by default.
2625 for ac_prog in ginstall scoinst install; do
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2628 if test $ac_prog = install &&
2629 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2630 # AIX install. It has an incompatible calling convention.
2631 :
2632 elif test $ac_prog = install &&
2633 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2634 # program-specific install script used by HP pwplus--don't use.
2635 :
2636 else
2637 rm -rf conftest.one conftest.two conftest.dir
2638 echo one > conftest.one
2639 echo two > conftest.two
2640 mkdir conftest.dir
2641 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2642 test -s conftest.one && test -s conftest.two &&
2643 test -s conftest.dir/conftest.one &&
2644 test -s conftest.dir/conftest.two
2645 then
2646 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2647 break 3
2648 fi
2649 fi
2650 fi
2651 done
2652 done
2653 ;;
2654 esac
2655
2656 done
2657 IFS=$as_save_IFS
2658
2659 rm -rf conftest.one conftest.two conftest.dir
2660
2661 fi
2662 if test "${ac_cv_path_install+set}" = set; then
2663 INSTALL=$ac_cv_path_install
2664 else
2665 # As a last resort, use the slow shell script. Don't cache a
2666 # value for INSTALL within a source directory, because that will
2667 # break other packages using the cache if that directory is
2668 # removed, or if the value is a relative name.
2669 INSTALL=$ac_install_sh
2670 fi
2671 fi
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2673 $as_echo "$INSTALL" >&6; }
2674
2675 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2676 # It thinks the first close brace ends the variable substitution.
2677 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2678
2679 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2680
2681 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2682
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2684 $as_echo_n "checking whether build environment is sane... " >&6; }
2685 # Reject unsafe characters in $srcdir or the absolute working directory
2686 # name. Accept space and tab only in the latter.
2687 am_lf='
2688 '
2689 case `pwd` in
2690 *[\\\"\#\$\&\'\`$am_lf]*)
2691 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2692 esac
2693 case $srcdir in
2694 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2695 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2696 esac
2697
2698 # Do 'set' in a subshell so we don't clobber the current shell's
2699 # arguments. Must try -L first in case configure is actually a
2700 # symlink; some systems play weird games with the mod time of symlinks
2701 # (eg FreeBSD returns the mod time of the symlink's containing
2702 # directory).
2703 if (
2704 am_has_slept=no
2705 for am_try in 1 2; do
2706 echo "timestamp, slept: $am_has_slept" > conftest.file
2707 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2708 if test "$*" = "X"; then
2709 # -L didn't work.
2710 set X `ls -t "$srcdir/configure" conftest.file`
2711 fi
2712 if test "$*" != "X $srcdir/configure conftest.file" \
2713 && test "$*" != "X conftest.file $srcdir/configure"; then
2714
2715 # If neither matched, then we have a broken ls. This can happen
2716 # if, for instance, CONFIG_SHELL is bash and it inherits a
2717 # broken ls alias from the environment. This has actually
2718 # happened. Such a system could not be considered "sane".
2719 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2720 alias in your environment" "$LINENO" 5
2721 fi
2722 if test "$2" = conftest.file || test $am_try -eq 2; then
2723 break
2724 fi
2725 # Just in case.
2726 sleep 1
2727 am_has_slept=yes
2728 done
2729 test "$2" = conftest.file
2730 )
2731 then
2732 # Ok.
2733 :
2734 else
2735 as_fn_error $? "newly created file is older than distributed files!
2736 Check your system clock" "$LINENO" 5
2737 fi
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2739 $as_echo "yes" >&6; }
2740 # If we didn't sleep, we still need to ensure time stamps of config.status and
2741 # generated files are strictly newer.
2742 am_sleep_pid=
2743 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2744 ( sleep 1 ) &
2745 am_sleep_pid=$!
2746 fi
2747
2748 rm -f conftest.file
2749
2750 test "$program_prefix" != NONE &&
2751 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2752 # Use a double $ so make ignores it.
2753 test "$program_suffix" != NONE &&
2754 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2755 # Double any \ or $.
2756 # By default was `s,x,x', remove it if useless.
2757 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2758 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2759
2760 # expand $ac_aux_dir to an absolute path
2761 am_aux_dir=`cd $ac_aux_dir && pwd`
2762
2763 if test x"${MISSING+set}" != xset; then
2764 case $am_aux_dir in
2765 *\ * | *\ *)
2766 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2767 *)
2768 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2769 esac
2770 fi
2771 # Use eval to expand $SHELL
2772 if eval "$MISSING --is-lightweight"; then
2773 am_missing_run="$MISSING "
2774 else
2775 am_missing_run=
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2777 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2778 fi
2779
2780 if test x"${install_sh}" != xset; then
2781 case $am_aux_dir in
2782 *\ * | *\ *)
2783 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2784 *)
2785 install_sh="\${SHELL} $am_aux_dir/install-sh"
2786 esac
2787 fi
2788
2789 # Installed binaries are usually stripped using 'strip' when the user
2790 # run "make install-strip". However 'strip' might not be the right
2791 # tool to use in cross-compilation environments, therefore Automake
2792 # will honor the 'STRIP' environment variable to overrule this program.
2793 if test "$cross_compiling" != no; then
2794 if test -n "$ac_tool_prefix"; then
2795 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2796 set dummy ${ac_tool_prefix}strip; ac_word=$2
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798 $as_echo_n "checking for $ac_word... " >&6; }
2799 if ${ac_cv_prog_STRIP+:} false; then :
2800 $as_echo_n "(cached) " >&6
2801 else
2802 if test -n "$STRIP"; then
2803 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2804 else
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2807 do
2808 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 break 2
2815 fi
2816 done
2817 done
2818 IFS=$as_save_IFS
2819
2820 fi
2821 fi
2822 STRIP=$ac_cv_prog_STRIP
2823 if test -n "$STRIP"; then
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2825 $as_echo "$STRIP" >&6; }
2826 else
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828 $as_echo "no" >&6; }
2829 fi
2830
2831
2832 fi
2833 if test -z "$ac_cv_prog_STRIP"; then
2834 ac_ct_STRIP=$STRIP
2835 # Extract the first word of "strip", so it can be a program name with args.
2836 set dummy strip; ac_word=$2
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838 $as_echo_n "checking for $ac_word... " >&6; }
2839 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2840 $as_echo_n "(cached) " >&6
2841 else
2842 if test -n "$ac_ct_STRIP"; then
2843 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2844 else
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2847 do
2848 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2852 ac_cv_prog_ac_ct_STRIP="strip"
2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 break 2
2855 fi
2856 done
2857 done
2858 IFS=$as_save_IFS
2859
2860 fi
2861 fi
2862 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2863 if test -n "$ac_ct_STRIP"; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2865 $as_echo "$ac_ct_STRIP" >&6; }
2866 else
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2869 fi
2870
2871 if test "x$ac_ct_STRIP" = x; then
2872 STRIP=":"
2873 else
2874 case $cross_compiling:$ac_tool_warned in
2875 yes:)
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2878 ac_tool_warned=yes ;;
2879 esac
2880 STRIP=$ac_ct_STRIP
2881 fi
2882 else
2883 STRIP="$ac_cv_prog_STRIP"
2884 fi
2885
2886 fi
2887 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2888
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2890 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2891 if test -z "$MKDIR_P"; then
2892 if ${ac_cv_path_mkdir+:} false; then :
2893 $as_echo_n "(cached) " >&6
2894 else
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2897 do
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
2900 for ac_prog in mkdir gmkdir; do
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2903 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2904 'mkdir (GNU coreutils) '* | \
2905 'mkdir (coreutils) '* | \
2906 'mkdir (fileutils) '4.1*)
2907 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2908 break 3;;
2909 esac
2910 done
2911 done
2912 done
2913 IFS=$as_save_IFS
2914
2915 fi
2916
2917 test -d ./--version && rmdir ./--version
2918 if test "${ac_cv_path_mkdir+set}" = set; then
2919 MKDIR_P="$ac_cv_path_mkdir -p"
2920 else
2921 # As a last resort, use the slow shell script. Don't cache a
2922 # value for MKDIR_P within a source directory, because that will
2923 # break other packages using the cache if that directory is
2924 # removed, or if the value is a relative name.
2925 MKDIR_P="$ac_install_sh -d"
2926 fi
2927 fi
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2929 $as_echo "$MKDIR_P" >&6; }
2930
2931 for ac_prog in gawk mawk nawk awk
2932 do
2933 # Extract the first word of "$ac_prog", so it can be a program name with args.
2934 set dummy $ac_prog; ac_word=$2
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936 $as_echo_n "checking for $ac_word... " >&6; }
2937 if ${ac_cv_prog_AWK+:} false; then :
2938 $as_echo_n "(cached) " >&6
2939 else
2940 if test -n "$AWK"; then
2941 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2942 else
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2945 do
2946 IFS=$as_save_IFS
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2950 ac_cv_prog_AWK="$ac_prog"
2951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2952 break 2
2953 fi
2954 done
2955 done
2956 IFS=$as_save_IFS
2957
2958 fi
2959 fi
2960 AWK=$ac_cv_prog_AWK
2961 if test -n "$AWK"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2963 $as_echo "$AWK" >&6; }
2964 else
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2967 fi
2968
2969
2970 test -n "$AWK" && break
2971 done
2972
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2974 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2975 set x ${MAKE-make}
2976 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2977 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2978 $as_echo_n "(cached) " >&6
2979 else
2980 cat >conftest.make <<\_ACEOF
2981 SHELL = /bin/sh
2982 all:
2983 @echo '@@@%%%=$(MAKE)=@@@%%%'
2984 _ACEOF
2985 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2986 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2987 *@@@%%%=?*=@@@%%%*)
2988 eval ac_cv_prog_make_${ac_make}_set=yes;;
2989 *)
2990 eval ac_cv_prog_make_${ac_make}_set=no;;
2991 esac
2992 rm -f conftest.make
2993 fi
2994 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2996 $as_echo "yes" >&6; }
2997 SET_MAKE=
2998 else
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3001 SET_MAKE="MAKE=${MAKE-make}"
3002 fi
3003
3004 rm -rf .tst 2>/dev/null
3005 mkdir .tst 2>/dev/null
3006 if test -d .tst; then
3007 am__leading_dot=.
3008 else
3009 am__leading_dot=_
3010 fi
3011 rmdir .tst 2>/dev/null
3012
3013 # Check whether --enable-silent-rules was given.
3014 if test "${enable_silent_rules+set}" = set; then :
3015 enableval=$enable_silent_rules;
3016 fi
3017
3018 case $enable_silent_rules in # (((
3019 yes) AM_DEFAULT_VERBOSITY=0;;
3020 no) AM_DEFAULT_VERBOSITY=1;;
3021 *) AM_DEFAULT_VERBOSITY=1;;
3022 esac
3023 am_make=${MAKE-make}
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3025 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3026 if ${am_cv_make_support_nested_variables+:} false; then :
3027 $as_echo_n "(cached) " >&6
3028 else
3029 if $as_echo 'TRUE=$(BAR$(V))
3030 BAR0=false
3031 BAR1=true
3032 V=1
3033 am__doit:
3034 @$(TRUE)
3035 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3036 am_cv_make_support_nested_variables=yes
3037 else
3038 am_cv_make_support_nested_variables=no
3039 fi
3040 fi
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3042 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3043 if test $am_cv_make_support_nested_variables = yes; then
3044 AM_V='$(V)'
3045 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3046 else
3047 AM_V=$AM_DEFAULT_VERBOSITY
3048 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3049 fi
3050 AM_BACKSLASH='\'
3051
3052 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3053 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3054 # is not polluted with repeated "-I."
3055 am__isrc=' -I$(srcdir)'
3056 # test to see if srcdir already configured
3057 if test -f $srcdir/config.status; then
3058 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3059 fi
3060 fi
3061
3062 # test whether we have cygpath
3063 if test -z "$CYGPATH_W"; then
3064 if (cygpath --version) >/dev/null 2>/dev/null; then
3065 CYGPATH_W='cygpath -w'
3066 else
3067 CYGPATH_W=echo
3068 fi
3069 fi
3070
3071
3072 # Define the identity of the package.
3073 PACKAGE='genders'
3074 VERSION='1.27'
3075
3076
3077 cat >>confdefs.h <<_ACEOF
3078 #define PACKAGE "$PACKAGE"
3079 _ACEOF
3080
3081
3082 cat >>confdefs.h <<_ACEOF
3083 #define VERSION "$VERSION"
3084 _ACEOF
3085
3086 # Some tools Automake needs.
3087
3088 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3089
3090
3091 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3092
3093
3094 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3095
3096
3097 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3098
3099
3100 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3101
3102 # For better backward compatibility. To be removed once Automake 1.9.x
3103 # dies out for good. For more background, see:
3104 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3105 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3106 mkdir_p='$(MKDIR_P)'
3107
3108 # We need awk for the "check" target. The system "awk" is bad on
3109 # some platforms.
3110 # Always define AMTAR for backward compatibility. Yes, it's still used
3111 # in the wild :-( We should find a proper way to deprecate it ...
3112 AMTAR='$${TAR-tar}'
3113
3114
3115 # We'll loop over all known methods to create a tar archive until one works.
3116 _am_tools='gnutar plaintar pax cpio none'
3117
3118 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3119 # There is notably a 21 bits limit for the UID and the GID. In fact,
3120 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3121 # and bug#13588).
3122 am_max_uid=2097151 # 2^21 - 1
3123 am_max_gid=$am_max_uid
3124 # The $UID and $GID variables are not portable, so we need to resort
3125 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3126 # below are definitely unexpected, so allow the users to see them
3127 # (that is, avoid stderr redirection).
3128 am_uid=`id -u || echo unknown`
3129 am_gid=`id -g || echo unknown`
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3131 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3132 if test $am_uid -le $am_max_uid; then
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3134 $as_echo "yes" >&6; }
3135 else
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137 $as_echo "no" >&6; }
3138 _am_tools=none
3139 fi
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3141 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3142 if test $am_gid -le $am_max_gid; then
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3144 $as_echo "yes" >&6; }
3145 else
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3148 _am_tools=none
3149 fi
3150
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3152 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3153
3154 # Go ahead even if we have the value already cached. We do so because we
3155 # need to set the values for the 'am__tar' and 'am__untar' variables.
3156 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3157
3158 for _am_tool in $_am_tools; do
3159 case $_am_tool in
3160 gnutar)
3161 for _am_tar in tar gnutar gtar; do
3162 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3163 ($_am_tar --version) >&5 2>&5
3164 ac_status=$?
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); } && break
3167 done
3168 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3169 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3170 am__untar="$_am_tar -xf -"
3171 ;;
3172 plaintar)
3173 # Must skip GNU tar: if it does not support --format= it doesn't create
3174 # ustar tarball either.
3175 (tar --version) >/dev/null 2>&1 && continue
3176 am__tar='tar chf - "$$tardir"'
3177 am__tar_='tar chf - "$tardir"'
3178 am__untar='tar xf -'
3179 ;;
3180 pax)
3181 am__tar='pax -L -x ustar -w "$$tardir"'
3182 am__tar_='pax -L -x ustar -w "$tardir"'
3183 am__untar='pax -r'
3184 ;;
3185 cpio)
3186 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3187 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3188 am__untar='cpio -i -H ustar -d'
3189 ;;
3190 none)
3191 am__tar=false
3192 am__tar_=false
3193 am__untar=false
3194 ;;
3195 esac
3196
3197 # If the value was cached, stop now. We just wanted to have am__tar
3198 # and am__untar set.
3199 test -n "${am_cv_prog_tar_ustar}" && break
3200
3201 # tar/untar a dummy directory, and stop if the command works.
3202 rm -rf conftest.dir
3203 mkdir conftest.dir
3204 echo GrepMe > conftest.dir/file
3205 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3206 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3207 ac_status=$?
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }
3210 rm -rf conftest.dir
3211 if test -s conftest.tar; then
3212 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3213 ($am__untar <conftest.tar) >&5 2>&5
3214 ac_status=$?
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }
3217 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3218 (cat conftest.dir/file) >&5 2>&5
3219 ac_status=$?
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); }
3222 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3223 fi
3224 done
3225 rm -rf conftest.dir
3226
3227 if ${am_cv_prog_tar_ustar+:} false; then :
3228 $as_echo_n "(cached) " >&6
3229 else
3230 am_cv_prog_tar_ustar=$_am_tool
3231 fi
3232
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3234 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3235
3236
3237
3238
3239
3240
3241 ac_config_headers="$ac_config_headers config/config.h"
3242
3243
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3245 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3246 # Check whether --enable-maintainer-mode was given.
3247 if test "${enable_maintainer_mode+set}" = set; then :
3248 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3249 else
3250 USE_MAINTAINER_MODE=no
3251 fi
3252
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3254 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3255 if test $USE_MAINTAINER_MODE = yes; then
3256 MAINTAINER_MODE_TRUE=
3257 MAINTAINER_MODE_FALSE='#'
3258 else
3259 MAINTAINER_MODE_TRUE='#'
3260 MAINTAINER_MODE_FALSE=
3261 fi
3262
3263 MAINT=$MAINTAINER_MODE_TRUE
3264
3265
3266
3267 # Update this information before a public release only!
3268
3269 # libgenders versioning
3270 #
3271 # If the library source code has changed at all since the last update,
3272 # then increment c:r: c:r+1:).
3273 #
3274 # If any interfaces have been added, removed, or changed since the
3275 # last update, increment current, and set revision to 0.
3276 #
3277 # If any interfaces have been added since the last public release,
3278 # then increment age.
3279 #
3280 # If any interfaces have been removed or changed since the last public
3281 # release, then set age to 0.
3282 #
3283 LIBGENDERS_CURRENT=3
3284 LIBGENDERS_REVISION=3
3285 LIBGENDERS_AGE=3
3286 LIBGENDERS_VERSION_INFO=$LIBGENDERS_CURRENT:$LIBGENDERS_REVISION:$LIBGENDERS_AGE
3287
3288
3289 # C++ library
3290 LIBGENDERSPLUSPLUS_CURRENT=2
3291 LIBGENDERSPLUSPLUS_REVISION=0
3292 LIBGENDERSPLUSPLUS_AGE=0
3293 LIBGENDERSPLUSPLUS_VERSION_INFO=$LIBGENDERSPLUSPLUS_CURRENT:$LIBGENDERSPLUSPLUS_REVISION:$LIBGENDERSPLUSPLUS_AGE
3294
3295
3296 # Java JNI C library
3297 LIBGENDERSJNI_CURRENT=0
3298 LIBGENDERSJNI_REVISION=0
3299 LIBGENDERSJNI_AGE=0
3300 LIBGENDERSJNI_VERSION_INFO=$LIBGENDERSJNI_CURRENT:$LIBGENDERSJNI_REVISION:$LIBGENDERSJNI_AGE
3301
3302
3303 # Perl Libgenders and Genders versioning
3304 PERLGENDERS_MAJOR=0
3305 PERLGENDERS_MINOR=03
3306 PERLGENDERS_VERSION=$PERLGENDERS_MAJOR.$PERLGENDERS_MINOR
3307
3308
3309 # Python genders versioning
3310 PYTHONGENDERS_MAJOR=1
3311 PYTHONGENDERS_MINOR=2
3312 PYTHONGENDERS_VERSION=$PYTHONGENDERS_MAJOR.$PYTHONGENDERS_MINOR
3313
3314
3315 ##
3316 # Checks for programs.
3317 ##
3318 ac_ext=c
3319 ac_cpp='$CPP $CPPFLAGS'
3320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3323 if test -n "$ac_tool_prefix"; then
3324 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3325 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3327 $as_echo_n "checking for $ac_word... " >&6; }
3328 if ${ac_cv_prog_CC+:} false; then :
3329 $as_echo_n "(cached) " >&6
3330 else
3331 if test -n "$CC"; then
3332 ac_cv_prog_CC="$CC" # Let the user override the test.
3333 else
3334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335 for as_dir in $PATH
3336 do
3337 IFS=$as_save_IFS
3338 test -z "$as_dir" && as_dir=.
3339 for ac_exec_ext in '' $ac_executable_extensions; do
3340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3341 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3343 break 2
3344 fi
3345 done
3346 done
3347 IFS=$as_save_IFS
3348
3349 fi
3350 fi
3351 CC=$ac_cv_prog_CC
3352 if test -n "$CC"; then
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3354 $as_echo "$CC" >&6; }
3355 else
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357 $as_echo "no" >&6; }
3358 fi
3359
3360
3361 fi
3362 if test -z "$ac_cv_prog_CC"; then
3363 ac_ct_CC=$CC
3364 # Extract the first word of "gcc", so it can be a program name with args.
3365 set dummy gcc; ac_word=$2
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367 $as_echo_n "checking for $ac_word... " >&6; }
3368 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3369 $as_echo_n "(cached) " >&6
3370 else
3371 if test -n "$ac_ct_CC"; then
3372 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3373 else
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 for as_dir in $PATH
3376 do
3377 IFS=$as_save_IFS
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3381 ac_cv_prog_ac_ct_CC="gcc"
3382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383 break 2
3384 fi
3385 done
3386 done
3387 IFS=$as_save_IFS
3388
3389 fi
3390 fi
3391 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3392 if test -n "$ac_ct_CC"; then
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3394 $as_echo "$ac_ct_CC" >&6; }
3395 else
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397 $as_echo "no" >&6; }
3398 fi
3399
3400 if test "x$ac_ct_CC" = x; then
3401 CC=""
3402 else
3403 case $cross_compiling:$ac_tool_warned in
3404 yes:)
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3407 ac_tool_warned=yes ;;
3408 esac
3409 CC=$ac_ct_CC
3410 fi
3411 else
3412 CC="$ac_cv_prog_CC"
3413 fi
3414
3415 if test -z "$CC"; then
3416 if test -n "$ac_tool_prefix"; then
3417 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3418 set dummy ${ac_tool_prefix}cc; ac_word=$2
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3420 $as_echo_n "checking for $ac_word... " >&6; }
3421 if ${ac_cv_prog_CC+:} false; then :
3422 $as_echo_n "(cached) " >&6
3423 else
3424 if test -n "$CC"; then
3425 ac_cv_prog_CC="$CC" # Let the user override the test.
3426 else
3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428 for as_dir in $PATH
3429 do
3430 IFS=$as_save_IFS
3431 test -z "$as_dir" && as_dir=.
3432 for ac_exec_ext in '' $ac_executable_extensions; do
3433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434 ac_cv_prog_CC="${ac_tool_prefix}cc"
3435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3436 break 2
3437 fi
3438 done
3439 done
3440 IFS=$as_save_IFS
3441
3442 fi
3443 fi
3444 CC=$ac_cv_prog_CC
3445 if test -n "$CC"; then
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3447 $as_echo "$CC" >&6; }
3448 else
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3450 $as_echo "no" >&6; }
3451 fi
3452
3453
3454 fi
3455 fi
3456 if test -z "$CC"; then
3457 # Extract the first word of "cc", so it can be a program name with args.
3458 set dummy cc; ac_word=$2
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3460 $as_echo_n "checking for $ac_word... " >&6; }
3461 if ${ac_cv_prog_CC+:} false; then :
3462 $as_echo_n "(cached) " >&6
3463 else
3464 if test -n "$CC"; then
3465 ac_cv_prog_CC="$CC" # Let the user override the test.
3466 else
3467 ac_prog_rejected=no
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 for as_dir in $PATH
3470 do
3471 IFS=$as_save_IFS
3472 test -z "$as_dir" && as_dir=.
3473 for ac_exec_ext in '' $ac_executable_extensions; do
3474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3475 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3476 ac_prog_rejected=yes
3477 continue
3478 fi
3479 ac_cv_prog_CC="cc"
3480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3481 break 2
3482 fi
3483 done
3484 done
3485 IFS=$as_save_IFS
3486
3487 if test $ac_prog_rejected = yes; then
3488 # We found a bogon in the path, so make sure we never use it.
3489 set dummy $ac_cv_prog_CC
3490 shift
3491 if test $# != 0; then
3492 # We chose a different compiler from the bogus one.
3493 # However, it has the same basename, so the bogon will be chosen
3494 # first if we set CC to just the basename; use the full file name.
3495 shift
3496 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3497 fi
3498 fi
3499 fi
3500 fi
3501 CC=$ac_cv_prog_CC
3502 if test -n "$CC"; then
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3504 $as_echo "$CC" >&6; }
3505 else
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507 $as_echo "no" >&6; }
3508 fi
3509
3510
3511 fi
3512 if test -z "$CC"; then
3513 if test -n "$ac_tool_prefix"; then
3514 for ac_prog in cl.exe
3515 do
3516 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3517 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3519 $as_echo_n "checking for $ac_word... " >&6; }
3520 if ${ac_cv_prog_CC+:} false; then :
3521 $as_echo_n "(cached) " >&6
3522 else
3523 if test -n "$CC"; then
3524 ac_cv_prog_CC="$CC" # Let the user override the test.
3525 else
3526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527 for as_dir in $PATH
3528 do
3529 IFS=$as_save_IFS
3530 test -z "$as_dir" && as_dir=.
3531 for ac_exec_ext in '' $ac_executable_extensions; do
3532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3533 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3535 break 2
3536 fi
3537 done
3538 done
3539 IFS=$as_save_IFS
3540
3541 fi
3542 fi
3543 CC=$ac_cv_prog_CC
3544 if test -n "$CC"; then
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3546 $as_echo "$CC" >&6; }
3547 else
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3549 $as_echo "no" >&6; }
3550 fi
3551
3552
3553 test -n "$CC" && break
3554 done
3555 fi
3556 if test -z "$CC"; then
3557 ac_ct_CC=$CC
3558 for ac_prog in cl.exe
3559 do
3560 # Extract the first word of "$ac_prog", so it can be a program name with args.
3561 set dummy $ac_prog; ac_word=$2
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3563 $as_echo_n "checking for $ac_word... " >&6; }
3564 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3565 $as_echo_n "(cached) " >&6
3566 else
3567 if test -n "$ac_ct_CC"; then
3568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3569 else
3570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3571 for as_dir in $PATH
3572 do
3573 IFS=$as_save_IFS
3574 test -z "$as_dir" && as_dir=.
3575 for ac_exec_ext in '' $ac_executable_extensions; do
3576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3577 ac_cv_prog_ac_ct_CC="$ac_prog"
3578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3579 break 2
3580 fi
3581 done
3582 done
3583 IFS=$as_save_IFS
3584
3585 fi
3586 fi
3587 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3588 if test -n "$ac_ct_CC"; then
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3590 $as_echo "$ac_ct_CC" >&6; }
3591 else
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3593 $as_echo "no" >&6; }
3594 fi
3595
3596
3597 test -n "$ac_ct_CC" && break
3598 done
3599
3600 if test "x$ac_ct_CC" = x; then
3601 CC=""
3602 else
3603 case $cross_compiling:$ac_tool_warned in
3604 yes:)
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3607 ac_tool_warned=yes ;;
3608 esac
3609 CC=$ac_ct_CC
3610 fi
3611 fi
3612
3613 fi
3614
3615
3616 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3618 as_fn_error $? "no acceptable C compiler found in \$PATH
3619 See \`config.log' for more details" "$LINENO" 5; }
3620
3621 # Provide some information about the compiler.
3622 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3623 set X $ac_compile
3624 ac_compiler=$2
3625 for ac_option in --version -v -V -qversion; do
3626 { { ac_try="$ac_compiler $ac_option >&5"
3627 case "(($ac_try" in
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3630 esac
3631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3632 $as_echo "$ac_try_echo"; } >&5
3633 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3634 ac_status=$?
3635 if test -s conftest.err; then
3636 sed '10a\
3637 ... rest of stderr output deleted ...
3638 10q' conftest.err >conftest.er1
3639 cat conftest.er1 >&5
3640 fi
3641 rm -f conftest.er1 conftest.err
3642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3643 test $ac_status = 0; }
3644 done
3645
3646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647 /* end confdefs.h. */
3648
3649 int
3650 main ()
3651 {
3652
3653 ;
3654 return 0;
3655 }
3656 _ACEOF
3657 ac_clean_files_save=$ac_clean_files
3658 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3659 # Try to create an executable without -o first, disregard a.out.
3660 # It will help us diagnose broken compilers, and finding out an intuition
3661 # of exeext.
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3663 $as_echo_n "checking whether the C compiler works... " >&6; }
3664 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3665
3666 # The possible output files:
3667 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3668
3669 ac_rmfiles=
3670 for ac_file in $ac_files
3671 do
3672 case $ac_file in
3673 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3674 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3675 esac
3676 done
3677 rm -f $ac_rmfiles
3678
3679 if { { ac_try="$ac_link_default"
3680 case "(($ac_try" in
3681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682 *) ac_try_echo=$ac_try;;
3683 esac
3684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3685 $as_echo "$ac_try_echo"; } >&5
3686 (eval "$ac_link_default") 2>&5
3687 ac_status=$?
3688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3689 test $ac_status = 0; }; then :
3690 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3691 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3692 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3693 # so that the user can short-circuit this test for compilers unknown to
3694 # Autoconf.
3695 for ac_file in $ac_files ''
3696 do
3697 test -f "$ac_file" || continue
3698 case $ac_file in
3699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3700 ;;
3701 [ab].out )
3702 # We found the default executable, but exeext='' is most
3703 # certainly right.
3704 break;;
3705 *.* )
3706 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3707 then :; else
3708 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3709 fi
3710 # We set ac_cv_exeext here because the later test for it is not
3711 # safe: cross compilers may not add the suffix if given an `-o'
3712 # argument, so we may need to know it at that point already.
3713 # Even if this section looks crufty: it has the advantage of
3714 # actually working.
3715 break;;
3716 * )
3717 break;;
3718 esac
3719 done
3720 test "$ac_cv_exeext" = no && ac_cv_exeext=
3721
3722 else
3723 ac_file=''
3724 fi
3725 if test -z "$ac_file"; then :
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3728 $as_echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3730
3731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3733 as_fn_error 77 "C compiler cannot create executables
3734 See \`config.log' for more details" "$LINENO" 5; }
3735 else
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3737 $as_echo "yes" >&6; }
3738 fi
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3740 $as_echo_n "checking for C compiler default output file name... " >&6; }
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3742 $as_echo "$ac_file" >&6; }
3743 ac_exeext=$ac_cv_exeext
3744
3745 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3746 ac_clean_files=$ac_clean_files_save
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3748 $as_echo_n "checking for suffix of executables... " >&6; }
3749 if { { ac_try="$ac_link"
3750 case "(($ac_try" in
3751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752 *) ac_try_echo=$ac_try;;
3753 esac
3754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3755 $as_echo "$ac_try_echo"; } >&5
3756 (eval "$ac_link") 2>&5
3757 ac_status=$?
3758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3759 test $ac_status = 0; }; then :
3760 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3761 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3762 # work properly (i.e., refer to `conftest.exe'), while it won't with
3763 # `rm'.
3764 for ac_file in conftest.exe conftest conftest.*; do
3765 test -f "$ac_file" || continue
3766 case $ac_file in
3767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3768 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3769 break;;
3770 * ) break;;
3771 esac
3772 done
3773 else
3774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3776 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3777 See \`config.log' for more details" "$LINENO" 5; }
3778 fi
3779 rm -f conftest conftest$ac_cv_exeext
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3781 $as_echo "$ac_cv_exeext" >&6; }
3782
3783 rm -f conftest.$ac_ext
3784 EXEEXT=$ac_cv_exeext
3785 ac_exeext=$EXEEXT
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h. */
3788 #include <stdio.h>
3789 int
3790 main ()
3791 {
3792 FILE *f = fopen ("conftest.out", "w");
3793 return ferror (f) || fclose (f) != 0;
3794
3795 ;
3796 return 0;
3797 }
3798 _ACEOF
3799 ac_clean_files="$ac_clean_files conftest.out"
3800 # Check that the compiler produces executables we can run. If not, either
3801 # the compiler is broken, or we cross compile.
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3803 $as_echo_n "checking whether we are cross compiling... " >&6; }
3804 if test "$cross_compiling" != yes; then
3805 { { ac_try="$ac_link"
3806 case "(($ac_try" in
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3809 esac
3810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3811 $as_echo "$ac_try_echo"; } >&5
3812 (eval "$ac_link") 2>&5
3813 ac_status=$?
3814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3815 test $ac_status = 0; }
3816 if { ac_try='./conftest$ac_cv_exeext'
3817 { { case "(($ac_try" in
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3820 esac
3821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3822 $as_echo "$ac_try_echo"; } >&5
3823 (eval "$ac_try") 2>&5
3824 ac_status=$?
3825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3826 test $ac_status = 0; }; }; then
3827 cross_compiling=no
3828 else
3829 if test "$cross_compiling" = maybe; then
3830 cross_compiling=yes
3831 else
3832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3834 as_fn_error $? "cannot run C compiled programs.
3835 If you meant to cross compile, use \`--host'.
3836 See \`config.log' for more details" "$LINENO" 5; }
3837 fi
3838 fi
3839 fi
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3841 $as_echo "$cross_compiling" >&6; }
3842
3843 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3844 ac_clean_files=$ac_clean_files_save
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3846 $as_echo_n "checking for suffix of object files... " >&6; }
3847 if ${ac_cv_objext+:} false; then :
3848 $as_echo_n "(cached) " >&6
3849 else
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3852
3853 int
3854 main ()
3855 {
3856
3857 ;
3858 return 0;
3859 }
3860 _ACEOF
3861 rm -f conftest.o conftest.obj
3862 if { { ac_try="$ac_compile"
3863 case "(($ac_try" in
3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865 *) ac_try_echo=$ac_try;;
3866 esac
3867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3868 $as_echo "$ac_try_echo"; } >&5
3869 (eval "$ac_compile") 2>&5
3870 ac_status=$?
3871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3872 test $ac_status = 0; }; then :
3873 for ac_file in conftest.o conftest.obj conftest.*; do
3874 test -f "$ac_file" || continue;
3875 case $ac_file in
3876 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3877 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3878 break;;
3879 esac
3880 done
3881 else
3882 $as_echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3884
3885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3887 as_fn_error $? "cannot compute suffix of object files: cannot compile
3888 See \`config.log' for more details" "$LINENO" 5; }
3889 fi
3890 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3891 fi
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3893 $as_echo "$ac_cv_objext" >&6; }
3894 OBJEXT=$ac_cv_objext
3895 ac_objext=$OBJEXT
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3897 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3898 if ${ac_cv_c_compiler_gnu+:} false; then :
3899 $as_echo_n "(cached) " >&6
3900 else
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h. */
3903
3904 int
3905 main ()
3906 {
3907 #ifndef __GNUC__
3908 choke me
3909 #endif
3910
3911 ;
3912 return 0;
3913 }
3914 _ACEOF
3915 if ac_fn_c_try_compile "$LINENO"; then :
3916 ac_compiler_gnu=yes
3917 else
3918 ac_compiler_gnu=no
3919 fi
3920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3921 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3922
3923 fi
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3925 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3926 if test $ac_compiler_gnu = yes; then
3927 GCC=yes
3928 else
3929 GCC=
3930 fi
3931 ac_test_CFLAGS=${CFLAGS+set}
3932 ac_save_CFLAGS=$CFLAGS
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3934 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3935 if ${ac_cv_prog_cc_g+:} false; then :
3936 $as_echo_n "(cached) " >&6
3937 else
3938 ac_save_c_werror_flag=$ac_c_werror_flag
3939 ac_c_werror_flag=yes
3940 ac_cv_prog_cc_g=no
3941 CFLAGS="-g"
3942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h. */
3944
3945 int
3946 main ()
3947 {
3948
3949 ;
3950 return 0;
3951 }
3952 _ACEOF
3953 if ac_fn_c_try_compile "$LINENO"; then :
3954 ac_cv_prog_cc_g=yes
3955 else
3956 CFLAGS=""
3957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958 /* end confdefs.h. */
3959
3960 int
3961 main ()
3962 {
3963
3964 ;
3965 return 0;
3966 }
3967 _ACEOF
3968 if ac_fn_c_try_compile "$LINENO"; then :
3969
3970 else
3971 ac_c_werror_flag=$ac_save_c_werror_flag
3972 CFLAGS="-g"
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h. */
3975
3976 int
3977 main ()
3978 {
3979
3980 ;
3981 return 0;
3982 }
3983 _ACEOF
3984 if ac_fn_c_try_compile "$LINENO"; then :
3985 ac_cv_prog_cc_g=yes
3986 fi
3987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988 fi
3989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3990 fi
3991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3992 ac_c_werror_flag=$ac_save_c_werror_flag
3993 fi
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3995 $as_echo "$ac_cv_prog_cc_g" >&6; }
3996 if test "$ac_test_CFLAGS" = set; then
3997 CFLAGS=$ac_save_CFLAGS
3998 elif test $ac_cv_prog_cc_g = yes; then
3999 if test "$GCC" = yes; then
4000 CFLAGS="-g -O2"
4001 else
4002 CFLAGS="-g"
4003 fi
4004 else
4005 if test "$GCC" = yes; then
4006 CFLAGS="-O2"
4007 else
4008 CFLAGS=
4009 fi
4010 fi
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4012 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4013 if ${ac_cv_prog_cc_c89+:} false; then :
4014 $as_echo_n "(cached) " >&6
4015 else
4016 ac_cv_prog_cc_c89=no
4017 ac_save_CC=$CC
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h. */
4020 #include <stdarg.h>
4021 #include <stdio.h>
4022 struct stat;
4023 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4024 struct buf { int x; };
4025 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4026 static char *e (p, i)
4027 char **p;
4028 int i;
4029 {
4030 return p[i];
4031 }
4032 static char *f (char * (*g) (char **, int), char **p, ...)
4033 {
4034 char *s;
4035 va_list v;
4036 va_start (v,p);
4037 s = g (p, va_arg (v,int));
4038 va_end (v);
4039 return s;
4040 }
4041
4042 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4043 function prototypes and stuff, but not '\xHH' hex character constants.
4044 These don't provoke an error unfortunately, instead are silently treated
4045 as 'x'. The following induces an error, until -std is added to get
4046 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4047 array size at least. It's necessary to write '\x00'==0 to get something
4048 that's true only with -std. */
4049 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4050
4051 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4052 inside strings and character constants. */
4053 #define FOO(x) 'x'
4054 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4055
4056 int test (int i, double x);
4057 struct s1 {int (*f) (int a);};
4058 struct s2 {int (*f) (double a);};
4059 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4060 int argc;
4061 char **argv;
4062 int
4063 main ()
4064 {
4065 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4066 ;
4067 return 0;
4068 }
4069 _ACEOF
4070 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4071 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4072 do
4073 CC="$ac_save_CC $ac_arg"
4074 if ac_fn_c_try_compile "$LINENO"; then :
4075 ac_cv_prog_cc_c89=$ac_arg
4076 fi
4077 rm -f core conftest.err conftest.$ac_objext
4078 test "x$ac_cv_prog_cc_c89" != "xno" && break
4079 done
4080 rm -f conftest.$ac_ext
4081 CC=$ac_save_CC
4082
4083 fi
4084 # AC_CACHE_VAL
4085 case "x$ac_cv_prog_cc_c89" in
4086 x)
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4088 $as_echo "none needed" >&6; } ;;
4089 xno)
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4091 $as_echo "unsupported" >&6; } ;;
4092 *)
4093 CC="$CC $ac_cv_prog_cc_c89"
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4095 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4096 esac
4097 if test "x$ac_cv_prog_cc_c89" != xno; then :
4098
4099 fi
4100
4101 ac_ext=c
4102 ac_cpp='$CPP $CPPFLAGS'
4103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4106 DEPDIR="${am__leading_dot}deps"
4107
4108 ac_config_commands="$ac_config_commands depfiles"
4109
4110
4111 am_make=${MAKE-make}
4112 cat > confinc << 'END'
4113 am__doit:
4114 @echo this is the am__doit target
4115 .PHONY: am__doit
4116 END
4117 # If we don't find an include directive, just comment out the code.
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4119 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4120 am__include="#"
4121 am__quote=
4122 _am_result=none
4123 # First try GNU make style include.
4124 echo "include confinc" > confmf
4125 # Ignore all kinds of additional output from 'make'.
4126 case `$am_make -s -f confmf 2> /dev/null` in #(
4127 *the\ am__doit\ target*)
4128 am__include=include
4129 am__quote=
4130 _am_result=GNU
4131 ;;
4132 esac
4133 # Now try BSD make style include.
4134 if test "$am__include" = "#"; then
4135 echo '.include "confinc"' > confmf
4136 case `$am_make -s -f confmf 2> /dev/null` in #(
4137 *the\ am__doit\ target*)
4138 am__include=.include
4139 am__quote="\""
4140 _am_result=BSD
4141 ;;
4142 esac
4143 fi
4144
4145
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4147 $as_echo "$_am_result" >&6; }
4148 rm -f confinc confmf
4149
4150 # Check whether --enable-dependency-tracking was given.
4151 if test "${enable_dependency_tracking+set}" = set; then :
4152 enableval=$enable_dependency_tracking;
4153 fi
4154
4155 if test "x$enable_dependency_tracking" != xno; then
4156 am_depcomp="$ac_aux_dir/depcomp"
4157 AMDEPBACKSLASH='\'
4158 am__nodep='_no'
4159 fi
4160 if test "x$enable_dependency_tracking" != xno; then
4161 AMDEP_TRUE=
4162 AMDEP_FALSE='#'
4163 else
4164 AMDEP_TRUE='#'
4165 AMDEP_FALSE=
4166 fi
4167
4168
4169
4170 depcc="$CC" am_compiler_list=
4171
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4173 $as_echo_n "checking dependency style of $depcc... " >&6; }
4174 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4175 $as_echo_n "(cached) " >&6
4176 else
4177 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4178 # We make a subdir and do the tests there. Otherwise we can end up
4179 # making bogus files that we don't know about and never remove. For
4180 # instance it was reported that on HP-UX the gcc test will end up
4181 # making a dummy file named 'D' -- because '-MD' means "put the output
4182 # in D".
4183 rm -rf conftest.dir
4184 mkdir conftest.dir
4185 # Copy depcomp to subdir because otherwise we won't find it if we're
4186 # using a relative directory.
4187 cp "$am_depcomp" conftest.dir
4188 cd conftest.dir
4189 # We will build objects and dependencies in a subdirectory because
4190 # it helps to detect inapplicable dependency modes. For instance
4191 # both Tru64's cc and ICC support -MD to output dependencies as a
4192 # side effect of compilation, but ICC will put the dependencies in
4193 # the current directory while Tru64 will put them in the object
4194 # directory.
4195 mkdir sub
4196
4197 am_cv_CC_dependencies_compiler_type=none
4198 if test "$am_compiler_list" = ""; then
4199 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4200 fi
4201 am__universal=false
4202 case " $depcc " in #(
4203 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4204 esac
4205
4206 for depmode in $am_compiler_list; do
4207 # Setup a source with many dependencies, because some compilers
4208 # like to wrap large dependency lists on column 80 (with \), and
4209 # we should not choose a depcomp mode which is confused by this.
4210 #
4211 # We need to recreate these files for each test, as the compiler may
4212 # overwrite some of them when testing with obscure command lines.
4213 # This happens at least with the AIX C compiler.
4214 : > sub/conftest.c
4215 for i in 1 2 3 4 5 6; do
4216 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4217 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4218 # Solaris 10 /bin/sh.
4219 echo '/* dummy */' > sub/conftst$i.h
4220 done
4221 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4222
4223 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4224 # mode. It turns out that the SunPro C++ compiler does not properly
4225 # handle '-M -o', and we need to detect this. Also, some Intel
4226 # versions had trouble with output in subdirs.
4227 am__obj=sub/conftest.${OBJEXT-o}
4228 am__minus_obj="-o $am__obj"
4229 case $depmode in
4230 gcc)
4231 # This depmode causes a compiler race in universal mode.
4232 test "$am__universal" = false || continue
4233 ;;
4234 nosideeffect)
4235 # After this tag, mechanisms are not by side-effect, so they'll
4236 # only be used when explicitly requested.
4237 if test "x$enable_dependency_tracking" = xyes; then
4238 continue
4239 else
4240 break
4241 fi
4242 ;;
4243 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4244 # This compiler won't grok '-c -o', but also, the minuso test has
4245 # not run yet. These depmodes are late enough in the game, and
4246 # so weak that their functioning should not be impacted.
4247 am__obj=conftest.${OBJEXT-o}
4248 am__minus_obj=
4249 ;;
4250 none) break ;;
4251 esac
4252 if depmode=$depmode \
4253 source=sub/conftest.c object=$am__obj \
4254 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4255 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4256 >/dev/null 2>conftest.err &&
4257 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4258 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4259 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4260 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4261 # icc doesn't choke on unknown options, it will just issue warnings
4262 # or remarks (even with -Werror). So we grep stderr for any message
4263 # that says an option was ignored or not supported.
4264 # When given -MP, icc 7.0 and 7.1 complain thusly:
4265 # icc: Command line warning: ignoring option '-M'; no argument required
4266 # The diagnosis changed in icc 8.0:
4267 # icc: Command line remark: option '-MP' not supported
4268 if (grep 'ignoring option' conftest.err ||
4269 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4270 am_cv_CC_dependencies_compiler_type=$depmode
4271 break
4272 fi
4273 fi
4274 done
4275
4276 cd ..
4277 rm -rf conftest.dir
4278 else
4279 am_cv_CC_dependencies_compiler_type=none
4280 fi
4281
4282 fi
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4284 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4285 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4286
4287 if
4288 test "x$enable_dependency_tracking" != xno \
4289 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4290 am__fastdepCC_TRUE=
4291 am__fastdepCC_FALSE='#'
4292 else
4293 am__fastdepCC_TRUE='#'
4294 am__fastdepCC_FALSE=
4295 fi
4296
4297
4298 ac_ext=cpp
4299 ac_cpp='$CXXCPP $CPPFLAGS'
4300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4303 if test -z "$CXX"; then
4304 if test -n "$CCC"; then
4305 CXX=$CCC
4306 else
4307 if test -n "$ac_tool_prefix"; then
4308 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4309 do
4310 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4311 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4313 $as_echo_n "checking for $ac_word... " >&6; }
4314 if ${ac_cv_prog_CXX+:} false; then :
4315 $as_echo_n "(cached) " >&6
4316 else
4317 if test -n "$CXX"; then
4318 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4319 else
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH
4322 do
4323 IFS=$as_save_IFS
4324 test -z "$as_dir" && as_dir=.
4325 for ac_exec_ext in '' $ac_executable_extensions; do
4326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4327 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4329 break 2
4330 fi
4331 done
4332 done
4333 IFS=$as_save_IFS
4334
4335 fi
4336 fi
4337 CXX=$ac_cv_prog_CXX
4338 if test -n "$CXX"; then
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4340 $as_echo "$CXX" >&6; }
4341 else
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4343 $as_echo "no" >&6; }
4344 fi
4345
4346
4347 test -n "$CXX" && break
4348 done
4349 fi
4350 if test -z "$CXX"; then
4351 ac_ct_CXX=$CXX
4352 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4353 do
4354 # Extract the first word of "$ac_prog", so it can be a program name with args.
4355 set dummy $ac_prog; ac_word=$2
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4357 $as_echo_n "checking for $ac_word... " >&6; }
4358 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4359 $as_echo_n "(cached) " >&6
4360 else
4361 if test -n "$ac_ct_CXX"; then
4362 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4363 else
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH
4366 do
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4371 ac_cv_prog_ac_ct_CXX="$ac_prog"
4372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 break 2
4374 fi
4375 done
4376 done
4377 IFS=$as_save_IFS
4378
4379 fi
4380 fi
4381 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4382 if test -n "$ac_ct_CXX"; then
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4384 $as_echo "$ac_ct_CXX" >&6; }
4385 else
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387 $as_echo "no" >&6; }
4388 fi
4389
4390
4391 test -n "$ac_ct_CXX" && break
4392 done
4393
4394 if test "x$ac_ct_CXX" = x; then
4395 CXX="g++"
4396 else
4397 case $cross_compiling:$ac_tool_warned in
4398 yes:)
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4401 ac_tool_warned=yes ;;
4402 esac
4403 CXX=$ac_ct_CXX
4404 fi
4405 fi
4406
4407 fi
4408 fi
4409 # Provide some information about the compiler.
4410 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4411 set X $ac_compile
4412 ac_compiler=$2
4413 for ac_option in --version -v -V -qversion; do
4414 { { ac_try="$ac_compiler $ac_option >&5"
4415 case "(($ac_try" in
4416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4418 esac
4419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4420 $as_echo "$ac_try_echo"; } >&5
4421 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4422 ac_status=$?
4423 if test -s conftest.err; then
4424 sed '10a\
4425 ... rest of stderr output deleted ...
4426 10q' conftest.err >conftest.er1
4427 cat conftest.er1 >&5
4428 fi
4429 rm -f conftest.er1 conftest.err
4430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4431 test $ac_status = 0; }
4432 done
4433
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4435 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4436 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4437 $as_echo_n "(cached) " >&6
4438 else
4439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h. */
4441
4442 int
4443 main ()
4444 {
4445 #ifndef __GNUC__
4446 choke me
4447 #endif
4448
4449 ;
4450 return 0;
4451 }
4452 _ACEOF
4453 if ac_fn_cxx_try_compile "$LINENO"; then :
4454 ac_compiler_gnu=yes
4455 else
4456 ac_compiler_gnu=no
4457 fi
4458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4459 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4460
4461 fi
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4463 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4464 if test $ac_compiler_gnu = yes; then
4465 GXX=yes
4466 else
4467 GXX=
4468 fi
4469 ac_test_CXXFLAGS=${CXXFLAGS+set}
4470 ac_save_CXXFLAGS=$CXXFLAGS
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4472 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4473 if ${ac_cv_prog_cxx_g+:} false; then :
4474 $as_echo_n "(cached) " >&6
4475 else
4476 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4477 ac_cxx_werror_flag=yes
4478 ac_cv_prog_cxx_g=no
4479 CXXFLAGS="-g"
4480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481 /* end confdefs.h. */
4482
4483 int
4484 main ()
4485 {
4486
4487 ;
4488 return 0;
4489 }
4490 _ACEOF
4491 if ac_fn_cxx_try_compile "$LINENO"; then :
4492 ac_cv_prog_cxx_g=yes
4493 else
4494 CXXFLAGS=""
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4497
4498 int
4499 main ()
4500 {
4501
4502 ;
4503 return 0;
4504 }
4505 _ACEOF
4506 if ac_fn_cxx_try_compile "$LINENO"; then :
4507
4508 else
4509 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4510 CXXFLAGS="-g"
4511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512 /* end confdefs.h. */
4513
4514 int
4515 main ()
4516 {
4517
4518 ;
4519 return 0;
4520 }
4521 _ACEOF
4522 if ac_fn_cxx_try_compile "$LINENO"; then :
4523 ac_cv_prog_cxx_g=yes
4524 fi
4525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4526 fi
4527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528 fi
4529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4530 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4531 fi
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4533 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4534 if test "$ac_test_CXXFLAGS" = set; then
4535 CXXFLAGS=$ac_save_CXXFLAGS
4536 elif test $ac_cv_prog_cxx_g = yes; then
4537 if test "$GXX" = yes; then
4538 CXXFLAGS="-g -O2"
4539 else
4540 CXXFLAGS="-g"
4541 fi
4542 else
4543 if test "$GXX" = yes; then
4544 CXXFLAGS="-O2"
4545 else
4546 CXXFLAGS=
4547 fi
4548 fi
4549 ac_ext=c
4550 ac_cpp='$CPP $CPPFLAGS'
4551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4554
4555 depcc="$CXX" am_compiler_list=
4556
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4558 $as_echo_n "checking dependency style of $depcc... " >&6; }
4559 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4560 $as_echo_n "(cached) " >&6
4561 else
4562 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4563 # We make a subdir and do the tests there. Otherwise we can end up
4564 # making bogus files that we don't know about and never remove. For
4565 # instance it was reported that on HP-UX the gcc test will end up
4566 # making a dummy file named 'D' -- because '-MD' means "put the output
4567 # in D".
4568 rm -rf conftest.dir
4569 mkdir conftest.dir
4570 # Copy depcomp to subdir because otherwise we won't find it if we're
4571 # using a relative directory.
4572 cp "$am_depcomp" conftest.dir
4573 cd conftest.dir
4574 # We will build objects and dependencies in a subdirectory because
4575 # it helps to detect inapplicable dependency modes. For instance
4576 # both Tru64's cc and ICC support -MD to output dependencies as a
4577 # side effect of compilation, but ICC will put the dependencies in
4578 # the current directory while Tru64 will put them in the object
4579 # directory.
4580 mkdir sub
4581
4582 am_cv_CXX_dependencies_compiler_type=none
4583 if test "$am_compiler_list" = ""; then
4584 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4585 fi
4586 am__universal=false
4587 case " $depcc " in #(
4588 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4589 esac
4590
4591 for depmode in $am_compiler_list; do
4592 # Setup a source with many dependencies, because some compilers
4593 # like to wrap large dependency lists on column 80 (with \), and
4594 # we should not choose a depcomp mode which is confused by this.
4595 #
4596 # We need to recreate these files for each test, as the compiler may
4597 # overwrite some of them when testing with obscure command lines.
4598 # This happens at least with the AIX C compiler.
4599 : > sub/conftest.c
4600 for i in 1 2 3 4 5 6; do
4601 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4602 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4603 # Solaris 10 /bin/sh.
4604 echo '/* dummy */' > sub/conftst$i.h
4605 done
4606 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4607
4608 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4609 # mode. It turns out that the SunPro C++ compiler does not properly
4610 # handle '-M -o', and we need to detect this. Also, some Intel
4611 # versions had trouble with output in subdirs.
4612 am__obj=sub/conftest.${OBJEXT-o}
4613 am__minus_obj="-o $am__obj"
4614 case $depmode in
4615 gcc)
4616 # This depmode causes a compiler race in universal mode.
4617 test "$am__universal" = false || continue
4618 ;;
4619 nosideeffect)
4620 # After this tag, mechanisms are not by side-effect, so they'll
4621 # only be used when explicitly requested.
4622 if test "x$enable_dependency_tracking" = xyes; then
4623 continue
4624 else
4625 break
4626 fi
4627 ;;
4628 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4629 # This compiler won't grok '-c -o', but also, the minuso test has
4630 # not run yet. These depmodes are late enough in the game, and
4631 # so weak that their functioning should not be impacted.
4632 am__obj=conftest.${OBJEXT-o}
4633 am__minus_obj=
4634 ;;
4635 none) break ;;
4636 esac
4637 if depmode=$depmode \
4638 source=sub/conftest.c object=$am__obj \
4639 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4640 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4641 >/dev/null 2>conftest.err &&
4642 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4643 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4644 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4645 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4646 # icc doesn't choke on unknown options, it will just issue warnings
4647 # or remarks (even with -Werror). So we grep stderr for any message
4648 # that says an option was ignored or not supported.
4649 # When given -MP, icc 7.0 and 7.1 complain thusly:
4650 # icc: Command line warning: ignoring option '-M'; no argument required
4651 # The diagnosis changed in icc 8.0:
4652 # icc: Command line remark: option '-MP' not supported
4653 if (grep 'ignoring option' conftest.err ||
4654 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4655 am_cv_CXX_dependencies_compiler_type=$depmode
4656 break
4657 fi
4658 fi
4659 done
4660
4661 cd ..
4662 rm -rf conftest.dir
4663 else
4664 am_cv_CXX_dependencies_compiler_type=none
4665 fi
4666
4667 fi
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4669 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4670 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4671
4672 if
4673 test "x$enable_dependency_tracking" != xno \
4674 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4675 am__fastdepCXX_TRUE=
4676 am__fastdepCXX_FALSE='#'
4677 else
4678 am__fastdepCXX_TRUE='#'
4679 am__fastdepCXX_FALSE=
4680 fi
4681
4682
4683 case `pwd` in
4684 *\ * | *\ *)
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4686 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4687 esac
4688
4689
4690
4691 macro_version='2.4.2'
4692 macro_revision='1.3337'
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706 ltmain="$ac_aux_dir/ltmain.sh"
4707
4708 # Backslashify metacharacters that are still active within
4709 # double-quoted strings.
4710 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4711
4712 # Same as above, but do not quote variable references.
4713 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4714
4715 # Sed substitution to delay expansion of an escaped shell variable in a
4716 # double_quote_subst'ed string.
4717 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4718
4719 # Sed substitution to delay expansion of an escaped single quote.
4720 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4721
4722 # Sed substitution to avoid accidental globbing in evaled expressions
4723 no_glob_subst='s/\*/\\\*/g'
4724
4725 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4726 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4727 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4728
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4730 $as_echo_n "checking how to print strings... " >&6; }
4731 # Test print first, because it will be a builtin if present.
4732 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4733 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4734 ECHO='print -r --'
4735 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4736 ECHO='printf %s\n'
4737 else
4738 # Use this function as a fallback that always works.
4739 func_fallback_echo ()
4740 {
4741 eval 'cat <<_LTECHO_EOF
4742 $1
4743 _LTECHO_EOF'
4744 }
4745 ECHO='func_fallback_echo'
4746 fi
4747
4748 # func_echo_all arg...
4749 # Invoke $ECHO with all args, space-separated.
4750 func_echo_all ()
4751 {
4752 $ECHO ""
4753 }
4754
4755 case "$ECHO" in
4756 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4757 $as_echo "printf" >&6; } ;;
4758 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4759 $as_echo "print -r" >&6; } ;;
4760 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4761 $as_echo "cat" >&6; } ;;
4762 esac
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4778 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4779 if ${ac_cv_path_SED+:} false; then :
4780 $as_echo_n "(cached) " >&6
4781 else
4782 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4783 for ac_i in 1 2 3 4 5 6 7; do
4784 ac_script="$ac_script$as_nl$ac_script"
4785 done
4786 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4787 { ac_script=; unset ac_script;}
4788 if test -z "$SED"; then
4789 ac_path_SED_found=false
4790 # Loop through the user's path and test for each of PROGNAME-LIST
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 for as_dir in $PATH
4793 do
4794 IFS=$as_save_IFS
4795 test -z "$as_dir" && as_dir=.
4796 for ac_prog in sed gsed; do
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4799 as_fn_executable_p "$ac_path_SED" || continue
4800 # Check for GNU ac_path_SED and select it if it is found.
4801 # Check for GNU $ac_path_SED
4802 case `"$ac_path_SED" --version 2>&1` in
4803 *GNU*)
4804 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4805 *)
4806 ac_count=0
4807 $as_echo_n 0123456789 >"conftest.in"
4808 while :
4809 do
4810 cat "conftest.in" "conftest.in" >"conftest.tmp"
4811 mv "conftest.tmp" "conftest.in"
4812 cp "conftest.in" "conftest.nl"
4813 $as_echo '' >> "conftest.nl"
4814 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4815 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4816 as_fn_arith $ac_count + 1 && ac_count=$as_val
4817 if test $ac_count -gt ${ac_path_SED_max-0}; then
4818 # Best one so far, save it but keep looking for a better one
4819 ac_cv_path_SED="$ac_path_SED"
4820 ac_path_SED_max=$ac_count
4821 fi
4822 # 10*(2^10) chars as input seems more than enough
4823 test $ac_count -gt 10 && break
4824 done
4825 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4826 esac
4827
4828 $ac_path_SED_found && break 3
4829 done
4830 done
4831 done
4832 IFS=$as_save_IFS
4833 if test -z "$ac_cv_path_SED"; then
4834 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4835 fi
4836 else
4837 ac_cv_path_SED=$SED
4838 fi
4839
4840 fi
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4842 $as_echo "$ac_cv_path_SED" >&6; }
4843 SED="$ac_cv_path_SED"
4844 rm -f conftest.sed
4845
4846 test -z "$SED" && SED=sed
4847 Xsed="$SED -e 1s/^X//"
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4860 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4861 if ${ac_cv_path_GREP+:} false; then :
4862 $as_echo_n "(cached) " >&6
4863 else
4864 if test -z "$GREP"; then
4865 ac_path_GREP_found=false
4866 # Loop through the user's path and test for each of PROGNAME-LIST
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4869 do
4870 IFS=$as_save_IFS
4871 test -z "$as_dir" && as_dir=.
4872 for ac_prog in grep ggrep; do
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4875 as_fn_executable_p "$ac_path_GREP" || continue
4876 # Check for GNU ac_path_GREP and select it if it is found.
4877 # Check for GNU $ac_path_GREP
4878 case `"$ac_path_GREP" --version 2>&1` in
4879 *GNU*)
4880 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4881 *)
4882 ac_count=0
4883 $as_echo_n 0123456789 >"conftest.in"
4884 while :
4885 do
4886 cat "conftest.in" "conftest.in" >"conftest.tmp"
4887 mv "conftest.tmp" "conftest.in"
4888 cp "conftest.in" "conftest.nl"
4889 $as_echo 'GREP' >> "conftest.nl"
4890 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4892 as_fn_arith $ac_count + 1 && ac_count=$as_val
4893 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4894 # Best one so far, save it but keep looking for a better one
4895 ac_cv_path_GREP="$ac_path_GREP"
4896 ac_path_GREP_max=$ac_count
4897 fi
4898 # 10*(2^10) chars as input seems more than enough
4899 test $ac_count -gt 10 && break
4900 done
4901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4902 esac
4903
4904 $ac_path_GREP_found && break 3
4905 done
4906 done
4907 done
4908 IFS=$as_save_IFS
4909 if test -z "$ac_cv_path_GREP"; then
4910 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4911 fi
4912 else
4913 ac_cv_path_GREP=$GREP
4914 fi
4915
4916 fi
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4918 $as_echo "$ac_cv_path_GREP" >&6; }
4919 GREP="$ac_cv_path_GREP"
4920
4921
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4923 $as_echo_n "checking for egrep... " >&6; }
4924 if ${ac_cv_path_EGREP+:} false; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4928 then ac_cv_path_EGREP="$GREP -E"
4929 else
4930 if test -z "$EGREP"; then
4931 ac_path_EGREP_found=false
4932 # Loop through the user's path and test for each of PROGNAME-LIST
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4935 do
4936 IFS=$as_save_IFS
4937 test -z "$as_dir" && as_dir=.
4938 for ac_prog in egrep; do
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4941 as_fn_executable_p "$ac_path_EGREP" || continue
4942 # Check for GNU ac_path_EGREP and select it if it is found.
4943 # Check for GNU $ac_path_EGREP
4944 case `"$ac_path_EGREP" --version 2>&1` in
4945 *GNU*)
4946 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4947 *)
4948 ac_count=0
4949 $as_echo_n 0123456789 >"conftest.in"
4950 while :
4951 do
4952 cat "conftest.in" "conftest.in" >"conftest.tmp"
4953 mv "conftest.tmp" "conftest.in"
4954 cp "conftest.in" "conftest.nl"
4955 $as_echo 'EGREP' >> "conftest.nl"
4956 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4957 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4958 as_fn_arith $ac_count + 1 && ac_count=$as_val
4959 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4960 # Best one so far, save it but keep looking for a better one
4961 ac_cv_path_EGREP="$ac_path_EGREP"
4962 ac_path_EGREP_max=$ac_count
4963 fi
4964 # 10*(2^10) chars as input seems more than enough
4965 test $ac_count -gt 10 && break
4966 done
4967 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4968 esac
4969
4970 $ac_path_EGREP_found && break 3
4971 done
4972 done
4973 done
4974 IFS=$as_save_IFS
4975 if test -z "$ac_cv_path_EGREP"; then
4976 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4977 fi
4978 else
4979 ac_cv_path_EGREP=$EGREP
4980 fi
4981
4982 fi
4983 fi
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4985 $as_echo "$ac_cv_path_EGREP" >&6; }
4986 EGREP="$ac_cv_path_EGREP"
4987
4988
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4990 $as_echo_n "checking for fgrep... " >&6; }
4991 if ${ac_cv_path_FGREP+:} false; then :
4992 $as_echo_n "(cached) " >&6
4993 else
4994 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4995 then ac_cv_path_FGREP="$GREP -F"
4996 else
4997 if test -z "$FGREP"; then
4998 ac_path_FGREP_found=false
4999 # Loop through the user's path and test for each of PROGNAME-LIST
5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5002 do
5003 IFS=$as_save_IFS
5004 test -z "$as_dir" && as_dir=.
5005 for ac_prog in fgrep; do
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5008 as_fn_executable_p "$ac_path_FGREP" || continue
5009 # Check for GNU ac_path_FGREP and select it if it is found.
5010 # Check for GNU $ac_path_FGREP
5011 case `"$ac_path_FGREP" --version 2>&1` in
5012 *GNU*)
5013 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5014 *)
5015 ac_count=0
5016 $as_echo_n 0123456789 >"conftest.in"
5017 while :
5018 do
5019 cat "conftest.in" "conftest.in" >"conftest.tmp"
5020 mv "conftest.tmp" "conftest.in"
5021 cp "conftest.in" "conftest.nl"
5022 $as_echo 'FGREP' >> "conftest.nl"
5023 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5024 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5025 as_fn_arith $ac_count + 1 && ac_count=$as_val
5026 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5027 # Best one so far, save it but keep looking for a better one
5028 ac_cv_path_FGREP="$ac_path_FGREP"
5029 ac_path_FGREP_max=$ac_count
5030 fi
5031 # 10*(2^10) chars as input seems more than enough
5032 test $ac_count -gt 10 && break
5033 done
5034 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5035 esac
5036
5037 $ac_path_FGREP_found && break 3
5038 done
5039 done
5040 done
5041 IFS=$as_save_IFS
5042 if test -z "$ac_cv_path_FGREP"; then
5043 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5044 fi
5045 else
5046 ac_cv_path_FGREP=$FGREP
5047 fi
5048
5049 fi
5050 fi
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5052 $as_echo "$ac_cv_path_FGREP" >&6; }
5053 FGREP="$ac_cv_path_FGREP"
5054
5055
5056 test -z "$GREP" && GREP=grep
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076 # Check whether --with-gnu-ld was given.
5077 if test "${with_gnu_ld+set}" = set; then :
5078 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5079 else
5080 with_gnu_ld=no
5081 fi
5082
5083 ac_prog=ld
5084 if test "$GCC" = yes; then
5085 # Check if gcc -print-prog-name=ld gives a path.
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5087 $as_echo_n "checking for ld used by $CC... " >&6; }
5088 case $host in
5089 *-*-mingw*)
5090 # gcc leaves a trailing carriage return which upsets mingw
5091 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5092 *)
5093 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5094 esac
5095 case $ac_prog in
5096 # Accept absolute paths.
5097 [\\/]* | ?:[\\/]*)
5098 re_direlt='/[^/][^/]*/\.\./'
5099 # Canonicalize the pathname of ld
5100 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5101 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5102 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5103 done
5104 test -z "$LD" && LD="$ac_prog"
5105 ;;
5106 "")
5107 # If it fails, then pretend we aren't using GCC.
5108 ac_prog=ld
5109 ;;
5110 *)
5111 # If it is relative, then search for the first ld in PATH.
5112 with_gnu_ld=unknown
5113 ;;
5114 esac
5115 elif test "$with_gnu_ld" = yes; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5117 $as_echo_n "checking for GNU ld... " >&6; }
5118 else
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5120 $as_echo_n "checking for non-GNU ld... " >&6; }
5121 fi
5122 if ${lt_cv_path_LD+:} false; then :
5123 $as_echo_n "(cached) " >&6
5124 else
5125 if test -z "$LD"; then
5126 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5127 for ac_dir in $PATH; do
5128 IFS="$lt_save_ifs"
5129 test -z "$ac_dir" && ac_dir=.
5130 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5131 lt_cv_path_LD="$ac_dir/$ac_prog"
5132 # Check to see if the program is GNU ld. I'd rather use --version,
5133 # but apparently some variants of GNU ld only accept -v.
5134 # Break only if it was the GNU/non-GNU ld that we prefer.
5135 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5136 *GNU* | *'with BFD'*)
5137 test "$with_gnu_ld" != no && break
5138 ;;
5139 *)
5140 test "$with_gnu_ld" != yes && break
5141 ;;
5142 esac
5143 fi
5144 done
5145 IFS="$lt_save_ifs"
5146 else
5147 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5148 fi
5149 fi
5150
5151 LD="$lt_cv_path_LD"
5152 if test -n "$LD"; then
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5154 $as_echo "$LD" >&6; }
5155 else
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 $as_echo "no" >&6; }
5158 fi
5159 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5161 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5162 if ${lt_cv_prog_gnu_ld+:} false; then :
5163 $as_echo_n "(cached) " >&6
5164 else
5165 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5166 case `$LD -v 2>&1 </dev/null` in
5167 *GNU* | *'with BFD'*)
5168 lt_cv_prog_gnu_ld=yes
5169 ;;
5170 *)
5171 lt_cv_prog_gnu_ld=no
5172 ;;
5173 esac
5174 fi
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5176 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5177 with_gnu_ld=$lt_cv_prog_gnu_ld
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5188 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5189 if ${lt_cv_path_NM+:} false; then :
5190 $as_echo_n "(cached) " >&6
5191 else
5192 if test -n "$NM"; then
5193 # Let the user override the test.
5194 lt_cv_path_NM="$NM"
5195 else
5196 lt_nm_to_check="${ac_tool_prefix}nm"
5197 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5198 lt_nm_to_check="$lt_nm_to_check nm"
5199 fi
5200 for lt_tmp_nm in $lt_nm_to_check; do
5201 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5202 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5203 IFS="$lt_save_ifs"
5204 test -z "$ac_dir" && ac_dir=.
5205 tmp_nm="$ac_dir/$lt_tmp_nm"
5206 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5207 # Check to see if the nm accepts a BSD-compat flag.
5208 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5209 # nm: unknown option "B" ignored
5210 # Tru64's nm complains that /dev/null is an invalid object file
5211 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5212 */dev/null* | *'Invalid file or object type'*)
5213 lt_cv_path_NM="$tmp_nm -B"
5214 break
5215 ;;
5216 *)
5217 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5218 */dev/null*)
5219 lt_cv_path_NM="$tmp_nm -p"
5220 break
5221 ;;
5222 *)
5223 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5224 continue # so that we can try to find one that supports BSD flags
5225 ;;
5226 esac
5227 ;;
5228 esac
5229 fi
5230 done
5231 IFS="$lt_save_ifs"
5232 done
5233 : ${lt_cv_path_NM=no}
5234 fi
5235 fi
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5237 $as_echo "$lt_cv_path_NM" >&6; }
5238 if test "$lt_cv_path_NM" != "no"; then
5239 NM="$lt_cv_path_NM"
5240 else
5241 # Didn't find any BSD compatible name lister, look for dumpbin.
5242 if test -n "$DUMPBIN"; then :
5243 # Let the user override the test.
5244 else
5245 if test -n "$ac_tool_prefix"; then
5246 for ac_prog in dumpbin "link -dump"
5247 do
5248 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5249 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5251 $as_echo_n "checking for $ac_word... " >&6; }
5252 if ${ac_cv_prog_DUMPBIN+:} false; then :
5253 $as_echo_n "(cached) " >&6
5254 else
5255 if test -n "$DUMPBIN"; then
5256 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5257 else
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH
5260 do
5261 IFS=$as_save_IFS
5262 test -z "$as_dir" && as_dir=.
5263 for ac_exec_ext in '' $ac_executable_extensions; do
5264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5265 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5267 break 2
5268 fi
5269 done
5270 done
5271 IFS=$as_save_IFS
5272
5273 fi
5274 fi
5275 DUMPBIN=$ac_cv_prog_DUMPBIN
5276 if test -n "$DUMPBIN"; then
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5278 $as_echo "$DUMPBIN" >&6; }
5279 else
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 $as_echo "no" >&6; }
5282 fi
5283
5284
5285 test -n "$DUMPBIN" && break
5286 done
5287 fi
5288 if test -z "$DUMPBIN"; then
5289 ac_ct_DUMPBIN=$DUMPBIN
5290 for ac_prog in dumpbin "link -dump"
5291 do
5292 # Extract the first word of "$ac_prog", so it can be a program name with args.
5293 set dummy $ac_prog; ac_word=$2
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5295 $as_echo_n "checking for $ac_word... " >&6; }
5296 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5297 $as_echo_n "(cached) " >&6
5298 else
5299 if test -n "$ac_ct_DUMPBIN"; then
5300 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5301 else
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in $PATH
5304 do
5305 IFS=$as_save_IFS
5306 test -z "$as_dir" && as_dir=.
5307 for ac_exec_ext in '' $ac_executable_extensions; do
5308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5309 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5311 break 2
5312 fi
5313 done
5314 done
5315 IFS=$as_save_IFS
5316
5317 fi
5318 fi
5319 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5320 if test -n "$ac_ct_DUMPBIN"; then
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5322 $as_echo "$ac_ct_DUMPBIN" >&6; }
5323 else
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325 $as_echo "no" >&6; }
5326 fi
5327
5328
5329 test -n "$ac_ct_DUMPBIN" && break
5330 done
5331
5332 if test "x$ac_ct_DUMPBIN" = x; then
5333 DUMPBIN=":"
5334 else
5335 case $cross_compiling:$ac_tool_warned in
5336 yes:)
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5339 ac_tool_warned=yes ;;
5340 esac
5341 DUMPBIN=$ac_ct_DUMPBIN
5342 fi
5343 fi
5344
5345 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5346 *COFF*)
5347 DUMPBIN="$DUMPBIN -symbols"
5348 ;;
5349 *)
5350 DUMPBIN=:
5351 ;;
5352 esac
5353 fi
5354
5355 if test "$DUMPBIN" != ":"; then
5356 NM="$DUMPBIN"
5357 fi
5358 fi
5359 test -z "$NM" && NM=nm
5360
5361
5362
5363
5364
5365
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5367 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5368 if ${lt_cv_nm_interface+:} false; then :
5369 $as_echo_n "(cached) " >&6
5370 else
5371 lt_cv_nm_interface="BSD nm"
5372 echo "int some_variable = 0;" > conftest.$ac_ext
5373 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5374 (eval "$ac_compile" 2>conftest.err)
5375 cat conftest.err >&5
5376 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5377 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5378 cat conftest.err >&5
5379 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5380 cat conftest.out >&5
5381 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5382 lt_cv_nm_interface="MS dumpbin"
5383 fi
5384 rm -f conftest*
5385 fi
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5387 $as_echo "$lt_cv_nm_interface" >&6; }
5388
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5390 $as_echo_n "checking whether ln -s works... " >&6; }
5391 LN_S=$as_ln_s
5392 if test "$LN_S" = "ln -s"; then
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5394 $as_echo "yes" >&6; }
5395 else
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5397 $as_echo "no, using $LN_S" >&6; }
5398 fi
5399
5400 # find the maximum length of command line arguments
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5402 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5403 if ${lt_cv_sys_max_cmd_len+:} false; then :
5404 $as_echo_n "(cached) " >&6
5405 else
5406 i=0
5407 teststring="ABCD"
5408
5409 case $build_os in
5410 msdosdjgpp*)
5411 # On DJGPP, this test can blow up pretty badly due to problems in libc
5412 # (any single argument exceeding 2000 bytes causes a buffer overrun
5413 # during glob expansion). Even if it were fixed, the result of this
5414 # check would be larger than it should be.
5415 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5416 ;;
5417
5418 gnu*)
5419 # Under GNU Hurd, this test is not required because there is
5420 # no limit to the length of command line arguments.
5421 # Libtool will interpret -1 as no limit whatsoever
5422 lt_cv_sys_max_cmd_len=-1;
5423 ;;
5424
5425 cygwin* | mingw* | cegcc*)
5426 # On Win9x/ME, this test blows up -- it succeeds, but takes
5427 # about 5 minutes as the teststring grows exponentially.
5428 # Worse, since 9x/ME are not pre-emptively multitasking,
5429 # you end up with a "frozen" computer, even though with patience
5430 # the test eventually succeeds (with a max line length of 256k).
5431 # Instead, let's just punt: use the minimum linelength reported by
5432 # all of the supported platforms: 8192 (on NT/2K/XP).
5433 lt_cv_sys_max_cmd_len=8192;
5434 ;;
5435
5436 mint*)
5437 # On MiNT this can take a long time and run out of memory.
5438 lt_cv_sys_max_cmd_len=8192;
5439 ;;
5440
5441 amigaos*)
5442 # On AmigaOS with pdksh, this test takes hours, literally.
5443 # So we just punt and use a minimum line length of 8192.
5444 lt_cv_sys_max_cmd_len=8192;
5445 ;;
5446
5447 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5448 # This has been around since 386BSD, at least. Likely further.
5449 if test -x /sbin/sysctl; then
5450 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5451 elif test -x /usr/sbin/sysctl; then
5452 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5453 else
5454 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5455 fi
5456 # And add a safety zone
5457 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5458 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5459 ;;
5460
5461 interix*)
5462 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5463 lt_cv_sys_max_cmd_len=196608
5464 ;;
5465
5466 os2*)
5467 # The test takes a long time on OS/2.
5468 lt_cv_sys_max_cmd_len=8192
5469 ;;
5470
5471 osf*)
5472 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5473 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5474 # nice to cause kernel panics so lets avoid the loop below.
5475 # First set a reasonable default.
5476 lt_cv_sys_max_cmd_len=16384
5477 #
5478 if test -x /sbin/sysconfig; then
5479 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5480 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5481 esac
5482 fi
5483 ;;
5484 sco3.2v5*)
5485 lt_cv_sys_max_cmd_len=102400
5486 ;;
5487 sysv5* | sco5v6* | sysv4.2uw2*)
5488 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5489 if test -n "$kargmax"; then
5490 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5491 else
5492 lt_cv_sys_max_cmd_len=32768
5493 fi
5494 ;;
5495 *)
5496 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5497 if test -n "$lt_cv_sys_max_cmd_len"; then
5498 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5499 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5500 else
5501 # Make teststring a little bigger before we do anything with it.
5502 # a 1K string should be a reasonable start.
5503 for i in 1 2 3 4 5 6 7 8 ; do
5504 teststring=$teststring$teststring
5505 done
5506 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5507 # If test is not a shell built-in, we'll probably end up computing a
5508 # maximum length that is only half of the actual maximum length, but
5509 # we can't tell.
5510 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5511 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5512 test $i != 17 # 1/2 MB should be enough
5513 do
5514 i=`expr $i + 1`
5515 teststring=$teststring$teststring
5516 done
5517 # Only check the string length outside the loop.
5518 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5519 teststring=
5520 # Add a significant safety factor because C++ compilers can tack on
5521 # massive amounts of additional arguments before passing them to the
5522 # linker. It appears as though 1/2 is a usable value.
5523 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5524 fi
5525 ;;
5526 esac
5527
5528 fi
5529
5530 if test -n $lt_cv_sys_max_cmd_len ; then
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5532 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5533 else
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5535 $as_echo "none" >&6; }
5536 fi
5537 max_cmd_len=$lt_cv_sys_max_cmd_len
5538
5539
5540
5541
5542
5543
5544 : ${CP="cp -f"}
5545 : ${MV="mv -f"}
5546 : ${RM="rm -f"}
5547
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5549 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5550 # Try some XSI features
5551 xsi_shell=no
5552 ( _lt_dummy="a/b/c"
5553 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5554 = c,a/b,b/c, \
5555 && eval 'test $(( 1 + 1 )) -eq 2 \
5556 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5557 && xsi_shell=yes
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5559 $as_echo "$xsi_shell" >&6; }
5560
5561
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5563 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5564 lt_shell_append=no
5565 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5566 >/dev/null 2>&1 \
5567 && lt_shell_append=yes
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5569 $as_echo "$lt_shell_append" >&6; }
5570
5571
5572 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5573 lt_unset=unset
5574 else
5575 lt_unset=false
5576 fi
5577
5578
5579
5580
5581
5582 # test EBCDIC or ASCII
5583 case `echo X|tr X '\101'` in
5584 A) # ASCII based system
5585 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5586 lt_SP2NL='tr \040 \012'
5587 lt_NL2SP='tr \015\012 \040\040'
5588 ;;
5589 *) # EBCDIC based system
5590 lt_SP2NL='tr \100 \n'
5591 lt_NL2SP='tr \r\n \100\100'
5592 ;;
5593 esac
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5604 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5605 if ${lt_cv_to_host_file_cmd+:} false; then :
5606 $as_echo_n "(cached) " >&6
5607 else
5608 case $host in
5609 *-*-mingw* )
5610 case $build in
5611 *-*-mingw* ) # actually msys
5612 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5613 ;;
5614 *-*-cygwin* )
5615 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5616 ;;
5617 * ) # otherwise, assume *nix
5618 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5619 ;;
5620 esac
5621 ;;
5622 *-*-cygwin* )
5623 case $build in
5624 *-*-mingw* ) # actually msys
5625 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5626 ;;
5627 *-*-cygwin* )
5628 lt_cv_to_host_file_cmd=func_convert_file_noop
5629 ;;
5630 * ) # otherwise, assume *nix
5631 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5632 ;;
5633 esac
5634 ;;
5635 * ) # unhandled hosts (and "normal" native builds)
5636 lt_cv_to_host_file_cmd=func_convert_file_noop
5637 ;;
5638 esac
5639
5640 fi
5641
5642 to_host_file_cmd=$lt_cv_to_host_file_cmd
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5644 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5645
5646
5647
5648
5649
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5651 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5652 if ${lt_cv_to_tool_file_cmd+:} false; then :
5653 $as_echo_n "(cached) " >&6
5654 else
5655 #assume ordinary cross tools, or native build.
5656 lt_cv_to_tool_file_cmd=func_convert_file_noop
5657 case $host in
5658 *-*-mingw* )
5659 case $build in
5660 *-*-mingw* ) # actually msys
5661 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5662 ;;
5663 esac
5664 ;;
5665 esac
5666
5667 fi
5668
5669 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5671 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5672
5673
5674
5675
5676
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5678 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5679 if ${lt_cv_ld_reload_flag+:} false; then :
5680 $as_echo_n "(cached) " >&6
5681 else
5682 lt_cv_ld_reload_flag='-r'
5683 fi
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5685 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5686 reload_flag=$lt_cv_ld_reload_flag
5687 case $reload_flag in
5688 "" | " "*) ;;
5689 *) reload_flag=" $reload_flag" ;;
5690 esac
5691 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5692 case $host_os in
5693 cygwin* | mingw* | pw32* | cegcc*)
5694 if test "$GCC" != yes; then
5695 reload_cmds=false
5696 fi
5697 ;;
5698 darwin*)
5699 if test "$GCC" = yes; then
5700 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5701 else
5702 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5703 fi
5704 ;;
5705 esac
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715 if test -n "$ac_tool_prefix"; then
5716 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5717 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719 $as_echo_n "checking for $ac_word... " >&6; }
5720 if ${ac_cv_prog_OBJDUMP+:} false; then :
5721 $as_echo_n "(cached) " >&6
5722 else
5723 if test -n "$OBJDUMP"; then
5724 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5725 else
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 for as_dir in $PATH
5728 do
5729 IFS=$as_save_IFS
5730 test -z "$as_dir" && as_dir=.
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5733 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5735 break 2
5736 fi
5737 done
5738 done
5739 IFS=$as_save_IFS
5740
5741 fi
5742 fi
5743 OBJDUMP=$ac_cv_prog_OBJDUMP
5744 if test -n "$OBJDUMP"; then
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5746 $as_echo "$OBJDUMP" >&6; }
5747 else
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749 $as_echo "no" >&6; }
5750 fi
5751
5752
5753 fi
5754 if test -z "$ac_cv_prog_OBJDUMP"; then
5755 ac_ct_OBJDUMP=$OBJDUMP
5756 # Extract the first word of "objdump", so it can be a program name with args.
5757 set dummy objdump; ac_word=$2
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5759 $as_echo_n "checking for $ac_word... " >&6; }
5760 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5761 $as_echo_n "(cached) " >&6
5762 else
5763 if test -n "$ac_ct_OBJDUMP"; then
5764 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5765 else
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 for as_dir in $PATH
5768 do
5769 IFS=$as_save_IFS
5770 test -z "$as_dir" && as_dir=.
5771 for ac_exec_ext in '' $ac_executable_extensions; do
5772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5773 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5775 break 2
5776 fi
5777 done
5778 done
5779 IFS=$as_save_IFS
5780
5781 fi
5782 fi
5783 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5784 if test -n "$ac_ct_OBJDUMP"; then
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5786 $as_echo "$ac_ct_OBJDUMP" >&6; }
5787 else
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789 $as_echo "no" >&6; }
5790 fi
5791
5792 if test "x$ac_ct_OBJDUMP" = x; then
5793 OBJDUMP="false"
5794 else
5795 case $cross_compiling:$ac_tool_warned in
5796 yes:)
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5799 ac_tool_warned=yes ;;
5800 esac
5801 OBJDUMP=$ac_ct_OBJDUMP
5802 fi
5803 else
5804 OBJDUMP="$ac_cv_prog_OBJDUMP"
5805 fi
5806
5807 test -z "$OBJDUMP" && OBJDUMP=objdump
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5818 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5819 if ${lt_cv_deplibs_check_method+:} false; then :
5820 $as_echo_n "(cached) " >&6
5821 else
5822 lt_cv_file_magic_cmd='$MAGIC_CMD'
5823 lt_cv_file_magic_test_file=
5824 lt_cv_deplibs_check_method='unknown'
5825 # Need to set the preceding variable on all platforms that support
5826 # interlibrary dependencies.
5827 # 'none' -- dependencies not supported.
5828 # `unknown' -- same as none, but documents that we really don't know.
5829 # 'pass_all' -- all dependencies passed with no checks.
5830 # 'test_compile' -- check by making test program.
5831 # 'file_magic [[regex]]' -- check by looking for files in library path
5832 # which responds to the $file_magic_cmd with a given extended regex.
5833 # If you have `file' or equivalent on your system and you're not sure
5834 # whether `pass_all' will *always* work, you probably want this one.
5835
5836 case $host_os in
5837 aix[4-9]*)
5838 lt_cv_deplibs_check_method=pass_all
5839 ;;
5840
5841 beos*)
5842 lt_cv_deplibs_check_method=pass_all
5843 ;;
5844
5845 bsdi[45]*)
5846 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5847 lt_cv_file_magic_cmd='/usr/bin/file -L'
5848 lt_cv_file_magic_test_file=/shlib/libc.so
5849 ;;
5850
5851 cygwin*)
5852 # func_win32_libid is a shell function defined in ltmain.sh
5853 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5854 lt_cv_file_magic_cmd='func_win32_libid'
5855 ;;
5856
5857 mingw* | pw32*)
5858 # Base MSYS/MinGW do not provide the 'file' command needed by
5859 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5860 # unless we find 'file', for example because we are cross-compiling.
5861 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5862 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5863 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5864 lt_cv_file_magic_cmd='func_win32_libid'
5865 else
5866 # Keep this pattern in sync with the one in func_win32_libid.
5867 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5868 lt_cv_file_magic_cmd='$OBJDUMP -f'
5869 fi
5870 ;;
5871
5872 cegcc*)
5873 # use the weaker test based on 'objdump'. See mingw*.
5874 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5875 lt_cv_file_magic_cmd='$OBJDUMP -f'
5876 ;;
5877
5878 darwin* | rhapsody*)
5879 lt_cv_deplibs_check_method=pass_all
5880 ;;
5881
5882 freebsd* | dragonfly*)
5883 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5884 case $host_cpu in
5885 i*86 )
5886 # Not sure whether the presence of OpenBSD here was a mistake.
5887 # Let's accept both of them until this is cleared up.
5888 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5889 lt_cv_file_magic_cmd=/usr/bin/file
5890 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5891 ;;
5892 esac
5893 else
5894 lt_cv_deplibs_check_method=pass_all
5895 fi
5896 ;;
5897
5898 gnu*)
5899 lt_cv_deplibs_check_method=pass_all
5900 ;;
5901
5902 haiku*)
5903 lt_cv_deplibs_check_method=pass_all
5904 ;;
5905
5906 hpux10.20* | hpux11*)
5907 lt_cv_file_magic_cmd=/usr/bin/file
5908 case $host_cpu in
5909 ia64*)
5910 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5911 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5912 ;;
5913 hppa*64*)
5914 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]'
5915 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5916 ;;
5917 *)
5918 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5919 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5920 ;;
5921 esac
5922 ;;
5923
5924 interix[3-9]*)
5925 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5927 ;;
5928
5929 irix5* | irix6* | nonstopux*)
5930 case $LD in
5931 *-32|*"-32 ") libmagic=32-bit;;
5932 *-n32|*"-n32 ") libmagic=N32;;
5933 *-64|*"-64 ") libmagic=64-bit;;
5934 *) libmagic=never-match;;
5935 esac
5936 lt_cv_deplibs_check_method=pass_all
5937 ;;
5938
5939 # This must be glibc/ELF.
5940 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5941 lt_cv_deplibs_check_method=pass_all
5942 ;;
5943
5944 netbsd*)
5945 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5946 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5947 else
5948 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5949 fi
5950 ;;
5951
5952 newos6*)
5953 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5954 lt_cv_file_magic_cmd=/usr/bin/file
5955 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5956 ;;
5957
5958 *nto* | *qnx*)
5959 lt_cv_deplibs_check_method=pass_all
5960 ;;
5961
5962 openbsd*)
5963 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5964 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5965 else
5966 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5967 fi
5968 ;;
5969
5970 osf3* | osf4* | osf5*)
5971 lt_cv_deplibs_check_method=pass_all
5972 ;;
5973
5974 rdos*)
5975 lt_cv_deplibs_check_method=pass_all
5976 ;;
5977
5978 solaris*)
5979 lt_cv_deplibs_check_method=pass_all
5980 ;;
5981
5982 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5983 lt_cv_deplibs_check_method=pass_all
5984 ;;
5985
5986 sysv4 | sysv4.3*)
5987 case $host_vendor in
5988 motorola)
5989 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]'
5990 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5991 ;;
5992 ncr)
5993 lt_cv_deplibs_check_method=pass_all
5994 ;;
5995 sequent)
5996 lt_cv_file_magic_cmd='/bin/file'
5997 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5998 ;;
5999 sni)
6000 lt_cv_file_magic_cmd='/bin/file'
6001 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6002 lt_cv_file_magic_test_file=/lib/libc.so
6003 ;;
6004 siemens)
6005 lt_cv_deplibs_check_method=pass_all
6006 ;;
6007 pc)
6008 lt_cv_deplibs_check_method=pass_all
6009 ;;
6010 esac
6011 ;;
6012
6013 tpf*)
6014 lt_cv_deplibs_check_method=pass_all
6015 ;;
6016 esac
6017
6018 fi
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6020 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6021
6022 file_magic_glob=
6023 want_nocaseglob=no
6024 if test "$build" = "$host"; then
6025 case $host_os in
6026 mingw* | pw32*)
6027 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6028 want_nocaseglob=yes
6029 else
6030 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6031 fi
6032 ;;
6033 esac
6034 fi
6035
6036 file_magic_cmd=$lt_cv_file_magic_cmd
6037 deplibs_check_method=$lt_cv_deplibs_check_method
6038 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061 if test -n "$ac_tool_prefix"; then
6062 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6063 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6065 $as_echo_n "checking for $ac_word... " >&6; }
6066 if ${ac_cv_prog_DLLTOOL+:} false; then :
6067 $as_echo_n "(cached) " >&6
6068 else
6069 if test -n "$DLLTOOL"; then
6070 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6071 else
6072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073 for as_dir in $PATH
6074 do
6075 IFS=$as_save_IFS
6076 test -z "$as_dir" && as_dir=.
6077 for ac_exec_ext in '' $ac_executable_extensions; do
6078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6079 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 break 2
6082 fi
6083 done
6084 done
6085 IFS=$as_save_IFS
6086
6087 fi
6088 fi
6089 DLLTOOL=$ac_cv_prog_DLLTOOL
6090 if test -n "$DLLTOOL"; then
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6092 $as_echo "$DLLTOOL" >&6; }
6093 else
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095 $as_echo "no" >&6; }
6096 fi
6097
6098
6099 fi
6100 if test -z "$ac_cv_prog_DLLTOOL"; then
6101 ac_ct_DLLTOOL=$DLLTOOL
6102 # Extract the first word of "dlltool", so it can be a program name with args.
6103 set dummy dlltool; ac_word=$2
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6105 $as_echo_n "checking for $ac_word... " >&6; }
6106 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6107 $as_echo_n "(cached) " >&6
6108 else
6109 if test -n "$ac_ct_DLLTOOL"; then
6110 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6111 else
6112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 for as_dir in $PATH
6114 do
6115 IFS=$as_save_IFS
6116 test -z "$as_dir" && as_dir=.
6117 for ac_exec_ext in '' $ac_executable_extensions; do
6118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6119 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6121 break 2
6122 fi
6123 done
6124 done
6125 IFS=$as_save_IFS
6126
6127 fi
6128 fi
6129 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6130 if test -n "$ac_ct_DLLTOOL"; then
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6132 $as_echo "$ac_ct_DLLTOOL" >&6; }
6133 else
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6135 $as_echo "no" >&6; }
6136 fi
6137
6138 if test "x$ac_ct_DLLTOOL" = x; then
6139 DLLTOOL="false"
6140 else
6141 case $cross_compiling:$ac_tool_warned in
6142 yes:)
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6145 ac_tool_warned=yes ;;
6146 esac
6147 DLLTOOL=$ac_ct_DLLTOOL
6148 fi
6149 else
6150 DLLTOOL="$ac_cv_prog_DLLTOOL"
6151 fi
6152
6153 test -z "$DLLTOOL" && DLLTOOL=dlltool
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6165 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6166 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6167 $as_echo_n "(cached) " >&6
6168 else
6169 lt_cv_sharedlib_from_linklib_cmd='unknown'
6170
6171 case $host_os in
6172 cygwin* | mingw* | pw32* | cegcc*)
6173 # two different shell functions defined in ltmain.sh
6174 # decide which to use based on capabilities of $DLLTOOL
6175 case `$DLLTOOL --help 2>&1` in
6176 *--identify-strict*)
6177 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6178 ;;
6179 *)
6180 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6181 ;;
6182 esac
6183 ;;
6184 *)
6185 # fallback: assume linklib IS sharedlib
6186 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6187 ;;
6188 esac
6189
6190 fi
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6192 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6193 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6194 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6195
6196
6197
6198
6199
6200
6201
6202
6203 if test -n "$ac_tool_prefix"; then
6204 for ac_prog in ar
6205 do
6206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6207 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6209 $as_echo_n "checking for $ac_word... " >&6; }
6210 if ${ac_cv_prog_AR+:} false; then :
6211 $as_echo_n "(cached) " >&6
6212 else
6213 if test -n "$AR"; then
6214 ac_cv_prog_AR="$AR" # Let the user override the test.
6215 else
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 for as_dir in $PATH
6218 do
6219 IFS=$as_save_IFS
6220 test -z "$as_dir" && as_dir=.
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6223 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 break 2
6226 fi
6227 done
6228 done
6229 IFS=$as_save_IFS
6230
6231 fi
6232 fi
6233 AR=$ac_cv_prog_AR
6234 if test -n "$AR"; then
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6236 $as_echo "$AR" >&6; }
6237 else
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6239 $as_echo "no" >&6; }
6240 fi
6241
6242
6243 test -n "$AR" && break
6244 done
6245 fi
6246 if test -z "$AR"; then
6247 ac_ct_AR=$AR
6248 for ac_prog in ar
6249 do
6250 # Extract the first word of "$ac_prog", so it can be a program name with args.
6251 set dummy $ac_prog; ac_word=$2
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253 $as_echo_n "checking for $ac_word... " >&6; }
6254 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6255 $as_echo_n "(cached) " >&6
6256 else
6257 if test -n "$ac_ct_AR"; then
6258 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6259 else
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 for as_dir in $PATH
6262 do
6263 IFS=$as_save_IFS
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6267 ac_cv_prog_ac_ct_AR="$ac_prog"
6268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6269 break 2
6270 fi
6271 done
6272 done
6273 IFS=$as_save_IFS
6274
6275 fi
6276 fi
6277 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6278 if test -n "$ac_ct_AR"; then
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6280 $as_echo "$ac_ct_AR" >&6; }
6281 else
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283 $as_echo "no" >&6; }
6284 fi
6285
6286
6287 test -n "$ac_ct_AR" && break
6288 done
6289
6290 if test "x$ac_ct_AR" = x; then
6291 AR="false"
6292 else
6293 case $cross_compiling:$ac_tool_warned in
6294 yes:)
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6297 ac_tool_warned=yes ;;
6298 esac
6299 AR=$ac_ct_AR
6300 fi
6301 fi
6302
6303 : ${AR=ar}
6304 : ${AR_FLAGS=cru}
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6317 $as_echo_n "checking for archiver @FILE support... " >&6; }
6318 if ${lt_cv_ar_at_file+:} false; then :
6319 $as_echo_n "(cached) " >&6
6320 else
6321 lt_cv_ar_at_file=no
6322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323 /* end confdefs.h. */
6324
6325 int
6326 main ()
6327 {
6328
6329 ;
6330 return 0;
6331 }
6332 _ACEOF
6333 if ac_fn_c_try_compile "$LINENO"; then :
6334 echo conftest.$ac_objext > conftest.lst
6335 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6337 (eval $lt_ar_try) 2>&5
6338 ac_status=$?
6339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6340 test $ac_status = 0; }
6341 if test "$ac_status" -eq 0; then
6342 # Ensure the archiver fails upon bogus file names.
6343 rm -f conftest.$ac_objext libconftest.a
6344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6345 (eval $lt_ar_try) 2>&5
6346 ac_status=$?
6347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6348 test $ac_status = 0; }
6349 if test "$ac_status" -ne 0; then
6350 lt_cv_ar_at_file=@
6351 fi
6352 fi
6353 rm -f conftest.* libconftest.a
6354
6355 fi
6356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6357
6358 fi
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6360 $as_echo "$lt_cv_ar_at_file" >&6; }
6361
6362 if test "x$lt_cv_ar_at_file" = xno; then
6363 archiver_list_spec=
6364 else
6365 archiver_list_spec=$lt_cv_ar_at_file
6366 fi
6367
6368
6369
6370
6371
6372
6373
6374 if test -n "$ac_tool_prefix"; then
6375 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6376 set dummy ${ac_tool_prefix}strip; ac_word=$2
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6378 $as_echo_n "checking for $ac_word... " >&6; }
6379 if ${ac_cv_prog_STRIP+:} false; then :
6380 $as_echo_n "(cached) " >&6
6381 else
6382 if test -n "$STRIP"; then
6383 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6384 else
6385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386 for as_dir in $PATH
6387 do
6388 IFS=$as_save_IFS
6389 test -z "$as_dir" && as_dir=.
6390 for ac_exec_ext in '' $ac_executable_extensions; do
6391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6392 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6394 break 2
6395 fi
6396 done
6397 done
6398 IFS=$as_save_IFS
6399
6400 fi
6401 fi
6402 STRIP=$ac_cv_prog_STRIP
6403 if test -n "$STRIP"; then
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6405 $as_echo "$STRIP" >&6; }
6406 else
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6408 $as_echo "no" >&6; }
6409 fi
6410
6411
6412 fi
6413 if test -z "$ac_cv_prog_STRIP"; then
6414 ac_ct_STRIP=$STRIP
6415 # Extract the first word of "strip", so it can be a program name with args.
6416 set dummy strip; ac_word=$2
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6418 $as_echo_n "checking for $ac_word... " >&6; }
6419 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6420 $as_echo_n "(cached) " >&6
6421 else
6422 if test -n "$ac_ct_STRIP"; then
6423 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6424 else
6425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 for as_dir in $PATH
6427 do
6428 IFS=$as_save_IFS
6429 test -z "$as_dir" && as_dir=.
6430 for ac_exec_ext in '' $ac_executable_extensions; do
6431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6432 ac_cv_prog_ac_ct_STRIP="strip"
6433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6434 break 2
6435 fi
6436 done
6437 done
6438 IFS=$as_save_IFS
6439
6440 fi
6441 fi
6442 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6443 if test -n "$ac_ct_STRIP"; then
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6445 $as_echo "$ac_ct_STRIP" >&6; }
6446 else
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6448 $as_echo "no" >&6; }
6449 fi
6450
6451 if test "x$ac_ct_STRIP" = x; then
6452 STRIP=":"
6453 else
6454 case $cross_compiling:$ac_tool_warned in
6455 yes:)
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6458 ac_tool_warned=yes ;;
6459 esac
6460 STRIP=$ac_ct_STRIP
6461 fi
6462 else
6463 STRIP="$ac_cv_prog_STRIP"
6464 fi
6465
6466 test -z "$STRIP" && STRIP=:
6467
6468
6469
6470
6471
6472
6473 if test -n "$ac_tool_prefix"; then
6474 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6475 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if ${ac_cv_prog_RANLIB+:} false; then :
6479 $as_echo_n "(cached) " >&6
6480 else
6481 if test -n "$RANLIB"; then
6482 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6483 else
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 for as_dir in $PATH
6486 do
6487 IFS=$as_save_IFS
6488 test -z "$as_dir" && as_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6491 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6493 break 2
6494 fi
6495 done
6496 done
6497 IFS=$as_save_IFS
6498
6499 fi
6500 fi
6501 RANLIB=$ac_cv_prog_RANLIB
6502 if test -n "$RANLIB"; then
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6504 $as_echo "$RANLIB" >&6; }
6505 else
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6507 $as_echo "no" >&6; }
6508 fi
6509
6510
6511 fi
6512 if test -z "$ac_cv_prog_RANLIB"; then
6513 ac_ct_RANLIB=$RANLIB
6514 # Extract the first word of "ranlib", so it can be a program name with args.
6515 set dummy ranlib; ac_word=$2
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517 $as_echo_n "checking for $ac_word... " >&6; }
6518 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6519 $as_echo_n "(cached) " >&6
6520 else
6521 if test -n "$ac_ct_RANLIB"; then
6522 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6523 else
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 for as_dir in $PATH
6526 do
6527 IFS=$as_save_IFS
6528 test -z "$as_dir" && as_dir=.
6529 for ac_exec_ext in '' $ac_executable_extensions; do
6530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6531 ac_cv_prog_ac_ct_RANLIB="ranlib"
6532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6533 break 2
6534 fi
6535 done
6536 done
6537 IFS=$as_save_IFS
6538
6539 fi
6540 fi
6541 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6542 if test -n "$ac_ct_RANLIB"; then
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6544 $as_echo "$ac_ct_RANLIB" >&6; }
6545 else
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547 $as_echo "no" >&6; }
6548 fi
6549
6550 if test "x$ac_ct_RANLIB" = x; then
6551 RANLIB=":"
6552 else
6553 case $cross_compiling:$ac_tool_warned in
6554 yes:)
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6557 ac_tool_warned=yes ;;
6558 esac
6559 RANLIB=$ac_ct_RANLIB
6560 fi
6561 else
6562 RANLIB="$ac_cv_prog_RANLIB"
6563 fi
6564
6565 test -z "$RANLIB" && RANLIB=:
6566
6567
6568
6569
6570
6571
6572 # Determine commands to create old-style static archives.
6573 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6574 old_postinstall_cmds='chmod 644 $oldlib'
6575 old_postuninstall_cmds=
6576
6577 if test -n "$RANLIB"; then
6578 case $host_os in
6579 openbsd*)
6580 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6581 ;;
6582 *)
6583 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6584 ;;
6585 esac
6586 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6587 fi
6588
6589 case $host_os in
6590 darwin*)
6591 lock_old_archive_extraction=yes ;;
6592 *)
6593 lock_old_archive_extraction=no ;;
6594 esac
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634 # If no C compiler was specified, use CC.
6635 LTCC=${LTCC-"$CC"}
6636
6637 # If no C compiler flags were specified, use CFLAGS.
6638 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6639
6640 # Allow CC to be a program name with arguments.
6641 compiler=$CC
6642
6643
6644 # Check for command to grab the raw symbol name followed by C symbol from nm.
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6646 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6647 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6648 $as_echo_n "(cached) " >&6
6649 else
6650
6651 # These are sane defaults that work on at least a few old systems.
6652 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6653
6654 # Character class describing NM global symbol codes.
6655 symcode='[BCDEGRST]'
6656
6657 # Regexp to match symbols that can be accessed directly from C.
6658 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6659
6660 # Define system-specific variables.
6661 case $host_os in
6662 aix*)
6663 symcode='[BCDT]'
6664 ;;
6665 cygwin* | mingw* | pw32* | cegcc*)
6666 symcode='[ABCDGISTW]'
6667 ;;
6668 hpux*)
6669 if test "$host_cpu" = ia64; then
6670 symcode='[ABCDEGRST]'
6671 fi
6672 ;;
6673 irix* | nonstopux*)
6674 symcode='[BCDEGRST]'
6675 ;;
6676 osf*)
6677 symcode='[BCDEGQRST]'
6678 ;;
6679 solaris*)
6680 symcode='[BDRT]'
6681 ;;
6682 sco3.2v5*)
6683 symcode='[DT]'
6684 ;;
6685 sysv4.2uw2*)
6686 symcode='[DT]'
6687 ;;
6688 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6689 symcode='[ABDT]'
6690 ;;
6691 sysv4)
6692 symcode='[DFNSTU]'
6693 ;;
6694 esac
6695
6696 # If we're using GNU nm, then use its standard symbol codes.
6697 case `$NM -V 2>&1` in
6698 *GNU* | *'with BFD'*)
6699 symcode='[ABCDGIRSTW]' ;;
6700 esac
6701
6702 # Transform an extracted symbol line into a proper C declaration.
6703 # Some systems (esp. on ia64) link data and code symbols differently,
6704 # so use this general approach.
6705 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6706
6707 # Transform an extracted symbol line into symbol name and symbol address
6708 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6709 lt_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'"
6710
6711 # Handle CRLF in mingw tool chain
6712 opt_cr=
6713 case $build_os in
6714 mingw*)
6715 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6716 ;;
6717 esac
6718
6719 # Try without a prefix underscore, then with it.
6720 for ac_symprfx in "" "_"; do
6721
6722 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6723 symxfrm="\\1 $ac_symprfx\\2 \\2"
6724
6725 # Write the raw and C identifiers.
6726 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6727 # Fake it for dumpbin and say T for any non-static function
6728 # and D for any global variable.
6729 # Also find C++ and __fastcall symbols from MSVC++,
6730 # which start with @ or ?.
6731 lt_cv_sys_global_symbol_pipe="$AWK '"\
6732 " {last_section=section; section=\$ 3};"\
6733 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6734 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6735 " \$ 0!~/External *\|/{next};"\
6736 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6737 " {if(hide[section]) next};"\
6738 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6739 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6740 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6741 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6742 " ' prfx=^$ac_symprfx"
6743 else
6744 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6745 fi
6746 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6747
6748 # Check to see that the pipe works correctly.
6749 pipe_works=no
6750
6751 rm -f conftest*
6752 cat > conftest.$ac_ext <<_LT_EOF
6753 #ifdef __cplusplus
6754 extern "C" {
6755 #endif
6756 char nm_test_var;
6757 void nm_test_func(void);
6758 void nm_test_func(void){}
6759 #ifdef __cplusplus
6760 }
6761 #endif
6762 int main(){nm_test_var='a';nm_test_func();return(0);}
6763 _LT_EOF
6764
6765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6766 (eval $ac_compile) 2>&5
6767 ac_status=$?
6768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6769 test $ac_status = 0; }; then
6770 # Now try to grab the symbols.
6771 nlist=conftest.nm
6772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6773 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6774 ac_status=$?
6775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6776 test $ac_status = 0; } && test -s "$nlist"; then
6777 # Try sorting and uniquifying the output.
6778 if sort "$nlist" | uniq > "$nlist"T; then
6779 mv -f "$nlist"T "$nlist"
6780 else
6781 rm -f "$nlist"T
6782 fi
6783
6784 # Make sure that we snagged all the symbols we need.
6785 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6786 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6787 cat <<_LT_EOF > conftest.$ac_ext
6788 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6789 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6790 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6791 relocations are performed -- see ld's documentation on pseudo-relocs. */
6792 # define LT_DLSYM_CONST
6793 #elif defined(__osf__)
6794 /* This system does not cope well with relocations in const data. */
6795 # define LT_DLSYM_CONST
6796 #else
6797 # define LT_DLSYM_CONST const
6798 #endif
6799
6800 #ifdef __cplusplus
6801 extern "C" {
6802 #endif
6803
6804 _LT_EOF
6805 # Now generate the symbol file.
6806 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6807
6808 cat <<_LT_EOF >> conftest.$ac_ext
6809
6810 /* The mapping between symbol names and symbols. */
6811 LT_DLSYM_CONST struct {
6812 const char *name;
6813 void *address;
6814 }
6815 lt__PROGRAM__LTX_preloaded_symbols[] =
6816 {
6817 { "@PROGRAM@", (void *) 0 },
6818 _LT_EOF
6819 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6820 cat <<\_LT_EOF >> conftest.$ac_ext
6821 {0, (void *) 0}
6822 };
6823
6824 /* This works around a problem in FreeBSD linker */
6825 #ifdef FREEBSD_WORKAROUND
6826 static const void *lt_preloaded_setup() {
6827 return lt__PROGRAM__LTX_preloaded_symbols;
6828 }
6829 #endif
6830
6831 #ifdef __cplusplus
6832 }
6833 #endif
6834 _LT_EOF
6835 # Now try linking the two files.
6836 mv conftest.$ac_objext conftstm.$ac_objext
6837 lt_globsym_save_LIBS=$LIBS
6838 lt_globsym_save_CFLAGS=$CFLAGS
6839 LIBS="conftstm.$ac_objext"
6840 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6842 (eval $ac_link) 2>&5
6843 ac_status=$?
6844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6845 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6846 pipe_works=yes
6847 fi
6848 LIBS=$lt_globsym_save_LIBS
6849 CFLAGS=$lt_globsym_save_CFLAGS
6850 else
6851 echo "cannot find nm_test_func in $nlist" >&5
6852 fi
6853 else
6854 echo "cannot find nm_test_var in $nlist" >&5
6855 fi
6856 else
6857 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6858 fi
6859 else
6860 echo "$progname: failed program was:" >&5
6861 cat conftest.$ac_ext >&5
6862 fi
6863 rm -rf conftest* conftst*
6864
6865 # Do not use the global_symbol_pipe unless it works.
6866 if test "$pipe_works" = yes; then
6867 break
6868 else
6869 lt_cv_sys_global_symbol_pipe=
6870 fi
6871 done
6872
6873 fi
6874
6875 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6876 lt_cv_sys_global_symbol_to_cdecl=
6877 fi
6878 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6880 $as_echo "failed" >&6; }
6881 else
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6883 $as_echo "ok" >&6; }
6884 fi
6885
6886 # Response file support.
6887 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6888 nm_file_list_spec='@'
6889 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6890 nm_file_list_spec='@'
6891 fi
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6920 $as_echo_n "checking for sysroot... " >&6; }
6921
6922 # Check whether --with-sysroot was given.
6923 if test "${with_sysroot+set}" = set; then :
6924 withval=$with_sysroot;
6925 else
6926 with_sysroot=no
6927 fi
6928
6929
6930 lt_sysroot=
6931 case ${with_sysroot} in #(
6932 yes)
6933 if test "$GCC" = yes; then
6934 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6935 fi
6936 ;; #(
6937 /*)
6938 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6939 ;; #(
6940 no|'')
6941 ;; #(
6942 *)
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6944 $as_echo "${with_sysroot}" >&6; }
6945 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6946 ;;
6947 esac
6948
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6950 $as_echo "${lt_sysroot:-no}" >&6; }
6951
6952
6953
6954
6955
6956 # Check whether --enable-libtool-lock was given.
6957 if test "${enable_libtool_lock+set}" = set; then :
6958 enableval=$enable_libtool_lock;
6959 fi
6960
6961 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6962
6963 # Some flags need to be propagated to the compiler or linker for good
6964 # libtool support.
6965 case $host in
6966 ia64-*-hpux*)
6967 # Find out which ABI we are using.
6968 echo 'int i;' > conftest.$ac_ext
6969 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6970 (eval $ac_compile) 2>&5
6971 ac_status=$?
6972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6973 test $ac_status = 0; }; then
6974 case `/usr/bin/file conftest.$ac_objext` in
6975 *ELF-32*)
6976 HPUX_IA64_MODE="32"
6977 ;;
6978 *ELF-64*)
6979 HPUX_IA64_MODE="64"
6980 ;;
6981 esac
6982 fi
6983 rm -rf conftest*
6984 ;;
6985 *-*-irix6*)
6986 # Find out which ABI we are using.
6987 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6989 (eval $ac_compile) 2>&5
6990 ac_status=$?
6991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6992 test $ac_status = 0; }; then
6993 if test "$lt_cv_prog_gnu_ld" = yes; then
6994 case `/usr/bin/file conftest.$ac_objext` in
6995 *32-bit*)
6996 LD="${LD-ld} -melf32bsmip"
6997 ;;
6998 *N32*)
6999 LD="${LD-ld} -melf32bmipn32"
7000 ;;
7001 *64-bit*)
7002 LD="${LD-ld} -melf64bmip"
7003 ;;
7004 esac
7005 else
7006 case `/usr/bin/file conftest.$ac_objext` in
7007 *32-bit*)
7008 LD="${LD-ld} -32"
7009 ;;
7010 *N32*)
7011 LD="${LD-ld} -n32"
7012 ;;
7013 *64-bit*)
7014 LD="${LD-ld} -64"
7015 ;;
7016 esac
7017 fi
7018 fi
7019 rm -rf conftest*
7020 ;;
7021
7022 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7023 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7024 # Find out which ABI we are using.
7025 echo 'int i;' > conftest.$ac_ext
7026 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7027 (eval $ac_compile) 2>&5
7028 ac_status=$?
7029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7030 test $ac_status = 0; }; then
7031 case `/usr/bin/file conftest.o` in
7032 *32-bit*)
7033 case $host in
7034 x86_64-*kfreebsd*-gnu)
7035 LD="${LD-ld} -m elf_i386_fbsd"
7036 ;;
7037 x86_64-*linux*)
7038 LD="${LD-ld} -m elf_i386"
7039 ;;
7040 ppc64-*linux*|powerpc64-*linux*)
7041 LD="${LD-ld} -m elf32ppclinux"
7042 ;;
7043 s390x-*linux*)
7044 LD="${LD-ld} -m elf_s390"
7045 ;;
7046 sparc64-*linux*)
7047 LD="${LD-ld} -m elf32_sparc"
7048 ;;
7049 esac
7050 ;;
7051 *64-bit*)
7052 case $host in
7053 x86_64-*kfreebsd*-gnu)
7054 LD="${LD-ld} -m elf_x86_64_fbsd"
7055 ;;
7056 x86_64-*linux*)
7057 LD="${LD-ld} -m elf_x86_64"
7058 ;;
7059 ppc*-*linux*|powerpc*-*linux*)
7060 LD="${LD-ld} -m elf64ppc"
7061 ;;
7062 s390*-*linux*|s390*-*tpf*)
7063 LD="${LD-ld} -m elf64_s390"
7064 ;;
7065 sparc*-*linux*)
7066 LD="${LD-ld} -m elf64_sparc"
7067 ;;
7068 esac
7069 ;;
7070 esac
7071 fi
7072 rm -rf conftest*
7073 ;;
7074
7075 *-*-sco3.2v5*)
7076 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7077 SAVE_CFLAGS="$CFLAGS"
7078 CFLAGS="$CFLAGS -belf"
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7080 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7081 if ${lt_cv_cc_needs_belf+:} false; then :
7082 $as_echo_n "(cached) " >&6
7083 else
7084 ac_ext=c
7085 ac_cpp='$CPP $CPPFLAGS'
7086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7089
7090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091 /* end confdefs.h. */
7092
7093 int
7094 main ()
7095 {
7096
7097 ;
7098 return 0;
7099 }
7100 _ACEOF
7101 if ac_fn_c_try_link "$LINENO"; then :
7102 lt_cv_cc_needs_belf=yes
7103 else
7104 lt_cv_cc_needs_belf=no
7105 fi
7106 rm -f core conftest.err conftest.$ac_objext \
7107 conftest$ac_exeext conftest.$ac_ext
7108 ac_ext=c
7109 ac_cpp='$CPP $CPPFLAGS'
7110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7113
7114 fi
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7116 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7117 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7118 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7119 CFLAGS="$SAVE_CFLAGS"
7120 fi
7121 ;;
7122 *-*solaris*)
7123 # Find out which ABI we are using.
7124 echo 'int i;' > conftest.$ac_ext
7125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7126 (eval $ac_compile) 2>&5
7127 ac_status=$?
7128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7129 test $ac_status = 0; }; then
7130 case `/usr/bin/file conftest.o` in
7131 *64-bit*)
7132 case $lt_cv_prog_gnu_ld in
7133 yes*)
7134 case $host in
7135 i?86-*-solaris*)
7136 LD="${LD-ld} -m elf_x86_64"
7137 ;;
7138 sparc*-*-solaris*)
7139 LD="${LD-ld} -m elf64_sparc"
7140 ;;
7141 esac
7142 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7143 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7144 LD="${LD-ld}_sol2"
7145 fi
7146 ;;
7147 *)
7148 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7149 LD="${LD-ld} -64"
7150 fi
7151 ;;
7152 esac
7153 ;;
7154 esac
7155 fi
7156 rm -rf conftest*
7157 ;;
7158 esac
7159
7160 need_locks="$enable_libtool_lock"
7161
7162 if test -n "$ac_tool_prefix"; then
7163 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7164 set dummy ${ac_tool_prefix}mt; ac_word=$2
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7166 $as_echo_n "checking for $ac_word... " >&6; }
7167 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7168 $as_echo_n "(cached) " >&6
7169 else
7170 if test -n "$MANIFEST_TOOL"; then
7171 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7172 else
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 for as_dir in $PATH
7175 do
7176 IFS=$as_save_IFS
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7180 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7182 break 2
7183 fi
7184 done
7185 done
7186 IFS=$as_save_IFS
7187
7188 fi
7189 fi
7190 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7191 if test -n "$MANIFEST_TOOL"; then
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7193 $as_echo "$MANIFEST_TOOL" >&6; }
7194 else
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7196 $as_echo "no" >&6; }
7197 fi
7198
7199
7200 fi
7201 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7202 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7203 # Extract the first word of "mt", so it can be a program name with args.
7204 set dummy mt; ac_word=$2
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7206 $as_echo_n "checking for $ac_word... " >&6; }
7207 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7208 $as_echo_n "(cached) " >&6
7209 else
7210 if test -n "$ac_ct_MANIFEST_TOOL"; then
7211 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7212 else
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 for as_dir in $PATH
7215 do
7216 IFS=$as_save_IFS
7217 test -z "$as_dir" && as_dir=.
7218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7220 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7222 break 2
7223 fi
7224 done
7225 done
7226 IFS=$as_save_IFS
7227
7228 fi
7229 fi
7230 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7231 if test -n "$ac_ct_MANIFEST_TOOL"; then
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7233 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7234 else
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7236 $as_echo "no" >&6; }
7237 fi
7238
7239 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7240 MANIFEST_TOOL=":"
7241 else
7242 case $cross_compiling:$ac_tool_warned in
7243 yes:)
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7246 ac_tool_warned=yes ;;
7247 esac
7248 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7249 fi
7250 else
7251 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7252 fi
7253
7254 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7256 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7257 if ${lt_cv_path_mainfest_tool+:} false; then :
7258 $as_echo_n "(cached) " >&6
7259 else
7260 lt_cv_path_mainfest_tool=no
7261 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7262 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7263 cat conftest.err >&5
7264 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7265 lt_cv_path_mainfest_tool=yes
7266 fi
7267 rm -f conftest*
7268 fi
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7270 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7271 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7272 MANIFEST_TOOL=:
7273 fi
7274
7275
7276
7277
7278
7279
7280 case $host_os in
7281 rhapsody* | darwin*)
7282 if test -n "$ac_tool_prefix"; then
7283 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7284 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7286 $as_echo_n "checking for $ac_word... " >&6; }
7287 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7288 $as_echo_n "(cached) " >&6
7289 else
7290 if test -n "$DSYMUTIL"; then
7291 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7292 else
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 for as_dir in $PATH
7295 do
7296 IFS=$as_save_IFS
7297 test -z "$as_dir" && as_dir=.
7298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7300 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7302 break 2
7303 fi
7304 done
7305 done
7306 IFS=$as_save_IFS
7307
7308 fi
7309 fi
7310 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7311 if test -n "$DSYMUTIL"; then
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7313 $as_echo "$DSYMUTIL" >&6; }
7314 else
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7316 $as_echo "no" >&6; }
7317 fi
7318
7319
7320 fi
7321 if test -z "$ac_cv_prog_DSYMUTIL"; then
7322 ac_ct_DSYMUTIL=$DSYMUTIL
7323 # Extract the first word of "dsymutil", so it can be a program name with args.
7324 set dummy dsymutil; ac_word=$2
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7326 $as_echo_n "checking for $ac_word... " >&6; }
7327 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7328 $as_echo_n "(cached) " >&6
7329 else
7330 if test -n "$ac_ct_DSYMUTIL"; then
7331 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7332 else
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 for as_dir in $PATH
7335 do
7336 IFS=$as_save_IFS
7337 test -z "$as_dir" && as_dir=.
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7340 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7342 break 2
7343 fi
7344 done
7345 done
7346 IFS=$as_save_IFS
7347
7348 fi
7349 fi
7350 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7351 if test -n "$ac_ct_DSYMUTIL"; then
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7353 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7354 else
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7356 $as_echo "no" >&6; }
7357 fi
7358
7359 if test "x$ac_ct_DSYMUTIL" = x; then
7360 DSYMUTIL=":"
7361 else
7362 case $cross_compiling:$ac_tool_warned in
7363 yes:)
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7366 ac_tool_warned=yes ;;
7367 esac
7368 DSYMUTIL=$ac_ct_DSYMUTIL
7369 fi
7370 else
7371 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7372 fi
7373
7374 if test -n "$ac_tool_prefix"; then
7375 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7376 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7378 $as_echo_n "checking for $ac_word... " >&6; }
7379 if ${ac_cv_prog_NMEDIT+:} false; then :
7380 $as_echo_n "(cached) " >&6
7381 else
7382 if test -n "$NMEDIT"; then
7383 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7384 else
7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386 for as_dir in $PATH
7387 do
7388 IFS=$as_save_IFS
7389 test -z "$as_dir" && as_dir=.
7390 for ac_exec_ext in '' $ac_executable_extensions; do
7391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7392 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7394 break 2
7395 fi
7396 done
7397 done
7398 IFS=$as_save_IFS
7399
7400 fi
7401 fi
7402 NMEDIT=$ac_cv_prog_NMEDIT
7403 if test -n "$NMEDIT"; then
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7405 $as_echo "$NMEDIT" >&6; }
7406 else
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7408 $as_echo "no" >&6; }
7409 fi
7410
7411
7412 fi
7413 if test -z "$ac_cv_prog_NMEDIT"; then
7414 ac_ct_NMEDIT=$NMEDIT
7415 # Extract the first word of "nmedit", so it can be a program name with args.
7416 set dummy nmedit; ac_word=$2
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7418 $as_echo_n "checking for $ac_word... " >&6; }
7419 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7420 $as_echo_n "(cached) " >&6
7421 else
7422 if test -n "$ac_ct_NMEDIT"; then
7423 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7424 else
7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426 for as_dir in $PATH
7427 do
7428 IFS=$as_save_IFS
7429 test -z "$as_dir" && as_dir=.
7430 for ac_exec_ext in '' $ac_executable_extensions; do
7431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7432 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7434 break 2
7435 fi
7436 done
7437 done
7438 IFS=$as_save_IFS
7439
7440 fi
7441 fi
7442 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7443 if test -n "$ac_ct_NMEDIT"; then
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7445 $as_echo "$ac_ct_NMEDIT" >&6; }
7446 else
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7448 $as_echo "no" >&6; }
7449 fi
7450
7451 if test "x$ac_ct_NMEDIT" = x; then
7452 NMEDIT=":"
7453 else
7454 case $cross_compiling:$ac_tool_warned in
7455 yes:)
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7458 ac_tool_warned=yes ;;
7459 esac
7460 NMEDIT=$ac_ct_NMEDIT
7461 fi
7462 else
7463 NMEDIT="$ac_cv_prog_NMEDIT"
7464 fi
7465
7466 if test -n "$ac_tool_prefix"; then
7467 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7468 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7470 $as_echo_n "checking for $ac_word... " >&6; }
7471 if ${ac_cv_prog_LIPO+:} false; then :
7472 $as_echo_n "(cached) " >&6
7473 else
7474 if test -n "$LIPO"; then
7475 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7476 else
7477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478 for as_dir in $PATH
7479 do
7480 IFS=$as_save_IFS
7481 test -z "$as_dir" && as_dir=.
7482 for ac_exec_ext in '' $ac_executable_extensions; do
7483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7484 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7486 break 2
7487 fi
7488 done
7489 done
7490 IFS=$as_save_IFS
7491
7492 fi
7493 fi
7494 LIPO=$ac_cv_prog_LIPO
7495 if test -n "$LIPO"; then
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7497 $as_echo "$LIPO" >&6; }
7498 else
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7500 $as_echo "no" >&6; }
7501 fi
7502
7503
7504 fi
7505 if test -z "$ac_cv_prog_LIPO"; then
7506 ac_ct_LIPO=$LIPO
7507 # Extract the first word of "lipo", so it can be a program name with args.
7508 set dummy lipo; ac_word=$2
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7510 $as_echo_n "checking for $ac_word... " >&6; }
7511 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7512 $as_echo_n "(cached) " >&6
7513 else
7514 if test -n "$ac_ct_LIPO"; then
7515 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7516 else
7517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518 for as_dir in $PATH
7519 do
7520 IFS=$as_save_IFS
7521 test -z "$as_dir" && as_dir=.
7522 for ac_exec_ext in '' $ac_executable_extensions; do
7523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7524 ac_cv_prog_ac_ct_LIPO="lipo"
7525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7526 break 2
7527 fi
7528 done
7529 done
7530 IFS=$as_save_IFS
7531
7532 fi
7533 fi
7534 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7535 if test -n "$ac_ct_LIPO"; then
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7537 $as_echo "$ac_ct_LIPO" >&6; }
7538 else
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540 $as_echo "no" >&6; }
7541 fi
7542
7543 if test "x$ac_ct_LIPO" = x; then
7544 LIPO=":"
7545 else
7546 case $cross_compiling:$ac_tool_warned in
7547 yes:)
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7550 ac_tool_warned=yes ;;
7551 esac
7552 LIPO=$ac_ct_LIPO
7553 fi
7554 else
7555 LIPO="$ac_cv_prog_LIPO"
7556 fi
7557
7558 if test -n "$ac_tool_prefix"; then
7559 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7560 set dummy ${ac_tool_prefix}otool; ac_word=$2
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7562 $as_echo_n "checking for $ac_word... " >&6; }
7563 if ${ac_cv_prog_OTOOL+:} false; then :
7564 $as_echo_n "(cached) " >&6
7565 else
7566 if test -n "$OTOOL"; then
7567 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7568 else
7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570 for as_dir in $PATH
7571 do
7572 IFS=$as_save_IFS
7573 test -z "$as_dir" && as_dir=.
7574 for ac_exec_ext in '' $ac_executable_extensions; do
7575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7576 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7578 break 2
7579 fi
7580 done
7581 done
7582 IFS=$as_save_IFS
7583
7584 fi
7585 fi
7586 OTOOL=$ac_cv_prog_OTOOL
7587 if test -n "$OTOOL"; then
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7589 $as_echo "$OTOOL" >&6; }
7590 else
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7592 $as_echo "no" >&6; }
7593 fi
7594
7595
7596 fi
7597 if test -z "$ac_cv_prog_OTOOL"; then
7598 ac_ct_OTOOL=$OTOOL
7599 # Extract the first word of "otool", so it can be a program name with args.
7600 set dummy otool; ac_word=$2
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7602 $as_echo_n "checking for $ac_word... " >&6; }
7603 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7604 $as_echo_n "(cached) " >&6
7605 else
7606 if test -n "$ac_ct_OTOOL"; then
7607 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7608 else
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 for as_dir in $PATH
7611 do
7612 IFS=$as_save_IFS
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7616 ac_cv_prog_ac_ct_OTOOL="otool"
7617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 break 2
7619 fi
7620 done
7621 done
7622 IFS=$as_save_IFS
7623
7624 fi
7625 fi
7626 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7627 if test -n "$ac_ct_OTOOL"; then
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7629 $as_echo "$ac_ct_OTOOL" >&6; }
7630 else
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7632 $as_echo "no" >&6; }
7633 fi
7634
7635 if test "x$ac_ct_OTOOL" = x; then
7636 OTOOL=":"
7637 else
7638 case $cross_compiling:$ac_tool_warned in
7639 yes:)
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7642 ac_tool_warned=yes ;;
7643 esac
7644 OTOOL=$ac_ct_OTOOL
7645 fi
7646 else
7647 OTOOL="$ac_cv_prog_OTOOL"
7648 fi
7649
7650 if test -n "$ac_tool_prefix"; then
7651 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7652 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7654 $as_echo_n "checking for $ac_word... " >&6; }
7655 if ${ac_cv_prog_OTOOL64+:} false; then :
7656 $as_echo_n "(cached) " >&6
7657 else
7658 if test -n "$OTOOL64"; then
7659 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7660 else
7661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662 for as_dir in $PATH
7663 do
7664 IFS=$as_save_IFS
7665 test -z "$as_dir" && as_dir=.
7666 for ac_exec_ext in '' $ac_executable_extensions; do
7667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7668 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7670 break 2
7671 fi
7672 done
7673 done
7674 IFS=$as_save_IFS
7675
7676 fi
7677 fi
7678 OTOOL64=$ac_cv_prog_OTOOL64
7679 if test -n "$OTOOL64"; then
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7681 $as_echo "$OTOOL64" >&6; }
7682 else
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7684 $as_echo "no" >&6; }
7685 fi
7686
7687
7688 fi
7689 if test -z "$ac_cv_prog_OTOOL64"; then
7690 ac_ct_OTOOL64=$OTOOL64
7691 # Extract the first word of "otool64", so it can be a program name with args.
7692 set dummy otool64; ac_word=$2
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7694 $as_echo_n "checking for $ac_word... " >&6; }
7695 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7696 $as_echo_n "(cached) " >&6
7697 else
7698 if test -n "$ac_ct_OTOOL64"; then
7699 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7700 else
7701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702 for as_dir in $PATH
7703 do
7704 IFS=$as_save_IFS
7705 test -z "$as_dir" && as_dir=.
7706 for ac_exec_ext in '' $ac_executable_extensions; do
7707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7708 ac_cv_prog_ac_ct_OTOOL64="otool64"
7709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7710 break 2
7711 fi
7712 done
7713 done
7714 IFS=$as_save_IFS
7715
7716 fi
7717 fi
7718 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7719 if test -n "$ac_ct_OTOOL64"; then
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7721 $as_echo "$ac_ct_OTOOL64" >&6; }
7722 else
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7724 $as_echo "no" >&6; }
7725 fi
7726
7727 if test "x$ac_ct_OTOOL64" = x; then
7728 OTOOL64=":"
7729 else
7730 case $cross_compiling:$ac_tool_warned in
7731 yes:)
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7734 ac_tool_warned=yes ;;
7735 esac
7736 OTOOL64=$ac_ct_OTOOL64
7737 fi
7738 else
7739 OTOOL64="$ac_cv_prog_OTOOL64"
7740 fi
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7769 $as_echo_n "checking for -single_module linker flag... " >&6; }
7770 if ${lt_cv_apple_cc_single_mod+:} false; then :
7771 $as_echo_n "(cached) " >&6
7772 else
7773 lt_cv_apple_cc_single_mod=no
7774 if test -z "${LT_MULTI_MODULE}"; then
7775 # By default we will add the -single_module flag. You can override
7776 # by either setting the environment variable LT_MULTI_MODULE
7777 # non-empty at configure time, or by adding -multi_module to the
7778 # link flags.
7779 rm -rf libconftest.dylib*
7780 echo "int foo(void){return 1;}" > conftest.c
7781 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7782 -dynamiclib -Wl,-single_module conftest.c" >&5
7783 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7784 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7785 _lt_result=$?
7786 # If there is a non-empty error log, and "single_module"
7787 # appears in it, assume the flag caused a linker warning
7788 if test -s conftest.err && $GREP single_module conftest.err; then
7789 cat conftest.err >&5
7790 # Otherwise, if the output was created with a 0 exit code from
7791 # the compiler, it worked.
7792 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7793 lt_cv_apple_cc_single_mod=yes
7794 else
7795 cat conftest.err >&5
7796 fi
7797 rm -rf libconftest.dylib*
7798 rm -f conftest.*
7799 fi
7800 fi
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7802 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7803
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7805 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7806 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7807 $as_echo_n "(cached) " >&6
7808 else
7809 lt_cv_ld_exported_symbols_list=no
7810 save_LDFLAGS=$LDFLAGS
7811 echo "_main" > conftest.sym
7812 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h. */
7815
7816 int
7817 main ()
7818 {
7819
7820 ;
7821 return 0;
7822 }
7823 _ACEOF
7824 if ac_fn_c_try_link "$LINENO"; then :
7825 lt_cv_ld_exported_symbols_list=yes
7826 else
7827 lt_cv_ld_exported_symbols_list=no
7828 fi
7829 rm -f core conftest.err conftest.$ac_objext \
7830 conftest$ac_exeext conftest.$ac_ext
7831 LDFLAGS="$save_LDFLAGS"
7832
7833 fi
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7835 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7836
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7838 $as_echo_n "checking for -force_load linker flag... " >&6; }
7839 if ${lt_cv_ld_force_load+:} false; then :
7840 $as_echo_n "(cached) " >&6
7841 else
7842 lt_cv_ld_force_load=no
7843 cat > conftest.c << _LT_EOF
7844 int forced_loaded() { return 2;}
7845 _LT_EOF
7846 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7847 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7848 echo "$AR cru libconftest.a conftest.o" >&5
7849 $AR cru libconftest.a conftest.o 2>&5
7850 echo "$RANLIB libconftest.a" >&5
7851 $RANLIB libconftest.a 2>&5
7852 cat > conftest.c << _LT_EOF
7853 int main() { return 0;}
7854 _LT_EOF
7855 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7856 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7857 _lt_result=$?
7858 if test -s conftest.err && $GREP force_load conftest.err; then
7859 cat conftest.err >&5
7860 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7861 lt_cv_ld_force_load=yes
7862 else
7863 cat conftest.err >&5
7864 fi
7865 rm -f conftest.err libconftest.a conftest conftest.c
7866 rm -rf conftest.dSYM
7867
7868 fi
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7870 $as_echo "$lt_cv_ld_force_load" >&6; }
7871 case $host_os in
7872 rhapsody* | darwin1.[012])
7873 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7874 darwin1.*)
7875 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7876 darwin*) # darwin 5.x on
7877 # if running on 10.5 or later, the deployment target defaults
7878 # to the OS version, if on x86, and 10.4, the deployment
7879 # target defaults to 10.4. Don't you love it?
7880 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7881 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7882 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7883 10.[012]*)
7884 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7885 10.*)
7886 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7887 esac
7888 ;;
7889 esac
7890 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7891 _lt_dar_single_mod='$single_module'
7892 fi
7893 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7894 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7895 else
7896 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7897 fi
7898 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7899 _lt_dsymutil='~$DSYMUTIL $lib || :'
7900 else
7901 _lt_dsymutil=
7902 fi
7903 ;;
7904 esac
7905
7906 ac_ext=c
7907 ac_cpp='$CPP $CPPFLAGS'
7908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7912 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7913 # On Suns, sometimes $CPP names a directory.
7914 if test -n "$CPP" && test -d "$CPP"; then
7915 CPP=
7916 fi
7917 if test -z "$CPP"; then
7918 if ${ac_cv_prog_CPP+:} false; then :
7919 $as_echo_n "(cached) " >&6
7920 else
7921 # Double quotes because CPP needs to be expanded
7922 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7923 do
7924 ac_preproc_ok=false
7925 for ac_c_preproc_warn_flag in '' yes
7926 do
7927 # Use a header file that comes with gcc, so configuring glibc
7928 # with a fresh cross-compiler works.
7929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7930 # <limits.h> exists even on freestanding compilers.
7931 # On the NeXT, cc -E runs the code through the compiler's parser,
7932 # not just through cpp. "Syntax error" is here to catch this case.
7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h. */
7935 #ifdef __STDC__
7936 # include <limits.h>
7937 #else
7938 # include <assert.h>
7939 #endif
7940 Syntax error
7941 _ACEOF
7942 if ac_fn_c_try_cpp "$LINENO"; then :
7943
7944 else
7945 # Broken: fails on valid input.
7946 continue
7947 fi
7948 rm -f conftest.err conftest.i conftest.$ac_ext
7949
7950 # OK, works on sane cases. Now check whether nonexistent headers
7951 # can be detected and how.
7952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953 /* end confdefs.h. */
7954 #include <ac_nonexistent.h>
7955 _ACEOF
7956 if ac_fn_c_try_cpp "$LINENO"; then :
7957 # Broken: success on invalid input.
7958 continue
7959 else
7960 # Passes both tests.
7961 ac_preproc_ok=:
7962 break
7963 fi
7964 rm -f conftest.err conftest.i conftest.$ac_ext
7965
7966 done
7967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7968 rm -f conftest.i conftest.err conftest.$ac_ext
7969 if $ac_preproc_ok; then :
7970 break
7971 fi
7972
7973 done
7974 ac_cv_prog_CPP=$CPP
7975
7976 fi
7977 CPP=$ac_cv_prog_CPP
7978 else
7979 ac_cv_prog_CPP=$CPP
7980 fi
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7982 $as_echo "$CPP" >&6; }
7983 ac_preproc_ok=false
7984 for ac_c_preproc_warn_flag in '' yes
7985 do
7986 # Use a header file that comes with gcc, so configuring glibc
7987 # with a fresh cross-compiler works.
7988 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7989 # <limits.h> exists even on freestanding compilers.
7990 # On the NeXT, cc -E runs the code through the compiler's parser,
7991 # not just through cpp. "Syntax error" is here to catch this case.
7992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993 /* end confdefs.h. */
7994 #ifdef __STDC__
7995 # include <limits.h>
7996 #else
7997 # include <assert.h>
7998 #endif
7999 Syntax error
8000 _ACEOF
8001 if ac_fn_c_try_cpp "$LINENO"; then :
8002
8003 else
8004 # Broken: fails on valid input.
8005 continue
8006 fi
8007 rm -f conftest.err conftest.i conftest.$ac_ext
8008
8009 # OK, works on sane cases. Now check whether nonexistent headers
8010 # can be detected and how.
8011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8012 /* end confdefs.h. */
8013 #include <ac_nonexistent.h>
8014 _ACEOF
8015 if ac_fn_c_try_cpp "$LINENO"; then :
8016 # Broken: success on invalid input.
8017 continue
8018 else
8019 # Passes both tests.
8020 ac_preproc_ok=:
8021 break
8022 fi
8023 rm -f conftest.err conftest.i conftest.$ac_ext
8024
8025 done
8026 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8027 rm -f conftest.i conftest.err conftest.$ac_ext
8028 if $ac_preproc_ok; then :
8029
8030 else
8031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8033 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8034 See \`config.log' for more details" "$LINENO" 5; }
8035 fi
8036
8037 ac_ext=c
8038 ac_cpp='$CPP $CPPFLAGS'
8039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8042
8043
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8045 $as_echo_n "checking for ANSI C header files... " >&6; }
8046 if ${ac_cv_header_stdc+:} false; then :
8047 $as_echo_n "(cached) " >&6
8048 else
8049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050 /* end confdefs.h. */
8051 #include <stdlib.h>
8052 #include <stdarg.h>
8053 #include <string.h>
8054 #include <float.h>
8055
8056 int
8057 main ()
8058 {
8059
8060 ;
8061 return 0;
8062 }
8063 _ACEOF
8064 if ac_fn_c_try_compile "$LINENO"; then :
8065 ac_cv_header_stdc=yes
8066 else
8067 ac_cv_header_stdc=no
8068 fi
8069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8070
8071 if test $ac_cv_header_stdc = yes; then
8072 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8074 /* end confdefs.h. */
8075 #include <string.h>
8076
8077 _ACEOF
8078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8079 $EGREP "memchr" >/dev/null 2>&1; then :
8080
8081 else
8082 ac_cv_header_stdc=no
8083 fi
8084 rm -f conftest*
8085
8086 fi
8087
8088 if test $ac_cv_header_stdc = yes; then
8089 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091 /* end confdefs.h. */
8092 #include <stdlib.h>
8093
8094 _ACEOF
8095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8096 $EGREP "free" >/dev/null 2>&1; then :
8097
8098 else
8099 ac_cv_header_stdc=no
8100 fi
8101 rm -f conftest*
8102
8103 fi
8104
8105 if test $ac_cv_header_stdc = yes; then
8106 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8107 if test "$cross_compiling" = yes; then :
8108 :
8109 else
8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h. */
8112 #include <ctype.h>
8113 #include <stdlib.h>
8114 #if ((' ' & 0x0FF) == 0x020)
8115 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8116 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8117 #else
8118 # define ISLOWER(c) \
8119 (('a' <= (c) && (c) <= 'i') \
8120 || ('j' <= (c) && (c) <= 'r') \
8121 || ('s' <= (c) && (c) <= 'z'))
8122 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8123 #endif
8124
8125 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8126 int
8127 main ()
8128 {
8129 int i;
8130 for (i = 0; i < 256; i++)
8131 if (XOR (islower (i), ISLOWER (i))
8132 || toupper (i) != TOUPPER (i))
8133 return 2;
8134 return 0;
8135 }
8136 _ACEOF
8137 if ac_fn_c_try_run "$LINENO"; then :
8138
8139 else
8140 ac_cv_header_stdc=no
8141 fi
8142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8143 conftest.$ac_objext conftest.beam conftest.$ac_ext
8144 fi
8145
8146 fi
8147 fi
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8149 $as_echo "$ac_cv_header_stdc" >&6; }
8150 if test $ac_cv_header_stdc = yes; then
8151
8152 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8153
8154 fi
8155
8156 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8157 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8158 inttypes.h stdint.h unistd.h
8159 do :
8160 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8161 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8162 "
8163 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8164 cat >>confdefs.h <<_ACEOF
8165 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8166 _ACEOF
8167
8168 fi
8169
8170 done
8171
8172
8173 for ac_header in dlfcn.h
8174 do :
8175 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8176 "
8177 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8178 cat >>confdefs.h <<_ACEOF
8179 #define HAVE_DLFCN_H 1
8180 _ACEOF
8181
8182 fi
8183
8184 done
8185
8186
8187
8188
8189 func_stripname_cnf ()
8190 {
8191 case ${2} in
8192 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8193 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8194 esac
8195 } # func_stripname_cnf
8196
8197
8198
8199
8200
8201 # Set options
8202
8203
8204
8205 enable_dlopen=no
8206
8207
8208 enable_win32_dll=no
8209
8210
8211 # Check whether --enable-shared was given.
8212 if test "${enable_shared+set}" = set; then :
8213 enableval=$enable_shared; p=${PACKAGE-default}
8214 case $enableval in
8215 yes) enable_shared=yes ;;
8216 no) enable_shared=no ;;
8217 *)
8218 enable_shared=no
8219 # Look at the argument we got. We use all the common list separators.
8220 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8221 for pkg in $enableval; do
8222 IFS="$lt_save_ifs"
8223 if test "X$pkg" = "X$p"; then
8224 enable_shared=yes
8225 fi
8226 done
8227 IFS="$lt_save_ifs"
8228 ;;
8229 esac
8230 else
8231 enable_shared=yes
8232 fi
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242 # Check whether --enable-static was given.
8243 if test "${enable_static+set}" = set; then :
8244 enableval=$enable_static; p=${PACKAGE-default}
8245 case $enableval in
8246 yes) enable_static=yes ;;
8247 no) enable_static=no ;;
8248 *)
8249 enable_static=no
8250 # Look at the argument we got. We use all the common list separators.
8251 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8252 for pkg in $enableval; do
8253 IFS="$lt_save_ifs"
8254 if test "X$pkg" = "X$p"; then
8255 enable_static=yes
8256 fi
8257 done
8258 IFS="$lt_save_ifs"
8259 ;;
8260 esac
8261 else
8262 enable_static=yes
8263 fi
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274 # Check whether --with-pic was given.
8275 if test "${with_pic+set}" = set; then :
8276 withval=$with_pic; lt_p=${PACKAGE-default}
8277 case $withval in
8278 yes|no) pic_mode=$withval ;;
8279 *)
8280 pic_mode=default
8281 # Look at the argument we got. We use all the common list separators.
8282 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8283 for lt_pkg in $withval; do
8284 IFS="$lt_save_ifs"
8285 if test "X$lt_pkg" = "X$lt_p"; then
8286 pic_mode=yes
8287 fi
8288 done
8289 IFS="$lt_save_ifs"
8290 ;;
8291 esac
8292 else
8293 pic_mode=default
8294 fi
8295
8296
8297 test -z "$pic_mode" && pic_mode=default
8298
8299
8300
8301
8302
8303
8304
8305 # Check whether --enable-fast-install was given.
8306 if test "${enable_fast_install+set}" = set; then :
8307 enableval=$enable_fast_install; p=${PACKAGE-default}
8308 case $enableval in
8309 yes) enable_fast_install=yes ;;
8310 no) enable_fast_install=no ;;
8311 *)
8312 enable_fast_install=no
8313 # Look at the argument we got. We use all the common list separators.
8314 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8315 for pkg in $enableval; do
8316 IFS="$lt_save_ifs"
8317 if test "X$pkg" = "X$p"; then
8318 enable_fast_install=yes
8319 fi
8320 done
8321 IFS="$lt_save_ifs"
8322 ;;
8323 esac
8324 else
8325 enable_fast_install=yes
8326 fi
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338 # This can be used to rebuild libtool when needed
8339 LIBTOOL_DEPS="$ltmain"
8340
8341 # Always use our own libtool.
8342 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373 test -z "$LN_S" && LN_S="ln -s"
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388 if test -n "${ZSH_VERSION+set}" ; then
8389 setopt NO_GLOB_SUBST
8390 fi
8391
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8393 $as_echo_n "checking for objdir... " >&6; }
8394 if ${lt_cv_objdir+:} false; then :
8395 $as_echo_n "(cached) " >&6
8396 else
8397 rm -f .libs 2>/dev/null
8398 mkdir .libs 2>/dev/null
8399 if test -d .libs; then
8400 lt_cv_objdir=.libs
8401 else
8402 # MS-DOS does not allow filenames that begin with a dot.
8403 lt_cv_objdir=_libs
8404 fi
8405 rmdir .libs 2>/dev/null
8406 fi
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8408 $as_echo "$lt_cv_objdir" >&6; }
8409 objdir=$lt_cv_objdir
8410
8411
8412
8413
8414
8415 cat >>confdefs.h <<_ACEOF
8416 #define LT_OBJDIR "$lt_cv_objdir/"
8417 _ACEOF
8418
8419
8420
8421
8422 case $host_os in
8423 aix3*)
8424 # AIX sometimes has problems with the GCC collect2 program. For some
8425 # reason, if we set the COLLECT_NAMES environment variable, the problems
8426 # vanish in a puff of smoke.
8427 if test "X${COLLECT_NAMES+set}" != Xset; then
8428 COLLECT_NAMES=
8429 export COLLECT_NAMES
8430 fi
8431 ;;
8432 esac
8433
8434 # Global variables:
8435 ofile=libtool
8436 can_build_shared=yes
8437
8438 # All known linkers require a `.a' archive for static linking (except MSVC,
8439 # which needs '.lib').
8440 libext=a
8441
8442 with_gnu_ld="$lt_cv_prog_gnu_ld"
8443
8444 old_CC="$CC"
8445 old_CFLAGS="$CFLAGS"
8446
8447 # Set sane defaults for various variables
8448 test -z "$CC" && CC=cc
8449 test -z "$LTCC" && LTCC=$CC
8450 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8451 test -z "$LD" && LD=ld
8452 test -z "$ac_objext" && ac_objext=o
8453
8454 for cc_temp in $compiler""; do
8455 case $cc_temp in
8456 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8457 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8458 \-*) ;;
8459 *) break;;
8460 esac
8461 done
8462 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8463
8464
8465 # Only perform the check for file, if the check method requires it
8466 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8467 case $deplibs_check_method in
8468 file_magic*)
8469 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8471 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8472 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8473 $as_echo_n "(cached) " >&6
8474 else
8475 case $MAGIC_CMD in
8476 [\\/*] | ?:[\\/]*)
8477 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8478 ;;
8479 *)
8480 lt_save_MAGIC_CMD="$MAGIC_CMD"
8481 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8482 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8483 for ac_dir in $ac_dummy; do
8484 IFS="$lt_save_ifs"
8485 test -z "$ac_dir" && ac_dir=.
8486 if test -f $ac_dir/${ac_tool_prefix}file; then
8487 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8488 if test -n "$file_magic_test_file"; then
8489 case $deplibs_check_method in
8490 "file_magic "*)
8491 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8492 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8493 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8494 $EGREP "$file_magic_regex" > /dev/null; then
8495 :
8496 else
8497 cat <<_LT_EOF 1>&2
8498
8499 *** Warning: the command libtool uses to detect shared libraries,
8500 *** $file_magic_cmd, produces output that libtool cannot recognize.
8501 *** The result is that libtool may fail to recognize shared libraries
8502 *** as such. This will affect the creation of libtool libraries that
8503 *** depend on shared libraries, but programs linked with such libtool
8504 *** libraries will work regardless of this problem. Nevertheless, you
8505 *** may want to report the problem to your system manager and/or to
8506 *** [email protected]
8507
8508 _LT_EOF
8509 fi ;;
8510 esac
8511 fi
8512 break
8513 fi
8514 done
8515 IFS="$lt_save_ifs"
8516 MAGIC_CMD="$lt_save_MAGIC_CMD"
8517 ;;
8518 esac
8519 fi
8520
8521 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8522 if test -n "$MAGIC_CMD"; then
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8524 $as_echo "$MAGIC_CMD" >&6; }
8525 else
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8527 $as_echo "no" >&6; }
8528 fi
8529
8530
8531
8532
8533
8534 if test -z "$lt_cv_path_MAGIC_CMD"; then
8535 if test -n "$ac_tool_prefix"; then
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8537 $as_echo_n "checking for file... " >&6; }
8538 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8539 $as_echo_n "(cached) " >&6
8540 else
8541 case $MAGIC_CMD in
8542 [\\/*] | ?:[\\/]*)
8543 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8544 ;;
8545 *)
8546 lt_save_MAGIC_CMD="$MAGIC_CMD"
8547 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8548 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8549 for ac_dir in $ac_dummy; do
8550 IFS="$lt_save_ifs"
8551 test -z "$ac_dir" && ac_dir=.
8552 if test -f $ac_dir/file; then
8553 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8554 if test -n "$file_magic_test_file"; then
8555 case $deplibs_check_method in
8556 "file_magic "*)
8557 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8558 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8559 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8560 $EGREP "$file_magic_regex" > /dev/null; then
8561 :
8562 else
8563 cat <<_LT_EOF 1>&2
8564
8565 *** Warning: the command libtool uses to detect shared libraries,
8566 *** $file_magic_cmd, produces output that libtool cannot recognize.
8567 *** The result is that libtool may fail to recognize shared libraries
8568 *** as such. This will affect the creation of libtool libraries that
8569 *** depend on shared libraries, but programs linked with such libtool
8570 *** libraries will work regardless of this problem. Nevertheless, you
8571 *** may want to report the problem to your system manager and/or to
8572 *** [email protected]
8573
8574 _LT_EOF
8575 fi ;;
8576 esac
8577 fi
8578 break
8579 fi
8580 done
8581 IFS="$lt_save_ifs"
8582 MAGIC_CMD="$lt_save_MAGIC_CMD"
8583 ;;
8584 esac
8585 fi
8586
8587 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8588 if test -n "$MAGIC_CMD"; then
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8590 $as_echo "$MAGIC_CMD" >&6; }
8591 else
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8593 $as_echo "no" >&6; }
8594 fi
8595
8596
8597 else
8598 MAGIC_CMD=:
8599 fi
8600 fi
8601
8602 fi
8603 ;;
8604 esac
8605
8606 # Use C for the default configuration in the libtool script
8607
8608 lt_save_CC="$CC"
8609 ac_ext=c
8610 ac_cpp='$CPP $CPPFLAGS'
8611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8614
8615
8616 # Source file extension for C test sources.
8617 ac_ext=c
8618
8619 # Object file extension for compiled C test sources.
8620 objext=o
8621 objext=$objext
8622
8623 # Code to be used in simple compile tests
8624 lt_simple_compile_test_code="int some_variable = 0;"
8625
8626 # Code to be used in simple link tests
8627 lt_simple_link_test_code='int main(){return(0);}'
8628
8629
8630
8631
8632
8633
8634
8635 # If no C compiler was specified, use CC.
8636 LTCC=${LTCC-"$CC"}
8637
8638 # If no C compiler flags were specified, use CFLAGS.
8639 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8640
8641 # Allow CC to be a program name with arguments.
8642 compiler=$CC
8643
8644 # Save the default compiler, since it gets overwritten when the other
8645 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8646 compiler_DEFAULT=$CC
8647
8648 # save warnings/boilerplate of simple test code
8649 ac_outfile=conftest.$ac_objext
8650 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8651 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8652 _lt_compiler_boilerplate=`cat conftest.err`
8653 $RM conftest*
8654
8655 ac_outfile=conftest.$ac_objext
8656 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8657 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8658 _lt_linker_boilerplate=`cat conftest.err`
8659 $RM -r conftest*
8660
8661
8662 if test -n "$compiler"; then
8663
8664 lt_prog_compiler_no_builtin_flag=
8665
8666 if test "$GCC" = yes; then
8667 case $cc_basename in
8668 nvcc*)
8669 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8670 *)
8671 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8672 esac
8673
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8675 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8676 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8677 $as_echo_n "(cached) " >&6
8678 else
8679 lt_cv_prog_compiler_rtti_exceptions=no
8680 ac_outfile=conftest.$ac_objext
8681 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8682 lt_compiler_flag="-fno-rtti -fno-exceptions"
8683 # Insert the option either (1) after the last *FLAGS variable, or
8684 # (2) before a word containing "conftest.", or (3) at the end.
8685 # Note that $ac_compile itself does not contain backslashes and begins
8686 # with a dollar sign (not a hyphen), so the echo should work correctly.
8687 # The option is referenced via a variable to avoid confusing sed.
8688 lt_compile=`echo "$ac_compile" | $SED \
8689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8691 -e 's:$: $lt_compiler_flag:'`
8692 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8693 (eval "$lt_compile" 2>conftest.err)
8694 ac_status=$?
8695 cat conftest.err >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 if (exit $ac_status) && test -s "$ac_outfile"; then
8698 # The compiler can only warn and ignore the option if not recognized
8699 # So say no if there are warnings other than the usual output.
8700 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8701 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8702 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8703 lt_cv_prog_compiler_rtti_exceptions=yes
8704 fi
8705 fi
8706 $RM conftest*
8707
8708 fi
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8710 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8711
8712 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8713 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8714 else
8715 :
8716 fi
8717
8718 fi
8719
8720
8721
8722
8723
8724
8725 lt_prog_compiler_wl=
8726 lt_prog_compiler_pic=
8727 lt_prog_compiler_static=
8728
8729
8730 if test "$GCC" = yes; then
8731 lt_prog_compiler_wl='-Wl,'
8732 lt_prog_compiler_static='-static'
8733
8734 case $host_os in
8735 aix*)
8736 # All AIX code is PIC.
8737 if test "$host_cpu" = ia64; then
8738 # AIX 5 now supports IA64 processor
8739 lt_prog_compiler_static='-Bstatic'
8740 fi
8741 ;;
8742
8743 amigaos*)
8744 case $host_cpu in
8745 powerpc)
8746 # see comment about AmigaOS4 .so support
8747 lt_prog_compiler_pic='-fPIC'
8748 ;;
8749 m68k)
8750 # FIXME: we need at least 68020 code to build shared libraries, but
8751 # adding the `-m68020' flag to GCC prevents building anything better,
8752 # like `-m68040'.
8753 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8754 ;;
8755 esac
8756 ;;
8757
8758 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8759 # PIC is the default for these OSes.
8760 ;;
8761
8762 mingw* | cygwin* | pw32* | os2* | cegcc*)
8763 # This hack is so that the source file can tell whether it is being
8764 # built for inclusion in a dll (and should export symbols for example).
8765 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8766 # (--disable-auto-import) libraries
8767 lt_prog_compiler_pic='-DDLL_EXPORT'
8768 ;;
8769
8770 darwin* | rhapsody*)
8771 # PIC is the default on this platform
8772 # Common symbols not allowed in MH_DYLIB files
8773 lt_prog_compiler_pic='-fno-common'
8774 ;;
8775
8776 haiku*)
8777 # PIC is the default for Haiku.
8778 # The "-static" flag exists, but is broken.
8779 lt_prog_compiler_static=
8780 ;;
8781
8782 hpux*)
8783 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8784 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8785 # sets the default TLS model and affects inlining.
8786 case $host_cpu in
8787 hppa*64*)
8788 # +Z the default
8789 ;;
8790 *)
8791 lt_prog_compiler_pic='-fPIC'
8792 ;;
8793 esac
8794 ;;
8795
8796 interix[3-9]*)
8797 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8798 # Instead, we relocate shared libraries at runtime.
8799 ;;
8800
8801 msdosdjgpp*)
8802 # Just because we use GCC doesn't mean we suddenly get shared libraries
8803 # on systems that don't support them.
8804 lt_prog_compiler_can_build_shared=no
8805 enable_shared=no
8806 ;;
8807
8808 *nto* | *qnx*)
8809 # QNX uses GNU C++, but need to define -shared option too, otherwise
8810 # it will coredump.
8811 lt_prog_compiler_pic='-fPIC -shared'
8812 ;;
8813
8814 sysv4*MP*)
8815 if test -d /usr/nec; then
8816 lt_prog_compiler_pic=-Kconform_pic
8817 fi
8818 ;;
8819
8820 *)
8821 lt_prog_compiler_pic='-fPIC'
8822 ;;
8823 esac
8824
8825 case $cc_basename in
8826 nvcc*) # Cuda Compiler Driver 2.2
8827 lt_prog_compiler_wl='-Xlinker '
8828 if test -n "$lt_prog_compiler_pic"; then
8829 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8830 fi
8831 ;;
8832 esac
8833 else
8834 # PORTME Check for flag to pass linker flags through the system compiler.
8835 case $host_os in
8836 aix*)
8837 lt_prog_compiler_wl='-Wl,'
8838 if test "$host_cpu" = ia64; then
8839 # AIX 5 now supports IA64 processor
8840 lt_prog_compiler_static='-Bstatic'
8841 else
8842 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8843 fi
8844 ;;
8845
8846 mingw* | cygwin* | pw32* | os2* | cegcc*)
8847 # This hack is so that the source file can tell whether it is being
8848 # built for inclusion in a dll (and should export symbols for example).
8849 lt_prog_compiler_pic='-DDLL_EXPORT'
8850 ;;
8851
8852 hpux9* | hpux10* | hpux11*)
8853 lt_prog_compiler_wl='-Wl,'
8854 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8855 # not for PA HP-UX.
8856 case $host_cpu in
8857 hppa*64*|ia64*)
8858 # +Z the default
8859 ;;
8860 *)
8861 lt_prog_compiler_pic='+Z'
8862 ;;
8863 esac
8864 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8865 lt_prog_compiler_static='${wl}-a ${wl}archive'
8866 ;;
8867
8868 irix5* | irix6* | nonstopux*)
8869 lt_prog_compiler_wl='-Wl,'
8870 # PIC (with -KPIC) is the default.
8871 lt_prog_compiler_static='-non_shared'
8872 ;;
8873
8874 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8875 case $cc_basename in
8876 # old Intel for x86_64 which still supported -KPIC.
8877 ecc*)
8878 lt_prog_compiler_wl='-Wl,'
8879 lt_prog_compiler_pic='-KPIC'
8880 lt_prog_compiler_static='-static'
8881 ;;
8882 # icc used to be incompatible with GCC.
8883 # ICC 10 doesn't accept -KPIC any more.
8884 icc* | ifort*)
8885 lt_prog_compiler_wl='-Wl,'
8886 lt_prog_compiler_pic='-fPIC'
8887 lt_prog_compiler_static='-static'
8888 ;;
8889 # Lahey Fortran 8.1.
8890 lf95*)
8891 lt_prog_compiler_wl='-Wl,'
8892 lt_prog_compiler_pic='--shared'
8893 lt_prog_compiler_static='--static'
8894 ;;
8895 nagfor*)
8896 # NAG Fortran compiler
8897 lt_prog_compiler_wl='-Wl,-Wl,,'
8898 lt_prog_compiler_pic='-PIC'
8899 lt_prog_compiler_static='-Bstatic'
8900 ;;
8901 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8902 # Portland Group compilers (*not* the Pentium gcc compiler,
8903 # which looks to be a dead project)
8904 lt_prog_compiler_wl='-Wl,'
8905 lt_prog_compiler_pic='-fpic'
8906 lt_prog_compiler_static='-Bstatic'
8907 ;;
8908 ccc*)
8909 lt_prog_compiler_wl='-Wl,'
8910 # All Alpha code is PIC.
8911 lt_prog_compiler_static='-non_shared'
8912 ;;
8913 xl* | bgxl* | bgf* | mpixl*)
8914 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8915 lt_prog_compiler_wl='-Wl,'
8916 lt_prog_compiler_pic='-qpic'
8917 lt_prog_compiler_static='-qstaticlink'
8918 ;;
8919 *)
8920 case `$CC -V 2>&1 | sed 5q` in
8921 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8922 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8923 lt_prog_compiler_pic='-KPIC'
8924 lt_prog_compiler_static='-Bstatic'
8925 lt_prog_compiler_wl=''
8926 ;;
8927 *Sun\ F* | *Sun*Fortran*)
8928 lt_prog_compiler_pic='-KPIC'
8929 lt_prog_compiler_static='-Bstatic'
8930 lt_prog_compiler_wl='-Qoption ld '
8931 ;;
8932 *Sun\ C*)
8933 # Sun C 5.9
8934 lt_prog_compiler_pic='-KPIC'
8935 lt_prog_compiler_static='-Bstatic'
8936 lt_prog_compiler_wl='-Wl,'
8937 ;;
8938 *Intel*\ [CF]*Compiler*)
8939 lt_prog_compiler_wl='-Wl,'
8940 lt_prog_compiler_pic='-fPIC'
8941 lt_prog_compiler_static='-static'
8942 ;;
8943 *Portland\ Group*)
8944 lt_prog_compiler_wl='-Wl,'
8945 lt_prog_compiler_pic='-fpic'
8946 lt_prog_compiler_static='-Bstatic'
8947 ;;
8948 esac
8949 ;;
8950 esac
8951 ;;
8952
8953 newsos6)
8954 lt_prog_compiler_pic='-KPIC'
8955 lt_prog_compiler_static='-Bstatic'
8956 ;;
8957
8958 *nto* | *qnx*)
8959 # QNX uses GNU C++, but need to define -shared option too, otherwise
8960 # it will coredump.
8961 lt_prog_compiler_pic='-fPIC -shared'
8962 ;;
8963
8964 osf3* | osf4* | osf5*)
8965 lt_prog_compiler_wl='-Wl,'
8966 # All OSF/1 code is PIC.
8967 lt_prog_compiler_static='-non_shared'
8968 ;;
8969
8970 rdos*)
8971 lt_prog_compiler_static='-non_shared'
8972 ;;
8973
8974 solaris*)
8975 lt_prog_compiler_pic='-KPIC'
8976 lt_prog_compiler_static='-Bstatic'
8977 case $cc_basename in
8978 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8979 lt_prog_compiler_wl='-Qoption ld ';;
8980 *)
8981 lt_prog_compiler_wl='-Wl,';;
8982 esac
8983 ;;
8984
8985 sunos4*)
8986 lt_prog_compiler_wl='-Qoption ld '
8987 lt_prog_compiler_pic='-PIC'
8988 lt_prog_compiler_static='-Bstatic'
8989 ;;
8990
8991 sysv4 | sysv4.2uw2* | sysv4.3*)
8992 lt_prog_compiler_wl='-Wl,'
8993 lt_prog_compiler_pic='-KPIC'
8994 lt_prog_compiler_static='-Bstatic'
8995 ;;
8996
8997 sysv4*MP*)
8998 if test -d /usr/nec ;then
8999 lt_prog_compiler_pic='-Kconform_pic'
9000 lt_prog_compiler_static='-Bstatic'
9001 fi
9002 ;;
9003
9004 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9005 lt_prog_compiler_wl='-Wl,'
9006 lt_prog_compiler_pic='-KPIC'
9007 lt_prog_compiler_static='-Bstatic'
9008 ;;
9009
9010 unicos*)
9011 lt_prog_compiler_wl='-Wl,'
9012 lt_prog_compiler_can_build_shared=no
9013 ;;
9014
9015 uts4*)
9016 lt_prog_compiler_pic='-pic'
9017 lt_prog_compiler_static='-Bstatic'
9018 ;;
9019
9020 *)
9021 lt_prog_compiler_can_build_shared=no
9022 ;;
9023 esac
9024 fi
9025
9026 case $host_os in
9027 # For platforms which do not support PIC, -DPIC is meaningless:
9028 *djgpp*)
9029 lt_prog_compiler_pic=
9030 ;;
9031 *)
9032 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9033 ;;
9034 esac
9035
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9037 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9038 if ${lt_cv_prog_compiler_pic+:} false; then :
9039 $as_echo_n "(cached) " >&6
9040 else
9041 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9042 fi
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9044 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9045 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9046
9047 #
9048 # Check to make sure the PIC flag actually works.
9049 #
9050 if test -n "$lt_prog_compiler_pic"; then
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9052 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9053 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9054 $as_echo_n "(cached) " >&6
9055 else
9056 lt_cv_prog_compiler_pic_works=no
9057 ac_outfile=conftest.$ac_objext
9058 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9059 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9060 # Insert the option either (1) after the last *FLAGS variable, or
9061 # (2) before a word containing "conftest.", or (3) at the end.
9062 # Note that $ac_compile itself does not contain backslashes and begins
9063 # with a dollar sign (not a hyphen), so the echo should work correctly.
9064 # The option is referenced via a variable to avoid confusing sed.
9065 lt_compile=`echo "$ac_compile" | $SED \
9066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9068 -e 's:$: $lt_compiler_flag:'`
9069 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9070 (eval "$lt_compile" 2>conftest.err)
9071 ac_status=$?
9072 cat conftest.err >&5
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 if (exit $ac_status) && test -s "$ac_outfile"; then
9075 # The compiler can only warn and ignore the option if not recognized
9076 # So say no if there are warnings other than the usual output.
9077 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9078 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9079 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9080 lt_cv_prog_compiler_pic_works=yes
9081 fi
9082 fi
9083 $RM conftest*
9084
9085 fi
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9087 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9088
9089 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9090 case $lt_prog_compiler_pic in
9091 "" | " "*) ;;
9092 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9093 esac
9094 else
9095 lt_prog_compiler_pic=
9096 lt_prog_compiler_can_build_shared=no
9097 fi
9098
9099 fi
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111 #
9112 # Check to make sure the static flag actually works.
9113 #
9114 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9116 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9117 if ${lt_cv_prog_compiler_static_works+:} false; then :
9118 $as_echo_n "(cached) " >&6
9119 else
9120 lt_cv_prog_compiler_static_works=no
9121 save_LDFLAGS="$LDFLAGS"
9122 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9123 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9124 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9125 # The linker can only warn and ignore the option if not recognized
9126 # So say no if there are warnings
9127 if test -s conftest.err; then
9128 # Append any errors to the config.log.
9129 cat conftest.err 1>&5
9130 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9131 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9132 if diff conftest.exp conftest.er2 >/dev/null; then
9133 lt_cv_prog_compiler_static_works=yes
9134 fi
9135 else
9136 lt_cv_prog_compiler_static_works=yes
9137 fi
9138 fi
9139 $RM -r conftest*
9140 LDFLAGS="$save_LDFLAGS"
9141
9142 fi
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9144 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9145
9146 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9147 :
9148 else
9149 lt_prog_compiler_static=
9150 fi
9151
9152
9153
9154
9155
9156
9157
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9159 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9160 if ${lt_cv_prog_compiler_c_o+:} false; then :
9161 $as_echo_n "(cached) " >&6
9162 else
9163 lt_cv_prog_compiler_c_o=no
9164 $RM -r conftest 2>/dev/null
9165 mkdir conftest
9166 cd conftest
9167 mkdir out
9168 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9169
9170 lt_compiler_flag="-o out/conftest2.$ac_objext"
9171 # Insert the option either (1) after the last *FLAGS variable, or
9172 # (2) before a word containing "conftest.", or (3) at the end.
9173 # Note that $ac_compile itself does not contain backslashes and begins
9174 # with a dollar sign (not a hyphen), so the echo should work correctly.
9175 lt_compile=`echo "$ac_compile" | $SED \
9176 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9178 -e 's:$: $lt_compiler_flag:'`
9179 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9180 (eval "$lt_compile" 2>out/conftest.err)
9181 ac_status=$?
9182 cat out/conftest.err >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9185 then
9186 # The compiler can only warn and ignore the option if not recognized
9187 # So say no if there are warnings
9188 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9189 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9190 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9191 lt_cv_prog_compiler_c_o=yes
9192 fi
9193 fi
9194 chmod u+w . 2>&5
9195 $RM conftest*
9196 # SGI C++ compiler will create directory out/ii_files/ for
9197 # template instantiation
9198 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9199 $RM out/* && rmdir out
9200 cd ..
9201 $RM -r conftest
9202 $RM conftest*
9203
9204 fi
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9206 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9207
9208
9209
9210
9211
9212
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9214 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9215 if ${lt_cv_prog_compiler_c_o+:} false; then :
9216 $as_echo_n "(cached) " >&6
9217 else
9218 lt_cv_prog_compiler_c_o=no
9219 $RM -r conftest 2>/dev/null
9220 mkdir conftest
9221 cd conftest
9222 mkdir out
9223 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9224
9225 lt_compiler_flag="-o out/conftest2.$ac_objext"
9226 # Insert the option either (1) after the last *FLAGS variable, or
9227 # (2) before a word containing "conftest.", or (3) at the end.
9228 # Note that $ac_compile itself does not contain backslashes and begins
9229 # with a dollar sign (not a hyphen), so the echo should work correctly.
9230 lt_compile=`echo "$ac_compile" | $SED \
9231 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9233 -e 's:$: $lt_compiler_flag:'`
9234 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9235 (eval "$lt_compile" 2>out/conftest.err)
9236 ac_status=$?
9237 cat out/conftest.err >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9240 then
9241 # The compiler can only warn and ignore the option if not recognized
9242 # So say no if there are warnings
9243 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9244 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9245 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9246 lt_cv_prog_compiler_c_o=yes
9247 fi
9248 fi
9249 chmod u+w . 2>&5
9250 $RM conftest*
9251 # SGI C++ compiler will create directory out/ii_files/ for
9252 # template instantiation
9253 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9254 $RM out/* && rmdir out
9255 cd ..
9256 $RM -r conftest
9257 $RM conftest*
9258
9259 fi
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9261 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9262
9263
9264
9265
9266 hard_links="nottested"
9267 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9268 # do not overwrite the value of need_locks provided by the user
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9270 $as_echo_n "checking if we can lock with hard links... " >&6; }
9271 hard_links=yes
9272 $RM conftest*
9273 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9274 touch conftest.a
9275 ln conftest.a conftest.b 2>&5 || hard_links=no
9276 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9278 $as_echo "$hard_links" >&6; }
9279 if test "$hard_links" = no; then
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9281 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9282 need_locks=warn
9283 fi
9284 else
9285 need_locks=no
9286 fi
9287
9288
9289
9290
9291
9292
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9294 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9295
9296 runpath_var=
9297 allow_undefined_flag=
9298 always_export_symbols=no
9299 archive_cmds=
9300 archive_expsym_cmds=
9301 compiler_needs_object=no
9302 enable_shared_with_static_runtimes=no
9303 export_dynamic_flag_spec=
9304 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9305 hardcode_automatic=no
9306 hardcode_direct=no
9307 hardcode_direct_absolute=no
9308 hardcode_libdir_flag_spec=
9309 hardcode_libdir_separator=
9310 hardcode_minus_L=no
9311 hardcode_shlibpath_var=unsupported
9312 inherit_rpath=no
9313 link_all_deplibs=unknown
9314 module_cmds=
9315 module_expsym_cmds=
9316 old_archive_from_new_cmds=
9317 old_archive_from_expsyms_cmds=
9318 thread_safe_flag_spec=
9319 whole_archive_flag_spec=
9320 # include_expsyms should be a list of space-separated symbols to be *always*
9321 # included in the symbol list
9322 include_expsyms=
9323 # exclude_expsyms can be an extended regexp of symbols to exclude
9324 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9325 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9326 # as well as any symbol that contains `d'.
9327 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9328 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9329 # platforms (ab)use it in PIC code, but their linkers get confused if
9330 # the symbol is explicitly referenced. Since portable code cannot
9331 # rely on this symbol name, it's probably fine to never include it in
9332 # preloaded symbol tables.
9333 # Exclude shared library initialization/finalization symbols.
9334 extract_expsyms_cmds=
9335
9336 case $host_os in
9337 cygwin* | mingw* | pw32* | cegcc*)
9338 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9339 # When not using gcc, we currently assume that we are using
9340 # Microsoft Visual C++.
9341 if test "$GCC" != yes; then
9342 with_gnu_ld=no
9343 fi
9344 ;;
9345 interix*)
9346 # we just hope/assume this is gcc and not c89 (= MSVC++)
9347 with_gnu_ld=yes
9348 ;;
9349 openbsd*)
9350 with_gnu_ld=no
9351 ;;
9352 esac
9353
9354 ld_shlibs=yes
9355
9356 # On some targets, GNU ld is compatible enough with the native linker
9357 # that we're better off using the native interface for both.
9358 lt_use_gnu_ld_interface=no
9359 if test "$with_gnu_ld" = yes; then
9360 case $host_os in
9361 aix*)
9362 # The AIX port of GNU ld has always aspired to compatibility
9363 # with the native linker. However, as the warning in the GNU ld
9364 # block says, versions before 2.19.5* couldn't really create working
9365 # shared libraries, regardless of the interface used.
9366 case `$LD -v 2>&1` in
9367 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9368 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9369 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9370 *)
9371 lt_use_gnu_ld_interface=yes
9372 ;;
9373 esac
9374 ;;
9375 *)
9376 lt_use_gnu_ld_interface=yes
9377 ;;
9378 esac
9379 fi
9380
9381 if test "$lt_use_gnu_ld_interface" = yes; then
9382 # If archive_cmds runs LD, not CC, wlarc should be empty
9383 wlarc='${wl}'
9384
9385 # Set some defaults for GNU ld with shared library support. These
9386 # are reset later if shared libraries are not supported. Putting them
9387 # here allows them to be overridden if necessary.
9388 runpath_var=LD_RUN_PATH
9389 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9390 export_dynamic_flag_spec='${wl}--export-dynamic'
9391 # ancient GNU ld didn't support --whole-archive et. al.
9392 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9393 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9394 else
9395 whole_archive_flag_spec=
9396 fi
9397 supports_anon_versioning=no
9398 case `$LD -v 2>&1` in
9399 *GNU\ gold*) supports_anon_versioning=yes ;;
9400 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9401 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9402 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9403 *\ 2.11.*) ;; # other 2.11 versions
9404 *) supports_anon_versioning=yes ;;
9405 esac
9406
9407 # See if GNU ld supports shared libraries.
9408 case $host_os in
9409 aix[3-9]*)
9410 # On AIX/PPC, the GNU linker is very broken
9411 if test "$host_cpu" != ia64; then
9412 ld_shlibs=no
9413 cat <<_LT_EOF 1>&2
9414
9415 *** Warning: the GNU linker, at least up to release 2.19, is reported
9416 *** to be unable to reliably create shared libraries on AIX.
9417 *** Therefore, libtool is disabling shared libraries support. If you
9418 *** really care for shared libraries, you may want to install binutils
9419 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9420 *** You will then need to restart the configuration process.
9421
9422 _LT_EOF
9423 fi
9424 ;;
9425
9426 amigaos*)
9427 case $host_cpu in
9428 powerpc)
9429 # see comment about AmigaOS4 .so support
9430 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9431 archive_expsym_cmds=''
9432 ;;
9433 m68k)
9434 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9435 hardcode_libdir_flag_spec='-L$libdir'
9436 hardcode_minus_L=yes
9437 ;;
9438 esac
9439 ;;
9440
9441 beos*)
9442 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9443 allow_undefined_flag=unsupported
9444 # Joseph Beckenbach <[email protected]> says some releases of gcc
9445 # support --undefined. This deserves some investigation. FIXME
9446 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9447 else
9448 ld_shlibs=no
9449 fi
9450 ;;
9451
9452 cygwin* | mingw* | pw32* | cegcc*)
9453 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9454 # as there is no search path for DLLs.
9455 hardcode_libdir_flag_spec='-L$libdir'
9456 export_dynamic_flag_spec='${wl}--export-all-symbols'
9457 allow_undefined_flag=unsupported
9458 always_export_symbols=no
9459 enable_shared_with_static_runtimes=yes
9460 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'
9461 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9462
9463 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9465 # If the export-symbols file already is a .def file (1st line
9466 # is EXPORTS), use it as is; otherwise, prepend...
9467 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9468 cp $export_symbols $output_objdir/$soname.def;
9469 else
9470 echo EXPORTS > $output_objdir/$soname.def;
9471 cat $export_symbols >> $output_objdir/$soname.def;
9472 fi~
9473 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9474 else
9475 ld_shlibs=no
9476 fi
9477 ;;
9478
9479 haiku*)
9480 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9481 link_all_deplibs=yes
9482 ;;
9483
9484 interix[3-9]*)
9485 hardcode_direct=no
9486 hardcode_shlibpath_var=no
9487 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9488 export_dynamic_flag_spec='${wl}-E'
9489 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9490 # Instead, shared libraries are loaded at an image base (0x10000000 by
9491 # default) and relocated if they conflict, which is a slow very memory
9492 # consuming and fragmenting process. To avoid this, we pick a random,
9493 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9494 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9495 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9496 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'
9497 ;;
9498
9499 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9500 tmp_diet=no
9501 if test "$host_os" = linux-dietlibc; then
9502 case $cc_basename in
9503 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9504 esac
9505 fi
9506 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9507 && test "$tmp_diet" = no
9508 then
9509 tmp_addflag=' $pic_flag'
9510 tmp_sharedflag='-shared'
9511 case $cc_basename,$host_cpu in
9512 pgcc*) # Portland Group C compiler
9513 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'
9514 tmp_addflag=' $pic_flag'
9515 ;;
9516 pgf77* | pgf90* | pgf95* | pgfortran*)
9517 # Portland Group f77 and f90 compilers
9518 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'
9519 tmp_addflag=' $pic_flag -Mnomain' ;;
9520 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9521 tmp_addflag=' -i_dynamic' ;;
9522 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9523 tmp_addflag=' -i_dynamic -nofor_main' ;;
9524 ifc* | ifort*) # Intel Fortran compiler
9525 tmp_addflag=' -nofor_main' ;;
9526 lf95*) # Lahey Fortran 8.1
9527 whole_archive_flag_spec=
9528 tmp_sharedflag='--shared' ;;
9529 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9530 tmp_sharedflag='-qmkshrobj'
9531 tmp_addflag= ;;
9532 nvcc*) # Cuda Compiler Driver 2.2
9533 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'
9534 compiler_needs_object=yes
9535 ;;
9536 esac
9537 case `$CC -V 2>&1 | sed 5q` in
9538 *Sun\ C*) # Sun C 5.9
9539 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'
9540 compiler_needs_object=yes
9541 tmp_sharedflag='-G' ;;
9542 *Sun\ F*) # Sun Fortran 8.3
9543 tmp_sharedflag='-G' ;;
9544 esac
9545 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9546
9547 if test "x$supports_anon_versioning" = xyes; then
9548 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9549 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9550 echo "local: *; };" >> $output_objdir/$libname.ver~
9551 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9552 fi
9553
9554 case $cc_basename in
9555 xlf* | bgf* | bgxlf* | mpixlf*)
9556 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9557 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9558 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9559 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9560 if test "x$supports_anon_versioning" = xyes; then
9561 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9562 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9563 echo "local: *; };" >> $output_objdir/$libname.ver~
9564 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9565 fi
9566 ;;
9567 esac
9568 else
9569 ld_shlibs=no
9570 fi
9571 ;;
9572
9573 netbsd*)
9574 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9575 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9576 wlarc=
9577 else
9578 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9579 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9580 fi
9581 ;;
9582
9583 solaris*)
9584 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9585 ld_shlibs=no
9586 cat <<_LT_EOF 1>&2
9587
9588 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9589 *** create shared libraries on Solaris systems. Therefore, libtool
9590 *** is disabling shared libraries support. We urge you to upgrade GNU
9591 *** binutils to release 2.9.1 or newer. Another option is to modify
9592 *** your PATH or compiler configuration so that the native linker is
9593 *** used, and then restart.
9594
9595 _LT_EOF
9596 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9597 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9598 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9599 else
9600 ld_shlibs=no
9601 fi
9602 ;;
9603
9604 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9605 case `$LD -v 2>&1` in
9606 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9607 ld_shlibs=no
9608 cat <<_LT_EOF 1>&2
9609
9610 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9611 *** reliably create shared libraries on SCO systems. Therefore, libtool
9612 *** is disabling shared libraries support. We urge you to upgrade GNU
9613 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9614 *** your PATH or compiler configuration so that the native linker is
9615 *** used, and then restart.
9616
9617 _LT_EOF
9618 ;;
9619 *)
9620 # For security reasons, it is highly recommended that you always
9621 # use absolute paths for naming shared libraries, and exclude the
9622 # DT_RUNPATH tag from executables and libraries. But doing so
9623 # requires that you compile everything twice, which is a pain.
9624 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9625 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9626 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9627 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9628 else
9629 ld_shlibs=no
9630 fi
9631 ;;
9632 esac
9633 ;;
9634
9635 sunos4*)
9636 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9637 wlarc=
9638 hardcode_direct=yes
9639 hardcode_shlibpath_var=no
9640 ;;
9641
9642 *)
9643 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9644 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9645 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9646 else
9647 ld_shlibs=no
9648 fi
9649 ;;
9650 esac
9651
9652 if test "$ld_shlibs" = no; then
9653 runpath_var=
9654 hardcode_libdir_flag_spec=
9655 export_dynamic_flag_spec=
9656 whole_archive_flag_spec=
9657 fi
9658 else
9659 # PORTME fill in a description of your system's linker (not GNU ld)
9660 case $host_os in
9661 aix3*)
9662 allow_undefined_flag=unsupported
9663 always_export_symbols=yes
9664 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'
9665 # Note: this linker hardcodes the directories in LIBPATH if there
9666 # are no directories specified by -L.
9667 hardcode_minus_L=yes
9668 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9669 # Neither direct hardcoding nor static linking is supported with a
9670 # broken collect2.
9671 hardcode_direct=unsupported
9672 fi
9673 ;;
9674
9675 aix[4-9]*)
9676 if test "$host_cpu" = ia64; then
9677 # On IA64, the linker does run time linking by default, so we don't
9678 # have to do anything special.
9679 aix_use_runtimelinking=no
9680 exp_sym_flag='-Bexport'
9681 no_entry_flag=""
9682 else
9683 # If we're using GNU nm, then we don't want the "-C" option.
9684 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9685 # Also, AIX nm treats weak defined symbols like other global
9686 # defined symbols, whereas GNU nm marks them as "W".
9687 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9688 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'
9689 else
9690 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'
9691 fi
9692 aix_use_runtimelinking=no
9693
9694 # Test if we are trying to use run time linking or normal
9695 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9696 # need to do runtime linking.
9697 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9698 for ld_flag in $LDFLAGS; do
9699 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9700 aix_use_runtimelinking=yes
9701 break
9702 fi
9703 done
9704 ;;
9705 esac
9706
9707 exp_sym_flag='-bexport'
9708 no_entry_flag='-bnoentry'
9709 fi
9710
9711 # When large executables or shared objects are built, AIX ld can
9712 # have problems creating the table of contents. If linking a library
9713 # or program results in "error TOC overflow" add -mminimal-toc to
9714 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9715 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9716
9717 archive_cmds=''
9718 hardcode_direct=yes
9719 hardcode_direct_absolute=yes
9720 hardcode_libdir_separator=':'
9721 link_all_deplibs=yes
9722 file_list_spec='${wl}-f,'
9723
9724 if test "$GCC" = yes; then
9725 case $host_os in aix4.[012]|aix4.[012].*)
9726 # We only want to do this on AIX 4.2 and lower, the check
9727 # below for broken collect2 doesn't work under 4.3+
9728 collect2name=`${CC} -print-prog-name=collect2`
9729 if test -f "$collect2name" &&
9730 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9731 then
9732 # We have reworked collect2
9733 :
9734 else
9735 # We have old collect2
9736 hardcode_direct=unsupported
9737 # It fails to find uninstalled libraries when the uninstalled
9738 # path is not listed in the libpath. Setting hardcode_minus_L
9739 # to unsupported forces relinking
9740 hardcode_minus_L=yes
9741 hardcode_libdir_flag_spec='-L$libdir'
9742 hardcode_libdir_separator=
9743 fi
9744 ;;
9745 esac
9746 shared_flag='-shared'
9747 if test "$aix_use_runtimelinking" = yes; then
9748 shared_flag="$shared_flag "'${wl}-G'
9749 fi
9750 else
9751 # not using gcc
9752 if test "$host_cpu" = ia64; then
9753 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9754 # chokes on -Wl,-G. The following line is correct:
9755 shared_flag='-G'
9756 else
9757 if test "$aix_use_runtimelinking" = yes; then
9758 shared_flag='${wl}-G'
9759 else
9760 shared_flag='${wl}-bM:SRE'
9761 fi
9762 fi
9763 fi
9764
9765 export_dynamic_flag_spec='${wl}-bexpall'
9766 # It seems that -bexpall does not export symbols beginning with
9767 # underscore (_), so it is better to generate a list of symbols to export.
9768 always_export_symbols=yes
9769 if test "$aix_use_runtimelinking" = yes; then
9770 # Warning - without using the other runtime loading flags (-brtl),
9771 # -berok will link without error, but may produce a broken library.
9772 allow_undefined_flag='-berok'
9773 # Determine the default libpath from the value encoded in an
9774 # empty executable.
9775 if test "${lt_cv_aix_libpath+set}" = set; then
9776 aix_libpath=$lt_cv_aix_libpath
9777 else
9778 if ${lt_cv_aix_libpath_+:} false; then :
9779 $as_echo_n "(cached) " >&6
9780 else
9781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782 /* end confdefs.h. */
9783
9784 int
9785 main ()
9786 {
9787
9788 ;
9789 return 0;
9790 }
9791 _ACEOF
9792 if ac_fn_c_try_link "$LINENO"; then :
9793
9794 lt_aix_libpath_sed='
9795 /Import File Strings/,/^$/ {
9796 /^0/ {
9797 s/^0 *\([^ ]*\) *$/\1/
9798 p
9799 }
9800 }'
9801 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9802 # Check for a 64-bit object if we didn't find anything.
9803 if test -z "$lt_cv_aix_libpath_"; then
9804 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9805 fi
9806 fi
9807 rm -f core conftest.err conftest.$ac_objext \
9808 conftest$ac_exeext conftest.$ac_ext
9809 if test -z "$lt_cv_aix_libpath_"; then
9810 lt_cv_aix_libpath_="/usr/lib:/lib"
9811 fi
9812
9813 fi
9814
9815 aix_libpath=$lt_cv_aix_libpath_
9816 fi
9817
9818 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9819 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"
9820 else
9821 if test "$host_cpu" = ia64; then
9822 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9823 allow_undefined_flag="-z nodefs"
9824 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"
9825 else
9826 # Determine the default libpath from the value encoded in an
9827 # empty executable.
9828 if test "${lt_cv_aix_libpath+set}" = set; then
9829 aix_libpath=$lt_cv_aix_libpath
9830 else
9831 if ${lt_cv_aix_libpath_+:} false; then :
9832 $as_echo_n "(cached) " >&6
9833 else
9834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835 /* end confdefs.h. */
9836
9837 int
9838 main ()
9839 {
9840
9841 ;
9842 return 0;
9843 }
9844 _ACEOF
9845 if ac_fn_c_try_link "$LINENO"; then :
9846
9847 lt_aix_libpath_sed='
9848 /Import File Strings/,/^$/ {
9849 /^0/ {
9850 s/^0 *\([^ ]*\) *$/\1/
9851 p
9852 }
9853 }'
9854 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9855 # Check for a 64-bit object if we didn't find anything.
9856 if test -z "$lt_cv_aix_libpath_"; then
9857 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9858 fi
9859 fi
9860 rm -f core conftest.err conftest.$ac_objext \
9861 conftest$ac_exeext conftest.$ac_ext
9862 if test -z "$lt_cv_aix_libpath_"; then
9863 lt_cv_aix_libpath_="/usr/lib:/lib"
9864 fi
9865
9866 fi
9867
9868 aix_libpath=$lt_cv_aix_libpath_
9869 fi
9870
9871 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9872 # Warning - without using the other run time loading flags,
9873 # -berok will link without error, but may produce a broken library.
9874 no_undefined_flag=' ${wl}-bernotok'
9875 allow_undefined_flag=' ${wl}-berok'
9876 if test "$with_gnu_ld" = yes; then
9877 # We only use this code for GNU lds that support --whole-archive.
9878 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9879 else
9880 # Exported symbols can be pulled into shared objects from archives
9881 whole_archive_flag_spec='$convenience'
9882 fi
9883 archive_cmds_need_lc=yes
9884 # This is similar to how AIX traditionally builds its shared libraries.
9885 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'
9886 fi
9887 fi
9888 ;;
9889
9890 amigaos*)
9891 case $host_cpu in
9892 powerpc)
9893 # see comment about AmigaOS4 .so support
9894 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9895 archive_expsym_cmds=''
9896 ;;
9897 m68k)
9898 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)'
9899 hardcode_libdir_flag_spec='-L$libdir'
9900 hardcode_minus_L=yes
9901 ;;
9902 esac
9903 ;;
9904
9905 bsdi[45]*)
9906 export_dynamic_flag_spec=-rdynamic
9907 ;;
9908
9909 cygwin* | mingw* | pw32* | cegcc*)
9910 # When not using gcc, we currently assume that we are using
9911 # Microsoft Visual C++.
9912 # hardcode_libdir_flag_spec is actually meaningless, as there is
9913 # no search path for DLLs.
9914 case $cc_basename in
9915 cl*)
9916 # Native MSVC
9917 hardcode_libdir_flag_spec=' '
9918 allow_undefined_flag=unsupported
9919 always_export_symbols=yes
9920 file_list_spec='@'
9921 # Tell ltmain to make .lib files, not .a files.
9922 libext=lib
9923 # Tell ltmain to make .dll files, not .so files.
9924 shrext_cmds=".dll"
9925 # FIXME: Setting linknames here is a bad hack.
9926 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9927 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9928 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9929 else
9930 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9931 fi~
9932 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9933 linknames='
9934 # The linker will not automatically build a static lib if we build a DLL.
9935 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9936 enable_shared_with_static_runtimes=yes
9937 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9938 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9939 # Don't use ranlib
9940 old_postinstall_cmds='chmod 644 $oldlib'
9941 postlink_cmds='lt_outputfile="@OUTPUT@"~
9942 lt_tool_outputfile="@TOOL_OUTPUT@"~
9943 case $lt_outputfile in
9944 *.exe|*.EXE) ;;
9945 *)
9946 lt_outputfile="$lt_outputfile.exe"
9947 lt_tool_outputfile="$lt_tool_outputfile.exe"
9948 ;;
9949 esac~
9950 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9951 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9952 $RM "$lt_outputfile.manifest";
9953 fi'
9954 ;;
9955 *)
9956 # Assume MSVC wrapper
9957 hardcode_libdir_flag_spec=' '
9958 allow_undefined_flag=unsupported
9959 # Tell ltmain to make .lib files, not .a files.
9960 libext=lib
9961 # Tell ltmain to make .dll files, not .so files.
9962 shrext_cmds=".dll"
9963 # FIXME: Setting linknames here is a bad hack.
9964 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9965 # The linker will automatically build a .lib file if we build a DLL.
9966 old_archive_from_new_cmds='true'
9967 # FIXME: Should let the user specify the lib program.
9968 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9969 enable_shared_with_static_runtimes=yes
9970 ;;
9971 esac
9972 ;;
9973
9974 darwin* | rhapsody*)
9975
9976
9977 archive_cmds_need_lc=no
9978 hardcode_direct=no
9979 hardcode_automatic=yes
9980 hardcode_shlibpath_var=unsupported
9981 if test "$lt_cv_ld_force_load" = "yes"; then
9982 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\"`'
9983
9984 else
9985 whole_archive_flag_spec=''
9986 fi
9987 link_all_deplibs=yes
9988 allow_undefined_flag="$_lt_dar_allow_undefined"
9989 case $cc_basename in
9990 ifort*) _lt_dar_can_shared=yes ;;
9991 *) _lt_dar_can_shared=$GCC ;;
9992 esac
9993 if test "$_lt_dar_can_shared" = "yes"; then
9994 output_verbose_link_cmd=func_echo_all
9995 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9996 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9997 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}"
9998 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}"
9999
10000 else
10001 ld_shlibs=no
10002 fi
10003
10004 ;;
10005
10006 dgux*)
10007 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10008 hardcode_libdir_flag_spec='-L$libdir'
10009 hardcode_shlibpath_var=no
10010 ;;
10011
10012 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10013 # support. Future versions do this automatically, but an explicit c++rt0.o
10014 # does not break anything, and helps significantly (at the cost of a little
10015 # extra space).
10016 freebsd2.2*)
10017 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10018 hardcode_libdir_flag_spec='-R$libdir'
10019 hardcode_direct=yes
10020 hardcode_shlibpath_var=no
10021 ;;
10022
10023 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10024 freebsd2.*)
10025 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10026 hardcode_direct=yes
10027 hardcode_minus_L=yes
10028 hardcode_shlibpath_var=no
10029 ;;
10030
10031 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10032 freebsd* | dragonfly*)
10033 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10034 hardcode_libdir_flag_spec='-R$libdir'
10035 hardcode_direct=yes
10036 hardcode_shlibpath_var=no
10037 ;;
10038
10039 hpux9*)
10040 if test "$GCC" = yes; then
10041 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'
10042 else
10043 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'
10044 fi
10045 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10046 hardcode_libdir_separator=:
10047 hardcode_direct=yes
10048
10049 # hardcode_minus_L: Not really in the search PATH,
10050 # but as the default location of the library.
10051 hardcode_minus_L=yes
10052 export_dynamic_flag_spec='${wl}-E'
10053 ;;
10054
10055 hpux10*)
10056 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10057 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10058 else
10059 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10060 fi
10061 if test "$with_gnu_ld" = no; then
10062 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10063 hardcode_libdir_separator=:
10064 hardcode_direct=yes
10065 hardcode_direct_absolute=yes
10066 export_dynamic_flag_spec='${wl}-E'
10067 # hardcode_minus_L: Not really in the search PATH,
10068 # but as the default location of the library.
10069 hardcode_minus_L=yes
10070 fi
10071 ;;
10072
10073 hpux11*)
10074 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10075 case $host_cpu in
10076 hppa*64*)
10077 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10078 ;;
10079 ia64*)
10080 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10081 ;;
10082 *)
10083 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10084 ;;
10085 esac
10086 else
10087 case $host_cpu in
10088 hppa*64*)
10089 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10090 ;;
10091 ia64*)
10092 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10093 ;;
10094 *)
10095
10096 # Older versions of the 11.00 compiler do not understand -b yet
10097 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10099 $as_echo_n "checking if $CC understands -b... " >&6; }
10100 if ${lt_cv_prog_compiler__b+:} false; then :
10101 $as_echo_n "(cached) " >&6
10102 else
10103 lt_cv_prog_compiler__b=no
10104 save_LDFLAGS="$LDFLAGS"
10105 LDFLAGS="$LDFLAGS -b"
10106 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10107 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10108 # The linker can only warn and ignore the option if not recognized
10109 # So say no if there are warnings
10110 if test -s conftest.err; then
10111 # Append any errors to the config.log.
10112 cat conftest.err 1>&5
10113 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10115 if diff conftest.exp conftest.er2 >/dev/null; then
10116 lt_cv_prog_compiler__b=yes
10117 fi
10118 else
10119 lt_cv_prog_compiler__b=yes
10120 fi
10121 fi
10122 $RM -r conftest*
10123 LDFLAGS="$save_LDFLAGS"
10124
10125 fi
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10127 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10128
10129 if test x"$lt_cv_prog_compiler__b" = xyes; then
10130 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10131 else
10132 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10133 fi
10134
10135 ;;
10136 esac
10137 fi
10138 if test "$with_gnu_ld" = no; then
10139 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10140 hardcode_libdir_separator=:
10141
10142 case $host_cpu in
10143 hppa*64*|ia64*)
10144 hardcode_direct=no
10145 hardcode_shlibpath_var=no
10146 ;;
10147 *)
10148 hardcode_direct=yes
10149 hardcode_direct_absolute=yes
10150 export_dynamic_flag_spec='${wl}-E'
10151
10152 # hardcode_minus_L: Not really in the search PATH,
10153 # but as the default location of the library.
10154 hardcode_minus_L=yes
10155 ;;
10156 esac
10157 fi
10158 ;;
10159
10160 irix5* | irix6* | nonstopux*)
10161 if test "$GCC" = yes; then
10162 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'
10163 # Try to use the -exported_symbol ld option, if it does not
10164 # work, assume that -exports_file does not work either and
10165 # implicitly export all symbols.
10166 # This should be the same for all languages, so no per-tag cache variable.
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10168 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10169 if ${lt_cv_irix_exported_symbol+:} false; then :
10170 $as_echo_n "(cached) " >&6
10171 else
10172 save_LDFLAGS="$LDFLAGS"
10173 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10175 /* end confdefs.h. */
10176 int foo (void) { return 0; }
10177 _ACEOF
10178 if ac_fn_c_try_link "$LINENO"; then :
10179 lt_cv_irix_exported_symbol=yes
10180 else
10181 lt_cv_irix_exported_symbol=no
10182 fi
10183 rm -f core conftest.err conftest.$ac_objext \
10184 conftest$ac_exeext conftest.$ac_ext
10185 LDFLAGS="$save_LDFLAGS"
10186 fi
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10188 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10189 if test "$lt_cv_irix_exported_symbol" = yes; then
10190 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'
10191 fi
10192 else
10193 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'
10194 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'
10195 fi
10196 archive_cmds_need_lc='no'
10197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10198 hardcode_libdir_separator=:
10199 inherit_rpath=yes
10200 link_all_deplibs=yes
10201 ;;
10202
10203 netbsd*)
10204 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10205 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10206 else
10207 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10208 fi
10209 hardcode_libdir_flag_spec='-R$libdir'
10210 hardcode_direct=yes
10211 hardcode_shlibpath_var=no
10212 ;;
10213
10214 newsos6)
10215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10216 hardcode_direct=yes
10217 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10218 hardcode_libdir_separator=:
10219 hardcode_shlibpath_var=no
10220 ;;
10221
10222 *nto* | *qnx*)
10223 ;;
10224
10225 openbsd*)
10226 if test -f /usr/libexec/ld.so; then
10227 hardcode_direct=yes
10228 hardcode_shlibpath_var=no
10229 hardcode_direct_absolute=yes
10230 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10231 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10232 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10233 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10234 export_dynamic_flag_spec='${wl}-E'
10235 else
10236 case $host_os in
10237 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10238 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10239 hardcode_libdir_flag_spec='-R$libdir'
10240 ;;
10241 *)
10242 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10243 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10244 ;;
10245 esac
10246 fi
10247 else
10248 ld_shlibs=no
10249 fi
10250 ;;
10251
10252 os2*)
10253 hardcode_libdir_flag_spec='-L$libdir'
10254 hardcode_minus_L=yes
10255 allow_undefined_flag=unsupported
10256 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'
10257 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10258 ;;
10259
10260 osf3*)
10261 if test "$GCC" = yes; then
10262 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10263 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'
10264 else
10265 allow_undefined_flag=' -expect_unresolved \*'
10266 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'
10267 fi
10268 archive_cmds_need_lc='no'
10269 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10270 hardcode_libdir_separator=:
10271 ;;
10272
10273 osf4* | osf5*) # as osf3* with the addition of -msym flag
10274 if test "$GCC" = yes; then
10275 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10276 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'
10277 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10278 else
10279 allow_undefined_flag=' -expect_unresolved \*'
10280 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'
10281 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~
10282 $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'
10283
10284 # Both c and cxx compiler support -rpath directly
10285 hardcode_libdir_flag_spec='-rpath $libdir'
10286 fi
10287 archive_cmds_need_lc='no'
10288 hardcode_libdir_separator=:
10289 ;;
10290
10291 solaris*)
10292 no_undefined_flag=' -z defs'
10293 if test "$GCC" = yes; then
10294 wlarc='${wl}'
10295 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10296 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10297 $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'
10298 else
10299 case `$CC -V 2>&1` in
10300 *"Compilers 5.0"*)
10301 wlarc=''
10302 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10303 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10304 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10305 ;;
10306 *)
10307 wlarc='${wl}'
10308 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10309 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10310 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10311 ;;
10312 esac
10313 fi
10314 hardcode_libdir_flag_spec='-R$libdir'
10315 hardcode_shlibpath_var=no
10316 case $host_os in
10317 solaris2.[0-5] | solaris2.[0-5].*) ;;
10318 *)
10319 # The compiler driver will combine and reorder linker options,
10320 # but understands `-z linker_flag'. GCC discards it without `$wl',
10321 # but is careful enough not to reorder.
10322 # Supported since Solaris 2.6 (maybe 2.5.1?)
10323 if test "$GCC" = yes; then
10324 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10325 else
10326 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10327 fi
10328 ;;
10329 esac
10330 link_all_deplibs=yes
10331 ;;
10332
10333 sunos4*)
10334 if test "x$host_vendor" = xsequent; then
10335 # Use $CC to link under sequent, because it throws in some extra .o
10336 # files that make .init and .fini sections work.
10337 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10338 else
10339 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10340 fi
10341 hardcode_libdir_flag_spec='-L$libdir'
10342 hardcode_direct=yes
10343 hardcode_minus_L=yes
10344 hardcode_shlibpath_var=no
10345 ;;
10346
10347 sysv4)
10348 case $host_vendor in
10349 sni)
10350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10351 hardcode_direct=yes # is this really true???
10352 ;;
10353 siemens)
10354 ## LD is ld it makes a PLAMLIB
10355 ## CC just makes a GrossModule.
10356 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10357 reload_cmds='$CC -r -o $output$reload_objs'
10358 hardcode_direct=no
10359 ;;
10360 motorola)
10361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10362 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10363 ;;
10364 esac
10365 runpath_var='LD_RUN_PATH'
10366 hardcode_shlibpath_var=no
10367 ;;
10368
10369 sysv4.3*)
10370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10371 hardcode_shlibpath_var=no
10372 export_dynamic_flag_spec='-Bexport'
10373 ;;
10374
10375 sysv4*MP*)
10376 if test -d /usr/nec; then
10377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10378 hardcode_shlibpath_var=no
10379 runpath_var=LD_RUN_PATH
10380 hardcode_runpath_var=yes
10381 ld_shlibs=yes
10382 fi
10383 ;;
10384
10385 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10386 no_undefined_flag='${wl}-z,text'
10387 archive_cmds_need_lc=no
10388 hardcode_shlibpath_var=no
10389 runpath_var='LD_RUN_PATH'
10390
10391 if test "$GCC" = yes; then
10392 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10393 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10394 else
10395 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10396 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10397 fi
10398 ;;
10399
10400 sysv5* | sco3.2v5* | sco5v6*)
10401 # Note: We can NOT use -z defs as we might desire, because we do not
10402 # link with -lc, and that would cause any symbols used from libc to
10403 # always be unresolved, which means just about no library would
10404 # ever link correctly. If we're not using GNU ld we use -z text
10405 # though, which does catch some bad symbols but isn't as heavy-handed
10406 # as -z defs.
10407 no_undefined_flag='${wl}-z,text'
10408 allow_undefined_flag='${wl}-z,nodefs'
10409 archive_cmds_need_lc=no
10410 hardcode_shlibpath_var=no
10411 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10412 hardcode_libdir_separator=':'
10413 link_all_deplibs=yes
10414 export_dynamic_flag_spec='${wl}-Bexport'
10415 runpath_var='LD_RUN_PATH'
10416
10417 if test "$GCC" = yes; then
10418 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10419 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10420 else
10421 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10422 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10423 fi
10424 ;;
10425
10426 uts4*)
10427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10428 hardcode_libdir_flag_spec='-L$libdir'
10429 hardcode_shlibpath_var=no
10430 ;;
10431
10432 *)
10433 ld_shlibs=no
10434 ;;
10435 esac
10436
10437 if test x$host_vendor = xsni; then
10438 case $host in
10439 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10440 export_dynamic_flag_spec='${wl}-Blargedynsym'
10441 ;;
10442 esac
10443 fi
10444 fi
10445
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10447 $as_echo "$ld_shlibs" >&6; }
10448 test "$ld_shlibs" = no && can_build_shared=no
10449
10450 with_gnu_ld=$with_gnu_ld
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466 #
10467 # Do we need to explicitly link libc?
10468 #
10469 case "x$archive_cmds_need_lc" in
10470 x|xyes)
10471 # Assume -lc should be added
10472 archive_cmds_need_lc=yes
10473
10474 if test "$enable_shared" = yes && test "$GCC" = yes; then
10475 case $archive_cmds in
10476 *'~'*)
10477 # FIXME: we may have to deal with multi-command sequences.
10478 ;;
10479 '$CC '*)
10480 # Test whether the compiler implicitly links with -lc since on some
10481 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10482 # to ld, don't add -lc before -lgcc.
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10484 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10485 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10486 $as_echo_n "(cached) " >&6
10487 else
10488 $RM conftest*
10489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10490
10491 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10492 (eval $ac_compile) 2>&5
10493 ac_status=$?
10494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10495 test $ac_status = 0; } 2>conftest.err; then
10496 soname=conftest
10497 lib=conftest
10498 libobjs=conftest.$ac_objext
10499 deplibs=
10500 wl=$lt_prog_compiler_wl
10501 pic_flag=$lt_prog_compiler_pic
10502 compiler_flags=-v
10503 linker_flags=-v
10504 verstring=
10505 output_objdir=.
10506 libname=conftest
10507 lt_save_allow_undefined_flag=$allow_undefined_flag
10508 allow_undefined_flag=
10509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10510 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10511 ac_status=$?
10512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10513 test $ac_status = 0; }
10514 then
10515 lt_cv_archive_cmds_need_lc=no
10516 else
10517 lt_cv_archive_cmds_need_lc=yes
10518 fi
10519 allow_undefined_flag=$lt_save_allow_undefined_flag
10520 else
10521 cat conftest.err 1>&5
10522 fi
10523 $RM conftest*
10524
10525 fi
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10527 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10528 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10529 ;;
10530 esac
10531 fi
10532 ;;
10533 esac
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10687 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10688
10689 if test "$GCC" = yes; then
10690 case $host_os in
10691 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10692 *) lt_awk_arg="/^libraries:/" ;;
10693 esac
10694 case $host_os in
10695 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10696 *) lt_sed_strip_eq="s,=/,/,g" ;;
10697 esac
10698 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10699 case $lt_search_path_spec in
10700 *\;*)
10701 # if the path contains ";" then we assume it to be the separator
10702 # otherwise default to the standard path separator (i.e. ":") - it is
10703 # assumed that no part of a normal pathname contains ";" but that should
10704 # okay in the real world where ";" in dirpaths is itself problematic.
10705 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10706 ;;
10707 *)
10708 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10709 ;;
10710 esac
10711 # Ok, now we have the path, separated by spaces, we can step through it
10712 # and add multilib dir if necessary.
10713 lt_tmp_lt_search_path_spec=
10714 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10715 for lt_sys_path in $lt_search_path_spec; do
10716 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10717 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10718 else
10719 test -d "$lt_sys_path" && \
10720 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10721 fi
10722 done
10723 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10724 BEGIN {RS=" "; FS="/|\n";} {
10725 lt_foo="";
10726 lt_count=0;
10727 for (lt_i = NF; lt_i > 0; lt_i--) {
10728 if ($lt_i != "" && $lt_i != ".") {
10729 if ($lt_i == "..") {
10730 lt_count++;
10731 } else {
10732 if (lt_count == 0) {
10733 lt_foo="/" $lt_i lt_foo;
10734 } else {
10735 lt_count--;
10736 }
10737 }
10738 }
10739 }
10740 if (lt_foo != "") { lt_freq[lt_foo]++; }
10741 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10742 }'`
10743 # AWK program above erroneously prepends '/' to C:/dos/paths
10744 # for these hosts.
10745 case $host_os in
10746 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10747 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10748 esac
10749 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10750 else
10751 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10752 fi
10753 library_names_spec=
10754 libname_spec='lib$name'
10755 soname_spec=
10756 shrext_cmds=".so"
10757 postinstall_cmds=
10758 postuninstall_cmds=
10759 finish_cmds=
10760 finish_eval=
10761 shlibpath_var=
10762 shlibpath_overrides_runpath=unknown
10763 version_type=none
10764 dynamic_linker="$host_os ld.so"
10765 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10766 need_lib_prefix=unknown
10767 hardcode_into_libs=no
10768
10769 # when you set need_version to no, make sure it does not cause -set_version
10770 # flags to be left without arguments
10771 need_version=unknown
10772
10773 case $host_os in
10774 aix3*)
10775 version_type=linux # correct to gnu/linux during the next big refactor
10776 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10777 shlibpath_var=LIBPATH
10778
10779 # AIX 3 has no versioning support, so we append a major version to the name.
10780 soname_spec='${libname}${release}${shared_ext}$major'
10781 ;;
10782
10783 aix[4-9]*)
10784 version_type=linux # correct to gnu/linux during the next big refactor
10785 need_lib_prefix=no
10786 need_version=no
10787 hardcode_into_libs=yes
10788 if test "$host_cpu" = ia64; then
10789 # AIX 5 supports IA64
10790 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10791 shlibpath_var=LD_LIBRARY_PATH
10792 else
10793 # With GCC up to 2.95.x, collect2 would create an import file
10794 # for dependence libraries. The import file would start with
10795 # the line `#! .'. This would cause the generated library to
10796 # depend on `.', always an invalid library. This was fixed in
10797 # development snapshots of GCC prior to 3.0.
10798 case $host_os in
10799 aix4 | aix4.[01] | aix4.[01].*)
10800 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10801 echo ' yes '
10802 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10803 :
10804 else
10805 can_build_shared=no
10806 fi
10807 ;;
10808 esac
10809 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10810 # soname into executable. Probably we can add versioning support to
10811 # collect2, so additional links can be useful in future.
10812 if test "$aix_use_runtimelinking" = yes; then
10813 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10814 # instead of lib<name>.a to let people know that these are not
10815 # typical AIX shared libraries.
10816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10817 else
10818 # We preserve .a as extension for shared libraries through AIX4.2
10819 # and later when we are not doing run time linking.
10820 library_names_spec='${libname}${release}.a $libname.a'
10821 soname_spec='${libname}${release}${shared_ext}$major'
10822 fi
10823 shlibpath_var=LIBPATH
10824 fi
10825 ;;
10826
10827 amigaos*)
10828 case $host_cpu in
10829 powerpc)
10830 # Since July 2007 AmigaOS4 officially supports .so libraries.
10831 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10833 ;;
10834 m68k)
10835 library_names_spec='$libname.ixlibrary $libname.a'
10836 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10837 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'
10838 ;;
10839 esac
10840 ;;
10841
10842 beos*)
10843 library_names_spec='${libname}${shared_ext}'
10844 dynamic_linker="$host_os ld.so"
10845 shlibpath_var=LIBRARY_PATH
10846 ;;
10847
10848 bsdi[45]*)
10849 version_type=linux # correct to gnu/linux during the next big refactor
10850 need_version=no
10851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10852 soname_spec='${libname}${release}${shared_ext}$major'
10853 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10854 shlibpath_var=LD_LIBRARY_PATH
10855 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10856 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10857 # the default ld.so.conf also contains /usr/contrib/lib and
10858 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10859 # libtool to hard-code these into programs
10860 ;;
10861
10862 cygwin* | mingw* | pw32* | cegcc*)
10863 version_type=windows
10864 shrext_cmds=".dll"
10865 need_version=no
10866 need_lib_prefix=no
10867
10868 case $GCC,$cc_basename in
10869 yes,*)
10870 # gcc
10871 library_names_spec='$libname.dll.a'
10872 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10873 postinstall_cmds='base_file=`basename \${file}`~
10874 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10875 dldir=$destdir/`dirname \$dlpath`~
10876 test -d \$dldir || mkdir -p \$dldir~
10877 $install_prog $dir/$dlname \$dldir/$dlname~
10878 chmod a+x \$dldir/$dlname~
10879 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10880 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10881 fi'
10882 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10883 dlpath=$dir/\$dldll~
10884 $RM \$dlpath'
10885 shlibpath_overrides_runpath=yes
10886
10887 case $host_os in
10888 cygwin*)
10889 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10890 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10891
10892 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10893 ;;
10894 mingw* | cegcc*)
10895 # MinGW DLLs use traditional 'lib' prefix
10896 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10897 ;;
10898 pw32*)
10899 # pw32 DLLs use 'pw' prefix rather than 'lib'
10900 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10901 ;;
10902 esac
10903 dynamic_linker='Win32 ld.exe'
10904 ;;
10905
10906 *,cl*)
10907 # Native MSVC
10908 libname_spec='$name'
10909 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10910 library_names_spec='${libname}.dll.lib'
10911
10912 case $build_os in
10913 mingw*)
10914 sys_lib_search_path_spec=
10915 lt_save_ifs=$IFS
10916 IFS=';'
10917 for lt_path in $LIB
10918 do
10919 IFS=$lt_save_ifs
10920 # Let DOS variable expansion print the short 8.3 style file name.
10921 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10922 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10923 done
10924 IFS=$lt_save_ifs
10925 # Convert to MSYS style.
10926 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10927 ;;
10928 cygwin*)
10929 # Convert to unix form, then to dos form, then back to unix form
10930 # but this time dos style (no spaces!) so that the unix form looks
10931 # like /cygdrive/c/PROGRA~1:/cygdr...
10932 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10933 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10934 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10935 ;;
10936 *)
10937 sys_lib_search_path_spec="$LIB"
10938 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10939 # It is most probably a Windows format PATH.
10940 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10941 else
10942 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10943 fi
10944 # FIXME: find the short name or the path components, as spaces are
10945 # common. (e.g. "Program Files" -> "PROGRA~1")
10946 ;;
10947 esac
10948
10949 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10950 postinstall_cmds='base_file=`basename \${file}`~
10951 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10952 dldir=$destdir/`dirname \$dlpath`~
10953 test -d \$dldir || mkdir -p \$dldir~
10954 $install_prog $dir/$dlname \$dldir/$dlname'
10955 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10956 dlpath=$dir/\$dldll~
10957 $RM \$dlpath'
10958 shlibpath_overrides_runpath=yes
10959 dynamic_linker='Win32 link.exe'
10960 ;;
10961
10962 *)
10963 # Assume MSVC wrapper
10964 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10965 dynamic_linker='Win32 ld.exe'
10966 ;;
10967 esac
10968 # FIXME: first we should search . and the directory the executable is in
10969 shlibpath_var=PATH
10970 ;;
10971
10972 darwin* | rhapsody*)
10973 dynamic_linker="$host_os dyld"
10974 version_type=darwin
10975 need_lib_prefix=no
10976 need_version=no
10977 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10978 soname_spec='${libname}${release}${major}$shared_ext'
10979 shlibpath_overrides_runpath=yes
10980 shlibpath_var=DYLD_LIBRARY_PATH
10981 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10982
10983 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10984 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10985 ;;
10986
10987 dgux*)
10988 version_type=linux # correct to gnu/linux during the next big refactor
10989 need_lib_prefix=no
10990 need_version=no
10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10992 soname_spec='${libname}${release}${shared_ext}$major'
10993 shlibpath_var=LD_LIBRARY_PATH
10994 ;;
10995
10996 freebsd* | dragonfly*)
10997 # DragonFly does not have aout. When/if they implement a new
10998 # versioning mechanism, adjust this.
10999 if test -x /usr/bin/objformat; then
11000 objformat=`/usr/bin/objformat`
11001 else
11002 case $host_os in
11003 freebsd[23].*) objformat=aout ;;
11004 *) objformat=elf ;;
11005 esac
11006 fi
11007 version_type=freebsd-$objformat
11008 case $version_type in
11009 freebsd-elf*)
11010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11011 need_version=no
11012 need_lib_prefix=no
11013 ;;
11014 freebsd-*)
11015 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11016 need_version=yes
11017 ;;
11018 esac
11019 shlibpath_var=LD_LIBRARY_PATH
11020 case $host_os in
11021 freebsd2.*)
11022 shlibpath_overrides_runpath=yes
11023 ;;
11024 freebsd3.[01]* | freebsdelf3.[01]*)
11025 shlibpath_overrides_runpath=yes
11026 hardcode_into_libs=yes
11027 ;;
11028 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11029 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11030 shlibpath_overrides_runpath=no
11031 hardcode_into_libs=yes
11032 ;;
11033 *) # from 4.6 on, and DragonFly
11034 shlibpath_overrides_runpath=yes
11035 hardcode_into_libs=yes
11036 ;;
11037 esac
11038 ;;
11039
11040 gnu*)
11041 version_type=linux # correct to gnu/linux during the next big refactor
11042 need_lib_prefix=no
11043 need_version=no
11044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11045 soname_spec='${libname}${release}${shared_ext}$major'
11046 shlibpath_var=LD_LIBRARY_PATH
11047 shlibpath_overrides_runpath=no
11048 hardcode_into_libs=yes
11049 ;;
11050
11051 haiku*)
11052 version_type=linux # correct to gnu/linux during the next big refactor
11053 need_lib_prefix=no
11054 need_version=no
11055 dynamic_linker="$host_os runtime_loader"
11056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11057 soname_spec='${libname}${release}${shared_ext}$major'
11058 shlibpath_var=LIBRARY_PATH
11059 shlibpath_overrides_runpath=yes
11060 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11061 hardcode_into_libs=yes
11062 ;;
11063
11064 hpux9* | hpux10* | hpux11*)
11065 # Give a soname corresponding to the major version so that dld.sl refuses to
11066 # link against other versions.
11067 version_type=sunos
11068 need_lib_prefix=no
11069 need_version=no
11070 case $host_cpu in
11071 ia64*)
11072 shrext_cmds='.so'
11073 hardcode_into_libs=yes
11074 dynamic_linker="$host_os dld.so"
11075 shlibpath_var=LD_LIBRARY_PATH
11076 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11078 soname_spec='${libname}${release}${shared_ext}$major'
11079 if test "X$HPUX_IA64_MODE" = X32; then
11080 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11081 else
11082 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11083 fi
11084 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11085 ;;
11086 hppa*64*)
11087 shrext_cmds='.sl'
11088 hardcode_into_libs=yes
11089 dynamic_linker="$host_os dld.sl"
11090 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11091 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11093 soname_spec='${libname}${release}${shared_ext}$major'
11094 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11095 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11096 ;;
11097 *)
11098 shrext_cmds='.sl'
11099 dynamic_linker="$host_os dld.sl"
11100 shlibpath_var=SHLIB_PATH
11101 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11103 soname_spec='${libname}${release}${shared_ext}$major'
11104 ;;
11105 esac
11106 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11107 postinstall_cmds='chmod 555 $lib'
11108 # or fails outright, so override atomically:
11109 install_override_mode=555
11110 ;;
11111
11112 interix[3-9]*)
11113 version_type=linux # correct to gnu/linux during the next big refactor
11114 need_lib_prefix=no
11115 need_version=no
11116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11117 soname_spec='${libname}${release}${shared_ext}$major'
11118 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11119 shlibpath_var=LD_LIBRARY_PATH
11120 shlibpath_overrides_runpath=no
11121 hardcode_into_libs=yes
11122 ;;
11123
11124 irix5* | irix6* | nonstopux*)
11125 case $host_os in
11126 nonstopux*) version_type=nonstopux ;;
11127 *)
11128 if test "$lt_cv_prog_gnu_ld" = yes; then
11129 version_type=linux # correct to gnu/linux during the next big refactor
11130 else
11131 version_type=irix
11132 fi ;;
11133 esac
11134 need_lib_prefix=no
11135 need_version=no
11136 soname_spec='${libname}${release}${shared_ext}$major'
11137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11138 case $host_os in
11139 irix5* | nonstopux*)
11140 libsuff= shlibsuff=
11141 ;;
11142 *)
11143 case $LD in # libtool.m4 will add one of these switches to LD
11144 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11145 libsuff= shlibsuff= libmagic=32-bit;;
11146 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11147 libsuff=32 shlibsuff=N32 libmagic=N32;;
11148 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11149 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11150 *) libsuff= shlibsuff= libmagic=never-match;;
11151 esac
11152 ;;
11153 esac
11154 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11155 shlibpath_overrides_runpath=no
11156 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11157 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11158 hardcode_into_libs=yes
11159 ;;
11160
11161 # No shared lib support for Linux oldld, aout, or coff.
11162 linux*oldld* | linux*aout* | linux*coff*)
11163 dynamic_linker=no
11164 ;;
11165
11166 # This must be glibc/ELF.
11167 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11168 version_type=linux # correct to gnu/linux during the next big refactor
11169 need_lib_prefix=no
11170 need_version=no
11171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11172 soname_spec='${libname}${release}${shared_ext}$major'
11173 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11174 shlibpath_var=LD_LIBRARY_PATH
11175 shlibpath_overrides_runpath=no
11176
11177 # Some binutils ld are patched to set DT_RUNPATH
11178 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11179 $as_echo_n "(cached) " >&6
11180 else
11181 lt_cv_shlibpath_overrides_runpath=no
11182 save_LDFLAGS=$LDFLAGS
11183 save_libdir=$libdir
11184 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11185 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11187 /* end confdefs.h. */
11188
11189 int
11190 main ()
11191 {
11192
11193 ;
11194 return 0;
11195 }
11196 _ACEOF
11197 if ac_fn_c_try_link "$LINENO"; then :
11198 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11199 lt_cv_shlibpath_overrides_runpath=yes
11200 fi
11201 fi
11202 rm -f core conftest.err conftest.$ac_objext \
11203 conftest$ac_exeext conftest.$ac_ext
11204 LDFLAGS=$save_LDFLAGS
11205 libdir=$save_libdir
11206
11207 fi
11208
11209 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11210
11211 # This implies no fast_install, which is unacceptable.
11212 # Some rework will be needed to allow for fast_install
11213 # before this can be enabled.
11214 hardcode_into_libs=yes
11215
11216 # Add ABI-specific directories to the system library path.
11217 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11218
11219 # Append ld.so.conf contents to the search path
11220 if test -f /etc/ld.so.conf; then
11221 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' ' '`
11222 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11223
11224 fi
11225
11226 # We used to test for /lib/ld.so.1 and disable shared libraries on
11227 # powerpc, because MkLinux only supported shared libraries with the
11228 # GNU dynamic linker. Since this was broken with cross compilers,
11229 # most powerpc-linux boxes support dynamic linking these days and
11230 # people can always --disable-shared, the test was removed, and we
11231 # assume the GNU/Linux dynamic linker is in use.
11232 dynamic_linker='GNU/Linux ld.so'
11233 ;;
11234
11235 netbsd*)
11236 version_type=sunos
11237 need_lib_prefix=no
11238 need_version=no
11239 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11241 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11242 dynamic_linker='NetBSD (a.out) ld.so'
11243 else
11244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11245 soname_spec='${libname}${release}${shared_ext}$major'
11246 dynamic_linker='NetBSD ld.elf_so'
11247 fi
11248 shlibpath_var=LD_LIBRARY_PATH
11249 shlibpath_overrides_runpath=yes
11250 hardcode_into_libs=yes
11251 ;;
11252
11253 newsos6)
11254 version_type=linux # correct to gnu/linux during the next big refactor
11255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11256 shlibpath_var=LD_LIBRARY_PATH
11257 shlibpath_overrides_runpath=yes
11258 ;;
11259
11260 *nto* | *qnx*)
11261 version_type=qnx
11262 need_lib_prefix=no
11263 need_version=no
11264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11265 soname_spec='${libname}${release}${shared_ext}$major'
11266 shlibpath_var=LD_LIBRARY_PATH
11267 shlibpath_overrides_runpath=no
11268 hardcode_into_libs=yes
11269 dynamic_linker='ldqnx.so'
11270 ;;
11271
11272 openbsd*)
11273 version_type=sunos
11274 sys_lib_dlsearch_path_spec="/usr/lib"
11275 need_lib_prefix=no
11276 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11277 case $host_os in
11278 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11279 *) need_version=no ;;
11280 esac
11281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11283 shlibpath_var=LD_LIBRARY_PATH
11284 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11285 case $host_os in
11286 openbsd2.[89] | openbsd2.[89].*)
11287 shlibpath_overrides_runpath=no
11288 ;;
11289 *)
11290 shlibpath_overrides_runpath=yes
11291 ;;
11292 esac
11293 else
11294 shlibpath_overrides_runpath=yes
11295 fi
11296 ;;
11297
11298 os2*)
11299 libname_spec='$name'
11300 shrext_cmds=".dll"
11301 need_lib_prefix=no
11302 library_names_spec='$libname${shared_ext} $libname.a'
11303 dynamic_linker='OS/2 ld.exe'
11304 shlibpath_var=LIBPATH
11305 ;;
11306
11307 osf3* | osf4* | osf5*)
11308 version_type=osf
11309 need_lib_prefix=no
11310 need_version=no
11311 soname_spec='${libname}${release}${shared_ext}$major'
11312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11313 shlibpath_var=LD_LIBRARY_PATH
11314 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11315 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11316 ;;
11317
11318 rdos*)
11319 dynamic_linker=no
11320 ;;
11321
11322 solaris*)
11323 version_type=linux # correct to gnu/linux during the next big refactor
11324 need_lib_prefix=no
11325 need_version=no
11326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11327 soname_spec='${libname}${release}${shared_ext}$major'
11328 shlibpath_var=LD_LIBRARY_PATH
11329 shlibpath_overrides_runpath=yes
11330 hardcode_into_libs=yes
11331 # ldd complains unless libraries are executable
11332 postinstall_cmds='chmod +x $lib'
11333 ;;
11334
11335 sunos4*)
11336 version_type=sunos
11337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11338 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11339 shlibpath_var=LD_LIBRARY_PATH
11340 shlibpath_overrides_runpath=yes
11341 if test "$with_gnu_ld" = yes; then
11342 need_lib_prefix=no
11343 fi
11344 need_version=yes
11345 ;;
11346
11347 sysv4 | sysv4.3*)
11348 version_type=linux # correct to gnu/linux during the next big refactor
11349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11350 soname_spec='${libname}${release}${shared_ext}$major'
11351 shlibpath_var=LD_LIBRARY_PATH
11352 case $host_vendor in
11353 sni)
11354 shlibpath_overrides_runpath=no
11355 need_lib_prefix=no
11356 runpath_var=LD_RUN_PATH
11357 ;;
11358 siemens)
11359 need_lib_prefix=no
11360 ;;
11361 motorola)
11362 need_lib_prefix=no
11363 need_version=no
11364 shlibpath_overrides_runpath=no
11365 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11366 ;;
11367 esac
11368 ;;
11369
11370 sysv4*MP*)
11371 if test -d /usr/nec ;then
11372 version_type=linux # correct to gnu/linux during the next big refactor
11373 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11374 soname_spec='$libname${shared_ext}.$major'
11375 shlibpath_var=LD_LIBRARY_PATH
11376 fi
11377 ;;
11378
11379 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11380 version_type=freebsd-elf
11381 need_lib_prefix=no
11382 need_version=no
11383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11384 soname_spec='${libname}${release}${shared_ext}$major'
11385 shlibpath_var=LD_LIBRARY_PATH
11386 shlibpath_overrides_runpath=yes
11387 hardcode_into_libs=yes
11388 if test "$with_gnu_ld" = yes; then
11389 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11390 else
11391 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11392 case $host_os in
11393 sco3.2v5*)
11394 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11395 ;;
11396 esac
11397 fi
11398 sys_lib_dlsearch_path_spec='/usr/lib'
11399 ;;
11400
11401 tpf*)
11402 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11403 version_type=linux # correct to gnu/linux during the next big refactor
11404 need_lib_prefix=no
11405 need_version=no
11406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11407 shlibpath_var=LD_LIBRARY_PATH
11408 shlibpath_overrides_runpath=no
11409 hardcode_into_libs=yes
11410 ;;
11411
11412 uts4*)
11413 version_type=linux # correct to gnu/linux during the next big refactor
11414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11415 soname_spec='${libname}${release}${shared_ext}$major'
11416 shlibpath_var=LD_LIBRARY_PATH
11417 ;;
11418
11419 *)
11420 dynamic_linker=no
11421 ;;
11422 esac
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11424 $as_echo "$dynamic_linker" >&6; }
11425 test "$dynamic_linker" = no && can_build_shared=no
11426
11427 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11428 if test "$GCC" = yes; then
11429 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11430 fi
11431
11432 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11433 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11434 fi
11435 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11436 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11437 fi
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11531 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11532 hardcode_action=
11533 if test -n "$hardcode_libdir_flag_spec" ||
11534 test -n "$runpath_var" ||
11535 test "X$hardcode_automatic" = "Xyes" ; then
11536
11537 # We can hardcode non-existent directories.
11538 if test "$hardcode_direct" != no &&
11539 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11540 # have to relink, otherwise we might link with an installed library
11541 # when we should be linking with a yet-to-be-installed one
11542 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11543 test "$hardcode_minus_L" != no; then
11544 # Linking always hardcodes the temporary library directory.
11545 hardcode_action=relink
11546 else
11547 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11548 hardcode_action=immediate
11549 fi
11550 else
11551 # We cannot hardcode anything, or else we can only hardcode existing
11552 # directories.
11553 hardcode_action=unsupported
11554 fi
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11556 $as_echo "$hardcode_action" >&6; }
11557
11558 if test "$hardcode_action" = relink ||
11559 test "$inherit_rpath" = yes; then
11560 # Fast installation is not supported
11561 enable_fast_install=no
11562 elif test "$shlibpath_overrides_runpath" = yes ||
11563 test "$enable_shared" = no; then
11564 # Fast installation is not necessary
11565 enable_fast_install=needless
11566 fi
11567
11568
11569
11570
11571
11572
11573 if test "x$enable_dlopen" != xyes; then
11574 enable_dlopen=unknown
11575 enable_dlopen_self=unknown
11576 enable_dlopen_self_static=unknown
11577 else
11578 lt_cv_dlopen=no
11579 lt_cv_dlopen_libs=
11580
11581 case $host_os in
11582 beos*)
11583 lt_cv_dlopen="load_add_on"
11584 lt_cv_dlopen_libs=
11585 lt_cv_dlopen_self=yes
11586 ;;
11587
11588 mingw* | pw32* | cegcc*)
11589 lt_cv_dlopen="LoadLibrary"
11590 lt_cv_dlopen_libs=
11591 ;;
11592
11593 cygwin*)
11594 lt_cv_dlopen="dlopen"
11595 lt_cv_dlopen_libs=
11596 ;;
11597
11598 darwin*)
11599 # if libdl is installed we need to link against it
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11601 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11602 if ${ac_cv_lib_dl_dlopen+:} false; then :
11603 $as_echo_n "(cached) " >&6
11604 else
11605 ac_check_lib_save_LIBS=$LIBS
11606 LIBS="-ldl $LIBS"
11607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11608 /* end confdefs.h. */
11609
11610 /* Override any GCC internal prototype to avoid an error.
11611 Use char because int might match the return type of a GCC
11612 builtin and then its argument prototype would still apply. */
11613 #ifdef __cplusplus
11614 extern "C"
11615 #endif
11616 char dlopen ();
11617 int
11618 main ()
11619 {
11620 return dlopen ();
11621 ;
11622 return 0;
11623 }
11624 _ACEOF
11625 if ac_fn_c_try_link "$LINENO"; then :
11626 ac_cv_lib_dl_dlopen=yes
11627 else
11628 ac_cv_lib_dl_dlopen=no
11629 fi
11630 rm -f core conftest.err conftest.$ac_objext \
11631 conftest$ac_exeext conftest.$ac_ext
11632 LIBS=$ac_check_lib_save_LIBS
11633 fi
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11635 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11636 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11637 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11638 else
11639
11640 lt_cv_dlopen="dyld"
11641 lt_cv_dlopen_libs=
11642 lt_cv_dlopen_self=yes
11643
11644 fi
11645
11646 ;;
11647
11648 *)
11649 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11650 if test "x$ac_cv_func_shl_load" = xyes; then :
11651 lt_cv_dlopen="shl_load"
11652 else
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11654 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11655 if ${ac_cv_lib_dld_shl_load+:} false; then :
11656 $as_echo_n "(cached) " >&6
11657 else
11658 ac_check_lib_save_LIBS=$LIBS
11659 LIBS="-ldld $LIBS"
11660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11661 /* end confdefs.h. */
11662
11663 /* Override any GCC internal prototype to avoid an error.
11664 Use char because int might match the return type of a GCC
11665 builtin and then its argument prototype would still apply. */
11666 #ifdef __cplusplus
11667 extern "C"
11668 #endif
11669 char shl_load ();
11670 int
11671 main ()
11672 {
11673 return shl_load ();
11674 ;
11675 return 0;
11676 }
11677 _ACEOF
11678 if ac_fn_c_try_link "$LINENO"; then :
11679 ac_cv_lib_dld_shl_load=yes
11680 else
11681 ac_cv_lib_dld_shl_load=no
11682 fi
11683 rm -f core conftest.err conftest.$ac_objext \
11684 conftest$ac_exeext conftest.$ac_ext
11685 LIBS=$ac_check_lib_save_LIBS
11686 fi
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11688 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11689 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11690 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11691 else
11692 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11693 if test "x$ac_cv_func_dlopen" = xyes; then :
11694 lt_cv_dlopen="dlopen"
11695 else
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11697 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11698 if ${ac_cv_lib_dl_dlopen+:} false; then :
11699 $as_echo_n "(cached) " >&6
11700 else
11701 ac_check_lib_save_LIBS=$LIBS
11702 LIBS="-ldl $LIBS"
11703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11704 /* end confdefs.h. */
11705
11706 /* Override any GCC internal prototype to avoid an error.
11707 Use char because int might match the return type of a GCC
11708 builtin and then its argument prototype would still apply. */
11709 #ifdef __cplusplus
11710 extern "C"
11711 #endif
11712 char dlopen ();
11713 int
11714 main ()
11715 {
11716 return dlopen ();
11717 ;
11718 return 0;
11719 }
11720 _ACEOF
11721 if ac_fn_c_try_link "$LINENO"; then :
11722 ac_cv_lib_dl_dlopen=yes
11723 else
11724 ac_cv_lib_dl_dlopen=no
11725 fi
11726 rm -f core conftest.err conftest.$ac_objext \
11727 conftest$ac_exeext conftest.$ac_ext
11728 LIBS=$ac_check_lib_save_LIBS
11729 fi
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11731 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11732 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11733 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11734 else
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11736 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11737 if ${ac_cv_lib_svld_dlopen+:} false; then :
11738 $as_echo_n "(cached) " >&6
11739 else
11740 ac_check_lib_save_LIBS=$LIBS
11741 LIBS="-lsvld $LIBS"
11742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11743 /* end confdefs.h. */
11744
11745 /* Override any GCC internal prototype to avoid an error.
11746 Use char because int might match the return type of a GCC
11747 builtin and then its argument prototype would still apply. */
11748 #ifdef __cplusplus
11749 extern "C"
11750 #endif
11751 char dlopen ();
11752 int
11753 main ()
11754 {
11755 return dlopen ();
11756 ;
11757 return 0;
11758 }
11759 _ACEOF
11760 if ac_fn_c_try_link "$LINENO"; then :
11761 ac_cv_lib_svld_dlopen=yes
11762 else
11763 ac_cv_lib_svld_dlopen=no
11764 fi
11765 rm -f core conftest.err conftest.$ac_objext \
11766 conftest$ac_exeext conftest.$ac_ext
11767 LIBS=$ac_check_lib_save_LIBS
11768 fi
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11770 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11771 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11772 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11773 else
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11775 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11776 if ${ac_cv_lib_dld_dld_link+:} false; then :
11777 $as_echo_n "(cached) " >&6
11778 else
11779 ac_check_lib_save_LIBS=$LIBS
11780 LIBS="-ldld $LIBS"
11781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11782 /* end confdefs.h. */
11783
11784 /* Override any GCC internal prototype to avoid an error.
11785 Use char because int might match the return type of a GCC
11786 builtin and then its argument prototype would still apply. */
11787 #ifdef __cplusplus
11788 extern "C"
11789 #endif
11790 char dld_link ();
11791 int
11792 main ()
11793 {
11794 return dld_link ();
11795 ;
11796 return 0;
11797 }
11798 _ACEOF
11799 if ac_fn_c_try_link "$LINENO"; then :
11800 ac_cv_lib_dld_dld_link=yes
11801 else
11802 ac_cv_lib_dld_dld_link=no
11803 fi
11804 rm -f core conftest.err conftest.$ac_objext \
11805 conftest$ac_exeext conftest.$ac_ext
11806 LIBS=$ac_check_lib_save_LIBS
11807 fi
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11809 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11810 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11811 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11812 fi
11813
11814
11815 fi
11816
11817
11818 fi
11819
11820
11821 fi
11822
11823
11824 fi
11825
11826
11827 fi
11828
11829 ;;
11830 esac
11831
11832 if test "x$lt_cv_dlopen" != xno; then
11833 enable_dlopen=yes
11834 else
11835 enable_dlopen=no
11836 fi
11837
11838 case $lt_cv_dlopen in
11839 dlopen)
11840 save_CPPFLAGS="$CPPFLAGS"
11841 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11842
11843 save_LDFLAGS="$LDFLAGS"
11844 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11845
11846 save_LIBS="$LIBS"
11847 LIBS="$lt_cv_dlopen_libs $LIBS"
11848
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11850 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11851 if ${lt_cv_dlopen_self+:} false; then :
11852 $as_echo_n "(cached) " >&6
11853 else
11854 if test "$cross_compiling" = yes; then :
11855 lt_cv_dlopen_self=cross
11856 else
11857 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11858 lt_status=$lt_dlunknown
11859 cat > conftest.$ac_ext <<_LT_EOF
11860 #line $LINENO "configure"
11861 #include "confdefs.h"
11862
11863 #if HAVE_DLFCN_H
11864 #include <dlfcn.h>
11865 #endif
11866
11867 #include <stdio.h>
11868
11869 #ifdef RTLD_GLOBAL
11870 # define LT_DLGLOBAL RTLD_GLOBAL
11871 #else
11872 # ifdef DL_GLOBAL
11873 # define LT_DLGLOBAL DL_GLOBAL
11874 # else
11875 # define LT_DLGLOBAL 0
11876 # endif
11877 #endif
11878
11879 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11880 find out it does not work in some platform. */
11881 #ifndef LT_DLLAZY_OR_NOW
11882 # ifdef RTLD_LAZY
11883 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11884 # else
11885 # ifdef DL_LAZY
11886 # define LT_DLLAZY_OR_NOW DL_LAZY
11887 # else
11888 # ifdef RTLD_NOW
11889 # define LT_DLLAZY_OR_NOW RTLD_NOW
11890 # else
11891 # ifdef DL_NOW
11892 # define LT_DLLAZY_OR_NOW DL_NOW
11893 # else
11894 # define LT_DLLAZY_OR_NOW 0
11895 # endif
11896 # endif
11897 # endif
11898 # endif
11899 #endif
11900
11901 /* When -fvisbility=hidden is used, assume the code has been annotated
11902 correspondingly for the symbols needed. */
11903 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11904 int fnord () __attribute__((visibility("default")));
11905 #endif
11906
11907 int fnord () { return 42; }
11908 int main ()
11909 {
11910 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11911 int status = $lt_dlunknown;
11912
11913 if (self)
11914 {
11915 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11916 else
11917 {
11918 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11919 else puts (dlerror ());
11920 }
11921 /* dlclose (self); */
11922 }
11923 else
11924 puts (dlerror ());
11925
11926 return status;
11927 }
11928 _LT_EOF
11929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11930 (eval $ac_link) 2>&5
11931 ac_status=$?
11932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11933 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11934 (./conftest; exit; ) >&5 2>/dev/null
11935 lt_status=$?
11936 case x$lt_status in
11937 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11938 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11939 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11940 esac
11941 else :
11942 # compilation failed
11943 lt_cv_dlopen_self=no
11944 fi
11945 fi
11946 rm -fr conftest*
11947
11948
11949 fi
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11951 $as_echo "$lt_cv_dlopen_self" >&6; }
11952
11953 if test "x$lt_cv_dlopen_self" = xyes; then
11954 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11956 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11957 if ${lt_cv_dlopen_self_static+:} false; then :
11958 $as_echo_n "(cached) " >&6
11959 else
11960 if test "$cross_compiling" = yes; then :
11961 lt_cv_dlopen_self_static=cross
11962 else
11963 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11964 lt_status=$lt_dlunknown
11965 cat > conftest.$ac_ext <<_LT_EOF
11966 #line $LINENO "configure"
11967 #include "confdefs.h"
11968
11969 #if HAVE_DLFCN_H
11970 #include <dlfcn.h>
11971 #endif
11972
11973 #include <stdio.h>
11974
11975 #ifdef RTLD_GLOBAL
11976 # define LT_DLGLOBAL RTLD_GLOBAL
11977 #else
11978 # ifdef DL_GLOBAL
11979 # define LT_DLGLOBAL DL_GLOBAL
11980 # else
11981 # define LT_DLGLOBAL 0
11982 # endif
11983 #endif
11984
11985 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11986 find out it does not work in some platform. */
11987 #ifndef LT_DLLAZY_OR_NOW
11988 # ifdef RTLD_LAZY
11989 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11990 # else
11991 # ifdef DL_LAZY
11992 # define LT_DLLAZY_OR_NOW DL_LAZY
11993 # else
11994 # ifdef RTLD_NOW
11995 # define LT_DLLAZY_OR_NOW RTLD_NOW
11996 # else
11997 # ifdef DL_NOW
11998 # define LT_DLLAZY_OR_NOW DL_NOW
11999 # else
12000 # define LT_DLLAZY_OR_NOW 0
12001 # endif
12002 # endif
12003 # endif
12004 # endif
12005 #endif
12006
12007 /* When -fvisbility=hidden is used, assume the code has been annotated
12008 correspondingly for the symbols needed. */
12009 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12010 int fnord () __attribute__((visibility("default")));
12011 #endif
12012
12013 int fnord () { return 42; }
12014 int main ()
12015 {
12016 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12017 int status = $lt_dlunknown;
12018
12019 if (self)
12020 {
12021 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12022 else
12023 {
12024 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12025 else puts (dlerror ());
12026 }
12027 /* dlclose (self); */
12028 }
12029 else
12030 puts (dlerror ());
12031
12032 return status;
12033 }
12034 _LT_EOF
12035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12036 (eval $ac_link) 2>&5
12037 ac_status=$?
12038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12039 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12040 (./conftest; exit; ) >&5 2>/dev/null
12041 lt_status=$?
12042 case x$lt_status in
12043 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12044 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12045 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12046 esac
12047 else :
12048 # compilation failed
12049 lt_cv_dlopen_self_static=no
12050 fi
12051 fi
12052 rm -fr conftest*
12053
12054
12055 fi
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12057 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12058 fi
12059
12060 CPPFLAGS="$save_CPPFLAGS"
12061 LDFLAGS="$save_LDFLAGS"
12062 LIBS="$save_LIBS"
12063 ;;
12064 esac
12065
12066 case $lt_cv_dlopen_self in
12067 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12068 *) enable_dlopen_self=unknown ;;
12069 esac
12070
12071 case $lt_cv_dlopen_self_static in
12072 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12073 *) enable_dlopen_self_static=unknown ;;
12074 esac
12075 fi
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093 striplib=
12094 old_striplib=
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12096 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12097 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12098 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12099 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12101 $as_echo "yes" >&6; }
12102 else
12103 # FIXME - insert some real tests, host_os isn't really good enough
12104 case $host_os in
12105 darwin*)
12106 if test -n "$STRIP" ; then
12107 striplib="$STRIP -x"
12108 old_striplib="$STRIP -S"
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12110 $as_echo "yes" >&6; }
12111 else
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12113 $as_echo "no" >&6; }
12114 fi
12115 ;;
12116 *)
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12118 $as_echo "no" >&6; }
12119 ;;
12120 esac
12121 fi
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134 # Report which library types will actually be built
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12136 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12138 $as_echo "$can_build_shared" >&6; }
12139
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12141 $as_echo_n "checking whether to build shared libraries... " >&6; }
12142 test "$can_build_shared" = "no" && enable_shared=no
12143
12144 # On AIX, shared libraries and static libraries use the same namespace, and
12145 # are all built from PIC.
12146 case $host_os in
12147 aix3*)
12148 test "$enable_shared" = yes && enable_static=no
12149 if test -n "$RANLIB"; then
12150 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12151 postinstall_cmds='$RANLIB $lib'
12152 fi
12153 ;;
12154
12155 aix[4-9]*)
12156 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12157 test "$enable_shared" = yes && enable_static=no
12158 fi
12159 ;;
12160 esac
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12162 $as_echo "$enable_shared" >&6; }
12163
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12165 $as_echo_n "checking whether to build static libraries... " >&6; }
12166 # Make sure either enable_shared or enable_static is yes.
12167 test "$enable_shared" = yes || enable_static=yes
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12169 $as_echo "$enable_static" >&6; }
12170
12171
12172
12173
12174 fi
12175 ac_ext=c
12176 ac_cpp='$CPP $CPPFLAGS'
12177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12180
12181 CC="$lt_save_CC"
12182
12183 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12184 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12185 (test "X$CXX" != "Xg++"))) ; then
12186 ac_ext=cpp
12187 ac_cpp='$CXXCPP $CPPFLAGS'
12188 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12189 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12190 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12192 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12193 if test -z "$CXXCPP"; then
12194 if ${ac_cv_prog_CXXCPP+:} false; then :
12195 $as_echo_n "(cached) " >&6
12196 else
12197 # Double quotes because CXXCPP needs to be expanded
12198 for CXXCPP in "$CXX -E" "/lib/cpp"
12199 do
12200 ac_preproc_ok=false
12201 for ac_cxx_preproc_warn_flag in '' yes
12202 do
12203 # Use a header file that comes with gcc, so configuring glibc
12204 # with a fresh cross-compiler works.
12205 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12206 # <limits.h> exists even on freestanding compilers.
12207 # On the NeXT, cc -E runs the code through the compiler's parser,
12208 # not just through cpp. "Syntax error" is here to catch this case.
12209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12210 /* end confdefs.h. */
12211 #ifdef __STDC__
12212 # include <limits.h>
12213 #else
12214 # include <assert.h>
12215 #endif
12216 Syntax error
12217 _ACEOF
12218 if ac_fn_cxx_try_cpp "$LINENO"; then :
12219
12220 else
12221 # Broken: fails on valid input.
12222 continue
12223 fi
12224 rm -f conftest.err conftest.i conftest.$ac_ext
12225
12226 # OK, works on sane cases. Now check whether nonexistent headers
12227 # can be detected and how.
12228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12229 /* end confdefs.h. */
12230 #include <ac_nonexistent.h>
12231 _ACEOF
12232 if ac_fn_cxx_try_cpp "$LINENO"; then :
12233 # Broken: success on invalid input.
12234 continue
12235 else
12236 # Passes both tests.
12237 ac_preproc_ok=:
12238 break
12239 fi
12240 rm -f conftest.err conftest.i conftest.$ac_ext
12241
12242 done
12243 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12244 rm -f conftest.i conftest.err conftest.$ac_ext
12245 if $ac_preproc_ok; then :
12246 break
12247 fi
12248
12249 done
12250 ac_cv_prog_CXXCPP=$CXXCPP
12251
12252 fi
12253 CXXCPP=$ac_cv_prog_CXXCPP
12254 else
12255 ac_cv_prog_CXXCPP=$CXXCPP
12256 fi
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12258 $as_echo "$CXXCPP" >&6; }
12259 ac_preproc_ok=false
12260 for ac_cxx_preproc_warn_flag in '' yes
12261 do
12262 # Use a header file that comes with gcc, so configuring glibc
12263 # with a fresh cross-compiler works.
12264 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12265 # <limits.h> exists even on freestanding compilers.
12266 # On the NeXT, cc -E runs the code through the compiler's parser,
12267 # not just through cpp. "Syntax error" is here to catch this case.
12268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12269 /* end confdefs.h. */
12270 #ifdef __STDC__
12271 # include <limits.h>
12272 #else
12273 # include <assert.h>
12274 #endif
12275 Syntax error
12276 _ACEOF
12277 if ac_fn_cxx_try_cpp "$LINENO"; then :
12278
12279 else
12280 # Broken: fails on valid input.
12281 continue
12282 fi
12283 rm -f conftest.err conftest.i conftest.$ac_ext
12284
12285 # OK, works on sane cases. Now check whether nonexistent headers
12286 # can be detected and how.
12287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12288 /* end confdefs.h. */
12289 #include <ac_nonexistent.h>
12290 _ACEOF
12291 if ac_fn_cxx_try_cpp "$LINENO"; then :
12292 # Broken: success on invalid input.
12293 continue
12294 else
12295 # Passes both tests.
12296 ac_preproc_ok=:
12297 break
12298 fi
12299 rm -f conftest.err conftest.i conftest.$ac_ext
12300
12301 done
12302 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12303 rm -f conftest.i conftest.err conftest.$ac_ext
12304 if $ac_preproc_ok; then :
12305
12306 else
12307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12309 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12310 See \`config.log' for more details" "$LINENO" 5; }
12311 fi
12312
12313 ac_ext=c
12314 ac_cpp='$CPP $CPPFLAGS'
12315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12318
12319 else
12320 _lt_caught_CXX_error=yes
12321 fi
12322
12323 ac_ext=cpp
12324 ac_cpp='$CXXCPP $CPPFLAGS'
12325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12328
12329 archive_cmds_need_lc_CXX=no
12330 allow_undefined_flag_CXX=
12331 always_export_symbols_CXX=no
12332 archive_expsym_cmds_CXX=
12333 compiler_needs_object_CXX=no
12334 export_dynamic_flag_spec_CXX=
12335 hardcode_direct_CXX=no
12336 hardcode_direct_absolute_CXX=no
12337 hardcode_libdir_flag_spec_CXX=
12338 hardcode_libdir_separator_CXX=
12339 hardcode_minus_L_CXX=no
12340 hardcode_shlibpath_var_CXX=unsupported
12341 hardcode_automatic_CXX=no
12342 inherit_rpath_CXX=no
12343 module_cmds_CXX=
12344 module_expsym_cmds_CXX=
12345 link_all_deplibs_CXX=unknown
12346 old_archive_cmds_CXX=$old_archive_cmds
12347 reload_flag_CXX=$reload_flag
12348 reload_cmds_CXX=$reload_cmds
12349 no_undefined_flag_CXX=
12350 whole_archive_flag_spec_CXX=
12351 enable_shared_with_static_runtimes_CXX=no
12352
12353 # Source file extension for C++ test sources.
12354 ac_ext=cpp
12355
12356 # Object file extension for compiled C++ test sources.
12357 objext=o
12358 objext_CXX=$objext
12359
12360 # No sense in running all these tests if we already determined that
12361 # the CXX compiler isn't working. Some variables (like enable_shared)
12362 # are currently assumed to apply to all compilers on this platform,
12363 # and will be corrupted by setting them based on a non-working compiler.
12364 if test "$_lt_caught_CXX_error" != yes; then
12365 # Code to be used in simple compile tests
12366 lt_simple_compile_test_code="int some_variable = 0;"
12367
12368 # Code to be used in simple link tests
12369 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12370
12371 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12372
12373
12374
12375
12376
12377
12378 # If no C compiler was specified, use CC.
12379 LTCC=${LTCC-"$CC"}
12380
12381 # If no C compiler flags were specified, use CFLAGS.
12382 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12383
12384 # Allow CC to be a program name with arguments.
12385 compiler=$CC
12386
12387
12388 # save warnings/boilerplate of simple test code
12389 ac_outfile=conftest.$ac_objext
12390 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12391 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12392 _lt_compiler_boilerplate=`cat conftest.err`
12393 $RM conftest*
12394
12395 ac_outfile=conftest.$ac_objext
12396 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12397 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12398 _lt_linker_boilerplate=`cat conftest.err`
12399 $RM -r conftest*
12400
12401
12402 # Allow CC to be a program name with arguments.
12403 lt_save_CC=$CC
12404 lt_save_CFLAGS=$CFLAGS
12405 lt_save_LD=$LD
12406 lt_save_GCC=$GCC
12407 GCC=$GXX
12408 lt_save_with_gnu_ld=$with_gnu_ld
12409 lt_save_path_LD=$lt_cv_path_LD
12410 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12411 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12412 else
12413 $as_unset lt_cv_prog_gnu_ld
12414 fi
12415 if test -n "${lt_cv_path_LDCXX+set}"; then
12416 lt_cv_path_LD=$lt_cv_path_LDCXX
12417 else
12418 $as_unset lt_cv_path_LD
12419 fi
12420 test -z "${LDCXX+set}" || LD=$LDCXX
12421 CC=${CXX-"c++"}
12422 CFLAGS=$CXXFLAGS
12423 compiler=$CC
12424 compiler_CXX=$CC
12425 for cc_temp in $compiler""; do
12426 case $cc_temp in
12427 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12428 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12429 \-*) ;;
12430 *) break;;
12431 esac
12432 done
12433 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12434
12435
12436 if test -n "$compiler"; then
12437 # We don't want -fno-exception when compiling C++ code, so set the
12438 # no_builtin_flag separately
12439 if test "$GXX" = yes; then
12440 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12441 else
12442 lt_prog_compiler_no_builtin_flag_CXX=
12443 fi
12444
12445 if test "$GXX" = yes; then
12446 # Set up default GNU C++ configuration
12447
12448
12449
12450 # Check whether --with-gnu-ld was given.
12451 if test "${with_gnu_ld+set}" = set; then :
12452 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12453 else
12454 with_gnu_ld=no
12455 fi
12456
12457 ac_prog=ld
12458 if test "$GCC" = yes; then
12459 # Check if gcc -print-prog-name=ld gives a path.
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12461 $as_echo_n "checking for ld used by $CC... " >&6; }
12462 case $host in
12463 *-*-mingw*)
12464 # gcc leaves a trailing carriage return which upsets mingw
12465 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12466 *)
12467 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12468 esac
12469 case $ac_prog in
12470 # Accept absolute paths.
12471 [\\/]* | ?:[\\/]*)
12472 re_direlt='/[^/][^/]*/\.\./'
12473 # Canonicalize the pathname of ld
12474 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12475 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12476 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12477 done
12478 test -z "$LD" && LD="$ac_prog"
12479 ;;
12480 "")
12481 # If it fails, then pretend we aren't using GCC.
12482 ac_prog=ld
12483 ;;
12484 *)
12485 # If it is relative, then search for the first ld in PATH.
12486 with_gnu_ld=unknown
12487 ;;
12488 esac
12489 elif test "$with_gnu_ld" = yes; then
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12491 $as_echo_n "checking for GNU ld... " >&6; }
12492 else
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12494 $as_echo_n "checking for non-GNU ld... " >&6; }
12495 fi
12496 if ${lt_cv_path_LD+:} false; then :
12497 $as_echo_n "(cached) " >&6
12498 else
12499 if test -z "$LD"; then
12500 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12501 for ac_dir in $PATH; do
12502 IFS="$lt_save_ifs"
12503 test -z "$ac_dir" && ac_dir=.
12504 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12505 lt_cv_path_LD="$ac_dir/$ac_prog"
12506 # Check to see if the program is GNU ld. I'd rather use --version,
12507 # but apparently some variants of GNU ld only accept -v.
12508 # Break only if it was the GNU/non-GNU ld that we prefer.
12509 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12510 *GNU* | *'with BFD'*)
12511 test "$with_gnu_ld" != no && break
12512 ;;
12513 *)
12514 test "$with_gnu_ld" != yes && break
12515 ;;
12516 esac
12517 fi
12518 done
12519 IFS="$lt_save_ifs"
12520 else
12521 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12522 fi
12523 fi
12524
12525 LD="$lt_cv_path_LD"
12526 if test -n "$LD"; then
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12528 $as_echo "$LD" >&6; }
12529 else
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12531 $as_echo "no" >&6; }
12532 fi
12533 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12535 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12536 if ${lt_cv_prog_gnu_ld+:} false; then :
12537 $as_echo_n "(cached) " >&6
12538 else
12539 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12540 case `$LD -v 2>&1 </dev/null` in
12541 *GNU* | *'with BFD'*)
12542 lt_cv_prog_gnu_ld=yes
12543 ;;
12544 *)
12545 lt_cv_prog_gnu_ld=no
12546 ;;
12547 esac
12548 fi
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12550 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12551 with_gnu_ld=$lt_cv_prog_gnu_ld
12552
12553
12554
12555
12556
12557
12558
12559 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12560 # archiving commands below assume that GNU ld is being used.
12561 if test "$with_gnu_ld" = yes; then
12562 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12563 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'
12564
12565 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12566 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12567
12568 # If archive_cmds runs LD, not CC, wlarc should be empty
12569 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12570 # investigate it a little bit more. (MM)
12571 wlarc='${wl}'
12572
12573 # ancient GNU ld didn't support --whole-archive et. al.
12574 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12575 $GREP 'no-whole-archive' > /dev/null; then
12576 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12577 else
12578 whole_archive_flag_spec_CXX=
12579 fi
12580 else
12581 with_gnu_ld=no
12582 wlarc=
12583
12584 # A generic and very simple default shared library creation
12585 # command for GNU C++ for the case where it uses the native
12586 # linker, instead of GNU ld. If possible, this setting should
12587 # overridden to take advantage of the native linker features on
12588 # the platform it is being used on.
12589 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12590 fi
12591
12592 # Commands to make compiler produce verbose output that lists
12593 # what "hidden" libraries, object files and flags are used when
12594 # linking a shared library.
12595 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12596
12597 else
12598 GXX=no
12599 with_gnu_ld=no
12600 wlarc=
12601 fi
12602
12603 # PORTME: fill in a description of your system's C++ link characteristics
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12605 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12606 ld_shlibs_CXX=yes
12607 case $host_os in
12608 aix3*)
12609 # FIXME: insert proper C++ library support
12610 ld_shlibs_CXX=no
12611 ;;
12612 aix[4-9]*)
12613 if test "$host_cpu" = ia64; then
12614 # On IA64, the linker does run time linking by default, so we don't
12615 # have to do anything special.
12616 aix_use_runtimelinking=no
12617 exp_sym_flag='-Bexport'
12618 no_entry_flag=""
12619 else
12620 aix_use_runtimelinking=no
12621
12622 # Test if we are trying to use run time linking or normal
12623 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12624 # need to do runtime linking.
12625 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12626 for ld_flag in $LDFLAGS; do
12627 case $ld_flag in
12628 *-brtl*)
12629 aix_use_runtimelinking=yes
12630 break
12631 ;;
12632 esac
12633 done
12634 ;;
12635 esac
12636
12637 exp_sym_flag='-bexport'
12638 no_entry_flag='-bnoentry'
12639 fi
12640
12641 # When large executables or shared objects are built, AIX ld can
12642 # have problems creating the table of contents. If linking a library
12643 # or program results in "error TOC overflow" add -mminimal-toc to
12644 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12645 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12646
12647 archive_cmds_CXX=''
12648 hardcode_direct_CXX=yes
12649 hardcode_direct_absolute_CXX=yes
12650 hardcode_libdir_separator_CXX=':'
12651 link_all_deplibs_CXX=yes
12652 file_list_spec_CXX='${wl}-f,'
12653
12654 if test "$GXX" = yes; then
12655 case $host_os in aix4.[012]|aix4.[012].*)
12656 # We only want to do this on AIX 4.2 and lower, the check
12657 # below for broken collect2 doesn't work under 4.3+
12658 collect2name=`${CC} -print-prog-name=collect2`
12659 if test -f "$collect2name" &&
12660 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12661 then
12662 # We have reworked collect2
12663 :
12664 else
12665 # We have old collect2
12666 hardcode_direct_CXX=unsupported
12667 # It fails to find uninstalled libraries when the uninstalled
12668 # path is not listed in the libpath. Setting hardcode_minus_L
12669 # to unsupported forces relinking
12670 hardcode_minus_L_CXX=yes
12671 hardcode_libdir_flag_spec_CXX='-L$libdir'
12672 hardcode_libdir_separator_CXX=
12673 fi
12674 esac
12675 shared_flag='-shared'
12676 if test "$aix_use_runtimelinking" = yes; then
12677 shared_flag="$shared_flag "'${wl}-G'
12678 fi
12679 else
12680 # not using gcc
12681 if test "$host_cpu" = ia64; then
12682 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12683 # chokes on -Wl,-G. The following line is correct:
12684 shared_flag='-G'
12685 else
12686 if test "$aix_use_runtimelinking" = yes; then
12687 shared_flag='${wl}-G'
12688 else
12689 shared_flag='${wl}-bM:SRE'
12690 fi
12691 fi
12692 fi
12693
12694 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12695 # It seems that -bexpall does not export symbols beginning with
12696 # underscore (_), so it is better to generate a list of symbols to
12697 # export.
12698 always_export_symbols_CXX=yes
12699 if test "$aix_use_runtimelinking" = yes; then
12700 # Warning - without using the other runtime loading flags (-brtl),
12701 # -berok will link without error, but may produce a broken library.
12702 allow_undefined_flag_CXX='-berok'
12703 # Determine the default libpath from the value encoded in an empty
12704 # executable.
12705 if test "${lt_cv_aix_libpath+set}" = set; then
12706 aix_libpath=$lt_cv_aix_libpath
12707 else
12708 if ${lt_cv_aix_libpath__CXX+:} false; then :
12709 $as_echo_n "(cached) " >&6
12710 else
12711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12712 /* end confdefs.h. */
12713
12714 int
12715 main ()
12716 {
12717
12718 ;
12719 return 0;
12720 }
12721 _ACEOF
12722 if ac_fn_cxx_try_link "$LINENO"; then :
12723
12724 lt_aix_libpath_sed='
12725 /Import File Strings/,/^$/ {
12726 /^0/ {
12727 s/^0 *\([^ ]*\) *$/\1/
12728 p
12729 }
12730 }'
12731 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12732 # Check for a 64-bit object if we didn't find anything.
12733 if test -z "$lt_cv_aix_libpath__CXX"; then
12734 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12735 fi
12736 fi
12737 rm -f core conftest.err conftest.$ac_objext \
12738 conftest$ac_exeext conftest.$ac_ext
12739 if test -z "$lt_cv_aix_libpath__CXX"; then
12740 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12741 fi
12742
12743 fi
12744
12745 aix_libpath=$lt_cv_aix_libpath__CXX
12746 fi
12747
12748 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12749
12750 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"
12751 else
12752 if test "$host_cpu" = ia64; then
12753 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12754 allow_undefined_flag_CXX="-z nodefs"
12755 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"
12756 else
12757 # Determine the default libpath from the value encoded in an
12758 # empty executable.
12759 if test "${lt_cv_aix_libpath+set}" = set; then
12760 aix_libpath=$lt_cv_aix_libpath
12761 else
12762 if ${lt_cv_aix_libpath__CXX+:} false; then :
12763 $as_echo_n "(cached) " >&6
12764 else
12765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12766 /* end confdefs.h. */
12767
12768 int
12769 main ()
12770 {
12771
12772 ;
12773 return 0;
12774 }
12775 _ACEOF
12776 if ac_fn_cxx_try_link "$LINENO"; then :
12777
12778 lt_aix_libpath_sed='
12779 /Import File Strings/,/^$/ {
12780 /^0/ {
12781 s/^0 *\([^ ]*\) *$/\1/
12782 p
12783 }
12784 }'
12785 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12786 # Check for a 64-bit object if we didn't find anything.
12787 if test -z "$lt_cv_aix_libpath__CXX"; then
12788 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12789 fi
12790 fi
12791 rm -f core conftest.err conftest.$ac_objext \
12792 conftest$ac_exeext conftest.$ac_ext
12793 if test -z "$lt_cv_aix_libpath__CXX"; then
12794 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12795 fi
12796
12797 fi
12798
12799 aix_libpath=$lt_cv_aix_libpath__CXX
12800 fi
12801
12802 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12803 # Warning - without using the other run time loading flags,
12804 # -berok will link without error, but may produce a broken library.
12805 no_undefined_flag_CXX=' ${wl}-bernotok'
12806 allow_undefined_flag_CXX=' ${wl}-berok'
12807 if test "$with_gnu_ld" = yes; then
12808 # We only use this code for GNU lds that support --whole-archive.
12809 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12810 else
12811 # Exported symbols can be pulled into shared objects from archives
12812 whole_archive_flag_spec_CXX='$convenience'
12813 fi
12814 archive_cmds_need_lc_CXX=yes
12815 # This is similar to how AIX traditionally builds its shared
12816 # libraries.
12817 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'
12818 fi
12819 fi
12820 ;;
12821
12822 beos*)
12823 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12824 allow_undefined_flag_CXX=unsupported
12825 # Joseph Beckenbach <[email protected]> says some releases of gcc
12826 # support --undefined. This deserves some investigation. FIXME
12827 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12828 else
12829 ld_shlibs_CXX=no
12830 fi
12831 ;;
12832
12833 chorus*)
12834 case $cc_basename in
12835 *)
12836 # FIXME: insert proper C++ library support
12837 ld_shlibs_CXX=no
12838 ;;
12839 esac
12840 ;;
12841
12842 cygwin* | mingw* | pw32* | cegcc*)
12843 case $GXX,$cc_basename in
12844 ,cl* | no,cl*)
12845 # Native MSVC
12846 # hardcode_libdir_flag_spec is actually meaningless, as there is
12847 # no search path for DLLs.
12848 hardcode_libdir_flag_spec_CXX=' '
12849 allow_undefined_flag_CXX=unsupported
12850 always_export_symbols_CXX=yes
12851 file_list_spec_CXX='@'
12852 # Tell ltmain to make .lib files, not .a files.
12853 libext=lib
12854 # Tell ltmain to make .dll files, not .so files.
12855 shrext_cmds=".dll"
12856 # FIXME: Setting linknames here is a bad hack.
12857 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12858 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12859 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12860 else
12861 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12862 fi~
12863 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12864 linknames='
12865 # The linker will not automatically build a static lib if we build a DLL.
12866 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12867 enable_shared_with_static_runtimes_CXX=yes
12868 # Don't use ranlib
12869 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12870 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12871 lt_tool_outputfile="@TOOL_OUTPUT@"~
12872 case $lt_outputfile in
12873 *.exe|*.EXE) ;;
12874 *)
12875 lt_outputfile="$lt_outputfile.exe"
12876 lt_tool_outputfile="$lt_tool_outputfile.exe"
12877 ;;
12878 esac~
12879 func_to_tool_file "$lt_outputfile"~
12880 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12881 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12882 $RM "$lt_outputfile.manifest";
12883 fi'
12884 ;;
12885 *)
12886 # g++
12887 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12888 # as there is no search path for DLLs.
12889 hardcode_libdir_flag_spec_CXX='-L$libdir'
12890 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12891 allow_undefined_flag_CXX=unsupported
12892 always_export_symbols_CXX=no
12893 enable_shared_with_static_runtimes_CXX=yes
12894
12895 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12896 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'
12897 # If the export-symbols file already is a .def file (1st line
12898 # is EXPORTS), use it as is; otherwise, prepend...
12899 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12900 cp $export_symbols $output_objdir/$soname.def;
12901 else
12902 echo EXPORTS > $output_objdir/$soname.def;
12903 cat $export_symbols >> $output_objdir/$soname.def;
12904 fi~
12905 $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'
12906 else
12907 ld_shlibs_CXX=no
12908 fi
12909 ;;
12910 esac
12911 ;;
12912 darwin* | rhapsody*)
12913
12914
12915 archive_cmds_need_lc_CXX=no
12916 hardcode_direct_CXX=no
12917 hardcode_automatic_CXX=yes
12918 hardcode_shlibpath_var_CXX=unsupported
12919 if test "$lt_cv_ld_force_load" = "yes"; then
12920 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\"`'
12921
12922 else
12923 whole_archive_flag_spec_CXX=''
12924 fi
12925 link_all_deplibs_CXX=yes
12926 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12927 case $cc_basename in
12928 ifort*) _lt_dar_can_shared=yes ;;
12929 *) _lt_dar_can_shared=$GCC ;;
12930 esac
12931 if test "$_lt_dar_can_shared" = "yes"; then
12932 output_verbose_link_cmd=func_echo_all
12933 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}"
12934 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12935 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}"
12936 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}"
12937 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12938 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}"
12939 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}"
12940 fi
12941
12942 else
12943 ld_shlibs_CXX=no
12944 fi
12945
12946 ;;
12947
12948 dgux*)
12949 case $cc_basename in
12950 ec++*)
12951 # FIXME: insert proper C++ library support
12952 ld_shlibs_CXX=no
12953 ;;
12954 ghcx*)
12955 # Green Hills C++ Compiler
12956 # FIXME: insert proper C++ library support
12957 ld_shlibs_CXX=no
12958 ;;
12959 *)
12960 # FIXME: insert proper C++ library support
12961 ld_shlibs_CXX=no
12962 ;;
12963 esac
12964 ;;
12965
12966 freebsd2.*)
12967 # C++ shared libraries reported to be fairly broken before
12968 # switch to ELF
12969 ld_shlibs_CXX=no
12970 ;;
12971
12972 freebsd-elf*)
12973 archive_cmds_need_lc_CXX=no
12974 ;;
12975
12976 freebsd* | dragonfly*)
12977 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12978 # conventions
12979 ld_shlibs_CXX=yes
12980 ;;
12981
12982 gnu*)
12983 ;;
12984
12985 haiku*)
12986 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12987 link_all_deplibs_CXX=yes
12988 ;;
12989
12990 hpux9*)
12991 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12992 hardcode_libdir_separator_CXX=:
12993 export_dynamic_flag_spec_CXX='${wl}-E'
12994 hardcode_direct_CXX=yes
12995 hardcode_minus_L_CXX=yes # Not in the search PATH,
12996 # but as the default
12997 # location of the library.
12998
12999 case $cc_basename in
13000 CC*)
13001 # FIXME: insert proper C++ library support
13002 ld_shlibs_CXX=no
13003 ;;
13004 aCC*)
13005 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'
13006 # Commands to make compiler produce verbose output that lists
13007 # what "hidden" libraries, object files and flags are used when
13008 # linking a shared library.
13009 #
13010 # There doesn't appear to be a way to prevent this compiler from
13011 # explicitly linking system object files so we need to strip them
13012 # from the output so that they don't get included in the library
13013 # dependencies.
13014 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"'
13015 ;;
13016 *)
13017 if test "$GXX" = yes; then
13018 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'
13019 else
13020 # FIXME: insert proper C++ library support
13021 ld_shlibs_CXX=no
13022 fi
13023 ;;
13024 esac
13025 ;;
13026
13027 hpux10*|hpux11*)
13028 if test $with_gnu_ld = no; then
13029 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13030 hardcode_libdir_separator_CXX=:
13031
13032 case $host_cpu in
13033 hppa*64*|ia64*)
13034 ;;
13035 *)
13036 export_dynamic_flag_spec_CXX='${wl}-E'
13037 ;;
13038 esac
13039 fi
13040 case $host_cpu in
13041 hppa*64*|ia64*)
13042 hardcode_direct_CXX=no
13043 hardcode_shlibpath_var_CXX=no
13044 ;;
13045 *)
13046 hardcode_direct_CXX=yes
13047 hardcode_direct_absolute_CXX=yes
13048 hardcode_minus_L_CXX=yes # Not in the search PATH,
13049 # but as the default
13050 # location of the library.
13051 ;;
13052 esac
13053
13054 case $cc_basename in
13055 CC*)
13056 # FIXME: insert proper C++ library support
13057 ld_shlibs_CXX=no
13058 ;;
13059 aCC*)
13060 case $host_cpu in
13061 hppa*64*)
13062 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13063 ;;
13064 ia64*)
13065 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13066 ;;
13067 *)
13068 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13069 ;;
13070 esac
13071 # Commands to make compiler produce verbose output that lists
13072 # what "hidden" libraries, object files and flags are used when
13073 # linking a shared library.
13074 #
13075 # There doesn't appear to be a way to prevent this compiler from
13076 # explicitly linking system object files so we need to strip them
13077 # from the output so that they don't get included in the library
13078 # dependencies.
13079 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"'
13080 ;;
13081 *)
13082 if test "$GXX" = yes; then
13083 if test $with_gnu_ld = no; then
13084 case $host_cpu in
13085 hppa*64*)
13086 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13087 ;;
13088 ia64*)
13089 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13090 ;;
13091 *)
13092 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'
13093 ;;
13094 esac
13095 fi
13096 else
13097 # FIXME: insert proper C++ library support
13098 ld_shlibs_CXX=no
13099 fi
13100 ;;
13101 esac
13102 ;;
13103
13104 interix[3-9]*)
13105 hardcode_direct_CXX=no
13106 hardcode_shlibpath_var_CXX=no
13107 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13108 export_dynamic_flag_spec_CXX='${wl}-E'
13109 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13110 # Instead, shared libraries are loaded at an image base (0x10000000 by
13111 # default) and relocated if they conflict, which is a slow very memory
13112 # consuming and fragmenting process. To avoid this, we pick a random,
13113 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13114 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13115 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'
13116 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'
13117 ;;
13118 irix5* | irix6*)
13119 case $cc_basename in
13120 CC*)
13121 # SGI C++
13122 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'
13123
13124 # Archives containing C++ object files must be created using
13125 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13126 # necessary to make sure instantiated templates are included
13127 # in the archive.
13128 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13129 ;;
13130 *)
13131 if test "$GXX" = yes; then
13132 if test "$with_gnu_ld" = no; then
13133 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'
13134 else
13135 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'
13136 fi
13137 fi
13138 link_all_deplibs_CXX=yes
13139 ;;
13140 esac
13141 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13142 hardcode_libdir_separator_CXX=:
13143 inherit_rpath_CXX=yes
13144 ;;
13145
13146 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13147 case $cc_basename in
13148 KCC*)
13149 # Kuck and Associates, Inc. (KAI) C++ Compiler
13150
13151 # KCC will only create a shared library if the output file
13152 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13153 # to its proper name (with version) after linking.
13154 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'
13155 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'
13156 # Commands to make compiler produce verbose output that lists
13157 # what "hidden" libraries, object files and flags are used when
13158 # linking a shared library.
13159 #
13160 # There doesn't appear to be a way to prevent this compiler from
13161 # explicitly linking system object files so we need to strip them
13162 # from the output so that they don't get included in the library
13163 # dependencies.
13164 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"'
13165
13166 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13167 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13168
13169 # Archives containing C++ object files must be created using
13170 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13171 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13172 ;;
13173 icpc* | ecpc* )
13174 # Intel C++
13175 with_gnu_ld=yes
13176 # version 8.0 and above of icpc choke on multiply defined symbols
13177 # if we add $predep_objects and $postdep_objects, however 7.1 and
13178 # earlier do not add the objects themselves.
13179 case `$CC -V 2>&1` in
13180 *"Version 7."*)
13181 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13182 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13183 ;;
13184 *) # Version 8.0 or newer
13185 tmp_idyn=
13186 case $host_cpu in
13187 ia64*) tmp_idyn=' -i_dynamic';;
13188 esac
13189 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13190 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'
13191 ;;
13192 esac
13193 archive_cmds_need_lc_CXX=no
13194 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13195 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13196 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13197 ;;
13198 pgCC* | pgcpp*)
13199 # Portland Group C++ compiler
13200 case `$CC -V` in
13201 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13202 prelink_cmds_CXX='tpldir=Template.dir~
13203 rm -rf $tpldir~
13204 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13205 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13206 old_archive_cmds_CXX='tpldir=Template.dir~
13207 rm -rf $tpldir~
13208 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13209 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13210 $RANLIB $oldlib'
13211 archive_cmds_CXX='tpldir=Template.dir~
13212 rm -rf $tpldir~
13213 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13214 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13215 archive_expsym_cmds_CXX='tpldir=Template.dir~
13216 rm -rf $tpldir~
13217 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13218 $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'
13219 ;;
13220 *) # Version 6 and above use weak symbols
13221 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13222 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'
13223 ;;
13224 esac
13225
13226 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13227 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13228 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'
13229 ;;
13230 cxx*)
13231 # Compaq C++
13232 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13233 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'
13234
13235 runpath_var=LD_RUN_PATH
13236 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13237 hardcode_libdir_separator_CXX=:
13238
13239 # Commands to make compiler produce verbose output that lists
13240 # what "hidden" libraries, object files and flags are used when
13241 # linking a shared library.
13242 #
13243 # There doesn't appear to be a way to prevent this compiler from
13244 # explicitly linking system object files so we need to strip them
13245 # from the output so that they don't get included in the library
13246 # dependencies.
13247 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; 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'
13248 ;;
13249 xl* | mpixl* | bgxl*)
13250 # IBM XL 8.0 on PPC, with GNU ld
13251 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13252 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13253 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13254 if test "x$supports_anon_versioning" = xyes; then
13255 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13256 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13257 echo "local: *; };" >> $output_objdir/$libname.ver~
13258 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13259 fi
13260 ;;
13261 *)
13262 case `$CC -V 2>&1 | sed 5q` in
13263 *Sun\ C*)
13264 # Sun C++ 5.9
13265 no_undefined_flag_CXX=' -zdefs'
13266 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13267 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'
13268 hardcode_libdir_flag_spec_CXX='-R$libdir'
13269 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'
13270 compiler_needs_object_CXX=yes
13271
13272 # Not sure whether something based on
13273 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13274 # would be better.
13275 output_verbose_link_cmd='func_echo_all'
13276
13277 # Archives containing C++ object files must be created using
13278 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13279 # necessary to make sure instantiated templates are included
13280 # in the archive.
13281 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13282 ;;
13283 esac
13284 ;;
13285 esac
13286 ;;
13287
13288 lynxos*)
13289 # FIXME: insert proper C++ library support
13290 ld_shlibs_CXX=no
13291 ;;
13292
13293 m88k*)
13294 # FIXME: insert proper C++ library support
13295 ld_shlibs_CXX=no
13296 ;;
13297
13298 mvs*)
13299 case $cc_basename in
13300 cxx*)
13301 # FIXME: insert proper C++ library support
13302 ld_shlibs_CXX=no
13303 ;;
13304 *)
13305 # FIXME: insert proper C++ library support
13306 ld_shlibs_CXX=no
13307 ;;
13308 esac
13309 ;;
13310
13311 netbsd*)
13312 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13313 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13314 wlarc=
13315 hardcode_libdir_flag_spec_CXX='-R$libdir'
13316 hardcode_direct_CXX=yes
13317 hardcode_shlibpath_var_CXX=no
13318 fi
13319 # Workaround some broken pre-1.5 toolchains
13320 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13321 ;;
13322
13323 *nto* | *qnx*)
13324 ld_shlibs_CXX=yes
13325 ;;
13326
13327 openbsd2*)
13328 # C++ shared libraries are fairly broken
13329 ld_shlibs_CXX=no
13330 ;;
13331
13332 openbsd*)
13333 if test -f /usr/libexec/ld.so; then
13334 hardcode_direct_CXX=yes
13335 hardcode_shlibpath_var_CXX=no
13336 hardcode_direct_absolute_CXX=yes
13337 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13338 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13339 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13340 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13341 export_dynamic_flag_spec_CXX='${wl}-E'
13342 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13343 fi
13344 output_verbose_link_cmd=func_echo_all
13345 else
13346 ld_shlibs_CXX=no
13347 fi
13348 ;;
13349
13350 osf3* | osf4* | osf5*)
13351 case $cc_basename in
13352 KCC*)
13353 # Kuck and Associates, Inc. (KAI) C++ Compiler
13354
13355 # KCC will only create a shared library if the output file
13356 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13357 # to its proper name (with version) after linking.
13358 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'
13359
13360 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13361 hardcode_libdir_separator_CXX=:
13362
13363 # Archives containing C++ object files must be created using
13364 # the KAI C++ compiler.
13365 case $host in
13366 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13367 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13368 esac
13369 ;;
13370 RCC*)
13371 # Rational C++ 2.4.1
13372 # FIXME: insert proper C++ library support
13373 ld_shlibs_CXX=no
13374 ;;
13375 cxx*)
13376 case $host in
13377 osf3*)
13378 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13379 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'
13380 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13381 ;;
13382 *)
13383 allow_undefined_flag_CXX=' -expect_unresolved \*'
13384 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'
13385 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13386 echo "-hidden">> $lib.exp~
13387 $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~
13388 $RM $lib.exp'
13389 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13390 ;;
13391 esac
13392
13393 hardcode_libdir_separator_CXX=:
13394
13395 # Commands to make compiler produce verbose output that lists
13396 # what "hidden" libraries, object files and flags are used when
13397 # linking a shared library.
13398 #
13399 # There doesn't appear to be a way to prevent this compiler from
13400 # explicitly linking system object files so we need to strip them
13401 # from the output so that they don't get included in the library
13402 # dependencies.
13403 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"'
13404 ;;
13405 *)
13406 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13407 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13408 case $host in
13409 osf3*)
13410 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'
13411 ;;
13412 *)
13413 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'
13414 ;;
13415 esac
13416
13417 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13418 hardcode_libdir_separator_CXX=:
13419
13420 # Commands to make compiler produce verbose output that lists
13421 # what "hidden" libraries, object files and flags are used when
13422 # linking a shared library.
13423 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13424
13425 else
13426 # FIXME: insert proper C++ library support
13427 ld_shlibs_CXX=no
13428 fi
13429 ;;
13430 esac
13431 ;;
13432
13433 psos*)
13434 # FIXME: insert proper C++ library support
13435 ld_shlibs_CXX=no
13436 ;;
13437
13438 sunos4*)
13439 case $cc_basename in
13440 CC*)
13441 # Sun C++ 4.x
13442 # FIXME: insert proper C++ library support
13443 ld_shlibs_CXX=no
13444 ;;
13445 lcc*)
13446 # Lucid
13447 # FIXME: insert proper C++ library support
13448 ld_shlibs_CXX=no
13449 ;;
13450 *)
13451 # FIXME: insert proper C++ library support
13452 ld_shlibs_CXX=no
13453 ;;
13454 esac
13455 ;;
13456
13457 solaris*)
13458 case $cc_basename in
13459 CC* | sunCC*)
13460 # Sun C++ 4.2, 5.x and Centerline C++
13461 archive_cmds_need_lc_CXX=yes
13462 no_undefined_flag_CXX=' -zdefs'
13463 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13464 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13465 $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'
13466
13467 hardcode_libdir_flag_spec_CXX='-R$libdir'
13468 hardcode_shlibpath_var_CXX=no
13469 case $host_os in
13470 solaris2.[0-5] | solaris2.[0-5].*) ;;
13471 *)
13472 # The compiler driver will combine and reorder linker options,
13473 # but understands `-z linker_flag'.
13474 # Supported since Solaris 2.6 (maybe 2.5.1?)
13475 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13476 ;;
13477 esac
13478 link_all_deplibs_CXX=yes
13479
13480 output_verbose_link_cmd='func_echo_all'
13481
13482 # Archives containing C++ object files must be created using
13483 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13484 # necessary to make sure instantiated templates are included
13485 # in the archive.
13486 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13487 ;;
13488 gcx*)
13489 # Green Hills C++ Compiler
13490 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13491
13492 # The C++ compiler must be used to create the archive.
13493 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13494 ;;
13495 *)
13496 # GNU C++ compiler with Solaris linker
13497 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13498 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13499 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13500 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13501 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13502 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13503
13504 # Commands to make compiler produce verbose output that lists
13505 # what "hidden" libraries, object files and flags are used when
13506 # linking a shared library.
13507 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13508 else
13509 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13510 # platform.
13511 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13512 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13513 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13514
13515 # Commands to make compiler produce verbose output that lists
13516 # what "hidden" libraries, object files and flags are used when
13517 # linking a shared library.
13518 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13519 fi
13520
13521 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13522 case $host_os in
13523 solaris2.[0-5] | solaris2.[0-5].*) ;;
13524 *)
13525 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13526 ;;
13527 esac
13528 fi
13529 ;;
13530 esac
13531 ;;
13532
13533 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13534 no_undefined_flag_CXX='${wl}-z,text'
13535 archive_cmds_need_lc_CXX=no
13536 hardcode_shlibpath_var_CXX=no
13537 runpath_var='LD_RUN_PATH'
13538
13539 case $cc_basename in
13540 CC*)
13541 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13542 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13543 ;;
13544 *)
13545 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13546 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13547 ;;
13548 esac
13549 ;;
13550
13551 sysv5* | sco3.2v5* | sco5v6*)
13552 # Note: We can NOT use -z defs as we might desire, because we do not
13553 # link with -lc, and that would cause any symbols used from libc to
13554 # always be unresolved, which means just about no library would
13555 # ever link correctly. If we're not using GNU ld we use -z text
13556 # though, which does catch some bad symbols but isn't as heavy-handed
13557 # as -z defs.
13558 no_undefined_flag_CXX='${wl}-z,text'
13559 allow_undefined_flag_CXX='${wl}-z,nodefs'
13560 archive_cmds_need_lc_CXX=no
13561 hardcode_shlibpath_var_CXX=no
13562 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13563 hardcode_libdir_separator_CXX=':'
13564 link_all_deplibs_CXX=yes
13565 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13566 runpath_var='LD_RUN_PATH'
13567
13568 case $cc_basename in
13569 CC*)
13570 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13571 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13572 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13573 '"$old_archive_cmds_CXX"
13574 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13575 '"$reload_cmds_CXX"
13576 ;;
13577 *)
13578 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13579 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13580 ;;
13581 esac
13582 ;;
13583
13584 tandem*)
13585 case $cc_basename in
13586 NCC*)
13587 # NonStop-UX NCC 3.20
13588 # FIXME: insert proper C++ library support
13589 ld_shlibs_CXX=no
13590 ;;
13591 *)
13592 # FIXME: insert proper C++ library support
13593 ld_shlibs_CXX=no
13594 ;;
13595 esac
13596 ;;
13597
13598 vxworks*)
13599 # FIXME: insert proper C++ library support
13600 ld_shlibs_CXX=no
13601 ;;
13602
13603 *)
13604 # FIXME: insert proper C++ library support
13605 ld_shlibs_CXX=no
13606 ;;
13607 esac
13608
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13610 $as_echo "$ld_shlibs_CXX" >&6; }
13611 test "$ld_shlibs_CXX" = no && can_build_shared=no
13612
13613 GCC_CXX="$GXX"
13614 LD_CXX="$LD"
13615
13616 ## CAVEAT EMPTOR:
13617 ## There is no encapsulation within the following macros, do not change
13618 ## the running order or otherwise move them around unless you know exactly
13619 ## what you are doing...
13620 # Dependencies to place before and after the object being linked:
13621 predep_objects_CXX=
13622 postdep_objects_CXX=
13623 predeps_CXX=
13624 postdeps_CXX=
13625 compiler_lib_search_path_CXX=
13626
13627 cat > conftest.$ac_ext <<_LT_EOF
13628 class Foo
13629 {
13630 public:
13631 Foo (void) { a = 0; }
13632 private:
13633 int a;
13634 };
13635 _LT_EOF
13636
13637
13638 _lt_libdeps_save_CFLAGS=$CFLAGS
13639 case "$CC $CFLAGS " in #(
13640 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13641 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13642 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13643 esac
13644
13645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13646 (eval $ac_compile) 2>&5
13647 ac_status=$?
13648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13649 test $ac_status = 0; }; then
13650 # Parse the compiler output and extract the necessary
13651 # objects, libraries and library flags.
13652
13653 # Sentinel used to keep track of whether or not we are before
13654 # the conftest object file.
13655 pre_test_object_deps_done=no
13656
13657 for p in `eval "$output_verbose_link_cmd"`; do
13658 case ${prev}${p} in
13659
13660 -L* | -R* | -l*)
13661 # Some compilers place space between "-{L,R}" and the path.
13662 # Remove the space.
13663 if test $p = "-L" ||
13664 test $p = "-R"; then
13665 prev=$p
13666 continue
13667 fi
13668
13669 # Expand the sysroot to ease extracting the directories later.
13670 if test -z "$prev"; then
13671 case $p in
13672 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13673 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13674 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13675 esac
13676 fi
13677 case $p in
13678 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13679 esac
13680 if test "$pre_test_object_deps_done" = no; then
13681 case ${prev} in
13682 -L | -R)
13683 # Internal compiler library paths should come after those
13684 # provided the user. The postdeps already come after the
13685 # user supplied libs so there is no need to process them.
13686 if test -z "$compiler_lib_search_path_CXX"; then
13687 compiler_lib_search_path_CXX="${prev}${p}"
13688 else
13689 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13690 fi
13691 ;;
13692 # The "-l" case would never come before the object being
13693 # linked, so don't bother handling this case.
13694 esac
13695 else
13696 if test -z "$postdeps_CXX"; then
13697 postdeps_CXX="${prev}${p}"
13698 else
13699 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13700 fi
13701 fi
13702 prev=
13703 ;;
13704
13705 *.lto.$objext) ;; # Ignore GCC LTO objects
13706 *.$objext)
13707 # This assumes that the test object file only shows up
13708 # once in the compiler output.
13709 if test "$p" = "conftest.$objext"; then
13710 pre_test_object_deps_done=yes
13711 continue
13712 fi
13713
13714 if test "$pre_test_object_deps_done" = no; then
13715 if test -z "$predep_objects_CXX"; then
13716 predep_objects_CXX="$p"
13717 else
13718 predep_objects_CXX="$predep_objects_CXX $p"
13719 fi
13720 else
13721 if test -z "$postdep_objects_CXX"; then
13722 postdep_objects_CXX="$p"
13723 else
13724 postdep_objects_CXX="$postdep_objects_CXX $p"
13725 fi
13726 fi
13727 ;;
13728
13729 *) ;; # Ignore the rest.
13730
13731 esac
13732 done
13733
13734 # Clean up.
13735 rm -f a.out a.exe
13736 else
13737 echo "libtool.m4: error: problem compiling CXX test program"
13738 fi
13739
13740 $RM -f confest.$objext
13741 CFLAGS=$_lt_libdeps_save_CFLAGS
13742
13743 # PORTME: override above test on systems where it is broken
13744 case $host_os in
13745 interix[3-9]*)
13746 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13747 # hack all around it, let's just trust "g++" to DTRT.
13748 predep_objects_CXX=
13749 postdep_objects_CXX=
13750 postdeps_CXX=
13751 ;;
13752
13753 linux*)
13754 case `$CC -V 2>&1 | sed 5q` in
13755 *Sun\ C*)
13756 # Sun C++ 5.9
13757
13758 # The more standards-conforming stlport4 library is
13759 # incompatible with the Cstd library. Avoid specifying
13760 # it if it's in CXXFLAGS. Ignore libCrun as
13761 # -library=stlport4 depends on it.
13762 case " $CXX $CXXFLAGS " in
13763 *" -library=stlport4 "*)
13764 solaris_use_stlport4=yes
13765 ;;
13766 esac
13767
13768 if test "$solaris_use_stlport4" != yes; then
13769 postdeps_CXX='-library=Cstd -library=Crun'
13770 fi
13771 ;;
13772 esac
13773 ;;
13774
13775 solaris*)
13776 case $cc_basename in
13777 CC* | sunCC*)
13778 # The more standards-conforming stlport4 library is
13779 # incompatible with the Cstd library. Avoid specifying
13780 # it if it's in CXXFLAGS. Ignore libCrun as
13781 # -library=stlport4 depends on it.
13782 case " $CXX $CXXFLAGS " in
13783 *" -library=stlport4 "*)
13784 solaris_use_stlport4=yes
13785 ;;
13786 esac
13787
13788 # Adding this requires a known-good setup of shared libraries for
13789 # Sun compiler versions before 5.6, else PIC objects from an old
13790 # archive will be linked into the output, leading to subtle bugs.
13791 if test "$solaris_use_stlport4" != yes; then
13792 postdeps_CXX='-library=Cstd -library=Crun'
13793 fi
13794 ;;
13795 esac
13796 ;;
13797 esac
13798
13799
13800 case " $postdeps_CXX " in
13801 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13802 esac
13803 compiler_lib_search_dirs_CXX=
13804 if test -n "${compiler_lib_search_path_CXX}"; then
13805 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13806 fi
13807
13808
13809
13810
13811
13812
13813
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 lt_prog_compiler_wl_CXX=
13839 lt_prog_compiler_pic_CXX=
13840 lt_prog_compiler_static_CXX=
13841
13842
13843 # C++ specific cases for pic, static, wl, etc.
13844 if test "$GXX" = yes; then
13845 lt_prog_compiler_wl_CXX='-Wl,'
13846 lt_prog_compiler_static_CXX='-static'
13847
13848 case $host_os in
13849 aix*)
13850 # All AIX code is PIC.
13851 if test "$host_cpu" = ia64; then
13852 # AIX 5 now supports IA64 processor
13853 lt_prog_compiler_static_CXX='-Bstatic'
13854 fi
13855 ;;
13856
13857 amigaos*)
13858 case $host_cpu in
13859 powerpc)
13860 # see comment about AmigaOS4 .so support
13861 lt_prog_compiler_pic_CXX='-fPIC'
13862 ;;
13863 m68k)
13864 # FIXME: we need at least 68020 code to build shared libraries, but
13865 # adding the `-m68020' flag to GCC prevents building anything better,
13866 # like `-m68040'.
13867 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13868 ;;
13869 esac
13870 ;;
13871
13872 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13873 # PIC is the default for these OSes.
13874 ;;
13875 mingw* | cygwin* | os2* | pw32* | cegcc*)
13876 # This hack is so that the source file can tell whether it is being
13877 # built for inclusion in a dll (and should export symbols for example).
13878 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13879 # (--disable-auto-import) libraries
13880 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13881 ;;
13882 darwin* | rhapsody*)
13883 # PIC is the default on this platform
13884 # Common symbols not allowed in MH_DYLIB files
13885 lt_prog_compiler_pic_CXX='-fno-common'
13886 ;;
13887 *djgpp*)
13888 # DJGPP does not support shared libraries at all
13889 lt_prog_compiler_pic_CXX=
13890 ;;
13891 haiku*)
13892 # PIC is the default for Haiku.
13893 # The "-static" flag exists, but is broken.
13894 lt_prog_compiler_static_CXX=
13895 ;;
13896 interix[3-9]*)
13897 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13898 # Instead, we relocate shared libraries at runtime.
13899 ;;
13900 sysv4*MP*)
13901 if test -d /usr/nec; then
13902 lt_prog_compiler_pic_CXX=-Kconform_pic
13903 fi
13904 ;;
13905 hpux*)
13906 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13907 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13908 # sets the default TLS model and affects inlining.
13909 case $host_cpu in
13910 hppa*64*)
13911 ;;
13912 *)
13913 lt_prog_compiler_pic_CXX='-fPIC'
13914 ;;
13915 esac
13916 ;;
13917 *qnx* | *nto*)
13918 # QNX uses GNU C++, but need to define -shared option too, otherwise
13919 # it will coredump.
13920 lt_prog_compiler_pic_CXX='-fPIC -shared'
13921 ;;
13922 *)
13923 lt_prog_compiler_pic_CXX='-fPIC'
13924 ;;
13925 esac
13926 else
13927 case $host_os in
13928 aix[4-9]*)
13929 # All AIX code is PIC.
13930 if test "$host_cpu" = ia64; then
13931 # AIX 5 now supports IA64 processor
13932 lt_prog_compiler_static_CXX='-Bstatic'
13933 else
13934 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13935 fi
13936 ;;
13937 chorus*)
13938 case $cc_basename in
13939 cxch68*)
13940 # Green Hills C++ Compiler
13941 # _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"
13942 ;;
13943 esac
13944 ;;
13945 mingw* | cygwin* | os2* | pw32* | cegcc*)
13946 # This hack is so that the source file can tell whether it is being
13947 # built for inclusion in a dll (and should export symbols for example).
13948 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13949 ;;
13950 dgux*)
13951 case $cc_basename in
13952 ec++*)
13953 lt_prog_compiler_pic_CXX='-KPIC'
13954 ;;
13955 ghcx*)
13956 # Green Hills C++ Compiler
13957 lt_prog_compiler_pic_CXX='-pic'
13958 ;;
13959 *)
13960 ;;
13961 esac
13962 ;;
13963 freebsd* | dragonfly*)
13964 # FreeBSD uses GNU C++
13965 ;;
13966 hpux9* | hpux10* | hpux11*)
13967 case $cc_basename in
13968 CC*)
13969 lt_prog_compiler_wl_CXX='-Wl,'
13970 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13971 if test "$host_cpu" != ia64; then
13972 lt_prog_compiler_pic_CXX='+Z'
13973 fi
13974 ;;
13975 aCC*)
13976 lt_prog_compiler_wl_CXX='-Wl,'
13977 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13978 case $host_cpu in
13979 hppa*64*|ia64*)
13980 # +Z the default
13981 ;;
13982 *)
13983 lt_prog_compiler_pic_CXX='+Z'
13984 ;;
13985 esac
13986 ;;
13987 *)
13988 ;;
13989 esac
13990 ;;
13991 interix*)
13992 # This is c89, which is MS Visual C++ (no shared libs)
13993 # Anyone wants to do a port?
13994 ;;
13995 irix5* | irix6* | nonstopux*)
13996 case $cc_basename in
13997 CC*)
13998 lt_prog_compiler_wl_CXX='-Wl,'
13999 lt_prog_compiler_static_CXX='-non_shared'
14000 # CC pic flag -KPIC is the default.
14001 ;;
14002 *)
14003 ;;
14004 esac
14005 ;;
14006 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14007 case $cc_basename in
14008 KCC*)
14009 # KAI C++ Compiler
14010 lt_prog_compiler_wl_CXX='--backend -Wl,'
14011 lt_prog_compiler_pic_CXX='-fPIC'
14012 ;;
14013 ecpc* )
14014 # old Intel C++ for x86_64 which still supported -KPIC.
14015 lt_prog_compiler_wl_CXX='-Wl,'
14016 lt_prog_compiler_pic_CXX='-KPIC'
14017 lt_prog_compiler_static_CXX='-static'
14018 ;;
14019 icpc* )
14020 # Intel C++, used to be incompatible with GCC.
14021 # ICC 10 doesn't accept -KPIC any more.
14022 lt_prog_compiler_wl_CXX='-Wl,'
14023 lt_prog_compiler_pic_CXX='-fPIC'
14024 lt_prog_compiler_static_CXX='-static'
14025 ;;
14026 pgCC* | pgcpp*)
14027 # Portland Group C++ compiler
14028 lt_prog_compiler_wl_CXX='-Wl,'
14029 lt_prog_compiler_pic_CXX='-fpic'
14030 lt_prog_compiler_static_CXX='-Bstatic'
14031 ;;
14032 cxx*)
14033 # Compaq C++
14034 # Make sure the PIC flag is empty. It appears that all Alpha
14035 # Linux and Compaq Tru64 Unix objects are PIC.
14036 lt_prog_compiler_pic_CXX=
14037 lt_prog_compiler_static_CXX='-non_shared'
14038 ;;
14039 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14040 # IBM XL 8.0, 9.0 on PPC and BlueGene
14041 lt_prog_compiler_wl_CXX='-Wl,'
14042 lt_prog_compiler_pic_CXX='-qpic'
14043 lt_prog_compiler_static_CXX='-qstaticlink'
14044 ;;
14045 *)
14046 case `$CC -V 2>&1 | sed 5q` in
14047 *Sun\ C*)
14048 # Sun C++ 5.9
14049 lt_prog_compiler_pic_CXX='-KPIC'
14050 lt_prog_compiler_static_CXX='-Bstatic'
14051 lt_prog_compiler_wl_CXX='-Qoption ld '
14052 ;;
14053 esac
14054 ;;
14055 esac
14056 ;;
14057 lynxos*)
14058 ;;
14059 m88k*)
14060 ;;
14061 mvs*)
14062 case $cc_basename in
14063 cxx*)
14064 lt_prog_compiler_pic_CXX='-W c,exportall'
14065 ;;
14066 *)
14067 ;;
14068 esac
14069 ;;
14070 netbsd*)
14071 ;;
14072 *qnx* | *nto*)
14073 # QNX uses GNU C++, but need to define -shared option too, otherwise
14074 # it will coredump.
14075 lt_prog_compiler_pic_CXX='-fPIC -shared'
14076 ;;
14077 osf3* | osf4* | osf5*)
14078 case $cc_basename in
14079 KCC*)
14080 lt_prog_compiler_wl_CXX='--backend -Wl,'
14081 ;;
14082 RCC*)
14083 # Rational C++ 2.4.1
14084 lt_prog_compiler_pic_CXX='-pic'
14085 ;;
14086 cxx*)
14087 # Digital/Compaq C++
14088 lt_prog_compiler_wl_CXX='-Wl,'
14089 # Make sure the PIC flag is empty. It appears that all Alpha
14090 # Linux and Compaq Tru64 Unix objects are PIC.
14091 lt_prog_compiler_pic_CXX=
14092 lt_prog_compiler_static_CXX='-non_shared'
14093 ;;
14094 *)
14095 ;;
14096 esac
14097 ;;
14098 psos*)
14099 ;;
14100 solaris*)
14101 case $cc_basename in
14102 CC* | sunCC*)
14103 # Sun C++ 4.2, 5.x and Centerline C++
14104 lt_prog_compiler_pic_CXX='-KPIC'
14105 lt_prog_compiler_static_CXX='-Bstatic'
14106 lt_prog_compiler_wl_CXX='-Qoption ld '
14107 ;;
14108 gcx*)
14109 # Green Hills C++ Compiler
14110 lt_prog_compiler_pic_CXX='-PIC'
14111 ;;
14112 *)
14113 ;;
14114 esac
14115 ;;
14116 sunos4*)
14117 case $cc_basename in
14118 CC*)
14119 # Sun C++ 4.x
14120 lt_prog_compiler_pic_CXX='-pic'
14121 lt_prog_compiler_static_CXX='-Bstatic'
14122 ;;
14123 lcc*)
14124 # Lucid
14125 lt_prog_compiler_pic_CXX='-pic'
14126 ;;
14127 *)
14128 ;;
14129 esac
14130 ;;
14131 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14132 case $cc_basename in
14133 CC*)
14134 lt_prog_compiler_wl_CXX='-Wl,'
14135 lt_prog_compiler_pic_CXX='-KPIC'
14136 lt_prog_compiler_static_CXX='-Bstatic'
14137 ;;
14138 esac
14139 ;;
14140 tandem*)
14141 case $cc_basename in
14142 NCC*)
14143 # NonStop-UX NCC 3.20
14144 lt_prog_compiler_pic_CXX='-KPIC'
14145 ;;
14146 *)
14147 ;;
14148 esac
14149 ;;
14150 vxworks*)
14151 ;;
14152 *)
14153 lt_prog_compiler_can_build_shared_CXX=no
14154 ;;
14155 esac
14156 fi
14157
14158 case $host_os in
14159 # For platforms which do not support PIC, -DPIC is meaningless:
14160 *djgpp*)
14161 lt_prog_compiler_pic_CXX=
14162 ;;
14163 *)
14164 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14165 ;;
14166 esac
14167
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14169 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14170 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14171 $as_echo_n "(cached) " >&6
14172 else
14173 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14174 fi
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14176 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14177 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14178
14179 #
14180 # Check to make sure the PIC flag actually works.
14181 #
14182 if test -n "$lt_prog_compiler_pic_CXX"; then
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14184 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14185 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14186 $as_echo_n "(cached) " >&6
14187 else
14188 lt_cv_prog_compiler_pic_works_CXX=no
14189 ac_outfile=conftest.$ac_objext
14190 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14191 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14192 # Insert the option either (1) after the last *FLAGS variable, or
14193 # (2) before a word containing "conftest.", or (3) at the end.
14194 # Note that $ac_compile itself does not contain backslashes and begins
14195 # with a dollar sign (not a hyphen), so the echo should work correctly.
14196 # The option is referenced via a variable to avoid confusing sed.
14197 lt_compile=`echo "$ac_compile" | $SED \
14198 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14199 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14200 -e 's:$: $lt_compiler_flag:'`
14201 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14202 (eval "$lt_compile" 2>conftest.err)
14203 ac_status=$?
14204 cat conftest.err >&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 if (exit $ac_status) && test -s "$ac_outfile"; then
14207 # The compiler can only warn and ignore the option if not recognized
14208 # So say no if there are warnings other than the usual output.
14209 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14210 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14211 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14212 lt_cv_prog_compiler_pic_works_CXX=yes
14213 fi
14214 fi
14215 $RM conftest*
14216
14217 fi
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14219 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14220
14221 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14222 case $lt_prog_compiler_pic_CXX in
14223 "" | " "*) ;;
14224 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14225 esac
14226 else
14227 lt_prog_compiler_pic_CXX=
14228 lt_prog_compiler_can_build_shared_CXX=no
14229 fi
14230
14231 fi
14232
14233
14234
14235
14236
14237 #
14238 # Check to make sure the static flag actually works.
14239 #
14240 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14242 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14243 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14244 $as_echo_n "(cached) " >&6
14245 else
14246 lt_cv_prog_compiler_static_works_CXX=no
14247 save_LDFLAGS="$LDFLAGS"
14248 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14249 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14250 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14251 # The linker can only warn and ignore the option if not recognized
14252 # So say no if there are warnings
14253 if test -s conftest.err; then
14254 # Append any errors to the config.log.
14255 cat conftest.err 1>&5
14256 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14257 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14258 if diff conftest.exp conftest.er2 >/dev/null; then
14259 lt_cv_prog_compiler_static_works_CXX=yes
14260 fi
14261 else
14262 lt_cv_prog_compiler_static_works_CXX=yes
14263 fi
14264 fi
14265 $RM -r conftest*
14266 LDFLAGS="$save_LDFLAGS"
14267
14268 fi
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14270 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14271
14272 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14273 :
14274 else
14275 lt_prog_compiler_static_CXX=
14276 fi
14277
14278
14279
14280
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14282 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14283 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14284 $as_echo_n "(cached) " >&6
14285 else
14286 lt_cv_prog_compiler_c_o_CXX=no
14287 $RM -r conftest 2>/dev/null
14288 mkdir conftest
14289 cd conftest
14290 mkdir out
14291 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14292
14293 lt_compiler_flag="-o out/conftest2.$ac_objext"
14294 # Insert the option either (1) after the last *FLAGS variable, or
14295 # (2) before a word containing "conftest.", or (3) at the end.
14296 # Note that $ac_compile itself does not contain backslashes and begins
14297 # with a dollar sign (not a hyphen), so the echo should work correctly.
14298 lt_compile=`echo "$ac_compile" | $SED \
14299 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14301 -e 's:$: $lt_compiler_flag:'`
14302 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14303 (eval "$lt_compile" 2>out/conftest.err)
14304 ac_status=$?
14305 cat out/conftest.err >&5
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14308 then
14309 # The compiler can only warn and ignore the option if not recognized
14310 # So say no if there are warnings
14311 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14312 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14313 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14314 lt_cv_prog_compiler_c_o_CXX=yes
14315 fi
14316 fi
14317 chmod u+w . 2>&5
14318 $RM conftest*
14319 # SGI C++ compiler will create directory out/ii_files/ for
14320 # template instantiation
14321 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14322 $RM out/* && rmdir out
14323 cd ..
14324 $RM -r conftest
14325 $RM conftest*
14326
14327 fi
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14329 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14330
14331
14332
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14334 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14335 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14336 $as_echo_n "(cached) " >&6
14337 else
14338 lt_cv_prog_compiler_c_o_CXX=no
14339 $RM -r conftest 2>/dev/null
14340 mkdir conftest
14341 cd conftest
14342 mkdir out
14343 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14344
14345 lt_compiler_flag="-o out/conftest2.$ac_objext"
14346 # Insert the option either (1) after the last *FLAGS variable, or
14347 # (2) before a word containing "conftest.", or (3) at the end.
14348 # Note that $ac_compile itself does not contain backslashes and begins
14349 # with a dollar sign (not a hyphen), so the echo should work correctly.
14350 lt_compile=`echo "$ac_compile" | $SED \
14351 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14353 -e 's:$: $lt_compiler_flag:'`
14354 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14355 (eval "$lt_compile" 2>out/conftest.err)
14356 ac_status=$?
14357 cat out/conftest.err >&5
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14360 then
14361 # The compiler can only warn and ignore the option if not recognized
14362 # So say no if there are warnings
14363 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14364 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14365 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14366 lt_cv_prog_compiler_c_o_CXX=yes
14367 fi
14368 fi
14369 chmod u+w . 2>&5
14370 $RM conftest*
14371 # SGI C++ compiler will create directory out/ii_files/ for
14372 # template instantiation
14373 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14374 $RM out/* && rmdir out
14375 cd ..
14376 $RM -r conftest
14377 $RM conftest*
14378
14379 fi
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14381 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14382
14383
14384
14385
14386 hard_links="nottested"
14387 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14388 # do not overwrite the value of need_locks provided by the user
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14390 $as_echo_n "checking if we can lock with hard links... " >&6; }
14391 hard_links=yes
14392 $RM conftest*
14393 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14394 touch conftest.a
14395 ln conftest.a conftest.b 2>&5 || hard_links=no
14396 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14398 $as_echo "$hard_links" >&6; }
14399 if test "$hard_links" = no; then
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14401 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14402 need_locks=warn
14403 fi
14404 else
14405 need_locks=no
14406 fi
14407
14408
14409
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14411 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14412
14413 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14414 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14415 case $host_os in
14416 aix[4-9]*)
14417 # If we're using GNU nm, then we don't want the "-C" option.
14418 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14419 # Also, AIX nm treats weak defined symbols like other global defined
14420 # symbols, whereas GNU nm marks them as "W".
14421 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14422 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'
14423 else
14424 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'
14425 fi
14426 ;;
14427 pw32*)
14428 export_symbols_cmds_CXX="$ltdll_cmds"
14429 ;;
14430 cygwin* | mingw* | cegcc*)
14431 case $cc_basename in
14432 cl*)
14433 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14434 ;;
14435 *)
14436 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'
14437 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14438 ;;
14439 esac
14440 ;;
14441 *)
14442 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14443 ;;
14444 esac
14445
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14447 $as_echo "$ld_shlibs_CXX" >&6; }
14448 test "$ld_shlibs_CXX" = no && can_build_shared=no
14449
14450 with_gnu_ld_CXX=$with_gnu_ld
14451
14452
14453
14454
14455
14456
14457 #
14458 # Do we need to explicitly link libc?
14459 #
14460 case "x$archive_cmds_need_lc_CXX" in
14461 x|xyes)
14462 # Assume -lc should be added
14463 archive_cmds_need_lc_CXX=yes
14464
14465 if test "$enable_shared" = yes && test "$GCC" = yes; then
14466 case $archive_cmds_CXX in
14467 *'~'*)
14468 # FIXME: we may have to deal with multi-command sequences.
14469 ;;
14470 '$CC '*)
14471 # Test whether the compiler implicitly links with -lc since on some
14472 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14473 # to ld, don't add -lc before -lgcc.
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14475 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14476 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14477 $as_echo_n "(cached) " >&6
14478 else
14479 $RM conftest*
14480 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14481
14482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14483 (eval $ac_compile) 2>&5
14484 ac_status=$?
14485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14486 test $ac_status = 0; } 2>conftest.err; then
14487 soname=conftest
14488 lib=conftest
14489 libobjs=conftest.$ac_objext
14490 deplibs=
14491 wl=$lt_prog_compiler_wl_CXX
14492 pic_flag=$lt_prog_compiler_pic_CXX
14493 compiler_flags=-v
14494 linker_flags=-v
14495 verstring=
14496 output_objdir=.
14497 libname=conftest
14498 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14499 allow_undefined_flag_CXX=
14500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14501 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14502 ac_status=$?
14503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14504 test $ac_status = 0; }
14505 then
14506 lt_cv_archive_cmds_need_lc_CXX=no
14507 else
14508 lt_cv_archive_cmds_need_lc_CXX=yes
14509 fi
14510 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14511 else
14512 cat conftest.err 1>&5
14513 fi
14514 $RM conftest*
14515
14516 fi
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14518 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14519 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14520 ;;
14521 esac
14522 fi
14523 ;;
14524 esac
14525
14526
14527
14528
14529
14530
14531
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14588 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14589
14590 library_names_spec=
14591 libname_spec='lib$name'
14592 soname_spec=
14593 shrext_cmds=".so"
14594 postinstall_cmds=
14595 postuninstall_cmds=
14596 finish_cmds=
14597 finish_eval=
14598 shlibpath_var=
14599 shlibpath_overrides_runpath=unknown
14600 version_type=none
14601 dynamic_linker="$host_os ld.so"
14602 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14603 need_lib_prefix=unknown
14604 hardcode_into_libs=no
14605
14606 # when you set need_version to no, make sure it does not cause -set_version
14607 # flags to be left without arguments
14608 need_version=unknown
14609
14610 case $host_os in
14611 aix3*)
14612 version_type=linux # correct to gnu/linux during the next big refactor
14613 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14614 shlibpath_var=LIBPATH
14615
14616 # AIX 3 has no versioning support, so we append a major version to the name.
14617 soname_spec='${libname}${release}${shared_ext}$major'
14618 ;;
14619
14620 aix[4-9]*)
14621 version_type=linux # correct to gnu/linux during the next big refactor
14622 need_lib_prefix=no
14623 need_version=no
14624 hardcode_into_libs=yes
14625 if test "$host_cpu" = ia64; then
14626 # AIX 5 supports IA64
14627 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14628 shlibpath_var=LD_LIBRARY_PATH
14629 else
14630 # With GCC up to 2.95.x, collect2 would create an import file
14631 # for dependence libraries. The import file would start with
14632 # the line `#! .'. This would cause the generated library to
14633 # depend on `.', always an invalid library. This was fixed in
14634 # development snapshots of GCC prior to 3.0.
14635 case $host_os in
14636 aix4 | aix4.[01] | aix4.[01].*)
14637 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14638 echo ' yes '
14639 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14640 :
14641 else
14642 can_build_shared=no
14643 fi
14644 ;;
14645 esac
14646 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14647 # soname into executable. Probably we can add versioning support to
14648 # collect2, so additional links can be useful in future.
14649 if test "$aix_use_runtimelinking" = yes; then
14650 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14651 # instead of lib<name>.a to let people know that these are not
14652 # typical AIX shared libraries.
14653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14654 else
14655 # We preserve .a as extension for shared libraries through AIX4.2
14656 # and later when we are not doing run time linking.
14657 library_names_spec='${libname}${release}.a $libname.a'
14658 soname_spec='${libname}${release}${shared_ext}$major'
14659 fi
14660 shlibpath_var=LIBPATH
14661 fi
14662 ;;
14663
14664 amigaos*)
14665 case $host_cpu in
14666 powerpc)
14667 # Since July 2007 AmigaOS4 officially supports .so libraries.
14668 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14670 ;;
14671 m68k)
14672 library_names_spec='$libname.ixlibrary $libname.a'
14673 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14674 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'
14675 ;;
14676 esac
14677 ;;
14678
14679 beos*)
14680 library_names_spec='${libname}${shared_ext}'
14681 dynamic_linker="$host_os ld.so"
14682 shlibpath_var=LIBRARY_PATH
14683 ;;
14684
14685 bsdi[45]*)
14686 version_type=linux # correct to gnu/linux during the next big refactor
14687 need_version=no
14688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14689 soname_spec='${libname}${release}${shared_ext}$major'
14690 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14691 shlibpath_var=LD_LIBRARY_PATH
14692 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14693 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14694 # the default ld.so.conf also contains /usr/contrib/lib and
14695 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14696 # libtool to hard-code these into programs
14697 ;;
14698
14699 cygwin* | mingw* | pw32* | cegcc*)
14700 version_type=windows
14701 shrext_cmds=".dll"
14702 need_version=no
14703 need_lib_prefix=no
14704
14705 case $GCC,$cc_basename in
14706 yes,*)
14707 # gcc
14708 library_names_spec='$libname.dll.a'
14709 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14710 postinstall_cmds='base_file=`basename \${file}`~
14711 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14712 dldir=$destdir/`dirname \$dlpath`~
14713 test -d \$dldir || mkdir -p \$dldir~
14714 $install_prog $dir/$dlname \$dldir/$dlname~
14715 chmod a+x \$dldir/$dlname~
14716 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14717 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14718 fi'
14719 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14720 dlpath=$dir/\$dldll~
14721 $RM \$dlpath'
14722 shlibpath_overrides_runpath=yes
14723
14724 case $host_os in
14725 cygwin*)
14726 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14727 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14728
14729 ;;
14730 mingw* | cegcc*)
14731 # MinGW DLLs use traditional 'lib' prefix
14732 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14733 ;;
14734 pw32*)
14735 # pw32 DLLs use 'pw' prefix rather than 'lib'
14736 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14737 ;;
14738 esac
14739 dynamic_linker='Win32 ld.exe'
14740 ;;
14741
14742 *,cl*)
14743 # Native MSVC
14744 libname_spec='$name'
14745 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14746 library_names_spec='${libname}.dll.lib'
14747
14748 case $build_os in
14749 mingw*)
14750 sys_lib_search_path_spec=
14751 lt_save_ifs=$IFS
14752 IFS=';'
14753 for lt_path in $LIB
14754 do
14755 IFS=$lt_save_ifs
14756 # Let DOS variable expansion print the short 8.3 style file name.
14757 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14758 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14759 done
14760 IFS=$lt_save_ifs
14761 # Convert to MSYS style.
14762 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14763 ;;
14764 cygwin*)
14765 # Convert to unix form, then to dos form, then back to unix form
14766 # but this time dos style (no spaces!) so that the unix form looks
14767 # like /cygdrive/c/PROGRA~1:/cygdr...
14768 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14769 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14770 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14771 ;;
14772 *)
14773 sys_lib_search_path_spec="$LIB"
14774 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14775 # It is most probably a Windows format PATH.
14776 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14777 else
14778 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14779 fi
14780 # FIXME: find the short name or the path components, as spaces are
14781 # common. (e.g. "Program Files" -> "PROGRA~1")
14782 ;;
14783 esac
14784
14785 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14786 postinstall_cmds='base_file=`basename \${file}`~
14787 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14788 dldir=$destdir/`dirname \$dlpath`~
14789 test -d \$dldir || mkdir -p \$dldir~
14790 $install_prog $dir/$dlname \$dldir/$dlname'
14791 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14792 dlpath=$dir/\$dldll~
14793 $RM \$dlpath'
14794 shlibpath_overrides_runpath=yes
14795 dynamic_linker='Win32 link.exe'
14796 ;;
14797
14798 *)
14799 # Assume MSVC wrapper
14800 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14801 dynamic_linker='Win32 ld.exe'
14802 ;;
14803 esac
14804 # FIXME: first we should search . and the directory the executable is in
14805 shlibpath_var=PATH
14806 ;;
14807
14808 darwin* | rhapsody*)
14809 dynamic_linker="$host_os dyld"
14810 version_type=darwin
14811 need_lib_prefix=no
14812 need_version=no
14813 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14814 soname_spec='${libname}${release}${major}$shared_ext'
14815 shlibpath_overrides_runpath=yes
14816 shlibpath_var=DYLD_LIBRARY_PATH
14817 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14818
14819 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14820 ;;
14821
14822 dgux*)
14823 version_type=linux # correct to gnu/linux during the next big refactor
14824 need_lib_prefix=no
14825 need_version=no
14826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14827 soname_spec='${libname}${release}${shared_ext}$major'
14828 shlibpath_var=LD_LIBRARY_PATH
14829 ;;
14830
14831 freebsd* | dragonfly*)
14832 # DragonFly does not have aout. When/if they implement a new
14833 # versioning mechanism, adjust this.
14834 if test -x /usr/bin/objformat; then
14835 objformat=`/usr/bin/objformat`
14836 else
14837 case $host_os in
14838 freebsd[23].*) objformat=aout ;;
14839 *) objformat=elf ;;
14840 esac
14841 fi
14842 version_type=freebsd-$objformat
14843 case $version_type in
14844 freebsd-elf*)
14845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14846 need_version=no
14847 need_lib_prefix=no
14848 ;;
14849 freebsd-*)
14850 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14851 need_version=yes
14852 ;;
14853 esac
14854 shlibpath_var=LD_LIBRARY_PATH
14855 case $host_os in
14856 freebsd2.*)
14857 shlibpath_overrides_runpath=yes
14858 ;;
14859 freebsd3.[01]* | freebsdelf3.[01]*)
14860 shlibpath_overrides_runpath=yes
14861 hardcode_into_libs=yes
14862 ;;
14863 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14864 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14865 shlibpath_overrides_runpath=no
14866 hardcode_into_libs=yes
14867 ;;
14868 *) # from 4.6 on, and DragonFly
14869 shlibpath_overrides_runpath=yes
14870 hardcode_into_libs=yes
14871 ;;
14872 esac
14873 ;;
14874
14875 gnu*)
14876 version_type=linux # correct to gnu/linux during the next big refactor
14877 need_lib_prefix=no
14878 need_version=no
14879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14880 soname_spec='${libname}${release}${shared_ext}$major'
14881 shlibpath_var=LD_LIBRARY_PATH
14882 shlibpath_overrides_runpath=no
14883 hardcode_into_libs=yes
14884 ;;
14885
14886 haiku*)
14887 version_type=linux # correct to gnu/linux during the next big refactor
14888 need_lib_prefix=no
14889 need_version=no
14890 dynamic_linker="$host_os runtime_loader"
14891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14892 soname_spec='${libname}${release}${shared_ext}$major'
14893 shlibpath_var=LIBRARY_PATH
14894 shlibpath_overrides_runpath=yes
14895 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14896 hardcode_into_libs=yes
14897 ;;
14898
14899 hpux9* | hpux10* | hpux11*)
14900 # Give a soname corresponding to the major version so that dld.sl refuses to
14901 # link against other versions.
14902 version_type=sunos
14903 need_lib_prefix=no
14904 need_version=no
14905 case $host_cpu in
14906 ia64*)
14907 shrext_cmds='.so'
14908 hardcode_into_libs=yes
14909 dynamic_linker="$host_os dld.so"
14910 shlibpath_var=LD_LIBRARY_PATH
14911 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14913 soname_spec='${libname}${release}${shared_ext}$major'
14914 if test "X$HPUX_IA64_MODE" = X32; then
14915 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14916 else
14917 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14918 fi
14919 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14920 ;;
14921 hppa*64*)
14922 shrext_cmds='.sl'
14923 hardcode_into_libs=yes
14924 dynamic_linker="$host_os dld.sl"
14925 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14926 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14928 soname_spec='${libname}${release}${shared_ext}$major'
14929 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14930 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14931 ;;
14932 *)
14933 shrext_cmds='.sl'
14934 dynamic_linker="$host_os dld.sl"
14935 shlibpath_var=SHLIB_PATH
14936 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14938 soname_spec='${libname}${release}${shared_ext}$major'
14939 ;;
14940 esac
14941 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14942 postinstall_cmds='chmod 555 $lib'
14943 # or fails outright, so override atomically:
14944 install_override_mode=555
14945 ;;
14946
14947 interix[3-9]*)
14948 version_type=linux # correct to gnu/linux during the next big refactor
14949 need_lib_prefix=no
14950 need_version=no
14951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14952 soname_spec='${libname}${release}${shared_ext}$major'
14953 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14954 shlibpath_var=LD_LIBRARY_PATH
14955 shlibpath_overrides_runpath=no
14956 hardcode_into_libs=yes
14957 ;;
14958
14959 irix5* | irix6* | nonstopux*)
14960 case $host_os in
14961 nonstopux*) version_type=nonstopux ;;
14962 *)
14963 if test "$lt_cv_prog_gnu_ld" = yes; then
14964 version_type=linux # correct to gnu/linux during the next big refactor
14965 else
14966 version_type=irix
14967 fi ;;
14968 esac
14969 need_lib_prefix=no
14970 need_version=no
14971 soname_spec='${libname}${release}${shared_ext}$major'
14972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14973 case $host_os in
14974 irix5* | nonstopux*)
14975 libsuff= shlibsuff=
14976 ;;
14977 *)
14978 case $LD in # libtool.m4 will add one of these switches to LD
14979 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14980 libsuff= shlibsuff= libmagic=32-bit;;
14981 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14982 libsuff=32 shlibsuff=N32 libmagic=N32;;
14983 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14984 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14985 *) libsuff= shlibsuff= libmagic=never-match;;
14986 esac
14987 ;;
14988 esac
14989 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14990 shlibpath_overrides_runpath=no
14991 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14992 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14993 hardcode_into_libs=yes
14994 ;;
14995
14996 # No shared lib support for Linux oldld, aout, or coff.
14997 linux*oldld* | linux*aout* | linux*coff*)
14998 dynamic_linker=no
14999 ;;
15000
15001 # This must be glibc/ELF.
15002 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15003 version_type=linux # correct to gnu/linux during the next big refactor
15004 need_lib_prefix=no
15005 need_version=no
15006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15007 soname_spec='${libname}${release}${shared_ext}$major'
15008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15009 shlibpath_var=LD_LIBRARY_PATH
15010 shlibpath_overrides_runpath=no
15011
15012 # Some binutils ld are patched to set DT_RUNPATH
15013 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15014 $as_echo_n "(cached) " >&6
15015 else
15016 lt_cv_shlibpath_overrides_runpath=no
15017 save_LDFLAGS=$LDFLAGS
15018 save_libdir=$libdir
15019 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15020 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022 /* end confdefs.h. */
15023
15024 int
15025 main ()
15026 {
15027
15028 ;
15029 return 0;
15030 }
15031 _ACEOF
15032 if ac_fn_cxx_try_link "$LINENO"; then :
15033 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15034 lt_cv_shlibpath_overrides_runpath=yes
15035 fi
15036 fi
15037 rm -f core conftest.err conftest.$ac_objext \
15038 conftest$ac_exeext conftest.$ac_ext
15039 LDFLAGS=$save_LDFLAGS
15040 libdir=$save_libdir
15041
15042 fi
15043
15044 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15045
15046 # This implies no fast_install, which is unacceptable.
15047 # Some rework will be needed to allow for fast_install
15048 # before this can be enabled.
15049 hardcode_into_libs=yes
15050
15051 # Add ABI-specific directories to the system library path.
15052 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15053
15054 # Append ld.so.conf contents to the search path
15055 if test -f /etc/ld.so.conf; then
15056 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' ' '`
15057 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15058
15059 fi
15060
15061 # We used to test for /lib/ld.so.1 and disable shared libraries on
15062 # powerpc, because MkLinux only supported shared libraries with the
15063 # GNU dynamic linker. Since this was broken with cross compilers,
15064 # most powerpc-linux boxes support dynamic linking these days and
15065 # people can always --disable-shared, the test was removed, and we
15066 # assume the GNU/Linux dynamic linker is in use.
15067 dynamic_linker='GNU/Linux ld.so'
15068 ;;
15069
15070 netbsd*)
15071 version_type=sunos
15072 need_lib_prefix=no
15073 need_version=no
15074 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15077 dynamic_linker='NetBSD (a.out) ld.so'
15078 else
15079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15080 soname_spec='${libname}${release}${shared_ext}$major'
15081 dynamic_linker='NetBSD ld.elf_so'
15082 fi
15083 shlibpath_var=LD_LIBRARY_PATH
15084 shlibpath_overrides_runpath=yes
15085 hardcode_into_libs=yes
15086 ;;
15087
15088 newsos6)
15089 version_type=linux # correct to gnu/linux during the next big refactor
15090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15091 shlibpath_var=LD_LIBRARY_PATH
15092 shlibpath_overrides_runpath=yes
15093 ;;
15094
15095 *nto* | *qnx*)
15096 version_type=qnx
15097 need_lib_prefix=no
15098 need_version=no
15099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15100 soname_spec='${libname}${release}${shared_ext}$major'
15101 shlibpath_var=LD_LIBRARY_PATH
15102 shlibpath_overrides_runpath=no
15103 hardcode_into_libs=yes
15104 dynamic_linker='ldqnx.so'
15105 ;;
15106
15107 openbsd*)
15108 version_type=sunos
15109 sys_lib_dlsearch_path_spec="/usr/lib"
15110 need_lib_prefix=no
15111 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15112 case $host_os in
15113 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15114 *) need_version=no ;;
15115 esac
15116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15118 shlibpath_var=LD_LIBRARY_PATH
15119 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15120 case $host_os in
15121 openbsd2.[89] | openbsd2.[89].*)
15122 shlibpath_overrides_runpath=no
15123 ;;
15124 *)
15125 shlibpath_overrides_runpath=yes
15126 ;;
15127 esac
15128 else
15129 shlibpath_overrides_runpath=yes
15130 fi
15131 ;;
15132
15133 os2*)
15134 libname_spec='$name'
15135 shrext_cmds=".dll"
15136 need_lib_prefix=no
15137 library_names_spec='$libname${shared_ext} $libname.a'
15138 dynamic_linker='OS/2 ld.exe'
15139 shlibpath_var=LIBPATH
15140 ;;
15141
15142 osf3* | osf4* | osf5*)
15143 version_type=osf
15144 need_lib_prefix=no
15145 need_version=no
15146 soname_spec='${libname}${release}${shared_ext}$major'
15147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15148 shlibpath_var=LD_LIBRARY_PATH
15149 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15150 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15151 ;;
15152
15153 rdos*)
15154 dynamic_linker=no
15155 ;;
15156
15157 solaris*)
15158 version_type=linux # correct to gnu/linux during the next big refactor
15159 need_lib_prefix=no
15160 need_version=no
15161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15162 soname_spec='${libname}${release}${shared_ext}$major'
15163 shlibpath_var=LD_LIBRARY_PATH
15164 shlibpath_overrides_runpath=yes
15165 hardcode_into_libs=yes
15166 # ldd complains unless libraries are executable
15167 postinstall_cmds='chmod +x $lib'
15168 ;;
15169
15170 sunos4*)
15171 version_type=sunos
15172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15173 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15174 shlibpath_var=LD_LIBRARY_PATH
15175 shlibpath_overrides_runpath=yes
15176 if test "$with_gnu_ld" = yes; then
15177 need_lib_prefix=no
15178 fi
15179 need_version=yes
15180 ;;
15181
15182 sysv4 | sysv4.3*)
15183 version_type=linux # correct to gnu/linux during the next big refactor
15184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15185 soname_spec='${libname}${release}${shared_ext}$major'
15186 shlibpath_var=LD_LIBRARY_PATH
15187 case $host_vendor in
15188 sni)
15189 shlibpath_overrides_runpath=no
15190 need_lib_prefix=no
15191 runpath_var=LD_RUN_PATH
15192 ;;
15193 siemens)
15194 need_lib_prefix=no
15195 ;;
15196 motorola)
15197 need_lib_prefix=no
15198 need_version=no
15199 shlibpath_overrides_runpath=no
15200 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15201 ;;
15202 esac
15203 ;;
15204
15205 sysv4*MP*)
15206 if test -d /usr/nec ;then
15207 version_type=linux # correct to gnu/linux during the next big refactor
15208 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15209 soname_spec='$libname${shared_ext}.$major'
15210 shlibpath_var=LD_LIBRARY_PATH
15211 fi
15212 ;;
15213
15214 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15215 version_type=freebsd-elf
15216 need_lib_prefix=no
15217 need_version=no
15218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15219 soname_spec='${libname}${release}${shared_ext}$major'
15220 shlibpath_var=LD_LIBRARY_PATH
15221 shlibpath_overrides_runpath=yes
15222 hardcode_into_libs=yes
15223 if test "$with_gnu_ld" = yes; then
15224 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15225 else
15226 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15227 case $host_os in
15228 sco3.2v5*)
15229 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15230 ;;
15231 esac
15232 fi
15233 sys_lib_dlsearch_path_spec='/usr/lib'
15234 ;;
15235
15236 tpf*)
15237 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15238 version_type=linux # correct to gnu/linux during the next big refactor
15239 need_lib_prefix=no
15240 need_version=no
15241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15242 shlibpath_var=LD_LIBRARY_PATH
15243 shlibpath_overrides_runpath=no
15244 hardcode_into_libs=yes
15245 ;;
15246
15247 uts4*)
15248 version_type=linux # correct to gnu/linux during the next big refactor
15249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15250 soname_spec='${libname}${release}${shared_ext}$major'
15251 shlibpath_var=LD_LIBRARY_PATH
15252 ;;
15253
15254 *)
15255 dynamic_linker=no
15256 ;;
15257 esac
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15259 $as_echo "$dynamic_linker" >&6; }
15260 test "$dynamic_linker" = no && can_build_shared=no
15261
15262 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15263 if test "$GCC" = yes; then
15264 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15265 fi
15266
15267 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15268 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15269 fi
15270 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15271 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15272 fi
15273
15274
15275
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15312 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15313 hardcode_action_CXX=
15314 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15315 test -n "$runpath_var_CXX" ||
15316 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15317
15318 # We can hardcode non-existent directories.
15319 if test "$hardcode_direct_CXX" != no &&
15320 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15321 # have to relink, otherwise we might link with an installed library
15322 # when we should be linking with a yet-to-be-installed one
15323 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15324 test "$hardcode_minus_L_CXX" != no; then
15325 # Linking always hardcodes the temporary library directory.
15326 hardcode_action_CXX=relink
15327 else
15328 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15329 hardcode_action_CXX=immediate
15330 fi
15331 else
15332 # We cannot hardcode anything, or else we can only hardcode existing
15333 # directories.
15334 hardcode_action_CXX=unsupported
15335 fi
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15337 $as_echo "$hardcode_action_CXX" >&6; }
15338
15339 if test "$hardcode_action_CXX" = relink ||
15340 test "$inherit_rpath_CXX" = yes; then
15341 # Fast installation is not supported
15342 enable_fast_install=no
15343 elif test "$shlibpath_overrides_runpath" = yes ||
15344 test "$enable_shared" = no; then
15345 # Fast installation is not necessary
15346 enable_fast_install=needless
15347 fi
15348
15349
15350
15351
15352
15353
15354
15355 fi # test -n "$compiler"
15356
15357 CC=$lt_save_CC
15358 CFLAGS=$lt_save_CFLAGS
15359 LDCXX=$LD
15360 LD=$lt_save_LD
15361 GCC=$lt_save_GCC
15362 with_gnu_ld=$lt_save_with_gnu_ld
15363 lt_cv_path_LDCXX=$lt_cv_path_LD
15364 lt_cv_path_LD=$lt_save_path_LD
15365 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15366 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15367 fi # test "$_lt_caught_CXX_error" != yes
15368
15369 ac_ext=c
15370 ac_cpp='$CPP $CPPFLAGS'
15371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389 ac_config_commands="$ac_config_commands libtool"
15390
15391
15392
15393
15394 # Only expand once:
15395
15396
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15398 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15399 set x ${MAKE-make}
15400 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15401 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
15402 $as_echo_n "(cached) " >&6
15403 else
15404 cat >conftest.make <<\_ACEOF
15405 SHELL = /bin/sh
15406 all:
15407 @echo '@@@%%%=$(MAKE)=@@@%%%'
15408 _ACEOF
15409 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
15410 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15411 *@@@%%%=?*=@@@%%%*)
15412 eval ac_cv_prog_make_${ac_make}_set=yes;;
15413 *)
15414 eval ac_cv_prog_make_${ac_make}_set=no;;
15415 esac
15416 rm -f conftest.make
15417 fi
15418 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15420 $as_echo "yes" >&6; }
15421 SET_MAKE=
15422 else
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15424 $as_echo "no" >&6; }
15425 SET_MAKE="MAKE=${MAKE-make}"
15426 fi
15427
15428 for ac_prog in flex lex
15429 do
15430 # Extract the first word of "$ac_prog", so it can be a program name with args.
15431 set dummy $ac_prog; ac_word=$2
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15433 $as_echo_n "checking for $ac_word... " >&6; }
15434 if ${ac_cv_prog_LEX+:} false; then :
15435 $as_echo_n "(cached) " >&6
15436 else
15437 if test -n "$LEX"; then
15438 ac_cv_prog_LEX="$LEX" # Let the user override the test.
15439 else
15440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15441 for as_dir in $PATH
15442 do
15443 IFS=$as_save_IFS
15444 test -z "$as_dir" && as_dir=.
15445 for ac_exec_ext in '' $ac_executable_extensions; do
15446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15447 ac_cv_prog_LEX="$ac_prog"
15448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15449 break 2
15450 fi
15451 done
15452 done
15453 IFS=$as_save_IFS
15454
15455 fi
15456 fi
15457 LEX=$ac_cv_prog_LEX
15458 if test -n "$LEX"; then
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
15460 $as_echo "$LEX" >&6; }
15461 else
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15463 $as_echo "no" >&6; }
15464 fi
15465
15466
15467 test -n "$LEX" && break
15468 done
15469 test -n "$LEX" || LEX=":"
15470
15471 if test "x$LEX" != "x:"; then
15472 cat >conftest.l <<_ACEOF
15473 %%
15474 a { ECHO; }
15475 b { REJECT; }
15476 c { yymore (); }
15477 d { yyless (1); }
15478 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
15479 yyless ((input () != 0)); }
15480 f { unput (yytext[0]); }
15481 . { BEGIN INITIAL; }
15482 %%
15483 #ifdef YYTEXT_POINTER
15484 extern char *yytext;
15485 #endif
15486 int
15487 main (void)
15488 {
15489 return ! yylex () + ! yywrap ();
15490 }
15491 _ACEOF
15492 { { ac_try="$LEX conftest.l"
15493 case "(($ac_try" in
15494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15495 *) ac_try_echo=$ac_try;;
15496 esac
15497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15498 $as_echo "$ac_try_echo"; } >&5
15499 (eval "$LEX conftest.l") 2>&5
15500 ac_status=$?
15501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15502 test $ac_status = 0; }
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
15504 $as_echo_n "checking lex output file root... " >&6; }
15505 if ${ac_cv_prog_lex_root+:} false; then :
15506 $as_echo_n "(cached) " >&6
15507 else
15508
15509 if test -f lex.yy.c; then
15510 ac_cv_prog_lex_root=lex.yy
15511 elif test -f lexyy.c; then
15512 ac_cv_prog_lex_root=lexyy
15513 else
15514 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
15515 fi
15516 fi
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
15518 $as_echo "$ac_cv_prog_lex_root" >&6; }
15519 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
15520
15521 if test -z "${LEXLIB+set}"; then
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
15523 $as_echo_n "checking lex library... " >&6; }
15524 if ${ac_cv_lib_lex+:} false; then :
15525 $as_echo_n "(cached) " >&6
15526 else
15527
15528 ac_save_LIBS=$LIBS
15529 ac_cv_lib_lex='none needed'
15530 for ac_lib in '' -lfl -ll; do
15531 LIBS="$ac_lib $ac_save_LIBS"
15532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15533 /* end confdefs.h. */
15534 `cat $LEX_OUTPUT_ROOT.c`
15535 _ACEOF
15536 if ac_fn_c_try_link "$LINENO"; then :
15537 ac_cv_lib_lex=$ac_lib
15538 fi
15539 rm -f core conftest.err conftest.$ac_objext \
15540 conftest$ac_exeext conftest.$ac_ext
15541 test "$ac_cv_lib_lex" != 'none needed' && break
15542 done
15543 LIBS=$ac_save_LIBS
15544
15545 fi
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
15547 $as_echo "$ac_cv_lib_lex" >&6; }
15548 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
15549 fi
15550
15551
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
15553 $as_echo_n "checking whether yytext is a pointer... " >&6; }
15554 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
15555 $as_echo_n "(cached) " >&6
15556 else
15557 # POSIX says lex can declare yytext either as a pointer or an array; the
15558 # default is implementation-dependent. Figure out which it is, since
15559 # not all implementations provide the %pointer and %array declarations.
15560 ac_cv_prog_lex_yytext_pointer=no
15561 ac_save_LIBS=$LIBS
15562 LIBS="$LEXLIB $ac_save_LIBS"
15563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15564 /* end confdefs.h. */
15565
15566 #define YYTEXT_POINTER 1
15567 `cat $LEX_OUTPUT_ROOT.c`
15568 _ACEOF
15569 if ac_fn_c_try_link "$LINENO"; then :
15570 ac_cv_prog_lex_yytext_pointer=yes
15571 fi
15572 rm -f core conftest.err conftest.$ac_objext \
15573 conftest$ac_exeext conftest.$ac_ext
15574 LIBS=$ac_save_LIBS
15575
15576 fi
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
15578 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
15579 if test $ac_cv_prog_lex_yytext_pointer = yes; then
15580
15581 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
15582
15583 fi
15584 rm -f conftest.l $LEX_OUTPUT_ROOT.c
15585
15586 fi
15587 if test "$LEX" = :; then
15588 LEX=${am_missing_run}flex
15589 fi
15590 for ac_prog in 'bison -y' byacc
15591 do
15592 # Extract the first word of "$ac_prog", so it can be a program name with args.
15593 set dummy $ac_prog; ac_word=$2
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15595 $as_echo_n "checking for $ac_word... " >&6; }
15596 if ${ac_cv_prog_YACC+:} false; then :
15597 $as_echo_n "(cached) " >&6
15598 else
15599 if test -n "$YACC"; then
15600 ac_cv_prog_YACC="$YACC" # Let the user override the test.
15601 else
15602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15603 for as_dir in $PATH
15604 do
15605 IFS=$as_save_IFS
15606 test -z "$as_dir" && as_dir=.
15607 for ac_exec_ext in '' $ac_executable_extensions; do
15608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15609 ac_cv_prog_YACC="$ac_prog"
15610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15611 break 2
15612 fi
15613 done
15614 done
15615 IFS=$as_save_IFS
15616
15617 fi
15618 fi
15619 YACC=$ac_cv_prog_YACC
15620 if test -n "$YACC"; then
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
15622 $as_echo "$YACC" >&6; }
15623 else
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15625 $as_echo "no" >&6; }
15626 fi
15627
15628
15629 test -n "$YACC" && break
15630 done
15631 test -n "$YACC" || YACC="yacc"
15632
15633 if test "$with_gnu_ld" = "yes"; then
15634 WITH_GNU_LD_TRUE=
15635 WITH_GNU_LD_FALSE='#'
15636 else
15637 WITH_GNU_LD_TRUE='#'
15638 WITH_GNU_LD_FALSE=
15639 fi
15640
15641 # Extract the first word of "perl", so it can be a program name with args.
15642 set dummy perl; ac_word=$2
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15644 $as_echo_n "checking for $ac_word... " >&6; }
15645 if ${ac_cv_path_PERL+:} false; then :
15646 $as_echo_n "(cached) " >&6
15647 else
15648 case $PERL in
15649 [\\/]* | ?:[\\/]*)
15650 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
15651 ;;
15652 *)
15653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15654 for as_dir in $PATH
15655 do
15656 IFS=$as_save_IFS
15657 test -z "$as_dir" && as_dir=.
15658 for ac_exec_ext in '' $ac_executable_extensions; do
15659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15660 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
15661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15662 break 2
15663 fi
15664 done
15665 done
15666 IFS=$as_save_IFS
15667
15668 ;;
15669 esac
15670 fi
15671 PERL=$ac_cv_path_PERL
15672 if test -n "$PERL"; then
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
15674 $as_echo "$PERL" >&6; }
15675 else
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15677 $as_echo "no" >&6; }
15678 fi
15679
15680
15681 # Extract the first word of "python", so it can be a program name with args.
15682 set dummy python; ac_word=$2
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15684 $as_echo_n "checking for $ac_word... " >&6; }
15685 if ${ac_cv_path_PYTHON+:} false; then :
15686 $as_echo_n "(cached) " >&6
15687 else
15688 case $PYTHON in
15689 [\\/]* | ?:[\\/]*)
15690 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
15691 ;;
15692 *)
15693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15694 for as_dir in $PATH
15695 do
15696 IFS=$as_save_IFS
15697 test -z "$as_dir" && as_dir=.
15698 for ac_exec_ext in '' $ac_executable_extensions; do
15699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15700 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
15701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15702 break 2
15703 fi
15704 done
15705 done
15706 IFS=$as_save_IFS
15707
15708 ;;
15709 esac
15710 fi
15711 PYTHON=$ac_cv_path_PYTHON
15712 if test -n "$PYTHON"; then
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
15714 $as_echo "$PYTHON" >&6; }
15715 else
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15717 $as_echo "no" >&6; }
15718 fi
15719
15720
15721 # Extract the first word of "pod2man", so it can be a program name with args.
15722 set dummy pod2man; ac_word=$2
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15724 $as_echo_n "checking for $ac_word... " >&6; }
15725 if ${ac_cv_path_POD2MAN+:} false; then :
15726 $as_echo_n "(cached) " >&6
15727 else
15728 case $POD2MAN in
15729 [\\/]* | ?:[\\/]*)
15730 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
15731 ;;
15732 *)
15733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15734 as_dummy="$PATH:/usr/perl5/bin/"
15735 for as_dir in $as_dummy
15736 do
15737 IFS=$as_save_IFS
15738 test -z "$as_dir" && as_dir=.
15739 for ac_exec_ext in '' $ac_executable_extensions; do
15740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15741 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
15742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15743 break 2
15744 fi
15745 done
15746 done
15747 IFS=$as_save_IFS
15748
15749 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="/usr/bin/pod2man"
15750 ;;
15751 esac
15752 fi
15753 POD2MAN=$ac_cv_path_POD2MAN
15754 if test -n "$POD2MAN"; then
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
15756 $as_echo "$POD2MAN" >&6; }
15757 else
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15759 $as_echo "no" >&6; }
15760 fi
15761
15762
15763 # Extract the first word of "javac", so it can be a program name with args.
15764 set dummy javac; ac_word=$2
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15766 $as_echo_n "checking for $ac_word... " >&6; }
15767 if ${ac_cv_path_JAVAC+:} false; then :
15768 $as_echo_n "(cached) " >&6
15769 else
15770 case $JAVAC in
15771 [\\/]* | ?:[\\/]*)
15772 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
15773 ;;
15774 *)
15775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15776 for as_dir in $PATH
15777 do
15778 IFS=$as_save_IFS
15779 test -z "$as_dir" && as_dir=.
15780 for ac_exec_ext in '' $ac_executable_extensions; do
15781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15782 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
15783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15784 break 2
15785 fi
15786 done
15787 done
15788 IFS=$as_save_IFS
15789
15790 ;;
15791 esac
15792 fi
15793 JAVAC=$ac_cv_path_JAVAC
15794 if test -n "$JAVAC"; then
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
15796 $as_echo "$JAVAC" >&6; }
15797 else
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15799 $as_echo "no" >&6; }
15800 fi
15801
15802
15803 # Extract the first word of "javah", so it can be a program name with args.
15804 set dummy javah; ac_word=$2
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15806 $as_echo_n "checking for $ac_word... " >&6; }
15807 if ${ac_cv_path_JAVAH+:} false; then :
15808 $as_echo_n "(cached) " >&6
15809 else
15810 case $JAVAH in
15811 [\\/]* | ?:[\\/]*)
15812 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
15813 ;;
15814 *)
15815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15816 for as_dir in $PATH
15817 do
15818 IFS=$as_save_IFS
15819 test -z "$as_dir" && as_dir=.
15820 for ac_exec_ext in '' $ac_executable_extensions; do
15821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15822 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext"
15823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15824 break 2
15825 fi
15826 done
15827 done
15828 IFS=$as_save_IFS
15829
15830 ;;
15831 esac
15832 fi
15833 JAVAH=$ac_cv_path_JAVAH
15834 if test -n "$JAVAH"; then
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5
15836 $as_echo "$JAVAH" >&6; }
15837 else
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15839 $as_echo "no" >&6; }
15840 fi
15841
15842
15843 # Extract the first word of "java", so it can be a program name with args.
15844 set dummy java; ac_word=$2
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15846 $as_echo_n "checking for $ac_word... " >&6; }
15847 if ${ac_cv_path_JAVA+:} false; then :
15848 $as_echo_n "(cached) " >&6
15849 else
15850 case $JAVA in
15851 [\\/]* | ?:[\\/]*)
15852 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
15853 ;;
15854 *)
15855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15856 for as_dir in $PATH
15857 do
15858 IFS=$as_save_IFS
15859 test -z "$as_dir" && as_dir=.
15860 for ac_exec_ext in '' $ac_executable_extensions; do
15861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15862 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
15863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15864 break 2
15865 fi
15866 done
15867 done
15868 IFS=$as_save_IFS
15869
15870 ;;
15871 esac
15872 fi
15873 JAVA=$ac_cv_path_JAVA
15874 if test -n "$JAVA"; then
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
15876 $as_echo "$JAVA" >&6; }
15877 else
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15879 $as_echo "no" >&6; }
15880 fi
15881
15882
15883 # Extract the first word of "jar", so it can be a program name with args.
15884 set dummy jar; ac_word=$2
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15886 $as_echo_n "checking for $ac_word... " >&6; }
15887 if ${ac_cv_path_JAR+:} false; then :
15888 $as_echo_n "(cached) " >&6
15889 else
15890 case $JAR in
15891 [\\/]* | ?:[\\/]*)
15892 ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
15893 ;;
15894 *)
15895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15896 for as_dir in $PATH
15897 do
15898 IFS=$as_save_IFS
15899 test -z "$as_dir" && as_dir=.
15900 for ac_exec_ext in '' $ac_executable_extensions; do
15901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15902 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
15903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15904 break 2
15905 fi
15906 done
15907 done
15908 IFS=$as_save_IFS
15909
15910 ;;
15911 esac
15912 fi
15913 JAR=$ac_cv_path_JAR
15914 if test -n "$JAR"; then
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
15916 $as_echo "$JAR" >&6; }
15917 else
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15919 $as_echo "no" >&6; }
15920 fi
15921
15922
15923 # Extract the first word of "javadoc", so it can be a program name with args.
15924 set dummy javadoc; ac_word=$2
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15926 $as_echo_n "checking for $ac_word... " >&6; }
15927 if ${ac_cv_path_JAVADOC+:} false; then :
15928 $as_echo_n "(cached) " >&6
15929 else
15930 case $JAVADOC in
15931 [\\/]* | ?:[\\/]*)
15932 ac_cv_path_JAVADOC="$JAVADOC" # Let the user override the test with a path.
15933 ;;
15934 *)
15935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15936 for as_dir in $PATH
15937 do
15938 IFS=$as_save_IFS
15939 test -z "$as_dir" && as_dir=.
15940 for ac_exec_ext in '' $ac_executable_extensions; do
15941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15942 ac_cv_path_JAVADOC="$as_dir/$ac_word$ac_exec_ext"
15943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15944 break 2
15945 fi
15946 done
15947 done
15948 IFS=$as_save_IFS
15949
15950 ;;
15951 esac
15952 fi
15953 JAVADOC=$ac_cv_path_JAVADOC
15954 if test -n "$JAVADOC"; then
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVADOC" >&5
15956 $as_echo "$JAVADOC" >&6; }
15957 else
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15959 $as_echo "no" >&6; }
15960 fi
15961
15962
15963
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
15965 $as_echo_n "checking whether debugging is enabled... " >&6; }
15966 # Check whether --enable-debug was given.
15967 if test "${enable_debug+set}" = set; then :
15968 enableval=$enable_debug; case "$enableval" in
15969 yes) ac_debug=yes ;;
15970 no) ac_debug=no ;;
15971 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: doh!" >&5
15972 $as_echo "doh!" >&6; }
15973 as_fn_error $? "bad value \"$enableval\" for --enable-debug" "$LINENO" 5 ;;
15974 esac
15975
15976
15977 fi
15978
15979 if test "$ac_debug" = yes; then
15980 if test -z "$ac_save_CFLAGS"; then
15981 test "$ac_cv_prog_cc_g" = yes && CFLAGS="-g -Werror-implicit-function-declaration"
15982 test "$GCC" = yes && CFLAGS="$CFLAGS -Wall"
15983 fi
15984 MANPAGE_DEBUG=1
15985 else
15986 if test -z "$ac_save_CFLAGS"; then
15987 test "$GCC" = yes && CFLAGS="-O3 -Wall -fno-strict-aliasing" || CFLAGS="-O3"
15988 LDFLAGS="${LDFLAGS--s}"
15989 fi
15990
15991 $as_echo "#define NDEBUG 1" >>confdefs.h
15992
15993 MANPAGE_DEBUG=0
15994 fi
15995
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_debug=no}" >&5
15997 $as_echo "${ac_debug=no}" >&6; }
15998
15999
16000 ##
16001 ## achu: Solaris 10 (and maybe some other earlier Solarises) bison has
16002 ## a bug which segfaults. So we use the below to force yacc usage
16003 ## when we need to .
16004 ##
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-force-yacc " >&5
16006 $as_echo_n "checking for --with-force-yacc ... " >&6; }
16007
16008 # Check whether --with-force-yacc was given.
16009 if test "${with_force_yacc+set}" = set; then :
16010 withval=$with_force_yacc; case "$withval" in
16011 yes)
16012 ac_force_yacc=yes
16013 ;;
16014 no)
16015 ac_force_yacc=no
16016 ;;
16017 *)
16018 ac_force_yacc=no
16019 ;;
16020 esac
16021
16022 fi
16023
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_force_yacc=no}" >&5
16025 $as_echo "${ac_force_yacc=no}" >&6; }
16026 if test "$ac_force_yacc" = yes; then
16027 YACC=yacc
16028
16029 fi
16030
16031 ##
16032 ##
16033 ##
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-non-shortened-hostnames" >&5
16035 $as_echo_n "checking for --with-non-shortened-hostnames... " >&6; }
16036
16037 # Check whether --with-non-shortened-hostnames was given.
16038 if test "${with_non_shortened_hostnames+set}" = set; then :
16039 withval=$with_non_shortened_hostnames; case "$withval" in
16040 yes)
16041 ac_non_shortened_hostnames=yes
16042 ;;
16043 no)
16044 ac_non_shortened_hostnames=no
16045 ;;
16046 *)
16047 ac_non_shortened_hostnames=no
16048 ;;
16049 esac
16050
16051 fi
16052
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_non_shortened_hostnames=no}" >&5
16054 $as_echo "${ac_non_shortened_hostnames=no}" >&6; }
16055
16056 if test x"${ac_non_shortened_hostnames}" = xyes; then
16057
16058 $as_echo "#define WITH_NON_SHORTENED_HOSTNAMES 1" >>confdefs.h
16059
16060 fi
16061
16062 ##
16063 # Checks for header files.
16064 ##
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16066 $as_echo_n "checking for ANSI C header files... " >&6; }
16067 if ${ac_cv_header_stdc+:} false; then :
16068 $as_echo_n "(cached) " >&6
16069 else
16070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16071 /* end confdefs.h. */
16072 #include <stdlib.h>
16073 #include <stdarg.h>
16074 #include <string.h>
16075 #include <float.h>
16076
16077 int
16078 main ()
16079 {
16080
16081 ;
16082 return 0;
16083 }
16084 _ACEOF
16085 if ac_fn_c_try_compile "$LINENO"; then :
16086 ac_cv_header_stdc=yes
16087 else
16088 ac_cv_header_stdc=no
16089 fi
16090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16091
16092 if test $ac_cv_header_stdc = yes; then
16093 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16095 /* end confdefs.h. */
16096 #include <string.h>
16097
16098 _ACEOF
16099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16100 $EGREP "memchr" >/dev/null 2>&1; then :
16101
16102 else
16103 ac_cv_header_stdc=no
16104 fi
16105 rm -f conftest*
16106
16107 fi
16108
16109 if test $ac_cv_header_stdc = yes; then
16110 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16112 /* end confdefs.h. */
16113 #include <stdlib.h>
16114
16115 _ACEOF
16116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16117 $EGREP "free" >/dev/null 2>&1; then :
16118
16119 else
16120 ac_cv_header_stdc=no
16121 fi
16122 rm -f conftest*
16123
16124 fi
16125
16126 if test $ac_cv_header_stdc = yes; then
16127 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16128 if test "$cross_compiling" = yes; then :
16129 :
16130 else
16131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16132 /* end confdefs.h. */
16133 #include <ctype.h>
16134 #include <stdlib.h>
16135 #if ((' ' & 0x0FF) == 0x020)
16136 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16137 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16138 #else
16139 # define ISLOWER(c) \
16140 (('a' <= (c) && (c) <= 'i') \
16141 || ('j' <= (c) && (c) <= 'r') \
16142 || ('s' <= (c) && (c) <= 'z'))
16143 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16144 #endif
16145
16146 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16147 int
16148 main ()
16149 {
16150 int i;
16151 for (i = 0; i < 256; i++)
16152 if (XOR (islower (i), ISLOWER (i))
16153 || toupper (i) != TOUPPER (i))
16154 return 2;
16155 return 0;
16156 }
16157 _ACEOF
16158 if ac_fn_c_try_run "$LINENO"; then :
16159
16160 else
16161 ac_cv_header_stdc=no
16162 fi
16163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16164 conftest.$ac_objext conftest.beam conftest.$ac_ext
16165 fi
16166
16167 fi
16168 fi
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16170 $as_echo "$ac_cv_header_stdc" >&6; }
16171 if test $ac_cv_header_stdc = yes; then
16172
16173 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16174
16175 fi
16176
16177 for ac_header in \
16178 fcntl.h \
16179 unistd.h \
16180 getopt.h \
16181 paths.h \
16182
16183 do :
16184 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16185 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16186 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16187 cat >>confdefs.h <<_ACEOF
16188 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16189 _ACEOF
16190
16191 fi
16192
16193 done
16194
16195
16196 #
16197 # Check for default paths
16198 #
16199
16200 GENDERS_DEFAULT_FILE="\"/etc/genders\""
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genders default file path" >&5
16202 $as_echo_n "checking for genders default file path... " >&6; }
16203
16204 # Check whether --with-genders-file was given.
16205 if test "${with_genders_file+set}" = set; then :
16206 withval=$with_genders_file; case "$withval" in
16207 no) ;;
16208 yes) ;;
16209 *) GENDERS_DEFAULT_FILE="\"$withval\""
16210 esac
16211
16212
16213 fi
16214
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENDERS_DEFAULT_FILE" >&5
16216 $as_echo "$GENDERS_DEFAULT_FILE" >&6; }
16217
16218
16219
16220
16221 #
16222 # Check for extension stuff
16223 #
16224
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-extension-destdir " >&5
16226 $as_echo_n "checking for --with-extension-destdir ... " >&6; }
16227
16228 # Check whether --with-extension-destdir was given.
16229 if test "${with_extension_destdir+set}" = set; then :
16230 withval=$with_extension_destdir; case "$withval" in
16231 yes)
16232 withextensionldestdir=yes
16233 ;;
16234 no)
16235 ;;
16236 *)
16237 withextensionldestdir=yes
16238 EXTENSION_DESTDIR="$withval"
16239 ;;
16240 esac
16241
16242 fi
16243
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${withextensionldestdir=no}" >&5
16245 $as_echo "${withextensionldestdir=no}" >&6; }
16246
16247
16248
16249 #
16250 # Check for perl stuff
16251 #
16252
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-perl-extensions" >&5
16254 $as_echo_n "checking for --with-perl-extensions... " >&6; }
16255
16256 # Check whether --with-perl-extensions was given.
16257 if test "${with_perl_extensions+set}" = set; then :
16258 withval=$with_perl_extensions; case "$withval" in
16259 yes)
16260 ac_with_perl_extensions=yes
16261 ;;
16262 no)
16263 ac_with_perl_extensions=no
16264 ;;
16265 *)
16266 ac_with_perl_extensions=yes
16267 ;;
16268 esac
16269
16270 fi
16271
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_with_perl_extensions=yes}" >&5
16273 $as_echo "${ac_with_perl_extensions=yes}" >&6; }
16274
16275 if test "$ac_with_perl_extensions" = "yes"; then
16276 WITH_PERL_EXTENSIONS_TRUE=
16277 WITH_PERL_EXTENSIONS_FALSE='#'
16278 else
16279 WITH_PERL_EXTENSIONS_TRUE='#'
16280 WITH_PERL_EXTENSIONS_FALSE=
16281 fi
16282
16283
16284 #
16285 # Determine Perl section-3 man page extension
16286 #
16287 PERLMAN3EXT=`$PERL -MConfig -e 'print $Config{man3ext}'`
16288
16289
16290 #
16291 # Determine Perl Install Location
16292 #
16293
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-perl-site-arch" >&5
16295 $as_echo_n "checking for --with-perl-site-arch... " >&6; }
16296
16297 # Check whether --with-perl-site-arch was given.
16298 if test "${with_perl_site_arch+set}" = set; then :
16299 withval=$with_perl_site_arch; case "$withval" in
16300 yes)
16301 ac_with_perl_site_arch=yes
16302 ;;
16303 no)
16304 ac_with_perl_site_arch=no
16305 ;;
16306 *)
16307 ac_with_perl_site_arch=yes
16308 ;;
16309 esac
16310
16311 fi
16312
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_with_perl_site_arch=no}" >&5
16314 $as_echo "${ac_with_perl_site_arch=no}" >&6; }
16315
16316
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-perl-vendor-arch" >&5
16318 $as_echo_n "checking for --with-perl-vendor-arch... " >&6; }
16319
16320 # Check whether --with-perl-vendor-arch was given.
16321 if test "${with_perl_vendor_arch+set}" = set; then :
16322 withval=$with_perl_vendor_arch; case "$withval" in
16323 yes)
16324 ac_with_perl_vendor_arch=yes
16325 ;;
16326 no)
16327 ac_with_perl_vendor_arch=no
16328 ;;
16329 *)
16330 ac_with_perl_vendor_arch=yes
16331 ;;
16332 esac
16333
16334 fi
16335
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_with_perl_vendor_arch=no}" >&5
16337 $as_echo "${ac_with_perl_vendor_arch=no}" >&6; }
16338
16339 if test "$ac_with_perl_site_arch" = yes && \
16340 test "$ac_with_perl_vendor_arch" = yes ; then
16341 as_fn_error $? "cannot specify both perl site arch and vendor arch" "$LINENO" 5
16342 elif test "$ac_with_perl_site_arch" = yes; then
16343 PERL_ARCH_INSTALL=site
16344 elif test "$ac_with_perl_vendor_arch" = yes; then
16345 PERL_ARCH_INSTALL=vendor
16346 else
16347 PERL_ARCH_INSTALL=vendor
16348 fi
16349
16350
16351 #
16352 # Check for python stuff
16353 #
16354
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-python-extensions" >&5
16356 $as_echo_n "checking for --with-python-extensions... " >&6; }
16357
16358 # Check whether --with-python-extensions was given.
16359 if test "${with_python_extensions+set}" = set; then :
16360 withval=$with_python_extensions; case "$withval" in
16361 yes)
16362 ac_with_python_extensions=yes
16363 ;;
16364 no)
16365 ac_with_python_extensions=no
16366 ;;
16367 *)
16368 ac_with_python_extensions=yes
16369 ;;
16370 esac
16371
16372 fi
16373
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_with_python_extensions=yes}" >&5
16375 $as_echo "${ac_with_python_extensions=yes}" >&6; }
16376
16377 if test "$ac_with_python_extensions" = "yes"; then
16378 WITH_PYTHON_EXTENSIONS_TRUE=
16379 WITH_PYTHON_EXTENSIONS_FALSE='#'
16380 else
16381 WITH_PYTHON_EXTENSIONS_TRUE='#'
16382 WITH_PYTHON_EXTENSIONS_FALSE=
16383 fi
16384
16385
16386 #
16387 # Check for c++ stuff
16388 #
16389
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cplusplus-extensions" >&5
16391 $as_echo_n "checking for --with-cplusplus-extensions... " >&6; }
16392
16393 # Check whether --with-cplusplus-extensions was given.
16394 if test "${with_cplusplus_extensions+set}" = set; then :
16395 withval=$with_cplusplus_extensions; case "$withval" in
16396 yes)
16397 ac_with_cplusplus_extensions=yes
16398 ;;
16399 no)
16400 ac_with_cplusplus_extensions=no
16401 ;;
16402 *)
16403 ac_with_cplusplus_extensions=yes
16404 ;;
16405 esac
16406
16407 fi
16408
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_with_cplusplus_extensions=yes}" >&5
16410 $as_echo "${ac_with_cplusplus_extensions=yes}" >&6; }
16411
16412 if test "$ac_with_cplusplus_extensions" = "yes"; then
16413 WITH_CPLUSPLUS_EXTENSIONS_TRUE=
16414 WITH_CPLUSPLUS_EXTENSIONS_FALSE='#'
16415 else
16416 WITH_CPLUSPLUS_EXTENSIONS_TRUE='#'
16417 WITH_CPLUSPLUS_EXTENSIONS_FALSE=
16418 fi
16419
16420
16421 #
16422 # Check for java stuff
16423 #
16424
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-java-extensions" >&5
16426 $as_echo_n "checking for --with-java-extensions... " >&6; }
16427
16428 # Check whether --with-java-extensions was given.
16429 if test "${with_java_extensions+set}" = set; then :
16430 withval=$with_java_extensions; case "$withval" in
16431 yes)
16432 ac_with_java_extensions=yes
16433 ;;
16434 no)
16435 ac_with_java_extensions=no
16436 ;;
16437 *)
16438 ac_with_java_extensions=yes
16439 ;;
16440 esac
16441
16442 fi
16443
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_with_java_extensions=yes}" >&5
16445 $as_echo "${ac_with_java_extensions=yes}" >&6; }
16446
16447 if test "$ac_with_java_extensions" = "yes"; then
16448 WITH_JAVA_EXTENSIONS_TRUE=
16449 WITH_JAVA_EXTENSIONS_FALSE='#'
16450 else
16451 WITH_JAVA_EXTENSIONS_TRUE='#'
16452 WITH_JAVA_EXTENSIONS_FALSE=
16453 fi
16454
16455
16456 ##
16457 # Checks for typedefs, structures, and compiler characteristics.
16458 ##
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16460 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16461 if ${ac_cv_c_bigendian+:} false; then :
16462 $as_echo_n "(cached) " >&6
16463 else
16464 ac_cv_c_bigendian=unknown
16465 # See if we're dealing with a universal compiler.
16466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16467 /* end confdefs.h. */
16468 #ifndef __APPLE_CC__
16469 not a universal capable compiler
16470 #endif
16471 typedef int dummy;
16472
16473 _ACEOF
16474 if ac_fn_c_try_compile "$LINENO"; then :
16475
16476 # Check for potential -arch flags. It is not universal unless
16477 # there are at least two -arch flags with different values.
16478 ac_arch=
16479 ac_prev=
16480 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16481 if test -n "$ac_prev"; then
16482 case $ac_word in
16483 i?86 | x86_64 | ppc | ppc64)
16484 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16485 ac_arch=$ac_word
16486 else
16487 ac_cv_c_bigendian=universal
16488 break
16489 fi
16490 ;;
16491 esac
16492 ac_prev=
16493 elif test "x$ac_word" = "x-arch"; then
16494 ac_prev=arch
16495 fi
16496 done
16497 fi
16498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16499 if test $ac_cv_c_bigendian = unknown; then
16500 # See if sys/param.h defines the BYTE_ORDER macro.
16501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16502 /* end confdefs.h. */
16503 #include <sys/types.h>
16504 #include <sys/param.h>
16505
16506 int
16507 main ()
16508 {
16509 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16510 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16511 && LITTLE_ENDIAN)
16512 bogus endian macros
16513 #endif
16514
16515 ;
16516 return 0;
16517 }
16518 _ACEOF
16519 if ac_fn_c_try_compile "$LINENO"; then :
16520 # It does; now see whether it defined to BIG_ENDIAN or not.
16521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16522 /* end confdefs.h. */
16523 #include <sys/types.h>
16524 #include <sys/param.h>
16525
16526 int
16527 main ()
16528 {
16529 #if BYTE_ORDER != BIG_ENDIAN
16530 not big endian
16531 #endif
16532
16533 ;
16534 return 0;
16535 }
16536 _ACEOF
16537 if ac_fn_c_try_compile "$LINENO"; then :
16538 ac_cv_c_bigendian=yes
16539 else
16540 ac_cv_c_bigendian=no
16541 fi
16542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16543 fi
16544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16545 fi
16546 if test $ac_cv_c_bigendian = unknown; then
16547 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16549 /* end confdefs.h. */
16550 #include <limits.h>
16551
16552 int
16553 main ()
16554 {
16555 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16556 bogus endian macros
16557 #endif
16558
16559 ;
16560 return 0;
16561 }
16562 _ACEOF
16563 if ac_fn_c_try_compile "$LINENO"; then :
16564 # It does; now see whether it defined to _BIG_ENDIAN or not.
16565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16566 /* end confdefs.h. */
16567 #include <limits.h>
16568
16569 int
16570 main ()
16571 {
16572 #ifndef _BIG_ENDIAN
16573 not big endian
16574 #endif
16575
16576 ;
16577 return 0;
16578 }
16579 _ACEOF
16580 if ac_fn_c_try_compile "$LINENO"; then :
16581 ac_cv_c_bigendian=yes
16582 else
16583 ac_cv_c_bigendian=no
16584 fi
16585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16586 fi
16587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16588 fi
16589 if test $ac_cv_c_bigendian = unknown; then
16590 # Compile a test program.
16591 if test "$cross_compiling" = yes; then :
16592 # Try to guess by grepping values from an object file.
16593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16594 /* end confdefs.h. */
16595 short int ascii_mm[] =
16596 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16597 short int ascii_ii[] =
16598 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16599 int use_ascii (int i) {
16600 return ascii_mm[i] + ascii_ii[i];
16601 }
16602 short int ebcdic_ii[] =
16603 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16604 short int ebcdic_mm[] =
16605 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16606 int use_ebcdic (int i) {
16607 return ebcdic_mm[i] + ebcdic_ii[i];
16608 }
16609 extern int foo;
16610
16611 int
16612 main ()
16613 {
16614 return use_ascii (foo) == use_ebcdic (foo);
16615 ;
16616 return 0;
16617 }
16618 _ACEOF
16619 if ac_fn_c_try_compile "$LINENO"; then :
16620 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16621 ac_cv_c_bigendian=yes
16622 fi
16623 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16624 if test "$ac_cv_c_bigendian" = unknown; then
16625 ac_cv_c_bigendian=no
16626 else
16627 # finding both strings is unlikely to happen, but who knows?
16628 ac_cv_c_bigendian=unknown
16629 fi
16630 fi
16631 fi
16632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16633 else
16634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16635 /* end confdefs.h. */
16636 $ac_includes_default
16637 int
16638 main ()
16639 {
16640
16641 /* Are we little or big endian? From Harbison&Steele. */
16642 union
16643 {
16644 long int l;
16645 char c[sizeof (long int)];
16646 } u;
16647 u.l = 1;
16648 return u.c[sizeof (long int) - 1] == 1;
16649
16650 ;
16651 return 0;
16652 }
16653 _ACEOF
16654 if ac_fn_c_try_run "$LINENO"; then :
16655 ac_cv_c_bigendian=no
16656 else
16657 ac_cv_c_bigendian=yes
16658 fi
16659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16660 conftest.$ac_objext conftest.beam conftest.$ac_ext
16661 fi
16662
16663 fi
16664 fi
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16666 $as_echo "$ac_cv_c_bigendian" >&6; }
16667 case $ac_cv_c_bigendian in #(
16668 yes)
16669 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16670 ;; #(
16671 no)
16672 ;; #(
16673 universal)
16674
16675 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16676
16677 ;; #(
16678 *)
16679 as_fn_error $? "unknown endianness
16680 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16681 esac
16682
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16684 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16685 if ${ac_cv_c_const+:} false; then :
16686 $as_echo_n "(cached) " >&6
16687 else
16688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16689 /* end confdefs.h. */
16690
16691 int
16692 main ()
16693 {
16694
16695 #ifndef __cplusplus
16696 /* Ultrix mips cc rejects this sort of thing. */
16697 typedef int charset[2];
16698 const charset cs = { 0, 0 };
16699 /* SunOS 4.1.1 cc rejects this. */
16700 char const *const *pcpcc;
16701 char **ppc;
16702 /* NEC SVR4.0.2 mips cc rejects this. */
16703 struct point {int x, y;};
16704 static struct point const zero = {0,0};
16705 /* AIX XL C 1.02.0.0 rejects this.
16706 It does not let you subtract one const X* pointer from another in
16707 an arm of an if-expression whose if-part is not a constant
16708 expression */
16709 const char *g = "string";
16710 pcpcc = &g + (g ? g-g : 0);
16711 /* HPUX 7.0 cc rejects these. */
16712 ++pcpcc;
16713 ppc = (char**) pcpcc;
16714 pcpcc = (char const *const *) ppc;
16715 { /* SCO 3.2v4 cc rejects this sort of thing. */
16716 char tx;
16717 char *t = &tx;
16718 char const *s = 0 ? (char *) 0 : (char const *) 0;
16719
16720 *t++ = 0;
16721 if (s) return 0;
16722 }
16723 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16724 int x[] = {25, 17};
16725 const int *foo = &x[0];
16726 ++foo;
16727 }
16728 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16729 typedef const int *iptr;
16730 iptr p = 0;
16731 ++p;
16732 }
16733 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16734 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16735 struct s { int j; const int *ap[3]; } bx;
16736 struct s *b = &bx; b->j = 5;
16737 }
16738 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16739 const int foo = 10;
16740 if (!foo) return 0;
16741 }
16742 return !cs[0] && !zero.x;
16743 #endif
16744
16745 ;
16746 return 0;
16747 }
16748 _ACEOF
16749 if ac_fn_c_try_compile "$LINENO"; then :
16750 ac_cv_c_const=yes
16751 else
16752 ac_cv_c_const=no
16753 fi
16754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16755 fi
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16757 $as_echo "$ac_cv_c_const" >&6; }
16758 if test $ac_cv_c_const = no; then
16759
16760 $as_echo "#define const /**/" >>confdefs.h
16761
16762 fi
16763
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
16765 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
16766 if ${ac_cv_type_uid_t+:} false; then :
16767 $as_echo_n "(cached) " >&6
16768 else
16769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16770 /* end confdefs.h. */
16771 #include <sys/types.h>
16772
16773 _ACEOF
16774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16775 $EGREP "uid_t" >/dev/null 2>&1; then :
16776 ac_cv_type_uid_t=yes
16777 else
16778 ac_cv_type_uid_t=no
16779 fi
16780 rm -f conftest*
16781
16782 fi
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
16784 $as_echo "$ac_cv_type_uid_t" >&6; }
16785 if test $ac_cv_type_uid_t = no; then
16786
16787 $as_echo "#define uid_t int" >>confdefs.h
16788
16789
16790 $as_echo "#define gid_t int" >>confdefs.h
16791
16792 fi
16793
16794
16795 ##
16796 # Checks for library functions.
16797 ##
16798 for ac_func in \
16799 strcmp \
16800 strlen \
16801 strcpy \
16802 strchr \
16803 strsep \
16804 strspn \
16805 strtok_r \
16806 getopt_long \
16807
16808 do :
16809 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16810 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16811 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16812 cat >>confdefs.h <<_ACEOF
16813 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16814 _ACEOF
16815
16816 fi
16817 done
16818
16819
16820 ##
16821 # Epilogue.
16822 ##
16823 ac_config_files="$ac_config_files genders.spec Makefile src/Makefile src/libcommon/Makefile src/libgenders/Makefile src/nodeattr/Makefile src/libgenders/genders.h src/extensions/Makefile src/extensions/cplusplus/Makefile src/extensions/perl/Makefile src/extensions/perl/Libgenders/Makefile src/extensions/perl/Libgenders/Libgenders.pm src/extensions/perl/Genders/Makefile src/extensions/perl/Genders/Genders.pm src/extensions/python/Makefile src/extensions/python/genderssetup.py src/extensions/java/Makefile src/testsuite/Makefile src/testsuite/libgenders/Makefile src/testsuite/libgenders/testdatabases/Makefile compat/Makefile contrib/Makefile contrib/cfengine/Makefile contrib/cfengine/cfengine-2.2.10/Makefile contrib/cfengine/cfengine-3.3.0/Makefile contrib/php/Makefile man/Makefile man/compat/Makefile"
16824
16825 cat >confcache <<\_ACEOF
16826 # This file is a shell script that caches the results of configure
16827 # tests run on this system so they can be shared between configure
16828 # scripts and configure runs, see configure's option --config-cache.
16829 # It is not useful on other systems. If it contains results you don't
16830 # want to keep, you may remove or edit it.
16831 #
16832 # config.status only pays attention to the cache file if you give it
16833 # the --recheck option to rerun configure.
16834 #
16835 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16836 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16837 # following values.
16838
16839 _ACEOF
16840
16841 # The following way of writing the cache mishandles newlines in values,
16842 # but we know of no workaround that is simple, portable, and efficient.
16843 # So, we kill variables containing newlines.
16844 # Ultrix sh set writes to stderr and can't be redirected directly,
16845 # and sets the high bit in the cache file unless we assign to the vars.
16846 (
16847 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16848 eval ac_val=\$$ac_var
16849 case $ac_val in #(
16850 *${as_nl}*)
16851 case $ac_var in #(
16852 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16853 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16854 esac
16855 case $ac_var in #(
16856 _ | IFS | as_nl) ;; #(
16857 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16858 *) { eval $ac_var=; unset $ac_var;} ;;
16859 esac ;;
16860 esac
16861 done
16862
16863 (set) 2>&1 |
16864 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16865 *${as_nl}ac_space=\ *)
16866 # `set' does not quote correctly, so add quotes: double-quote
16867 # substitution turns \\\\ into \\, and sed turns \\ into \.
16868 sed -n \
16869 "s/'/'\\\\''/g;
16870 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16871 ;; #(
16872 *)
16873 # `set' quotes correctly as required by POSIX, so do not add quotes.
16874 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16875 ;;
16876 esac |
16877 sort
16878 ) |
16879 sed '
16880 /^ac_cv_env_/b end
16881 t clear
16882 :clear
16883 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16884 t end
16885 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16886 :end' >>confcache
16887 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16888 if test -w "$cache_file"; then
16889 if test "x$cache_file" != "x/dev/null"; then
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16891 $as_echo "$as_me: updating cache $cache_file" >&6;}
16892 if test ! -f "$cache_file" || test -h "$cache_file"; then
16893 cat confcache >"$cache_file"
16894 else
16895 case $cache_file in #(
16896 */* | ?:*)
16897 mv -f confcache "$cache_file"$$ &&
16898 mv -f "$cache_file"$$ "$cache_file" ;; #(
16899 *)
16900 mv -f confcache "$cache_file" ;;
16901 esac
16902 fi
16903 fi
16904 else
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16906 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16907 fi
16908 fi
16909 rm -f confcache
16910
16911 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16912 # Let make expand exec_prefix.
16913 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16914
16915 DEFS=-DHAVE_CONFIG_H
16916
16917 ac_libobjs=
16918 ac_ltlibobjs=
16919 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16920 # 1. Remove the extension, and $U if already installed.
16921 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16922 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16923 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16924 # will be set to the directory where LIBOBJS objects are built.
16925 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16926 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16927 done
16928 LIBOBJS=$ac_libobjs
16929
16930 LTLIBOBJS=$ac_ltlibobjs
16931
16932
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16934 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16935 if test -n "$am_sleep_pid"; then
16936 # Hide warnings about reused PIDs.
16937 wait $am_sleep_pid 2>/dev/null
16938 fi
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16940 $as_echo "done" >&6; }
16941 if test -n "$EXEEXT"; then
16942 am__EXEEXT_TRUE=
16943 am__EXEEXT_FALSE='#'
16944 else
16945 am__EXEEXT_TRUE='#'
16946 am__EXEEXT_FALSE=
16947 fi
16948
16949 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16950 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16951 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16952 fi
16953 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16954 as_fn_error $? "conditional \"AMDEP\" was never defined.
16955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16956 fi
16957 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16958 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16960 fi
16961 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16962 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16964 fi
16965 if test -z "${WITH_GNU_LD_TRUE}" && test -z "${WITH_GNU_LD_FALSE}"; then
16966 as_fn_error $? "conditional \"WITH_GNU_LD\" was never defined.
16967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16968 fi
16969 if test -z "${WITH_PERL_EXTENSIONS_TRUE}" && test -z "${WITH_PERL_EXTENSIONS_FALSE}"; then
16970 as_fn_error $? "conditional \"WITH_PERL_EXTENSIONS\" was never defined.
16971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16972 fi
16973 if test -z "${WITH_PYTHON_EXTENSIONS_TRUE}" && test -z "${WITH_PYTHON_EXTENSIONS_FALSE}"; then
16974 as_fn_error $? "conditional \"WITH_PYTHON_EXTENSIONS\" was never defined.
16975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16976 fi
16977 if test -z "${WITH_CPLUSPLUS_EXTENSIONS_TRUE}" && test -z "${WITH_CPLUSPLUS_EXTENSIONS_FALSE}"; then
16978 as_fn_error $? "conditional \"WITH_CPLUSPLUS_EXTENSIONS\" was never defined.
16979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16980 fi
16981 if test -z "${WITH_JAVA_EXTENSIONS_TRUE}" && test -z "${WITH_JAVA_EXTENSIONS_FALSE}"; then
16982 as_fn_error $? "conditional \"WITH_JAVA_EXTENSIONS\" was never defined.
16983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16984 fi
16985
16986
16987 : "${CONFIG_STATUS=./config.status}"
16988 ac_write_fail=0
16989 ac_clean_files_save=$ac_clean_files
16990 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16992 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16993 as_write_fail=0
16994 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16995 #! $SHELL
16996 # Generated by $as_me.
16997 # Run this file to recreate the current configuration.
16998 # Compiler output produced by configure, useful for debugging
16999 # configure, is in config.log if it exists.
17000
17001 debug=false
17002 ac_cs_recheck=false
17003 ac_cs_silent=false
17004
17005 SHELL=\${CONFIG_SHELL-$SHELL}
17006 export SHELL
17007 _ASEOF
17008 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17009 ## -------------------- ##
17010 ## M4sh Initialization. ##
17011 ## -------------------- ##
17012
17013 # Be more Bourne compatible
17014 DUALCASE=1; export DUALCASE # for MKS sh
17015 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17016 emulate sh
17017 NULLCMD=:
17018 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17019 # is contrary to our usage. Disable this feature.
17020 alias -g '${1+"$@"}'='"$@"'
17021 setopt NO_GLOB_SUBST
17022 else
17023 case `(set -o) 2>/dev/null` in #(
17024 *posix*) :
17025 set -o posix ;; #(
17026 *) :
17027 ;;
17028 esac
17029 fi
17030
17031
17032 as_nl='
17033 '
17034 export as_nl
17035 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17036 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17037 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17038 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17039 # Prefer a ksh shell builtin over an external printf program on Solaris,
17040 # but without wasting forks for bash or zsh.
17041 if test -z "$BASH_VERSION$ZSH_VERSION" \
17042 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17043 as_echo='print -r --'
17044 as_echo_n='print -rn --'
17045 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17046 as_echo='printf %s\n'
17047 as_echo_n='printf %s'
17048 else
17049 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17050 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17051 as_echo_n='/usr/ucb/echo -n'
17052 else
17053 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17054 as_echo_n_body='eval
17055 arg=$1;
17056 case $arg in #(
17057 *"$as_nl"*)
17058 expr "X$arg" : "X\\(.*\\)$as_nl";
17059 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17060 esac;
17061 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17062 '
17063 export as_echo_n_body
17064 as_echo_n='sh -c $as_echo_n_body as_echo'
17065 fi
17066 export as_echo_body
17067 as_echo='sh -c $as_echo_body as_echo'
17068 fi
17069
17070 # The user is always right.
17071 if test "${PATH_SEPARATOR+set}" != set; then
17072 PATH_SEPARATOR=:
17073 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17074 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17075 PATH_SEPARATOR=';'
17076 }
17077 fi
17078
17079
17080 # IFS
17081 # We need space, tab and new line, in precisely that order. Quoting is
17082 # there to prevent editors from complaining about space-tab.
17083 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17084 # splitting by setting IFS to empty value.)
17085 IFS=" "" $as_nl"
17086
17087 # Find who we are. Look in the path if we contain no directory separator.
17088 as_myself=
17089 case $0 in #((
17090 *[\\/]* ) as_myself=$0 ;;
17091 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17092 for as_dir in $PATH
17093 do
17094 IFS=$as_save_IFS
17095 test -z "$as_dir" && as_dir=.
17096 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17097 done
17098 IFS=$as_save_IFS
17099
17100 ;;
17101 esac
17102 # We did not find ourselves, most probably we were run as `sh COMMAND'
17103 # in which case we are not to be found in the path.
17104 if test "x$as_myself" = x; then
17105 as_myself=$0
17106 fi
17107 if test ! -f "$as_myself"; then
17108 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17109 exit 1
17110 fi
17111
17112 # Unset variables that we do not need and which cause bugs (e.g. in
17113 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17114 # suppresses any "Segmentation fault" message there. '((' could
17115 # trigger a bug in pdksh 5.2.14.
17116 for as_var in BASH_ENV ENV MAIL MAILPATH
17117 do eval test x\${$as_var+set} = xset \
17118 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17119 done
17120 PS1='$ '
17121 PS2='> '
17122 PS4='+ '
17123
17124 # NLS nuisances.
17125 LC_ALL=C
17126 export LC_ALL
17127 LANGUAGE=C
17128 export LANGUAGE
17129
17130 # CDPATH.
17131 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17132
17133
17134 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17135 # ----------------------------------------
17136 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17137 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17138 # script with STATUS, using 1 if that was 0.
17139 as_fn_error ()
17140 {
17141 as_status=$1; test $as_status -eq 0 && as_status=1
17142 if test "$4"; then
17143 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17144 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17145 fi
17146 $as_echo "$as_me: error: $2" >&2
17147 as_fn_exit $as_status
17148 } # as_fn_error
17149
17150
17151 # as_fn_set_status STATUS
17152 # -----------------------
17153 # Set $? to STATUS, without forking.
17154 as_fn_set_status ()
17155 {
17156 return $1
17157 } # as_fn_set_status
17158
17159 # as_fn_exit STATUS
17160 # -----------------
17161 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17162 as_fn_exit ()
17163 {
17164 set +e
17165 as_fn_set_status $1
17166 exit $1
17167 } # as_fn_exit
17168
17169 # as_fn_unset VAR
17170 # ---------------
17171 # Portably unset VAR.
17172 as_fn_unset ()
17173 {
17174 { eval $1=; unset $1;}
17175 }
17176 as_unset=as_fn_unset
17177 # as_fn_append VAR VALUE
17178 # ----------------------
17179 # Append the text in VALUE to the end of the definition contained in VAR. Take
17180 # advantage of any shell optimizations that allow amortized linear growth over
17181 # repeated appends, instead of the typical quadratic growth present in naive
17182 # implementations.
17183 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17184 eval 'as_fn_append ()
17185 {
17186 eval $1+=\$2
17187 }'
17188 else
17189 as_fn_append ()
17190 {
17191 eval $1=\$$1\$2
17192 }
17193 fi # as_fn_append
17194
17195 # as_fn_arith ARG...
17196 # ------------------
17197 # Perform arithmetic evaluation on the ARGs, and store the result in the
17198 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17199 # must be portable across $(()) and expr.
17200 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17201 eval 'as_fn_arith ()
17202 {
17203 as_val=$(( $* ))
17204 }'
17205 else
17206 as_fn_arith ()
17207 {
17208 as_val=`expr "$@" || test $? -eq 1`
17209 }
17210 fi # as_fn_arith
17211
17212
17213 if expr a : '\(a\)' >/dev/null 2>&1 &&
17214 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17215 as_expr=expr
17216 else
17217 as_expr=false
17218 fi
17219
17220 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17221 as_basename=basename
17222 else
17223 as_basename=false
17224 fi
17225
17226 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17227 as_dirname=dirname
17228 else
17229 as_dirname=false
17230 fi
17231
17232 as_me=`$as_basename -- "$0" ||
17233 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17234 X"$0" : 'X\(//\)$' \| \
17235 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17236 $as_echo X/"$0" |
17237 sed '/^.*\/\([^/][^/]*\)\/*$/{
17238 s//\1/
17239 q
17240 }
17241 /^X\/\(\/\/\)$/{
17242 s//\1/
17243 q
17244 }
17245 /^X\/\(\/\).*/{
17246 s//\1/
17247 q
17248 }
17249 s/.*/./; q'`
17250
17251 # Avoid depending upon Character Ranges.
17252 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17253 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17254 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17255 as_cr_digits='0123456789'
17256 as_cr_alnum=$as_cr_Letters$as_cr_digits
17257
17258 ECHO_C= ECHO_N= ECHO_T=
17259 case `echo -n x` in #(((((
17260 -n*)
17261 case `echo 'xy\c'` in
17262 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17263 xy) ECHO_C='\c';;
17264 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17265 ECHO_T=' ';;
17266 esac;;
17267 *)
17268 ECHO_N='-n';;
17269 esac
17270
17271 rm -f conf$$ conf$$.exe conf$$.file
17272 if test -d conf$$.dir; then
17273 rm -f conf$$.dir/conf$$.file
17274 else
17275 rm -f conf$$.dir
17276 mkdir conf$$.dir 2>/dev/null
17277 fi
17278 if (echo >conf$$.file) 2>/dev/null; then
17279 if ln -s conf$$.file conf$$ 2>/dev/null; then
17280 as_ln_s='ln -s'
17281 # ... but there are two gotchas:
17282 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17283 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17284 # In both cases, we have to default to `cp -pR'.
17285 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17286 as_ln_s='cp -pR'
17287 elif ln conf$$.file conf$$ 2>/dev/null; then
17288 as_ln_s=ln
17289 else
17290 as_ln_s='cp -pR'
17291 fi
17292 else
17293 as_ln_s='cp -pR'
17294 fi
17295 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17296 rmdir conf$$.dir 2>/dev/null
17297
17298
17299 # as_fn_mkdir_p
17300 # -------------
17301 # Create "$as_dir" as a directory, including parents if necessary.
17302 as_fn_mkdir_p ()
17303 {
17304
17305 case $as_dir in #(
17306 -*) as_dir=./$as_dir;;
17307 esac
17308 test -d "$as_dir" || eval $as_mkdir_p || {
17309 as_dirs=
17310 while :; do
17311 case $as_dir in #(
17312 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17313 *) as_qdir=$as_dir;;
17314 esac
17315 as_dirs="'$as_qdir' $as_dirs"
17316 as_dir=`$as_dirname -- "$as_dir" ||
17317 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17318 X"$as_dir" : 'X\(//\)[^/]' \| \
17319 X"$as_dir" : 'X\(//\)$' \| \
17320 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17321 $as_echo X"$as_dir" |
17322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17323 s//\1/
17324 q
17325 }
17326 /^X\(\/\/\)[^/].*/{
17327 s//\1/
17328 q
17329 }
17330 /^X\(\/\/\)$/{
17331 s//\1/
17332 q
17333 }
17334 /^X\(\/\).*/{
17335 s//\1/
17336 q
17337 }
17338 s/.*/./; q'`
17339 test -d "$as_dir" && break
17340 done
17341 test -z "$as_dirs" || eval "mkdir $as_dirs"
17342 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17343
17344
17345 } # as_fn_mkdir_p
17346 if mkdir -p . 2>/dev/null; then
17347 as_mkdir_p='mkdir -p "$as_dir"'
17348 else
17349 test -d ./-p && rmdir ./-p
17350 as_mkdir_p=false
17351 fi
17352
17353
17354 # as_fn_executable_p FILE
17355 # -----------------------
17356 # Test if FILE is an executable regular file.
17357 as_fn_executable_p ()
17358 {
17359 test -f "$1" && test -x "$1"
17360 } # as_fn_executable_p
17361 as_test_x='test -x'
17362 as_executable_p=as_fn_executable_p
17363
17364 # Sed expression to map a string onto a valid CPP name.
17365 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17366
17367 # Sed expression to map a string onto a valid variable name.
17368 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17369
17370
17371 exec 6>&1
17372 ## ----------------------------------- ##
17373 ## Main body of $CONFIG_STATUS script. ##
17374 ## ----------------------------------- ##
17375 _ASEOF
17376 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17377
17378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17379 # Save the log message, to keep $0 and so on meaningful, and to
17380 # report actual input values of CONFIG_FILES etc. instead of their
17381 # values after options handling.
17382 ac_log="
17383 This file was extended by genders $as_me 1.27, which was
17384 generated by GNU Autoconf 2.69. Invocation command line was
17385
17386 CONFIG_FILES = $CONFIG_FILES
17387 CONFIG_HEADERS = $CONFIG_HEADERS
17388 CONFIG_LINKS = $CONFIG_LINKS
17389 CONFIG_COMMANDS = $CONFIG_COMMANDS
17390 $ $0 $@
17391
17392 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17393 "
17394
17395 _ACEOF
17396
17397 case $ac_config_files in *"
17398 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17399 esac
17400
17401 case $ac_config_headers in *"
17402 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17403 esac
17404
17405
17406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17407 # Files that config.status was made for.
17408 config_files="$ac_config_files"
17409 config_headers="$ac_config_headers"
17410 config_commands="$ac_config_commands"
17411
17412 _ACEOF
17413
17414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17415 ac_cs_usage="\
17416 \`$as_me' instantiates files and other configuration actions
17417 from templates according to the current configuration. Unless the files
17418 and actions are specified as TAGs, all are instantiated by default.
17419
17420 Usage: $0 [OPTION]... [TAG]...
17421
17422 -h, --help print this help, then exit
17423 -V, --version print version number and configuration settings, then exit
17424 --config print configuration, then exit
17425 -q, --quiet, --silent
17426 do not print progress messages
17427 -d, --debug don't remove temporary files
17428 --recheck update $as_me by reconfiguring in the same conditions
17429 --file=FILE[:TEMPLATE]
17430 instantiate the configuration file FILE
17431 --header=FILE[:TEMPLATE]
17432 instantiate the configuration header FILE
17433
17434 Configuration files:
17435 $config_files
17436
17437 Configuration headers:
17438 $config_headers
17439
17440 Configuration commands:
17441 $config_commands
17442
17443 Report bugs to the package provider."
17444
17445 _ACEOF
17446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17447 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17448 ac_cs_version="\\
17449 genders config.status 1.27
17450 configured by $0, generated by GNU Autoconf 2.69,
17451 with options \\"\$ac_cs_config\\"
17452
17453 Copyright (C) 2012 Free Software Foundation, Inc.
17454 This config.status script is free software; the Free Software Foundation
17455 gives unlimited permission to copy, distribute and modify it."
17456
17457 ac_pwd='$ac_pwd'
17458 srcdir='$srcdir'
17459 INSTALL='$INSTALL'
17460 MKDIR_P='$MKDIR_P'
17461 AWK='$AWK'
17462 test -n "\$AWK" || AWK=awk
17463 _ACEOF
17464
17465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17466 # The default lists apply if the user does not specify any file.
17467 ac_need_defaults=:
17468 while test $# != 0
17469 do
17470 case $1 in
17471 --*=?*)
17472 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17473 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17474 ac_shift=:
17475 ;;
17476 --*=)
17477 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17478 ac_optarg=
17479 ac_shift=:
17480 ;;
17481 *)
17482 ac_option=$1
17483 ac_optarg=$2
17484 ac_shift=shift
17485 ;;
17486 esac
17487
17488 case $ac_option in
17489 # Handling of the options.
17490 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17491 ac_cs_recheck=: ;;
17492 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17493 $as_echo "$ac_cs_version"; exit ;;
17494 --config | --confi | --conf | --con | --co | --c )
17495 $as_echo "$ac_cs_config"; exit ;;
17496 --debug | --debu | --deb | --de | --d | -d )
17497 debug=: ;;
17498 --file | --fil | --fi | --f )
17499 $ac_shift
17500 case $ac_optarg in
17501 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17502 '') as_fn_error $? "missing file argument" ;;
17503 esac
17504 as_fn_append CONFIG_FILES " '$ac_optarg'"
17505 ac_need_defaults=false;;
17506 --header | --heade | --head | --hea )
17507 $ac_shift
17508 case $ac_optarg in
17509 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17510 esac
17511 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17512 ac_need_defaults=false;;
17513 --he | --h)
17514 # Conflict between --help and --header
17515 as_fn_error $? "ambiguous option: \`$1'
17516 Try \`$0 --help' for more information.";;
17517 --help | --hel | -h )
17518 $as_echo "$ac_cs_usage"; exit ;;
17519 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17520 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17521 ac_cs_silent=: ;;
17522
17523 # This is an error.
17524 -*) as_fn_error $? "unrecognized option: \`$1'
17525 Try \`$0 --help' for more information." ;;
17526
17527 *) as_fn_append ac_config_targets " $1"
17528 ac_need_defaults=false ;;
17529
17530 esac
17531 shift
17532 done
17533
17534 ac_configure_extra_args=
17535
17536 if $ac_cs_silent; then
17537 exec 6>/dev/null
17538 ac_configure_extra_args="$ac_configure_extra_args --silent"
17539 fi
17540
17541 _ACEOF
17542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17543 if \$ac_cs_recheck; then
17544 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17545 shift
17546 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17547 CONFIG_SHELL='$SHELL'
17548 export CONFIG_SHELL
17549 exec "\$@"
17550 fi
17551
17552 _ACEOF
17553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17554 exec 5>>config.log
17555 {
17556 echo
17557 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17558 ## Running $as_me. ##
17559 _ASBOX
17560 $as_echo "$ac_log"
17561 } >&5
17562
17563 _ACEOF
17564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17565 #
17566 # INIT-COMMANDS
17567 #
17568 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17569
17570
17571 # The HP-UX ksh and POSIX shell print the target directory to stdout
17572 # if CDPATH is set.
17573 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17574
17575 sed_quote_subst='$sed_quote_subst'
17576 double_quote_subst='$double_quote_subst'
17577 delay_variable_subst='$delay_variable_subst'
17578 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17579 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17580 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17581 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17582 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17583 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17584 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17585 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17586 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17587 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17588 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17589 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17590 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17591 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17592 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17593 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17594 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17595 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17596 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17597 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17598 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17599 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17600 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17601 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17602 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17603 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17604 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17605 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17606 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17607 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17608 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17609 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17610 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17611 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17612 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17613 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17614 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17615 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17616 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17617 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17618 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17619 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17620 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17621 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17622 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17623 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17624 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17625 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17626 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17627 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17628 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17629 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17630 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17631 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17632 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17633 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17634 lt_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"`'
17635 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17636 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17637 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17638 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17639 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17640 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17641 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17642 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17643 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17644 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17645 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17646 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17647 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17648 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17649 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17650 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17651 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17652 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17653 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17654 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17655 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17656 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17657 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17658 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17659 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17660 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17661 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17662 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17663 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17664 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17665 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17666 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17667 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17668 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17669 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17670 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17671 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17672 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17673 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17674 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17675 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17676 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17677 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17678 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17679 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17680 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17681 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17682 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17683 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17684 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17685 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17686 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17687 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17688 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17689 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17690 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17691 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17692 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17693 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17694 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17695 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17696 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17697 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17698 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17699 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17700 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17701 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17702 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17703 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17704 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17705 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17706 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17707 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17708 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17709 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17710 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17711 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17712 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17713 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17714 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17715 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17716 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17717 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17718 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17719 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17720 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17721 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17722 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17723 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17724 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17725 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17726 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17727 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17728 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17729 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17730 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17731 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17732 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17733 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17734 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17735 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17736 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17737 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17738 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17739 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17740 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17741 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17742 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17743 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17744 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17745 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17746 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17747 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17748 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17749 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17750 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17751 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17752 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17753 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17754 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17755 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17756 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17757 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17758 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17759 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17760 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17761 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17762
17763 LTCC='$LTCC'
17764 LTCFLAGS='$LTCFLAGS'
17765 compiler='$compiler_DEFAULT'
17766
17767 # A function that is used when there is no print builtin or printf.
17768 func_fallback_echo ()
17769 {
17770 eval 'cat <<_LTECHO_EOF
17771 \$1
17772 _LTECHO_EOF'
17773 }
17774
17775 # Quote evaled strings.
17776 for var in SHELL \
17777 ECHO \
17778 PATH_SEPARATOR \
17779 SED \
17780 GREP \
17781 EGREP \
17782 FGREP \
17783 LD \
17784 NM \
17785 LN_S \
17786 lt_SP2NL \
17787 lt_NL2SP \
17788 reload_flag \
17789 OBJDUMP \
17790 deplibs_check_method \
17791 file_magic_cmd \
17792 file_magic_glob \
17793 want_nocaseglob \
17794 DLLTOOL \
17795 sharedlib_from_linklib_cmd \
17796 AR \
17797 AR_FLAGS \
17798 archiver_list_spec \
17799 STRIP \
17800 RANLIB \
17801 CC \
17802 CFLAGS \
17803 compiler \
17804 lt_cv_sys_global_symbol_pipe \
17805 lt_cv_sys_global_symbol_to_cdecl \
17806 lt_cv_sys_global_symbol_to_c_name_address \
17807 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17808 nm_file_list_spec \
17809 lt_prog_compiler_no_builtin_flag \
17810 lt_prog_compiler_pic \
17811 lt_prog_compiler_wl \
17812 lt_prog_compiler_static \
17813 lt_cv_prog_compiler_c_o \
17814 need_locks \
17815 MANIFEST_TOOL \
17816 DSYMUTIL \
17817 NMEDIT \
17818 LIPO \
17819 OTOOL \
17820 OTOOL64 \
17821 shrext_cmds \
17822 export_dynamic_flag_spec \
17823 whole_archive_flag_spec \
17824 compiler_needs_object \
17825 with_gnu_ld \
17826 allow_undefined_flag \
17827 no_undefined_flag \
17828 hardcode_libdir_flag_spec \
17829 hardcode_libdir_separator \
17830 exclude_expsyms \
17831 include_expsyms \
17832 file_list_spec \
17833 variables_saved_for_relink \
17834 libname_spec \
17835 library_names_spec \
17836 soname_spec \
17837 install_override_mode \
17838 finish_eval \
17839 old_striplib \
17840 striplib \
17841 compiler_lib_search_dirs \
17842 predep_objects \
17843 postdep_objects \
17844 predeps \
17845 postdeps \
17846 compiler_lib_search_path \
17847 LD_CXX \
17848 reload_flag_CXX \
17849 compiler_CXX \
17850 lt_prog_compiler_no_builtin_flag_CXX \
17851 lt_prog_compiler_pic_CXX \
17852 lt_prog_compiler_wl_CXX \
17853 lt_prog_compiler_static_CXX \
17854 lt_cv_prog_compiler_c_o_CXX \
17855 export_dynamic_flag_spec_CXX \
17856 whole_archive_flag_spec_CXX \
17857 compiler_needs_object_CXX \
17858 with_gnu_ld_CXX \
17859 allow_undefined_flag_CXX \
17860 no_undefined_flag_CXX \
17861 hardcode_libdir_flag_spec_CXX \
17862 hardcode_libdir_separator_CXX \
17863 exclude_expsyms_CXX \
17864 include_expsyms_CXX \
17865 file_list_spec_CXX \
17866 compiler_lib_search_dirs_CXX \
17867 predep_objects_CXX \
17868 postdep_objects_CXX \
17869 predeps_CXX \
17870 postdeps_CXX \
17871 compiler_lib_search_path_CXX; do
17872 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17873 *[\\\\\\\`\\"\\\$]*)
17874 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17875 ;;
17876 *)
17877 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17878 ;;
17879 esac
17880 done
17881
17882 # Double-quote double-evaled strings.
17883 for var in reload_cmds \
17884 old_postinstall_cmds \
17885 old_postuninstall_cmds \
17886 old_archive_cmds \
17887 extract_expsyms_cmds \
17888 old_archive_from_new_cmds \
17889 old_archive_from_expsyms_cmds \
17890 archive_cmds \
17891 archive_expsym_cmds \
17892 module_cmds \
17893 module_expsym_cmds \
17894 export_symbols_cmds \
17895 prelink_cmds \
17896 postlink_cmds \
17897 postinstall_cmds \
17898 postuninstall_cmds \
17899 finish_cmds \
17900 sys_lib_search_path_spec \
17901 sys_lib_dlsearch_path_spec \
17902 reload_cmds_CXX \
17903 old_archive_cmds_CXX \
17904 old_archive_from_new_cmds_CXX \
17905 old_archive_from_expsyms_cmds_CXX \
17906 archive_cmds_CXX \
17907 archive_expsym_cmds_CXX \
17908 module_cmds_CXX \
17909 module_expsym_cmds_CXX \
17910 export_symbols_cmds_CXX \
17911 prelink_cmds_CXX \
17912 postlink_cmds_CXX; do
17913 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17914 *[\\\\\\\`\\"\\\$]*)
17915 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17916 ;;
17917 *)
17918 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17919 ;;
17920 esac
17921 done
17922
17923 ac_aux_dir='$ac_aux_dir'
17924 xsi_shell='$xsi_shell'
17925 lt_shell_append='$lt_shell_append'
17926
17927 # See if we are running on zsh, and set the options which allow our
17928 # commands through without removal of \ escapes INIT.
17929 if test -n "\${ZSH_VERSION+set}" ; then
17930 setopt NO_GLOB_SUBST
17931 fi
17932
17933
17934 PACKAGE='$PACKAGE'
17935 VERSION='$VERSION'
17936 TIMESTAMP='$TIMESTAMP'
17937 RM='$RM'
17938 ofile='$ofile'
17939
17940
17941
17942
17943
17944
17945 _ACEOF
17946
17947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17948
17949 # Handling of arguments.
17950 for ac_config_target in $ac_config_targets
17951 do
17952 case $ac_config_target in
17953 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
17954 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17955 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17956 "genders.spec") CONFIG_FILES="$CONFIG_FILES genders.spec" ;;
17957 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17958 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17959 "src/libcommon/Makefile") CONFIG_FILES="$CONFIG_FILES src/libcommon/Makefile" ;;
17960 "src/libgenders/Makefile") CONFIG_FILES="$CONFIG_FILES src/libgenders/Makefile" ;;
17961 "src/nodeattr/Makefile") CONFIG_FILES="$CONFIG_FILES src/nodeattr/Makefile" ;;
17962 "src/libgenders/genders.h") CONFIG_FILES="$CONFIG_FILES src/libgenders/genders.h" ;;
17963 "src/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/Makefile" ;;
17964 "src/extensions/cplusplus/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/cplusplus/Makefile" ;;
17965 "src/extensions/perl/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/perl/Makefile" ;;
17966 "src/extensions/perl/Libgenders/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/perl/Libgenders/Makefile" ;;
17967 "src/extensions/perl/Libgenders/Libgenders.pm") CONFIG_FILES="$CONFIG_FILES src/extensions/perl/Libgenders/Libgenders.pm" ;;
17968 "src/extensions/perl/Genders/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/perl/Genders/Makefile" ;;
17969 "src/extensions/perl/Genders/Genders.pm") CONFIG_FILES="$CONFIG_FILES src/extensions/perl/Genders/Genders.pm" ;;
17970 "src/extensions/python/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/python/Makefile" ;;
17971 "src/extensions/python/genderssetup.py") CONFIG_FILES="$CONFIG_FILES src/extensions/python/genderssetup.py" ;;
17972 "src/extensions/java/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/java/Makefile" ;;
17973 "src/testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/Makefile" ;;
17974 "src/testsuite/libgenders/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/libgenders/Makefile" ;;
17975 "src/testsuite/libgenders/testdatabases/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuite/libgenders/testdatabases/Makefile" ;;
17976 "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
17977 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
17978 "contrib/cfengine/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/cfengine/Makefile" ;;
17979 "contrib/cfengine/cfengine-2.2.10/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/cfengine/cfengine-2.2.10/Makefile" ;;
17980 "contrib/cfengine/cfengine-3.3.0/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/cfengine/cfengine-3.3.0/Makefile" ;;
17981 "contrib/php/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/php/Makefile" ;;
17982 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
17983 "man/compat/Makefile") CONFIG_FILES="$CONFIG_FILES man/compat/Makefile" ;;
17984
17985 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17986 esac
17987 done
17988
17989
17990 # If the user did not use the arguments to specify the items to instantiate,
17991 # then the envvar interface is used. Set only those that are not.
17992 # We use the long form for the default assignment because of an extremely
17993 # bizarre bug on SunOS 4.1.3.
17994 if $ac_need_defaults; then
17995 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17996 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17997 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17998 fi
17999
18000 # Have a temporary directory for convenience. Make it in the build tree
18001 # simply because there is no reason against having it here, and in addition,
18002 # creating and moving files from /tmp can sometimes cause problems.
18003 # Hook for its removal unless debugging.
18004 # Note that there is a small window in which the directory will not be cleaned:
18005 # after its creation but before its name has been assigned to `$tmp'.
18006 $debug ||
18007 {
18008 tmp= ac_tmp=
18009 trap 'exit_status=$?
18010 : "${ac_tmp:=$tmp}"
18011 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18012 ' 0
18013 trap 'as_fn_exit 1' 1 2 13 15
18014 }
18015 # Create a (secure) tmp directory for tmp files.
18016
18017 {
18018 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18019 test -d "$tmp"
18020 } ||
18021 {
18022 tmp=./conf$$-$RANDOM
18023 (umask 077 && mkdir "$tmp")
18024 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18025 ac_tmp=$tmp
18026
18027 # Set up the scripts for CONFIG_FILES section.
18028 # No need to generate them if there are no CONFIG_FILES.
18029 # This happens for instance with `./config.status config.h'.
18030 if test -n "$CONFIG_FILES"; then
18031
18032
18033 ac_cr=`echo X | tr X '\015'`
18034 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18035 # But we know of no other shell where ac_cr would be empty at this
18036 # point, so we can use a bashism as a fallback.
18037 if test "x$ac_cr" = x; then
18038 eval ac_cr=\$\'\\r\'
18039 fi
18040 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18041 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18042 ac_cs_awk_cr='\\r'
18043 else
18044 ac_cs_awk_cr=$ac_cr
18045 fi
18046
18047 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18048 _ACEOF
18049
18050
18051 {
18052 echo "cat >conf$$subs.awk <<_ACEOF" &&
18053 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18054 echo "_ACEOF"
18055 } >conf$$subs.sh ||
18056 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18057 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18058 ac_delim='%!_!# '
18059 for ac_last_try in false false false false false :; do
18060 . ./conf$$subs.sh ||
18061 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18062
18063 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18064 if test $ac_delim_n = $ac_delim_num; then
18065 break
18066 elif $ac_last_try; then
18067 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18068 else
18069 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18070 fi
18071 done
18072 rm -f conf$$subs.sh
18073
18074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18075 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18076 _ACEOF
18077 sed -n '
18078 h
18079 s/^/S["/; s/!.*/"]=/
18080 p
18081 g
18082 s/^[^!]*!//
18083 :repl
18084 t repl
18085 s/'"$ac_delim"'$//
18086 t delim
18087 :nl
18088 h
18089 s/\(.\{148\}\)..*/\1/
18090 t more1
18091 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18092 p
18093 n
18094 b repl
18095 :more1
18096 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18097 p
18098 g
18099 s/.\{148\}//
18100 t nl
18101 :delim
18102 h
18103 s/\(.\{148\}\)..*/\1/
18104 t more2
18105 s/["\\]/\\&/g; s/^/"/; s/$/"/
18106 p
18107 b
18108 :more2
18109 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18110 p
18111 g
18112 s/.\{148\}//
18113 t delim
18114 ' <conf$$subs.awk | sed '
18115 /^[^""]/{
18116 N
18117 s/\n//
18118 }
18119 ' >>$CONFIG_STATUS || ac_write_fail=1
18120 rm -f conf$$subs.awk
18121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18122 _ACAWK
18123 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18124 for (key in S) S_is_set[key] = 1
18125 FS = ""
18126
18127 }
18128 {
18129 line = $ 0
18130 nfields = split(line, field, "@")
18131 substed = 0
18132 len = length(field[1])
18133 for (i = 2; i < nfields; i++) {
18134 key = field[i]
18135 keylen = length(key)
18136 if (S_is_set[key]) {
18137 value = S[key]
18138 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18139 len += length(value) + length(field[++i])
18140 substed = 1
18141 } else
18142 len += 1 + keylen
18143 }
18144
18145 print line
18146 }
18147
18148 _ACAWK
18149 _ACEOF
18150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18151 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18152 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18153 else
18154 cat
18155 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18156 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18157 _ACEOF
18158
18159 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18160 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18161 # trailing colons and then remove the whole line if VPATH becomes empty
18162 # (actually we leave an empty line to preserve line numbers).
18163 if test "x$srcdir" = x.; then
18164 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18165 h
18166 s///
18167 s/^/:/
18168 s/[ ]*$/:/
18169 s/:\$(srcdir):/:/g
18170 s/:\${srcdir}:/:/g
18171 s/:@srcdir@:/:/g
18172 s/^:*//
18173 s/:*$//
18174 x
18175 s/\(=[ ]*\).*/\1/
18176 G
18177 s/\n//
18178 s/^[^=]*=[ ]*$//
18179 }'
18180 fi
18181
18182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18183 fi # test -n "$CONFIG_FILES"
18184
18185 # Set up the scripts for CONFIG_HEADERS section.
18186 # No need to generate them if there are no CONFIG_HEADERS.
18187 # This happens for instance with `./config.status Makefile'.
18188 if test -n "$CONFIG_HEADERS"; then
18189 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18190 BEGIN {
18191 _ACEOF
18192
18193 # Transform confdefs.h into an awk script `defines.awk', embedded as
18194 # here-document in config.status, that substitutes the proper values into
18195 # config.h.in to produce config.h.
18196
18197 # Create a delimiter string that does not exist in confdefs.h, to ease
18198 # handling of long lines.
18199 ac_delim='%!_!# '
18200 for ac_last_try in false false :; do
18201 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18202 if test -z "$ac_tt"; then
18203 break
18204 elif $ac_last_try; then
18205 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18206 else
18207 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18208 fi
18209 done
18210
18211 # For the awk script, D is an array of macro values keyed by name,
18212 # likewise P contains macro parameters if any. Preserve backslash
18213 # newline sequences.
18214
18215 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18216 sed -n '
18217 s/.\{148\}/&'"$ac_delim"'/g
18218 t rset
18219 :rset
18220 s/^[ ]*#[ ]*define[ ][ ]*/ /
18221 t def
18222 d
18223 :def
18224 s/\\$//
18225 t bsnl
18226 s/["\\]/\\&/g
18227 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18228 D["\1"]=" \3"/p
18229 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18230 d
18231 :bsnl
18232 s/["\\]/\\&/g
18233 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18234 D["\1"]=" \3\\\\\\n"\\/p
18235 t cont
18236 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18237 t cont
18238 d
18239 :cont
18240 n
18241 s/.\{148\}/&'"$ac_delim"'/g
18242 t clear
18243 :clear
18244 s/\\$//
18245 t bsnlc
18246 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18247 d
18248 :bsnlc
18249 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18250 b cont
18251 ' <confdefs.h | sed '
18252 s/'"$ac_delim"'/"\\\
18253 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18254
18255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18256 for (key in D) D_is_set[key] = 1
18257 FS = ""
18258 }
18259 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18260 line = \$ 0
18261 split(line, arg, " ")
18262 if (arg[1] == "#") {
18263 defundef = arg[2]
18264 mac1 = arg[3]
18265 } else {
18266 defundef = substr(arg[1], 2)
18267 mac1 = arg[2]
18268 }
18269 split(mac1, mac2, "(") #)
18270 macro = mac2[1]
18271 prefix = substr(line, 1, index(line, defundef) - 1)
18272 if (D_is_set[macro]) {
18273 # Preserve the white space surrounding the "#".
18274 print prefix "define", macro P[macro] D[macro]
18275 next
18276 } else {
18277 # Replace #undef with comments. This is necessary, for example,
18278 # in the case of _POSIX_SOURCE, which is predefined and required
18279 # on some systems where configure will not decide to define it.
18280 if (defundef == "undef") {
18281 print "/*", prefix defundef, macro, "*/"
18282 next
18283 }
18284 }
18285 }
18286 { print }
18287 _ACAWK
18288 _ACEOF
18289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18290 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18291 fi # test -n "$CONFIG_HEADERS"
18292
18293
18294 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18295 shift
18296 for ac_tag
18297 do
18298 case $ac_tag in
18299 :[FHLC]) ac_mode=$ac_tag; continue;;
18300 esac
18301 case $ac_mode$ac_tag in
18302 :[FHL]*:*);;
18303 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18304 :[FH]-) ac_tag=-:-;;
18305 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18306 esac
18307 ac_save_IFS=$IFS
18308 IFS=:
18309 set x $ac_tag
18310 IFS=$ac_save_IFS
18311 shift
18312 ac_file=$1
18313 shift
18314
18315 case $ac_mode in
18316 :L) ac_source=$1;;
18317 :[FH])
18318 ac_file_inputs=
18319 for ac_f
18320 do
18321 case $ac_f in
18322 -) ac_f="$ac_tmp/stdin";;
18323 *) # Look for the file first in the build tree, then in the source tree
18324 # (if the path is not absolute). The absolute path cannot be DOS-style,
18325 # because $ac_f cannot contain `:'.
18326 test -f "$ac_f" ||
18327 case $ac_f in
18328 [\\/$]*) false;;
18329 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18330 esac ||
18331 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18332 esac
18333 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18334 as_fn_append ac_file_inputs " '$ac_f'"
18335 done
18336
18337 # Let's still pretend it is `configure' which instantiates (i.e., don't
18338 # use $as_me), people would be surprised to read:
18339 # /* config.h. Generated by config.status. */
18340 configure_input='Generated from '`
18341 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18342 `' by configure.'
18343 if test x"$ac_file" != x-; then
18344 configure_input="$ac_file. $configure_input"
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18346 $as_echo "$as_me: creating $ac_file" >&6;}
18347 fi
18348 # Neutralize special characters interpreted by sed in replacement strings.
18349 case $configure_input in #(
18350 *\&* | *\|* | *\\* )
18351 ac_sed_conf_input=`$as_echo "$configure_input" |
18352 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18353 *) ac_sed_conf_input=$configure_input;;
18354 esac
18355
18356 case $ac_tag in
18357 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18358 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18359 esac
18360 ;;
18361 esac
18362
18363 ac_dir=`$as_dirname -- "$ac_file" ||
18364 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18365 X"$ac_file" : 'X\(//\)[^/]' \| \
18366 X"$ac_file" : 'X\(//\)$' \| \
18367 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18368 $as_echo X"$ac_file" |
18369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18370 s//\1/
18371 q
18372 }
18373 /^X\(\/\/\)[^/].*/{
18374 s//\1/
18375 q
18376 }
18377 /^X\(\/\/\)$/{
18378 s//\1/
18379 q
18380 }
18381 /^X\(\/\).*/{
18382 s//\1/
18383 q
18384 }
18385 s/.*/./; q'`
18386 as_dir="$ac_dir"; as_fn_mkdir_p
18387 ac_builddir=.
18388
18389 case "$ac_dir" in
18390 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18391 *)
18392 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18393 # A ".." for each directory in $ac_dir_suffix.
18394 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18395 case $ac_top_builddir_sub in
18396 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18397 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18398 esac ;;
18399 esac
18400 ac_abs_top_builddir=$ac_pwd
18401 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18402 # for backward compatibility:
18403 ac_top_builddir=$ac_top_build_prefix
18404
18405 case $srcdir in
18406 .) # We are building in place.
18407 ac_srcdir=.
18408 ac_top_srcdir=$ac_top_builddir_sub
18409 ac_abs_top_srcdir=$ac_pwd ;;
18410 [\\/]* | ?:[\\/]* ) # Absolute name.
18411 ac_srcdir=$srcdir$ac_dir_suffix;
18412 ac_top_srcdir=$srcdir
18413 ac_abs_top_srcdir=$srcdir ;;
18414 *) # Relative name.
18415 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18416 ac_top_srcdir=$ac_top_build_prefix$srcdir
18417 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18418 esac
18419 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18420
18421
18422 case $ac_mode in
18423 :F)
18424 #
18425 # CONFIG_FILE
18426 #
18427
18428 case $INSTALL in
18429 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18430 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18431 esac
18432 ac_MKDIR_P=$MKDIR_P
18433 case $MKDIR_P in
18434 [\\/$]* | ?:[\\/]* ) ;;
18435 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18436 esac
18437 _ACEOF
18438
18439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18440 # If the template does not know about datarootdir, expand it.
18441 # FIXME: This hack should be removed a few years after 2.60.
18442 ac_datarootdir_hack=; ac_datarootdir_seen=
18443 ac_sed_dataroot='
18444 /datarootdir/ {
18445 p
18446 q
18447 }
18448 /@datadir@/p
18449 /@docdir@/p
18450 /@infodir@/p
18451 /@localedir@/p
18452 /@mandir@/p'
18453 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18454 *datarootdir*) ac_datarootdir_seen=yes;;
18455 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18457 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18458 _ACEOF
18459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18460 ac_datarootdir_hack='
18461 s&@datadir@&$datadir&g
18462 s&@docdir@&$docdir&g
18463 s&@infodir@&$infodir&g
18464 s&@localedir@&$localedir&g
18465 s&@mandir@&$mandir&g
18466 s&\\\${datarootdir}&$datarootdir&g' ;;
18467 esac
18468 _ACEOF
18469
18470 # Neutralize VPATH when `$srcdir' = `.'.
18471 # Shell code in configure.ac might set extrasub.
18472 # FIXME: do we really want to maintain this feature?
18473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18474 ac_sed_extra="$ac_vpsub
18475 $extrasub
18476 _ACEOF
18477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18478 :t
18479 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18480 s|@configure_input@|$ac_sed_conf_input|;t t
18481 s&@top_builddir@&$ac_top_builddir_sub&;t t
18482 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18483 s&@srcdir@&$ac_srcdir&;t t
18484 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18485 s&@top_srcdir@&$ac_top_srcdir&;t t
18486 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18487 s&@builddir@&$ac_builddir&;t t
18488 s&@abs_builddir@&$ac_abs_builddir&;t t
18489 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18490 s&@INSTALL@&$ac_INSTALL&;t t
18491 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18492 $ac_datarootdir_hack
18493 "
18494 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18495 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18496
18497 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18498 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18499 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18500 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18502 which seems to be undefined. Please make sure it is defined" >&5
18503 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18504 which seems to be undefined. Please make sure it is defined" >&2;}
18505
18506 rm -f "$ac_tmp/stdin"
18507 case $ac_file in
18508 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18509 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18510 esac \
18511 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18512 ;;
18513 :H)
18514 #
18515 # CONFIG_HEADER
18516 #
18517 if test x"$ac_file" != x-; then
18518 {
18519 $as_echo "/* $configure_input */" \
18520 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18521 } >"$ac_tmp/config.h" \
18522 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18523 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18524 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18525 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18526 else
18527 rm -f "$ac_file"
18528 mv "$ac_tmp/config.h" "$ac_file" \
18529 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18530 fi
18531 else
18532 $as_echo "/* $configure_input */" \
18533 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18534 || as_fn_error $? "could not create -" "$LINENO" 5
18535 fi
18536 # Compute "$ac_file"'s index in $config_headers.
18537 _am_arg="$ac_file"
18538 _am_stamp_count=1
18539 for _am_header in $config_headers :; do
18540 case $_am_header in
18541 $_am_arg | $_am_arg:* )
18542 break ;;
18543 * )
18544 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18545 esac
18546 done
18547 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18548 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18549 X"$_am_arg" : 'X\(//\)[^/]' \| \
18550 X"$_am_arg" : 'X\(//\)$' \| \
18551 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18552 $as_echo X"$_am_arg" |
18553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18554 s//\1/
18555 q
18556 }
18557 /^X\(\/\/\)[^/].*/{
18558 s//\1/
18559 q
18560 }
18561 /^X\(\/\/\)$/{
18562 s//\1/
18563 q
18564 }
18565 /^X\(\/\).*/{
18566 s//\1/
18567 q
18568 }
18569 s/.*/./; q'`/stamp-h$_am_stamp_count
18570 ;;
18571
18572 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18573 $as_echo "$as_me: executing $ac_file commands" >&6;}
18574 ;;
18575 esac
18576
18577
18578 case $ac_file$ac_mode in
18579 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18580 # Older Autoconf quotes --file arguments for eval, but not when files
18581 # are listed without --file. Let's play safe and only enable the eval
18582 # if we detect the quoting.
18583 case $CONFIG_FILES in
18584 *\'*) eval set x "$CONFIG_FILES" ;;
18585 *) set x $CONFIG_FILES ;;
18586 esac
18587 shift
18588 for mf
18589 do
18590 # Strip MF so we end up with the name of the file.
18591 mf=`echo "$mf" | sed -e 's/:.*$//'`
18592 # Check whether this is an Automake generated Makefile or not.
18593 # We used to match only the files named 'Makefile.in', but
18594 # some people rename them; so instead we look at the file content.
18595 # Grep'ing the first line is not enough: some people post-process
18596 # each Makefile.in and add a new line on top of each file to say so.
18597 # Grep'ing the whole file is not good either: AIX grep has a line
18598 # limit of 2048, but all sed's we know have understand at least 4000.
18599 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18600 dirpart=`$as_dirname -- "$mf" ||
18601 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18602 X"$mf" : 'X\(//\)[^/]' \| \
18603 X"$mf" : 'X\(//\)$' \| \
18604 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18605 $as_echo X"$mf" |
18606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18607 s//\1/
18608 q
18609 }
18610 /^X\(\/\/\)[^/].*/{
18611 s//\1/
18612 q
18613 }
18614 /^X\(\/\/\)$/{
18615 s//\1/
18616 q
18617 }
18618 /^X\(\/\).*/{
18619 s//\1/
18620 q
18621 }
18622 s/.*/./; q'`
18623 else
18624 continue
18625 fi
18626 # Extract the definition of DEPDIR, am__include, and am__quote
18627 # from the Makefile without running 'make'.
18628 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18629 test -z "$DEPDIR" && continue
18630 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18631 test -z "$am__include" && continue
18632 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18633 # Find all dependency output files, they are included files with
18634 # $(DEPDIR) in their names. We invoke sed twice because it is the
18635 # simplest approach to changing $(DEPDIR) to its actual value in the
18636 # expansion.
18637 for file in `sed -n "
18638 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18639 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18640 # Make sure the directory exists.
18641 test -f "$dirpart/$file" && continue
18642 fdir=`$as_dirname -- "$file" ||
18643 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18644 X"$file" : 'X\(//\)[^/]' \| \
18645 X"$file" : 'X\(//\)$' \| \
18646 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18647 $as_echo X"$file" |
18648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18649 s//\1/
18650 q
18651 }
18652 /^X\(\/\/\)[^/].*/{
18653 s//\1/
18654 q
18655 }
18656 /^X\(\/\/\)$/{
18657 s//\1/
18658 q
18659 }
18660 /^X\(\/\).*/{
18661 s//\1/
18662 q
18663 }
18664 s/.*/./; q'`
18665 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18666 # echo "creating $dirpart/$file"
18667 echo '# dummy' > "$dirpart/$file"
18668 done
18669 done
18670 }
18671 ;;
18672 "libtool":C)
18673
18674 # See if we are running on zsh, and set the options which allow our
18675 # commands through without removal of \ escapes.
18676 if test -n "${ZSH_VERSION+set}" ; then
18677 setopt NO_GLOB_SUBST
18678 fi
18679
18680 cfgfile="${ofile}T"
18681 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18682 $RM "$cfgfile"
18683
18684 cat <<_LT_EOF >> "$cfgfile"
18685 #! $SHELL
18686
18687 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18688 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18689 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18690 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18691 #
18692 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18693 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18694 # Foundation, Inc.
18695 # Written by Gordon Matzigkeit, 1996
18696 #
18697 # This file is part of GNU Libtool.
18698 #
18699 # GNU Libtool is free software; you can redistribute it and/or
18700 # modify it under the terms of the GNU General Public License as
18701 # published by the Free Software Foundation; either version 2 of
18702 # the License, or (at your option) any later version.
18703 #
18704 # As a special exception to the GNU General Public License,
18705 # if you distribute this file as part of a program or library that
18706 # is built using GNU Libtool, you may include this file under the
18707 # same distribution terms that you use for the rest of that program.
18708 #
18709 # GNU Libtool is distributed in the hope that it will be useful,
18710 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18711 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18712 # GNU General Public License for more details.
18713 #
18714 # You should have received a copy of the GNU General Public License
18715 # along with GNU Libtool; see the file COPYING. If not, a copy
18716 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18717 # obtained by writing to the Free Software Foundation, Inc.,
18718 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18719
18720
18721 # The names of the tagged configurations supported by this script.
18722 available_tags="CXX "
18723
18724 # ### BEGIN LIBTOOL CONFIG
18725
18726 # Which release of libtool.m4 was used?
18727 macro_version=$macro_version
18728 macro_revision=$macro_revision
18729
18730 # Whether or not to build shared libraries.
18731 build_libtool_libs=$enable_shared
18732
18733 # Whether or not to build static libraries.
18734 build_old_libs=$enable_static
18735
18736 # What type of objects to build.
18737 pic_mode=$pic_mode
18738
18739 # Whether or not to optimize for fast installation.
18740 fast_install=$enable_fast_install
18741
18742 # Shell to use when invoking shell scripts.
18743 SHELL=$lt_SHELL
18744
18745 # An echo program that protects backslashes.
18746 ECHO=$lt_ECHO
18747
18748 # The PATH separator for the build system.
18749 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18750
18751 # The host system.
18752 host_alias=$host_alias
18753 host=$host
18754 host_os=$host_os
18755
18756 # The build system.
18757 build_alias=$build_alias
18758 build=$build
18759 build_os=$build_os
18760
18761 # A sed program that does not truncate output.
18762 SED=$lt_SED
18763
18764 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18765 Xsed="\$SED -e 1s/^X//"
18766
18767 # A grep program that handles long lines.
18768 GREP=$lt_GREP
18769
18770 # An ERE matcher.
18771 EGREP=$lt_EGREP
18772
18773 # A literal string matcher.
18774 FGREP=$lt_FGREP
18775
18776 # A BSD- or MS-compatible name lister.
18777 NM=$lt_NM
18778
18779 # Whether we need soft or hard links.
18780 LN_S=$lt_LN_S
18781
18782 # What is the maximum length of a command?
18783 max_cmd_len=$max_cmd_len
18784
18785 # Object file suffix (normally "o").
18786 objext=$ac_objext
18787
18788 # Executable file suffix (normally "").
18789 exeext=$exeext
18790
18791 # whether the shell understands "unset".
18792 lt_unset=$lt_unset
18793
18794 # turn spaces into newlines.
18795 SP2NL=$lt_lt_SP2NL
18796
18797 # turn newlines into spaces.
18798 NL2SP=$lt_lt_NL2SP
18799
18800 # convert \$build file names to \$host format.
18801 to_host_file_cmd=$lt_cv_to_host_file_cmd
18802
18803 # convert \$build files to toolchain format.
18804 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18805
18806 # An object symbol dumper.
18807 OBJDUMP=$lt_OBJDUMP
18808
18809 # Method to check whether dependent libraries are shared objects.
18810 deplibs_check_method=$lt_deplibs_check_method
18811
18812 # Command to use when deplibs_check_method = "file_magic".
18813 file_magic_cmd=$lt_file_magic_cmd
18814
18815 # How to find potential files when deplibs_check_method = "file_magic".
18816 file_magic_glob=$lt_file_magic_glob
18817
18818 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18819 want_nocaseglob=$lt_want_nocaseglob
18820
18821 # DLL creation program.
18822 DLLTOOL=$lt_DLLTOOL
18823
18824 # Command to associate shared and link libraries.
18825 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18826
18827 # The archiver.
18828 AR=$lt_AR
18829
18830 # Flags to create an archive.
18831 AR_FLAGS=$lt_AR_FLAGS
18832
18833 # How to feed a file listing to the archiver.
18834 archiver_list_spec=$lt_archiver_list_spec
18835
18836 # A symbol stripping program.
18837 STRIP=$lt_STRIP
18838
18839 # Commands used to install an old-style archive.
18840 RANLIB=$lt_RANLIB
18841 old_postinstall_cmds=$lt_old_postinstall_cmds
18842 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18843
18844 # Whether to use a lock for old archive extraction.
18845 lock_old_archive_extraction=$lock_old_archive_extraction
18846
18847 # A C compiler.
18848 LTCC=$lt_CC
18849
18850 # LTCC compiler flags.
18851 LTCFLAGS=$lt_CFLAGS
18852
18853 # Take the output of nm and produce a listing of raw symbols and C names.
18854 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18855
18856 # Transform the output of nm in a proper C declaration.
18857 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18858
18859 # Transform the output of nm in a C name address pair.
18860 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18861
18862 # Transform the output of nm in a C name address pair when lib prefix is needed.
18863 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18864
18865 # Specify filename containing input files for \$NM.
18866 nm_file_list_spec=$lt_nm_file_list_spec
18867
18868 # The root where to search for dependent libraries,and in which our libraries should be installed.
18869 lt_sysroot=$lt_sysroot
18870
18871 # The name of the directory that contains temporary libtool files.
18872 objdir=$objdir
18873
18874 # Used to examine libraries when file_magic_cmd begins with "file".
18875 MAGIC_CMD=$MAGIC_CMD
18876
18877 # Must we lock files when doing compilation?
18878 need_locks=$lt_need_locks
18879
18880 # Manifest tool.
18881 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18882
18883 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18884 DSYMUTIL=$lt_DSYMUTIL
18885
18886 # Tool to change global to local symbols on Mac OS X.
18887 NMEDIT=$lt_NMEDIT
18888
18889 # Tool to manipulate fat objects and archives on Mac OS X.
18890 LIPO=$lt_LIPO
18891
18892 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18893 OTOOL=$lt_OTOOL
18894
18895 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18896 OTOOL64=$lt_OTOOL64
18897
18898 # Old archive suffix (normally "a").
18899 libext=$libext
18900
18901 # Shared library suffix (normally ".so").
18902 shrext_cmds=$lt_shrext_cmds
18903
18904 # The commands to extract the exported symbol list from a shared archive.
18905 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18906
18907 # Variables whose values should be saved in libtool wrapper scripts and
18908 # restored at link time.
18909 variables_saved_for_relink=$lt_variables_saved_for_relink
18910
18911 # Do we need the "lib" prefix for modules?
18912 need_lib_prefix=$need_lib_prefix
18913
18914 # Do we need a version for libraries?
18915 need_version=$need_version
18916
18917 # Library versioning type.
18918 version_type=$version_type
18919
18920 # Shared library runtime path variable.
18921 runpath_var=$runpath_var
18922
18923 # Shared library path variable.
18924 shlibpath_var=$shlibpath_var
18925
18926 # Is shlibpath searched before the hard-coded library search path?
18927 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18928
18929 # Format of library name prefix.
18930 libname_spec=$lt_libname_spec
18931
18932 # List of archive names. First name is the real one, the rest are links.
18933 # The last name is the one that the linker finds with -lNAME
18934 library_names_spec=$lt_library_names_spec
18935
18936 # The coded name of the library, if different from the real name.
18937 soname_spec=$lt_soname_spec
18938
18939 # Permission mode override for installation of shared libraries.
18940 install_override_mode=$lt_install_override_mode
18941
18942 # Command to use after installation of a shared archive.
18943 postinstall_cmds=$lt_postinstall_cmds
18944
18945 # Command to use after uninstallation of a shared archive.
18946 postuninstall_cmds=$lt_postuninstall_cmds
18947
18948 # Commands used to finish a libtool library installation in a directory.
18949 finish_cmds=$lt_finish_cmds
18950
18951 # As "finish_cmds", except a single script fragment to be evaled but
18952 # not shown.
18953 finish_eval=$lt_finish_eval
18954
18955 # Whether we should hardcode library paths into libraries.
18956 hardcode_into_libs=$hardcode_into_libs
18957
18958 # Compile-time system search path for libraries.
18959 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18960
18961 # Run-time system search path for libraries.
18962 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18963
18964 # Whether dlopen is supported.
18965 dlopen_support=$enable_dlopen
18966
18967 # Whether dlopen of programs is supported.
18968 dlopen_self=$enable_dlopen_self
18969
18970 # Whether dlopen of statically linked programs is supported.
18971 dlopen_self_static=$enable_dlopen_self_static
18972
18973 # Commands to strip libraries.
18974 old_striplib=$lt_old_striplib
18975 striplib=$lt_striplib
18976
18977
18978 # The linker used to build libraries.
18979 LD=$lt_LD
18980
18981 # How to create reloadable object files.
18982 reload_flag=$lt_reload_flag
18983 reload_cmds=$lt_reload_cmds
18984
18985 # Commands used to build an old-style archive.
18986 old_archive_cmds=$lt_old_archive_cmds
18987
18988 # A language specific compiler.
18989 CC=$lt_compiler
18990
18991 # Is the compiler the GNU compiler?
18992 with_gcc=$GCC
18993
18994 # Compiler flag to turn off builtin functions.
18995 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18996
18997 # Additional compiler flags for building library objects.
18998 pic_flag=$lt_lt_prog_compiler_pic
18999
19000 # How to pass a linker flag through the compiler.
19001 wl=$lt_lt_prog_compiler_wl
19002
19003 # Compiler flag to prevent dynamic linking.
19004 link_static_flag=$lt_lt_prog_compiler_static
19005
19006 # Does compiler simultaneously support -c and -o options?
19007 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19008
19009 # Whether or not to add -lc for building shared libraries.
19010 build_libtool_need_lc=$archive_cmds_need_lc
19011
19012 # Whether or not to disallow shared libs when runtime libs are static.
19013 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19014
19015 # Compiler flag to allow reflexive dlopens.
19016 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19017
19018 # Compiler flag to generate shared objects directly from archives.
19019 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19020
19021 # Whether the compiler copes with passing no objects directly.
19022 compiler_needs_object=$lt_compiler_needs_object
19023
19024 # Create an old-style archive from a shared archive.
19025 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19026
19027 # Create a temporary old-style archive to link instead of a shared archive.
19028 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19029
19030 # Commands used to build a shared archive.
19031 archive_cmds=$lt_archive_cmds
19032 archive_expsym_cmds=$lt_archive_expsym_cmds
19033
19034 # Commands used to build a loadable module if different from building
19035 # a shared archive.
19036 module_cmds=$lt_module_cmds
19037 module_expsym_cmds=$lt_module_expsym_cmds
19038
19039 # Whether we are building with GNU ld or not.
19040 with_gnu_ld=$lt_with_gnu_ld
19041
19042 # Flag that allows shared libraries with undefined symbols to be built.
19043 allow_undefined_flag=$lt_allow_undefined_flag
19044
19045 # Flag that enforces no undefined symbols.
19046 no_undefined_flag=$lt_no_undefined_flag
19047
19048 # Flag to hardcode \$libdir into a binary during linking.
19049 # This must work even if \$libdir does not exist
19050 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19051
19052 # Whether we need a single "-rpath" flag with a separated argument.
19053 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19054
19055 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19056 # DIR into the resulting binary.
19057 hardcode_direct=$hardcode_direct
19058
19059 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19060 # DIR into the resulting binary and the resulting library dependency is
19061 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19062 # library is relocated.
19063 hardcode_direct_absolute=$hardcode_direct_absolute
19064
19065 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19066 # into the resulting binary.
19067 hardcode_minus_L=$hardcode_minus_L
19068
19069 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19070 # into the resulting binary.
19071 hardcode_shlibpath_var=$hardcode_shlibpath_var
19072
19073 # Set to "yes" if building a shared library automatically hardcodes DIR
19074 # into the library and all subsequent libraries and executables linked
19075 # against it.
19076 hardcode_automatic=$hardcode_automatic
19077
19078 # Set to yes if linker adds runtime paths of dependent libraries
19079 # to runtime path list.
19080 inherit_rpath=$inherit_rpath
19081
19082 # Whether libtool must link a program against all its dependency libraries.
19083 link_all_deplibs=$link_all_deplibs
19084
19085 # Set to "yes" if exported symbols are required.
19086 always_export_symbols=$always_export_symbols
19087
19088 # The commands to list exported symbols.
19089 export_symbols_cmds=$lt_export_symbols_cmds
19090
19091 # Symbols that should not be listed in the preloaded symbols.
19092 exclude_expsyms=$lt_exclude_expsyms
19093
19094 # Symbols that must always be exported.
19095 include_expsyms=$lt_include_expsyms
19096
19097 # Commands necessary for linking programs (against libraries) with templates.
19098 prelink_cmds=$lt_prelink_cmds
19099
19100 # Commands necessary for finishing linking programs.
19101 postlink_cmds=$lt_postlink_cmds
19102
19103 # Specify filename containing input files.
19104 file_list_spec=$lt_file_list_spec
19105
19106 # How to hardcode a shared library path into an executable.
19107 hardcode_action=$hardcode_action
19108
19109 # The directories searched by this compiler when creating a shared library.
19110 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19111
19112 # Dependencies to place before and after the objects being linked to
19113 # create a shared library.
19114 predep_objects=$lt_predep_objects
19115 postdep_objects=$lt_postdep_objects
19116 predeps=$lt_predeps
19117 postdeps=$lt_postdeps
19118
19119 # The library search path used internally by the compiler when linking
19120 # a shared library.
19121 compiler_lib_search_path=$lt_compiler_lib_search_path
19122
19123 # ### END LIBTOOL CONFIG
19124
19125 _LT_EOF
19126
19127 case $host_os in
19128 aix3*)
19129 cat <<\_LT_EOF >> "$cfgfile"
19130 # AIX sometimes has problems with the GCC collect2 program. For some
19131 # reason, if we set the COLLECT_NAMES environment variable, the problems
19132 # vanish in a puff of smoke.
19133 if test "X${COLLECT_NAMES+set}" != Xset; then
19134 COLLECT_NAMES=
19135 export COLLECT_NAMES
19136 fi
19137 _LT_EOF
19138 ;;
19139 esac
19140
19141
19142 ltmain="$ac_aux_dir/ltmain.sh"
19143
19144
19145 # We use sed instead of cat because bash on DJGPP gets confused if
19146 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19147 # text mode, it properly converts lines to CR/LF. This bash problem
19148 # is reportedly fixed, but why not run on old versions too?
19149 sed '$q' "$ltmain" >> "$cfgfile" \
19150 || (rm -f "$cfgfile"; exit 1)
19151
19152 if test x"$xsi_shell" = xyes; then
19153 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19154 func_dirname ()\
19155 {\
19156 \ case ${1} in\
19157 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19158 \ * ) func_dirname_result="${3}" ;;\
19159 \ esac\
19160 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19161 && mv -f "$cfgfile.tmp" "$cfgfile" \
19162 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19163 test 0 -eq $? || _lt_function_replace_fail=:
19164
19165
19166 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19167 func_basename ()\
19168 {\
19169 \ func_basename_result="${1##*/}"\
19170 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19171 && mv -f "$cfgfile.tmp" "$cfgfile" \
19172 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19173 test 0 -eq $? || _lt_function_replace_fail=:
19174
19175
19176 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19177 func_dirname_and_basename ()\
19178 {\
19179 \ case ${1} in\
19180 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19181 \ * ) func_dirname_result="${3}" ;;\
19182 \ esac\
19183 \ func_basename_result="${1##*/}"\
19184 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19185 && mv -f "$cfgfile.tmp" "$cfgfile" \
19186 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19187 test 0 -eq $? || _lt_function_replace_fail=:
19188
19189
19190 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19191 func_stripname ()\
19192 {\
19193 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19194 \ # positional parameters, so assign one to ordinary parameter first.\
19195 \ func_stripname_result=${3}\
19196 \ func_stripname_result=${func_stripname_result#"${1}"}\
19197 \ func_stripname_result=${func_stripname_result%"${2}"}\
19198 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19199 && mv -f "$cfgfile.tmp" "$cfgfile" \
19200 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19201 test 0 -eq $? || _lt_function_replace_fail=:
19202
19203
19204 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19205 func_split_long_opt ()\
19206 {\
19207 \ func_split_long_opt_name=${1%%=*}\
19208 \ func_split_long_opt_arg=${1#*=}\
19209 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19210 && mv -f "$cfgfile.tmp" "$cfgfile" \
19211 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19212 test 0 -eq $? || _lt_function_replace_fail=:
19213
19214
19215 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19216 func_split_short_opt ()\
19217 {\
19218 \ func_split_short_opt_arg=${1#??}\
19219 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19220 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19221 && mv -f "$cfgfile.tmp" "$cfgfile" \
19222 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19223 test 0 -eq $? || _lt_function_replace_fail=:
19224
19225
19226 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19227 func_lo2o ()\
19228 {\
19229 \ case ${1} in\
19230 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19231 \ *) func_lo2o_result=${1} ;;\
19232 \ esac\
19233 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19234 && mv -f "$cfgfile.tmp" "$cfgfile" \
19235 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19236 test 0 -eq $? || _lt_function_replace_fail=:
19237
19238
19239 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19240 func_xform ()\
19241 {\
19242 func_xform_result=${1%.*}.lo\
19243 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19244 && mv -f "$cfgfile.tmp" "$cfgfile" \
19245 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19246 test 0 -eq $? || _lt_function_replace_fail=:
19247
19248
19249 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19250 func_arith ()\
19251 {\
19252 func_arith_result=$(( $* ))\
19253 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19254 && mv -f "$cfgfile.tmp" "$cfgfile" \
19255 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19256 test 0 -eq $? || _lt_function_replace_fail=:
19257
19258
19259 sed -e '/^func_len ()$/,/^} # func_len /c\
19260 func_len ()\
19261 {\
19262 func_len_result=${#1}\
19263 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19264 && mv -f "$cfgfile.tmp" "$cfgfile" \
19265 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19266 test 0 -eq $? || _lt_function_replace_fail=:
19267
19268 fi
19269
19270 if test x"$lt_shell_append" = xyes; then
19271 sed -e '/^func_append ()$/,/^} # func_append /c\
19272 func_append ()\
19273 {\
19274 eval "${1}+=\\${2}"\
19275 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19276 && mv -f "$cfgfile.tmp" "$cfgfile" \
19277 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19278 test 0 -eq $? || _lt_function_replace_fail=:
19279
19280
19281 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19282 func_append_quoted ()\
19283 {\
19284 \ func_quote_for_eval "${2}"\
19285 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19286 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19287 && mv -f "$cfgfile.tmp" "$cfgfile" \
19288 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19289 test 0 -eq $? || _lt_function_replace_fail=:
19290
19291
19292 # Save a `func_append' function call where possible by direct use of '+='
19293 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19294 && mv -f "$cfgfile.tmp" "$cfgfile" \
19295 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19296 test 0 -eq $? || _lt_function_replace_fail=:
19297 else
19298 # Save a `func_append' function call even when '+=' is not available
19299 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19300 && mv -f "$cfgfile.tmp" "$cfgfile" \
19301 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19302 test 0 -eq $? || _lt_function_replace_fail=:
19303 fi
19304
19305 if test x"$_lt_function_replace_fail" = x":"; then
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19307 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19308 fi
19309
19310
19311 mv -f "$cfgfile" "$ofile" ||
19312 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19313 chmod +x "$ofile"
19314
19315
19316 cat <<_LT_EOF >> "$ofile"
19317
19318 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19319
19320 # The linker used to build libraries.
19321 LD=$lt_LD_CXX
19322
19323 # How to create reloadable object files.
19324 reload_flag=$lt_reload_flag_CXX
19325 reload_cmds=$lt_reload_cmds_CXX
19326
19327 # Commands used to build an old-style archive.
19328 old_archive_cmds=$lt_old_archive_cmds_CXX
19329
19330 # A language specific compiler.
19331 CC=$lt_compiler_CXX
19332
19333 # Is the compiler the GNU compiler?
19334 with_gcc=$GCC_CXX
19335
19336 # Compiler flag to turn off builtin functions.
19337 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19338
19339 # Additional compiler flags for building library objects.
19340 pic_flag=$lt_lt_prog_compiler_pic_CXX
19341
19342 # How to pass a linker flag through the compiler.
19343 wl=$lt_lt_prog_compiler_wl_CXX
19344
19345 # Compiler flag to prevent dynamic linking.
19346 link_static_flag=$lt_lt_prog_compiler_static_CXX
19347
19348 # Does compiler simultaneously support -c and -o options?
19349 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19350
19351 # Whether or not to add -lc for building shared libraries.
19352 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19353
19354 # Whether or not to disallow shared libs when runtime libs are static.
19355 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19356
19357 # Compiler flag to allow reflexive dlopens.
19358 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19359
19360 # Compiler flag to generate shared objects directly from archives.
19361 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19362
19363 # Whether the compiler copes with passing no objects directly.
19364 compiler_needs_object=$lt_compiler_needs_object_CXX
19365
19366 # Create an old-style archive from a shared archive.
19367 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19368
19369 # Create a temporary old-style archive to link instead of a shared archive.
19370 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19371
19372 # Commands used to build a shared archive.
19373 archive_cmds=$lt_archive_cmds_CXX
19374 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19375
19376 # Commands used to build a loadable module if different from building
19377 # a shared archive.
19378 module_cmds=$lt_module_cmds_CXX
19379 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19380
19381 # Whether we are building with GNU ld or not.
19382 with_gnu_ld=$lt_with_gnu_ld_CXX
19383
19384 # Flag that allows shared libraries with undefined symbols to be built.
19385 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19386
19387 # Flag that enforces no undefined symbols.
19388 no_undefined_flag=$lt_no_undefined_flag_CXX
19389
19390 # Flag to hardcode \$libdir into a binary during linking.
19391 # This must work even if \$libdir does not exist
19392 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19393
19394 # Whether we need a single "-rpath" flag with a separated argument.
19395 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19396
19397 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19398 # DIR into the resulting binary.
19399 hardcode_direct=$hardcode_direct_CXX
19400
19401 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19402 # DIR into the resulting binary and the resulting library dependency is
19403 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19404 # library is relocated.
19405 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19406
19407 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19408 # into the resulting binary.
19409 hardcode_minus_L=$hardcode_minus_L_CXX
19410
19411 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19412 # into the resulting binary.
19413 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19414
19415 # Set to "yes" if building a shared library automatically hardcodes DIR
19416 # into the library and all subsequent libraries and executables linked
19417 # against it.
19418 hardcode_automatic=$hardcode_automatic_CXX
19419
19420 # Set to yes if linker adds runtime paths of dependent libraries
19421 # to runtime path list.
19422 inherit_rpath=$inherit_rpath_CXX
19423
19424 # Whether libtool must link a program against all its dependency libraries.
19425 link_all_deplibs=$link_all_deplibs_CXX
19426
19427 # Set to "yes" if exported symbols are required.
19428 always_export_symbols=$always_export_symbols_CXX
19429
19430 # The commands to list exported symbols.
19431 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19432
19433 # Symbols that should not be listed in the preloaded symbols.
19434 exclude_expsyms=$lt_exclude_expsyms_CXX
19435
19436 # Symbols that must always be exported.
19437 include_expsyms=$lt_include_expsyms_CXX
19438
19439 # Commands necessary for linking programs (against libraries) with templates.
19440 prelink_cmds=$lt_prelink_cmds_CXX
19441
19442 # Commands necessary for finishing linking programs.
19443 postlink_cmds=$lt_postlink_cmds_CXX
19444
19445 # Specify filename containing input files.
19446 file_list_spec=$lt_file_list_spec_CXX
19447
19448 # How to hardcode a shared library path into an executable.
19449 hardcode_action=$hardcode_action_CXX
19450
19451 # The directories searched by this compiler when creating a shared library.
19452 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19453
19454 # Dependencies to place before and after the objects being linked to
19455 # create a shared library.
19456 predep_objects=$lt_predep_objects_CXX
19457 postdep_objects=$lt_postdep_objects_CXX
19458 predeps=$lt_predeps_CXX
19459 postdeps=$lt_postdeps_CXX
19460
19461 # The library search path used internally by the compiler when linking
19462 # a shared library.
19463 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19464
19465 # ### END LIBTOOL TAG CONFIG: CXX
19466 _LT_EOF
19467
19468 ;;
19469
19470 esac
19471 done # for ac_tag
19472
19473
19474 as_fn_exit 0
19475 _ACEOF
19476 ac_clean_files=$ac_clean_files_save
19477
19478 test $ac_write_fail = 0 ||
19479 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19480
19481
19482 # configure is writing to config.log, and then calls config.status.
19483 # config.status does its own redirection, appending to config.log.
19484 # Unfortunately, on DOS this fails, as config.log is still kept open
19485 # by configure, so config.status won't be able to write to it; its
19486 # output is simply discarded. So we exec the FD to /dev/null,
19487 # effectively closing config.log, so it can be properly (re)opened and
19488 # appended to by config.status. When coming back to configure, we
19489 # need to make the FD available again.
19490 if test "$no_create" != yes; then
19491 ac_cs_success=:
19492 ac_config_status_args=
19493 test "$silent" = yes &&
19494 ac_config_status_args="$ac_config_status_args --quiet"
19495 exec 5>/dev/null
19496 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19497 exec 5>>config.log
19498 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19499 # would make configure fail if this is the last instruction.
19500 $ac_cs_success || as_fn_exit 1
19501 fi
19502 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19504 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19505 fi
19506
19507