Install gprofng libraries under $(pkglibdir)
[binutils-gdb.git] / gprofng / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gprofng 2.38.50.
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 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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 bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
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='gprofng'
589 PACKAGE_TARNAME='gprofng'
590 PACKAGE_VERSION='2.38.50'
591 PACKAGE_STRING='gprofng 2.38.50'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 enable_option_checking=no
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 BUILD_SUBDIRS
637 CLOCK_GETTIME_LINK
638 GPROFNG_CPPFLAGS
639 GPROFNG_CFLAGS
640 LD_NO_AS_NEEDED
641 BUILD_MAN_FALSE
642 BUILD_MAN_TRUE
643 HELP2MAN
644 TCL_TRY_FALSE
645 TCL_TRY_TRUE
646 EXPECT
647 jdk_inc
648 GPROFNG_BROKEN_JAVAC
649 JAVA
650 JAVAC
651 PTHREAD_CFLAGS
652 PTHREAD_LIBS
653 PTHREAD_CC
654 ax_pthread_config
655 RUN_TESTS_FALSE
656 RUN_TESTS_TRUE
657 subdirs
658 BUILD_SRC_FALSE
659 BUILD_SRC_TRUE
660 BUILD_COLLECTOR_FALSE
661 BUILD_COLLECTOR_TRUE
662 GPROFNG_NO_SWITCH_CFLAGS
663 GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS
664 gprofng_cflags
665 WERROR
666 GPROFNG_LIBADD
667 CXXCPP
668 OTOOL64
669 OTOOL
670 LIPO
671 NMEDIT
672 DSYMUTIL
673 OBJDUMP
674 LN_S
675 NM
676 ac_ct_DUMPBIN
677 DUMPBIN
678 LD
679 FGREP
680 SED
681 LIBTOOL
682 ac_ct_AR
683 AR
684 RANLIB
685 am__fastdepCXX_FALSE
686 am__fastdepCXX_TRUE
687 CXXDEPMODE
688 ac_ct_CXX
689 CXXFLAGS
690 CXX
691 EGREP
692 GREP
693 CPP
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 MAINT
712 MAINTAINER_MODE_FALSE
713 MAINTAINER_MODE_TRUE
714 AM_BACKSLASH
715 AM_DEFAULT_VERBOSITY
716 AM_DEFAULT_V
717 AM_V
718 am__untar
719 am__tar
720 AMTAR
721 am__leading_dot
722 SET_MAKE
723 AWK
724 mkdir_p
725 MKDIR_P
726 INSTALL_STRIP_PROGRAM
727 STRIP
728 install_sh
729 MAKEINFO
730 AUTOHEADER
731 AUTOMAKE
732 AUTOCONF
733 ACLOCAL
734 VERSION
735 PACKAGE
736 CYGPATH_W
737 am__isrc
738 INSTALL_DATA
739 INSTALL_SCRIPT
740 INSTALL_PROGRAM
741 target_os
742 target_vendor
743 target_cpu
744 target
745 host_os
746 host_vendor
747 host_cpu
748 host
749 build_os
750 build_vendor
751 build_cpu
752 build
753 target_alias
754 host_alias
755 build_alias
756 LIBS
757 ECHO_T
758 ECHO_N
759 ECHO_C
760 DEFS
761 mandir
762 localedir
763 libdir
764 psdir
765 pdfdir
766 dvidir
767 htmldir
768 infodir
769 docdir
770 oldincludedir
771 includedir
772 localstatedir
773 sharedstatedir
774 sysconfdir
775 datadir
776 datarootdir
777 libexecdir
778 sbindir
779 bindir
780 program_transform_name
781 prefix
782 exec_prefix
783 PACKAGE_URL
784 PACKAGE_BUGREPORT
785 PACKAGE_STRING
786 PACKAGE_VERSION
787 PACKAGE_TARNAME
788 PACKAGE_NAME
789 PATH_SEPARATOR
790 SHELL'
791 ac_subst_files=''
792 ac_user_opts='
793 enable_option_checking
794 enable_silent_rules
795 enable_maintainer_mode
796 enable_dependency_tracking
797 enable_shared
798 enable_static
799 with_pic
800 enable_fast_install
801 with_gnu_ld
802 enable_libtool_lock
803 enable_werror_always
804 enable_gprofng_tools
805 with_jdk
806 enable_gprofng_debug
807 '
808 ac_precious_vars='build_alias
809 host_alias
810 target_alias
811 CC
812 CFLAGS
813 LDFLAGS
814 LIBS
815 CPPFLAGS
816 CPP
817 CXX
818 CXXFLAGS
819 CCC
820 CXXCPP'
821 ac_subdirs_all='libcollector'
822
823 # Initialize some variables set by options.
824 ac_init_help=
825 ac_init_version=false
826 ac_unrecognized_opts=
827 ac_unrecognized_sep=
828 # The variables have the same names as the options, with
829 # dashes changed to underlines.
830 cache_file=/dev/null
831 exec_prefix=NONE
832 no_create=
833 no_recursion=
834 prefix=NONE
835 program_prefix=NONE
836 program_suffix=NONE
837 program_transform_name=s,x,x,
838 silent=
839 site=
840 srcdir=
841 verbose=
842 x_includes=NONE
843 x_libraries=NONE
844
845 # Installation directory options.
846 # These are left unexpanded so users can "make install exec_prefix=/foo"
847 # and all the variables that are supposed to be based on exec_prefix
848 # by default will actually change.
849 # Use braces instead of parens because sh, perl, etc. also accept them.
850 # (The list follows the same order as the GNU Coding Standards.)
851 bindir='${exec_prefix}/bin'
852 sbindir='${exec_prefix}/sbin'
853 libexecdir='${exec_prefix}/libexec'
854 datarootdir='${prefix}/share'
855 datadir='${datarootdir}'
856 sysconfdir='${prefix}/etc'
857 sharedstatedir='${prefix}/com'
858 localstatedir='${prefix}/var'
859 includedir='${prefix}/include'
860 oldincludedir='/usr/include'
861 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862 infodir='${datarootdir}/info'
863 htmldir='${docdir}'
864 dvidir='${docdir}'
865 pdfdir='${docdir}'
866 psdir='${docdir}'
867 libdir='${exec_prefix}/lib'
868 localedir='${datarootdir}/locale'
869 mandir='${datarootdir}/man'
870
871 ac_prev=
872 ac_dashdash=
873 for ac_option
874 do
875 # If the previous option needs an argument, assign it.
876 if test -n "$ac_prev"; then
877 eval $ac_prev=\$ac_option
878 ac_prev=
879 continue
880 fi
881
882 case $ac_option in
883 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884 *=) ac_optarg= ;;
885 *) ac_optarg=yes ;;
886 esac
887
888 # Accept the important Cygnus configure options, so we can diagnose typos.
889
890 case $ac_dashdash$ac_option in
891 --)
892 ac_dashdash=yes ;;
893
894 -bindir | --bindir | --bindi | --bind | --bin | --bi)
895 ac_prev=bindir ;;
896 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
897 bindir=$ac_optarg ;;
898
899 -build | --build | --buil | --bui | --bu)
900 ac_prev=build_alias ;;
901 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902 build_alias=$ac_optarg ;;
903
904 -cache-file | --cache-file | --cache-fil | --cache-fi \
905 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906 ac_prev=cache_file ;;
907 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909 cache_file=$ac_optarg ;;
910
911 --config-cache | -C)
912 cache_file=config.cache ;;
913
914 -datadir | --datadir | --datadi | --datad)
915 ac_prev=datadir ;;
916 -datadir=* | --datadir=* | --datadi=* | --datad=*)
917 datadir=$ac_optarg ;;
918
919 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920 | --dataroo | --dataro | --datar)
921 ac_prev=datarootdir ;;
922 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924 datarootdir=$ac_optarg ;;
925
926 -disable-* | --disable-*)
927 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930 as_fn_error $? "invalid feature name: $ac_useropt"
931 ac_useropt_orig=$ac_useropt
932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
934 *"
935 "enable_$ac_useropt"
936 "*) ;;
937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
938 ac_unrecognized_sep=', ';;
939 esac
940 eval enable_$ac_useropt=no ;;
941
942 -docdir | --docdir | --docdi | --doc | --do)
943 ac_prev=docdir ;;
944 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945 docdir=$ac_optarg ;;
946
947 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948 ac_prev=dvidir ;;
949 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950 dvidir=$ac_optarg ;;
951
952 -enable-* | --enable-*)
953 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956 as_fn_error $? "invalid feature name: $ac_useropt"
957 ac_useropt_orig=$ac_useropt
958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
960 *"
961 "enable_$ac_useropt"
962 "*) ;;
963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964 ac_unrecognized_sep=', ';;
965 esac
966 eval enable_$ac_useropt=\$ac_optarg ;;
967
968 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
969 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
970 | --exec | --exe | --ex)
971 ac_prev=exec_prefix ;;
972 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
973 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
974 | --exec=* | --exe=* | --ex=*)
975 exec_prefix=$ac_optarg ;;
976
977 -gas | --gas | --ga | --g)
978 # Obsolete; use --with-gas.
979 with_gas=yes ;;
980
981 -help | --help | --hel | --he | -h)
982 ac_init_help=long ;;
983 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
984 ac_init_help=recursive ;;
985 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
986 ac_init_help=short ;;
987
988 -host | --host | --hos | --ho)
989 ac_prev=host_alias ;;
990 -host=* | --host=* | --hos=* | --ho=*)
991 host_alias=$ac_optarg ;;
992
993 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994 ac_prev=htmldir ;;
995 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996 | --ht=*)
997 htmldir=$ac_optarg ;;
998
999 -includedir | --includedir | --includedi | --included | --include \
1000 | --includ | --inclu | --incl | --inc)
1001 ac_prev=includedir ;;
1002 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1003 | --includ=* | --inclu=* | --incl=* | --inc=*)
1004 includedir=$ac_optarg ;;
1005
1006 -infodir | --infodir | --infodi | --infod | --info | --inf)
1007 ac_prev=infodir ;;
1008 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1009 infodir=$ac_optarg ;;
1010
1011 -libdir | --libdir | --libdi | --libd)
1012 ac_prev=libdir ;;
1013 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1014 libdir=$ac_optarg ;;
1015
1016 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1017 | --libexe | --libex | --libe)
1018 ac_prev=libexecdir ;;
1019 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1020 | --libexe=* | --libex=* | --libe=*)
1021 libexecdir=$ac_optarg ;;
1022
1023 -localedir | --localedir | --localedi | --localed | --locale)
1024 ac_prev=localedir ;;
1025 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1026 localedir=$ac_optarg ;;
1027
1028 -localstatedir | --localstatedir | --localstatedi | --localstated \
1029 | --localstate | --localstat | --localsta | --localst | --locals)
1030 ac_prev=localstatedir ;;
1031 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1032 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1033 localstatedir=$ac_optarg ;;
1034
1035 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036 ac_prev=mandir ;;
1037 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1038 mandir=$ac_optarg ;;
1039
1040 -nfp | --nfp | --nf)
1041 # Obsolete; use --without-fp.
1042 with_fp=no ;;
1043
1044 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1045 | --no-cr | --no-c | -n)
1046 no_create=yes ;;
1047
1048 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1049 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1050 no_recursion=yes ;;
1051
1052 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1053 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1054 | --oldin | --oldi | --old | --ol | --o)
1055 ac_prev=oldincludedir ;;
1056 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1057 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1058 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1059 oldincludedir=$ac_optarg ;;
1060
1061 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062 ac_prev=prefix ;;
1063 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1064 prefix=$ac_optarg ;;
1065
1066 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1067 | --program-pre | --program-pr | --program-p)
1068 ac_prev=program_prefix ;;
1069 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1070 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1071 program_prefix=$ac_optarg ;;
1072
1073 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1074 | --program-suf | --program-su | --program-s)
1075 ac_prev=program_suffix ;;
1076 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1077 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1078 program_suffix=$ac_optarg ;;
1079
1080 -program-transform-name | --program-transform-name \
1081 | --program-transform-nam | --program-transform-na \
1082 | --program-transform-n | --program-transform- \
1083 | --program-transform | --program-transfor \
1084 | --program-transfo | --program-transf \
1085 | --program-trans | --program-tran \
1086 | --progr-tra | --program-tr | --program-t)
1087 ac_prev=program_transform_name ;;
1088 -program-transform-name=* | --program-transform-name=* \
1089 | --program-transform-nam=* | --program-transform-na=* \
1090 | --program-transform-n=* | --program-transform-=* \
1091 | --program-transform=* | --program-transfor=* \
1092 | --program-transfo=* | --program-transf=* \
1093 | --program-trans=* | --program-tran=* \
1094 | --progr-tra=* | --program-tr=* | --program-t=*)
1095 program_transform_name=$ac_optarg ;;
1096
1097 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098 ac_prev=pdfdir ;;
1099 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1100 pdfdir=$ac_optarg ;;
1101
1102 -psdir | --psdir | --psdi | --psd | --ps)
1103 ac_prev=psdir ;;
1104 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1105 psdir=$ac_optarg ;;
1106
1107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108 | -silent | --silent | --silen | --sile | --sil)
1109 silent=yes ;;
1110
1111 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1112 ac_prev=sbindir ;;
1113 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1114 | --sbi=* | --sb=*)
1115 sbindir=$ac_optarg ;;
1116
1117 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1118 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1119 | --sharedst | --shareds | --shared | --share | --shar \
1120 | --sha | --sh)
1121 ac_prev=sharedstatedir ;;
1122 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1123 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1124 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1125 | --sha=* | --sh=*)
1126 sharedstatedir=$ac_optarg ;;
1127
1128 -site | --site | --sit)
1129 ac_prev=site ;;
1130 -site=* | --site=* | --sit=*)
1131 site=$ac_optarg ;;
1132
1133 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1134 ac_prev=srcdir ;;
1135 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1136 srcdir=$ac_optarg ;;
1137
1138 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1139 | --syscon | --sysco | --sysc | --sys | --sy)
1140 ac_prev=sysconfdir ;;
1141 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1142 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1143 sysconfdir=$ac_optarg ;;
1144
1145 -target | --target | --targe | --targ | --tar | --ta | --t)
1146 ac_prev=target_alias ;;
1147 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1148 target_alias=$ac_optarg ;;
1149
1150 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1151 verbose=yes ;;
1152
1153 -version | --version | --versio | --versi | --vers | -V)
1154 ac_init_version=: ;;
1155
1156 -with-* | --with-*)
1157 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error $? "invalid package name: $ac_useropt"
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1164 *"
1165 "with_$ac_useropt"
1166 "*) ;;
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1169 esac
1170 eval with_$ac_useropt=\$ac_optarg ;;
1171
1172 -without-* | --without-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error $? "invalid package name: $ac_useropt"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1180 *"
1181 "with_$ac_useropt"
1182 "*) ;;
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1185 esac
1186 eval with_$ac_useropt=no ;;
1187
1188 --x)
1189 # Obsolete; use --with-x.
1190 with_x=yes ;;
1191
1192 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1193 | --x-incl | --x-inc | --x-in | --x-i)
1194 ac_prev=x_includes ;;
1195 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1196 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1197 x_includes=$ac_optarg ;;
1198
1199 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1200 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1201 ac_prev=x_libraries ;;
1202 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1203 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1204 x_libraries=$ac_optarg ;;
1205
1206 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1207 Try \`$0 --help' for more information"
1208 ;;
1209
1210 *=*)
1211 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1212 # Reject names that are not valid shell variable names.
1213 case $ac_envvar in #(
1214 '' | [0-9]* | *[!_$as_cr_alnum]* )
1215 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1216 esac
1217 eval $ac_envvar=\$ac_optarg
1218 export $ac_envvar ;;
1219
1220 *)
1221 # FIXME: should be removed in autoconf 3.0.
1222 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1223 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1225 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1226 ;;
1227
1228 esac
1229 done
1230
1231 if test -n "$ac_prev"; then
1232 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1233 as_fn_error $? "missing argument to $ac_option"
1234 fi
1235
1236 if test -n "$ac_unrecognized_opts"; then
1237 case $enable_option_checking in
1238 no) ;;
1239 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1240 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1241 esac
1242 fi
1243
1244 # Check all directory arguments for consistency.
1245 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1246 datadir sysconfdir sharedstatedir localstatedir includedir \
1247 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1248 libdir localedir mandir
1249 do
1250 eval ac_val=\$$ac_var
1251 # Remove trailing slashes.
1252 case $ac_val in
1253 */ )
1254 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1255 eval $ac_var=\$ac_val;;
1256 esac
1257 # Be sure to have absolute directory names.
1258 case $ac_val in
1259 [\\/$]* | ?:[\\/]* ) continue;;
1260 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1261 esac
1262 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1263 done
1264
1265 # There might be people who depend on the old broken behavior: `$host'
1266 # used to hold the argument of --host etc.
1267 # FIXME: To remove some day.
1268 build=$build_alias
1269 host=$host_alias
1270 target=$target_alias
1271
1272 # FIXME: To remove some day.
1273 if test "x$host_alias" != x; then
1274 if test "x$build_alias" = x; then
1275 cross_compiling=maybe
1276 elif test "x$build_alias" != "x$host_alias"; then
1277 cross_compiling=yes
1278 fi
1279 fi
1280
1281 ac_tool_prefix=
1282 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283
1284 test "$silent" = yes && exec 6>/dev/null
1285
1286
1287 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1288 ac_ls_di=`ls -di .` &&
1289 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1290 as_fn_error $? "working directory cannot be determined"
1291 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1292 as_fn_error $? "pwd does not report name of working directory"
1293
1294
1295 # Find the source files, if location was not specified.
1296 if test -z "$srcdir"; then
1297 ac_srcdir_defaulted=yes
1298 # Try the directory containing this script, then the parent directory.
1299 ac_confdir=`$as_dirname -- "$as_myself" ||
1300 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1301 X"$as_myself" : 'X\(//\)[^/]' \| \
1302 X"$as_myself" : 'X\(//\)$' \| \
1303 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1304 $as_echo X"$as_myself" |
1305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\/\)[^/].*/{
1310 s//\1/
1311 q
1312 }
1313 /^X\(\/\/\)$/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\).*/{
1318 s//\1/
1319 q
1320 }
1321 s/.*/./; q'`
1322 srcdir=$ac_confdir
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 srcdir=..
1325 fi
1326 else
1327 ac_srcdir_defaulted=no
1328 fi
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1331 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1332 fi
1333 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1334 ac_abs_confdir=`(
1335 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1336 pwd)`
1337 # When building in place, set srcdir=.
1338 if test "$ac_abs_confdir" = "$ac_pwd"; then
1339 srcdir=.
1340 fi
1341 # Remove unnecessary trailing slashes from srcdir.
1342 # Double slashes in file names in object file debugging info
1343 # mess up M-x gdb in Emacs.
1344 case $srcdir in
1345 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1346 esac
1347 for ac_var in $ac_precious_vars; do
1348 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_env_${ac_var}_value=\$${ac_var}
1350 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1351 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1352 done
1353
1354 #
1355 # Report the --help message.
1356 #
1357 if test "$ac_init_help" = "long"; then
1358 # Omit some internal or obsolete options to make the list less imposing.
1359 # This message is too long to be a string in the A/UX 3.1 sh.
1360 cat <<_ACEOF
1361 \`configure' configures gprofng 2.38.50 to adapt to many kinds of systems.
1362
1363 Usage: $0 [OPTION]... [VAR=VALUE]...
1364
1365 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1366 VAR=VALUE. See below for descriptions of some of the useful variables.
1367
1368 Defaults for the options are specified in brackets.
1369
1370 Configuration:
1371 -h, --help display this help and exit
1372 --help=short display options specific to this package
1373 --help=recursive display the short help of all the included packages
1374 -V, --version display version information and exit
1375 -q, --quiet, --silent do not print \`checking ...' messages
1376 --cache-file=FILE cache test results in FILE [disabled]
1377 -C, --config-cache alias for \`--cache-file=config.cache'
1378 -n, --no-create do not create output files
1379 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1380
1381 Installation directories:
1382 --prefix=PREFIX install architecture-independent files in PREFIX
1383 [$ac_default_prefix]
1384 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1385 [PREFIX]
1386
1387 By default, \`make install' will install all the files in
1388 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1389 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1390 for instance \`--prefix=\$HOME'.
1391
1392 For better control, use the options below.
1393
1394 Fine tuning of the installation directories:
1395 --bindir=DIR user executables [EPREFIX/bin]
1396 --sbindir=DIR system admin executables [EPREFIX/sbin]
1397 --libexecdir=DIR program executables [EPREFIX/libexec]
1398 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1399 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1400 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1401 --libdir=DIR object code libraries [EPREFIX/lib]
1402 --includedir=DIR C header files [PREFIX/include]
1403 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1404 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1405 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1406 --infodir=DIR info documentation [DATAROOTDIR/info]
1407 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1408 --mandir=DIR man documentation [DATAROOTDIR/man]
1409 --docdir=DIR documentation root [DATAROOTDIR/doc/gprofng]
1410 --htmldir=DIR html documentation [DOCDIR]
1411 --dvidir=DIR dvi documentation [DOCDIR]
1412 --pdfdir=DIR pdf documentation [DOCDIR]
1413 --psdir=DIR ps documentation [DOCDIR]
1414 _ACEOF
1415
1416 cat <<\_ACEOF
1417
1418 Program names:
1419 --program-prefix=PREFIX prepend PREFIX to installed program names
1420 --program-suffix=SUFFIX append SUFFIX to installed program names
1421 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1422
1423 System types:
1424 --build=BUILD configure for building on BUILD [guessed]
1425 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1426 --target=TARGET configure for building compilers for TARGET [HOST]
1427 _ACEOF
1428 fi
1429
1430 if test -n "$ac_init_help"; then
1431 case $ac_init_help in
1432 short | recursive ) echo "Configuration of gprofng 2.38.50:";;
1433 esac
1434 cat <<\_ACEOF
1435
1436 Optional Features:
1437 --disable-option-checking ignore unrecognized --enable/--with options
1438 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1439 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1440 --enable-silent-rules less verbose build output (undo: "make V=1")
1441 --disable-silent-rules verbose build output (undo: "make V=0")
1442 --enable-maintainer-mode
1443 enable make rules and dependencies not useful (and
1444 sometimes confusing) to the casual installer
1445 --enable-dependency-tracking
1446 do not reject slow dependency extractors
1447 --disable-dependency-tracking
1448 speeds up one-time build
1449 --enable-shared[=PKGS] build shared libraries [default=no]
1450 --enable-static[=PKGS] build static libraries [default=yes]
1451 --enable-fast-install[=PKGS]
1452 optimize for fast installation [default=yes]
1453 --disable-libtool-lock avoid locking (might break parallel builds)
1454 --enable-werror-always enable -Werror despite compiler version
1455 --disable-gprofng-tools do not build gprofng/src directory
1456 --enable-gprofng-debug Enable debugging output [default=no]
1457
1458 Optional Packages:
1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1461 --with-pic try to use only PIC/non-PIC objects [default=use
1462 both]
1463 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1464 --with-jdk=PATH specify prefix directory for installed JDK.
1465
1466 Some influential environment variables:
1467 CC C compiler command
1468 CFLAGS C compiler flags
1469 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1470 nonstandard directory <lib dir>
1471 LIBS libraries to pass to the linker, e.g. -l<library>
1472 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1473 you have headers in a nonstandard directory <include dir>
1474 CPP C preprocessor
1475 CXX C++ compiler command
1476 CXXFLAGS C++ compiler flags
1477 CXXCPP C++ preprocessor
1478
1479 Use these variables to override the choices made by `configure' or to help
1480 it to find libraries and programs with nonstandard names/locations.
1481
1482 Report bugs to the package provider.
1483 _ACEOF
1484 ac_status=$?
1485 fi
1486
1487 if test "$ac_init_help" = "recursive"; then
1488 # If there are subdirs, report their specific --help.
1489 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1490 test -d "$ac_dir" ||
1491 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1492 continue
1493 ac_builddir=.
1494
1495 case "$ac_dir" in
1496 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497 *)
1498 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1499 # A ".." for each directory in $ac_dir_suffix.
1500 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1501 case $ac_top_builddir_sub in
1502 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1504 esac ;;
1505 esac
1506 ac_abs_top_builddir=$ac_pwd
1507 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1508 # for backward compatibility:
1509 ac_top_builddir=$ac_top_build_prefix
1510
1511 case $srcdir in
1512 .) # We are building in place.
1513 ac_srcdir=.
1514 ac_top_srcdir=$ac_top_builddir_sub
1515 ac_abs_top_srcdir=$ac_pwd ;;
1516 [\\/]* | ?:[\\/]* ) # Absolute name.
1517 ac_srcdir=$srcdir$ac_dir_suffix;
1518 ac_top_srcdir=$srcdir
1519 ac_abs_top_srcdir=$srcdir ;;
1520 *) # Relative name.
1521 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1522 ac_top_srcdir=$ac_top_build_prefix$srcdir
1523 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1524 esac
1525 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1526
1527 cd "$ac_dir" || { ac_status=$?; continue; }
1528 # Check for guested configure.
1529 if test -f "$ac_srcdir/configure.gnu"; then
1530 echo &&
1531 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1532 elif test -f "$ac_srcdir/configure"; then
1533 echo &&
1534 $SHELL "$ac_srcdir/configure" --help=recursive
1535 else
1536 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1537 fi || ac_status=$?
1538 cd "$ac_pwd" || { ac_status=$?; break; }
1539 done
1540 fi
1541
1542 test -n "$ac_init_help" && exit $ac_status
1543 if $ac_init_version; then
1544 cat <<\_ACEOF
1545 gprofng configure 2.38.50
1546 generated by GNU Autoconf 2.69
1547
1548 Copyright (C) 2012 Free Software Foundation, Inc.
1549 This configure script is free software; the Free Software Foundation
1550 gives unlimited permission to copy, distribute and modify it.
1551 _ACEOF
1552 exit
1553 fi
1554
1555 ## ------------------------ ##
1556 ## Autoconf initialization. ##
1557 ## ------------------------ ##
1558
1559 # ac_fn_c_try_compile LINENO
1560 # --------------------------
1561 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1562 ac_fn_c_try_compile ()
1563 {
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 rm -f conftest.$ac_objext
1566 if { { ac_try="$ac_compile"
1567 case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1570 esac
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_compile") 2>conftest.err
1574 ac_status=$?
1575 if test -s conftest.err; then
1576 grep -v '^ *+' conftest.err >conftest.er1
1577 cat conftest.er1 >&5
1578 mv -f conftest.er1 conftest.err
1579 fi
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } && {
1582 test -z "$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1584 } && test -s conftest.$ac_objext; then :
1585 ac_retval=0
1586 else
1587 $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1589
1590 ac_retval=1
1591 fi
1592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593 as_fn_set_status $ac_retval
1594
1595 } # ac_fn_c_try_compile
1596
1597 # ac_fn_c_try_cpp LINENO
1598 # ----------------------
1599 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1600 ac_fn_c_try_cpp ()
1601 {
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 if { { ac_try="$ac_cpp conftest.$ac_ext"
1604 case "(($ac_try" in
1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606 *) ac_try_echo=$ac_try;;
1607 esac
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1611 ac_status=$?
1612 if test -s conftest.err; then
1613 grep -v '^ *+' conftest.err >conftest.er1
1614 cat conftest.er1 >&5
1615 mv -f conftest.er1 conftest.err
1616 fi
1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } > conftest.i && {
1619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1620 test ! -s conftest.err
1621 }; then :
1622 ac_retval=0
1623 else
1624 $as_echo "$as_me: failed program was:" >&5
1625 sed 's/^/| /' conftest.$ac_ext >&5
1626
1627 ac_retval=1
1628 fi
1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630 as_fn_set_status $ac_retval
1631
1632 } # ac_fn_c_try_cpp
1633
1634 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1635 # -------------------------------------------------------
1636 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1637 # the include files in INCLUDES and setting the cache variable VAR
1638 # accordingly.
1639 ac_fn_c_check_header_mongrel ()
1640 {
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 if eval \${$3+:} false; then :
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644 $as_echo_n "checking for $2... " >&6; }
1645 if eval \${$3+:} false; then :
1646 $as_echo_n "(cached) " >&6
1647 fi
1648 eval ac_res=\$$3
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1650 $as_echo "$ac_res" >&6; }
1651 else
1652 # Is the header compilable?
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1654 $as_echo_n "checking $2 usability... " >&6; }
1655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656 /* end confdefs.h. */
1657 $4
1658 #include <$2>
1659 _ACEOF
1660 if ac_fn_c_try_compile "$LINENO"; then :
1661 ac_header_compiler=yes
1662 else
1663 ac_header_compiler=no
1664 fi
1665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1667 $as_echo "$ac_header_compiler" >&6; }
1668
1669 # Is the header present?
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1671 $as_echo_n "checking $2 presence... " >&6; }
1672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673 /* end confdefs.h. */
1674 #include <$2>
1675 _ACEOF
1676 if ac_fn_c_try_cpp "$LINENO"; then :
1677 ac_header_preproc=yes
1678 else
1679 ac_header_preproc=no
1680 fi
1681 rm -f conftest.err conftest.i conftest.$ac_ext
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1683 $as_echo "$ac_header_preproc" >&6; }
1684
1685 # So? What about this header?
1686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1687 yes:no: )
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1689 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1691 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1692 ;;
1693 no:yes:* )
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1695 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1697 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1699 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1701 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1703 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1704 ;;
1705 esac
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 $as_echo_n "checking for $2... " >&6; }
1708 if eval \${$3+:} false; then :
1709 $as_echo_n "(cached) " >&6
1710 else
1711 eval "$3=\$ac_header_compiler"
1712 fi
1713 eval ac_res=\$$3
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1715 $as_echo "$ac_res" >&6; }
1716 fi
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718
1719 } # ac_fn_c_check_header_mongrel
1720
1721 # ac_fn_c_try_run LINENO
1722 # ----------------------
1723 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1724 # that executables *can* be run.
1725 ac_fn_c_try_run ()
1726 {
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 if { { ac_try="$ac_link"
1729 case "(($ac_try" in
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1732 esac
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_link") 2>&5
1736 ac_status=$?
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1739 { { case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_try") 2>&5
1746 ac_status=$?
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; }; }; then :
1749 ac_retval=0
1750 else
1751 $as_echo "$as_me: program exited with status $ac_status" >&5
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1754
1755 ac_retval=$ac_status
1756 fi
1757 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
1760
1761 } # ac_fn_c_try_run
1762
1763 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1764 # -------------------------------------------------------
1765 # Tests whether HEADER exists and can be compiled using the include files in
1766 # INCLUDES, setting the cache variable VAR accordingly.
1767 ac_fn_c_check_header_compile ()
1768 {
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771 $as_echo_n "checking for $2... " >&6; }
1772 if eval \${$3+:} false; then :
1773 $as_echo_n "(cached) " >&6
1774 else
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1777 $4
1778 #include <$2>
1779 _ACEOF
1780 if ac_fn_c_try_compile "$LINENO"; then :
1781 eval "$3=yes"
1782 else
1783 eval "$3=no"
1784 fi
1785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786 fi
1787 eval ac_res=\$$3
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792 } # ac_fn_c_check_header_compile
1793
1794 # ac_fn_cxx_try_compile LINENO
1795 # ----------------------------
1796 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1797 ac_fn_cxx_try_compile ()
1798 {
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 rm -f conftest.$ac_objext
1801 if { { ac_try="$ac_compile"
1802 case "(($ac_try" in
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_compile") 2>conftest.err
1809 ac_status=$?
1810 if test -s conftest.err; then
1811 grep -v '^ *+' conftest.err >conftest.er1
1812 cat conftest.er1 >&5
1813 mv -f conftest.er1 conftest.err
1814 fi
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; } && {
1817 test -z "$ac_cxx_werror_flag" ||
1818 test ! -s conftest.err
1819 } && test -s conftest.$ac_objext; then :
1820 ac_retval=0
1821 else
1822 $as_echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1824
1825 ac_retval=1
1826 fi
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828 as_fn_set_status $ac_retval
1829
1830 } # ac_fn_cxx_try_compile
1831
1832 # ac_fn_c_try_link LINENO
1833 # -----------------------
1834 # Try to link conftest.$ac_ext, and return whether this succeeded.
1835 ac_fn_c_try_link ()
1836 {
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 rm -f conftest.$ac_objext conftest$ac_exeext
1839 if { { ac_try="$ac_link"
1840 case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_link") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1852 fi
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest$ac_exeext && {
1858 test "$cross_compiling" = yes ||
1859 test -x conftest$ac_exeext
1860 }; then :
1861 ac_retval=0
1862 else
1863 $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1865
1866 ac_retval=1
1867 fi
1868 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1869 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1870 # interfere with the next link command; also delete a directory that is
1871 # left behind by Apple's compiler. We do this before executing the actions.
1872 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874 as_fn_set_status $ac_retval
1875
1876 } # ac_fn_c_try_link
1877
1878 # ac_fn_c_check_func LINENO FUNC VAR
1879 # ----------------------------------
1880 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1881 ac_fn_c_check_func ()
1882 {
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if eval \${$3+:} false; then :
1887 $as_echo_n "(cached) " >&6
1888 else
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h. */
1891 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1893 #define $2 innocuous_$2
1894
1895 /* System header to define __stub macros and hopefully few prototypes,
1896 which can conflict with char $2 (); below.
1897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1898 <limits.h> exists even on freestanding compilers. */
1899
1900 #ifdef __STDC__
1901 # include <limits.h>
1902 #else
1903 # include <assert.h>
1904 #endif
1905
1906 #undef $2
1907
1908 /* Override any GCC internal prototype to avoid an error.
1909 Use char because int might match the return type of a GCC
1910 builtin and then its argument prototype would still apply. */
1911 #ifdef __cplusplus
1912 extern "C"
1913 #endif
1914 char $2 ();
1915 /* The GNU C library defines this for functions which it implements
1916 to always fail with ENOSYS. Some functions are actually named
1917 something starting with __ and the normal name is an alias. */
1918 #if defined __stub_$2 || defined __stub___$2
1919 choke me
1920 #endif
1921
1922 int
1923 main ()
1924 {
1925 return $2 ();
1926 ;
1927 return 0;
1928 }
1929 _ACEOF
1930 if ac_fn_c_try_link "$LINENO"; then :
1931 eval "$3=yes"
1932 else
1933 eval "$3=no"
1934 fi
1935 rm -f core conftest.err conftest.$ac_objext \
1936 conftest$ac_exeext conftest.$ac_ext
1937 fi
1938 eval ac_res=\$$3
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942
1943 } # ac_fn_c_check_func
1944
1945 # ac_fn_cxx_try_cpp LINENO
1946 # ------------------------
1947 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1948 ac_fn_cxx_try_cpp ()
1949 {
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 if { { ac_try="$ac_cpp conftest.$ac_ext"
1952 case "(($ac_try" in
1953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1954 *) ac_try_echo=$ac_try;;
1955 esac
1956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957 $as_echo "$ac_try_echo"; } >&5
1958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1959 ac_status=$?
1960 if test -s conftest.err; then
1961 grep -v '^ *+' conftest.err >conftest.er1
1962 cat conftest.er1 >&5
1963 mv -f conftest.er1 conftest.err
1964 fi
1965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966 test $ac_status = 0; } > conftest.i && {
1967 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1968 test ! -s conftest.err
1969 }; then :
1970 ac_retval=0
1971 else
1972 $as_echo "$as_me: failed program was:" >&5
1973 sed 's/^/| /' conftest.$ac_ext >&5
1974
1975 ac_retval=1
1976 fi
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978 as_fn_set_status $ac_retval
1979
1980 } # ac_fn_cxx_try_cpp
1981
1982 # ac_fn_cxx_try_link LINENO
1983 # -------------------------
1984 # Try to link conftest.$ac_ext, and return whether this succeeded.
1985 ac_fn_cxx_try_link ()
1986 {
1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988 rm -f conftest.$ac_objext conftest$ac_exeext
1989 if { { ac_try="$ac_link"
1990 case "(($ac_try" in
1991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992 *) ac_try_echo=$ac_try;;
1993 esac
1994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995 $as_echo "$ac_try_echo"; } >&5
1996 (eval "$ac_link") 2>conftest.err
1997 ac_status=$?
1998 if test -s conftest.err; then
1999 grep -v '^ *+' conftest.err >conftest.er1
2000 cat conftest.er1 >&5
2001 mv -f conftest.er1 conftest.err
2002 fi
2003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2004 test $ac_status = 0; } && {
2005 test -z "$ac_cxx_werror_flag" ||
2006 test ! -s conftest.err
2007 } && test -s conftest$ac_exeext && {
2008 test "$cross_compiling" = yes ||
2009 test -x conftest$ac_exeext
2010 }; then :
2011 ac_retval=0
2012 else
2013 $as_echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2015
2016 ac_retval=1
2017 fi
2018 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2019 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2020 # interfere with the next link command; also delete a directory that is
2021 # left behind by Apple's compiler. We do this before executing the actions.
2022 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024 as_fn_set_status $ac_retval
2025
2026 } # ac_fn_cxx_try_link
2027
2028 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2029 # ---------------------------------------------
2030 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2031 # accordingly.
2032 ac_fn_c_check_decl ()
2033 {
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 as_decl_name=`echo $2|sed 's/ *(.*//'`
2036 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2038 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2039 if eval \${$3+:} false; then :
2040 $as_echo_n "(cached) " >&6
2041 else
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2044 $4
2045 int
2046 main ()
2047 {
2048 #ifndef $as_decl_name
2049 #ifdef __cplusplus
2050 (void) $as_decl_use;
2051 #else
2052 (void) $as_decl_name;
2053 #endif
2054 #endif
2055
2056 ;
2057 return 0;
2058 }
2059 _ACEOF
2060 if ac_fn_c_try_compile "$LINENO"; then :
2061 eval "$3=yes"
2062 else
2063 eval "$3=no"
2064 fi
2065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066 fi
2067 eval ac_res=\$$3
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2069 $as_echo "$ac_res" >&6; }
2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071
2072 } # ac_fn_c_check_decl
2073 cat >config.log <<_ACEOF
2074 This file contains any messages produced by compilers while
2075 running configure, to aid debugging if configure makes a mistake.
2076
2077 It was created by gprofng $as_me 2.38.50, which was
2078 generated by GNU Autoconf 2.69. Invocation command line was
2079
2080 $ $0 $@
2081
2082 _ACEOF
2083 exec 5>>config.log
2084 {
2085 cat <<_ASUNAME
2086 ## --------- ##
2087 ## Platform. ##
2088 ## --------- ##
2089
2090 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2091 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2092 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2093 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2094 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2095
2096 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2097 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2098
2099 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2100 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2101 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2102 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2103 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2104 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2105 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2106
2107 _ASUNAME
2108
2109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 for as_dir in $PATH
2111 do
2112 IFS=$as_save_IFS
2113 test -z "$as_dir" && as_dir=.
2114 $as_echo "PATH: $as_dir"
2115 done
2116 IFS=$as_save_IFS
2117
2118 } >&5
2119
2120 cat >&5 <<_ACEOF
2121
2122
2123 ## ----------- ##
2124 ## Core tests. ##
2125 ## ----------- ##
2126
2127 _ACEOF
2128
2129
2130 # Keep a trace of the command line.
2131 # Strip out --no-create and --no-recursion so they do not pile up.
2132 # Strip out --silent because we don't want to record it for future runs.
2133 # Also quote any args containing shell meta-characters.
2134 # Make two passes to allow for proper duplicate-argument suppression.
2135 ac_configure_args=
2136 ac_configure_args0=
2137 ac_configure_args1=
2138 ac_must_keep_next=false
2139 for ac_pass in 1 2
2140 do
2141 for ac_arg
2142 do
2143 case $ac_arg in
2144 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2146 | -silent | --silent | --silen | --sile | --sil)
2147 continue ;;
2148 *\'*)
2149 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2150 esac
2151 case $ac_pass in
2152 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2153 2)
2154 as_fn_append ac_configure_args1 " '$ac_arg'"
2155 if test $ac_must_keep_next = true; then
2156 ac_must_keep_next=false # Got value, back to normal.
2157 else
2158 case $ac_arg in
2159 *=* | --config-cache | -C | -disable-* | --disable-* \
2160 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2161 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2162 | -with-* | --with-* | -without-* | --without-* | --x)
2163 case "$ac_configure_args0 " in
2164 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2165 esac
2166 ;;
2167 -* ) ac_must_keep_next=true ;;
2168 esac
2169 fi
2170 as_fn_append ac_configure_args " '$ac_arg'"
2171 ;;
2172 esac
2173 done
2174 done
2175 { ac_configure_args0=; unset ac_configure_args0;}
2176 { ac_configure_args1=; unset ac_configure_args1;}
2177
2178 # When interrupted or exit'd, cleanup temporary files, and complete
2179 # config.log. We remove comments because anyway the quotes in there
2180 # would cause problems or look ugly.
2181 # WARNING: Use '\'' to represent an apostrophe within the trap.
2182 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2183 trap 'exit_status=$?
2184 # Save into config.log some information that might help in debugging.
2185 {
2186 echo
2187
2188 $as_echo "## ---------------- ##
2189 ## Cache variables. ##
2190 ## ---------------- ##"
2191 echo
2192 # The following way of writing the cache mishandles newlines in values,
2193 (
2194 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2195 eval ac_val=\$$ac_var
2196 case $ac_val in #(
2197 *${as_nl}*)
2198 case $ac_var in #(
2199 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2200 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2201 esac
2202 case $ac_var in #(
2203 _ | IFS | as_nl) ;; #(
2204 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2205 *) { eval $ac_var=; unset $ac_var;} ;;
2206 esac ;;
2207 esac
2208 done
2209 (set) 2>&1 |
2210 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2211 *${as_nl}ac_space=\ *)
2212 sed -n \
2213 "s/'\''/'\''\\\\'\'''\''/g;
2214 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2215 ;; #(
2216 *)
2217 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2218 ;;
2219 esac |
2220 sort
2221 )
2222 echo
2223
2224 $as_echo "## ----------------- ##
2225 ## Output variables. ##
2226 ## ----------------- ##"
2227 echo
2228 for ac_var in $ac_subst_vars
2229 do
2230 eval ac_val=\$$ac_var
2231 case $ac_val in
2232 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2233 esac
2234 $as_echo "$ac_var='\''$ac_val'\''"
2235 done | sort
2236 echo
2237
2238 if test -n "$ac_subst_files"; then
2239 $as_echo "## ------------------- ##
2240 ## File substitutions. ##
2241 ## ------------------- ##"
2242 echo
2243 for ac_var in $ac_subst_files
2244 do
2245 eval ac_val=\$$ac_var
2246 case $ac_val in
2247 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2248 esac
2249 $as_echo "$ac_var='\''$ac_val'\''"
2250 done | sort
2251 echo
2252 fi
2253
2254 if test -s confdefs.h; then
2255 $as_echo "## ----------- ##
2256 ## confdefs.h. ##
2257 ## ----------- ##"
2258 echo
2259 cat confdefs.h
2260 echo
2261 fi
2262 test "$ac_signal" != 0 &&
2263 $as_echo "$as_me: caught signal $ac_signal"
2264 $as_echo "$as_me: exit $exit_status"
2265 } >&5
2266 rm -f core *.core core.conftest.* &&
2267 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2268 exit $exit_status
2269 ' 0
2270 for ac_signal in 1 2 13 15; do
2271 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2272 done
2273 ac_signal=0
2274
2275 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2276 rm -f -r conftest* confdefs.h
2277
2278 $as_echo "/* confdefs.h */" > confdefs.h
2279
2280 # Predefined preprocessor variables.
2281
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_NAME "$PACKAGE_NAME"
2284 _ACEOF
2285
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2288 _ACEOF
2289
2290 cat >>confdefs.h <<_ACEOF
2291 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2292 _ACEOF
2293
2294 cat >>confdefs.h <<_ACEOF
2295 #define PACKAGE_STRING "$PACKAGE_STRING"
2296 _ACEOF
2297
2298 cat >>confdefs.h <<_ACEOF
2299 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2300 _ACEOF
2301
2302 cat >>confdefs.h <<_ACEOF
2303 #define PACKAGE_URL "$PACKAGE_URL"
2304 _ACEOF
2305
2306
2307 # Let the site file select an alternate cache file if it wants to.
2308 # Prefer an explicitly selected file to automatically selected ones.
2309 ac_site_file1=NONE
2310 ac_site_file2=NONE
2311 if test -n "$CONFIG_SITE"; then
2312 # We do not want a PATH search for config.site.
2313 case $CONFIG_SITE in #((
2314 -*) ac_site_file1=./$CONFIG_SITE;;
2315 */*) ac_site_file1=$CONFIG_SITE;;
2316 *) ac_site_file1=./$CONFIG_SITE;;
2317 esac
2318 elif test "x$prefix" != xNONE; then
2319 ac_site_file1=$prefix/share/config.site
2320 ac_site_file2=$prefix/etc/config.site
2321 else
2322 ac_site_file1=$ac_default_prefix/share/config.site
2323 ac_site_file2=$ac_default_prefix/etc/config.site
2324 fi
2325 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2326 do
2327 test "x$ac_site_file" = xNONE && continue
2328 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2330 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2331 sed 's/^/| /' "$ac_site_file" >&5
2332 . "$ac_site_file" \
2333 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2335 as_fn_error $? "failed to load site script $ac_site_file
2336 See \`config.log' for more details" "$LINENO" 5; }
2337 fi
2338 done
2339
2340 if test -r "$cache_file"; then
2341 # Some versions of bash will fail to source /dev/null (special files
2342 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2343 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2345 $as_echo "$as_me: loading cache $cache_file" >&6;}
2346 case $cache_file in
2347 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2348 *) . "./$cache_file";;
2349 esac
2350 fi
2351 else
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2353 $as_echo "$as_me: creating cache $cache_file" >&6;}
2354 >$cache_file
2355 fi
2356
2357 # Check that the precious variables saved in the cache have kept the same
2358 # value.
2359 ac_cache_corrupted=false
2360 for ac_var in $ac_precious_vars; do
2361 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2362 eval ac_new_set=\$ac_env_${ac_var}_set
2363 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2364 eval ac_new_val=\$ac_env_${ac_var}_value
2365 case $ac_old_set,$ac_new_set in
2366 set,)
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2368 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2369 ac_cache_corrupted=: ;;
2370 ,set)
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2372 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2373 ac_cache_corrupted=: ;;
2374 ,);;
2375 *)
2376 if test "x$ac_old_val" != "x$ac_new_val"; then
2377 # differences in whitespace do not lead to failure.
2378 ac_old_val_w=`echo x $ac_old_val`
2379 ac_new_val_w=`echo x $ac_new_val`
2380 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2382 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2383 ac_cache_corrupted=:
2384 else
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2386 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2387 eval $ac_var=\$ac_old_val
2388 fi
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2390 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2392 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2393 fi;;
2394 esac
2395 # Pass precious variables to config.status.
2396 if test "$ac_new_set" = set; then
2397 case $ac_new_val in
2398 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2399 *) ac_arg=$ac_var=$ac_new_val ;;
2400 esac
2401 case " $ac_configure_args " in
2402 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2403 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2404 esac
2405 fi
2406 done
2407 if $ac_cache_corrupted; then
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2411 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2412 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2413 fi
2414 ## -------------------- ##
2415 ## Main body of script. ##
2416 ## -------------------- ##
2417
2418 ac_ext=c
2419 ac_cpp='$CPP $CPPFLAGS'
2420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2423
2424
2425 ac_aux_dir=
2426 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2427 if test -f "$ac_dir/install-sh"; then
2428 ac_aux_dir=$ac_dir
2429 ac_install_sh="$ac_aux_dir/install-sh -c"
2430 break
2431 elif test -f "$ac_dir/install.sh"; then
2432 ac_aux_dir=$ac_dir
2433 ac_install_sh="$ac_aux_dir/install.sh -c"
2434 break
2435 elif test -f "$ac_dir/shtool"; then
2436 ac_aux_dir=$ac_dir
2437 ac_install_sh="$ac_aux_dir/shtool install -c"
2438 break
2439 fi
2440 done
2441 if test -z "$ac_aux_dir"; then
2442 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2443 fi
2444
2445 # These three variables are undocumented and unsupported,
2446 # and are intended to be withdrawn in a future Autoconf release.
2447 # They can cause serious problems if a builder's source tree is in a directory
2448 # whose full name contains unusual characters.
2449 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2450 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2451 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2452
2453
2454 # Make sure we can run config.sub.
2455 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2456 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2457
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2459 $as_echo_n "checking build system type... " >&6; }
2460 if ${ac_cv_build+:} false; then :
2461 $as_echo_n "(cached) " >&6
2462 else
2463 ac_build_alias=$build_alias
2464 test "x$ac_build_alias" = x &&
2465 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2466 test "x$ac_build_alias" = x &&
2467 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2468 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2469 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2470
2471 fi
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2473 $as_echo "$ac_cv_build" >&6; }
2474 case $ac_cv_build in
2475 *-*-*) ;;
2476 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2477 esac
2478 build=$ac_cv_build
2479 ac_save_IFS=$IFS; IFS='-'
2480 set x $ac_cv_build
2481 shift
2482 build_cpu=$1
2483 build_vendor=$2
2484 shift; shift
2485 # Remember, the first character of IFS is used to create $*,
2486 # except with old shells:
2487 build_os=$*
2488 IFS=$ac_save_IFS
2489 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2490
2491
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2493 $as_echo_n "checking host system type... " >&6; }
2494 if ${ac_cv_host+:} false; then :
2495 $as_echo_n "(cached) " >&6
2496 else
2497 if test "x$host_alias" = x; then
2498 ac_cv_host=$ac_cv_build
2499 else
2500 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2501 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2502 fi
2503
2504 fi
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2506 $as_echo "$ac_cv_host" >&6; }
2507 case $ac_cv_host in
2508 *-*-*) ;;
2509 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2510 esac
2511 host=$ac_cv_host
2512 ac_save_IFS=$IFS; IFS='-'
2513 set x $ac_cv_host
2514 shift
2515 host_cpu=$1
2516 host_vendor=$2
2517 shift; shift
2518 # Remember, the first character of IFS is used to create $*,
2519 # except with old shells:
2520 host_os=$*
2521 IFS=$ac_save_IFS
2522 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2523
2524
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2526 $as_echo_n "checking target system type... " >&6; }
2527 if ${ac_cv_target+:} false; then :
2528 $as_echo_n "(cached) " >&6
2529 else
2530 if test "x$target_alias" = x; then
2531 ac_cv_target=$ac_cv_host
2532 else
2533 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2534 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2535 fi
2536
2537 fi
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2539 $as_echo "$ac_cv_target" >&6; }
2540 case $ac_cv_target in
2541 *-*-*) ;;
2542 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2543 esac
2544 target=$ac_cv_target
2545 ac_save_IFS=$IFS; IFS='-'
2546 set x $ac_cv_target
2547 shift
2548 target_cpu=$1
2549 target_vendor=$2
2550 shift; shift
2551 # Remember, the first character of IFS is used to create $*,
2552 # except with old shells:
2553 target_os=$*
2554 IFS=$ac_save_IFS
2555 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2556
2557
2558 # The aliases save the names the user supplied, while $host etc.
2559 # will get canonicalized.
2560 test -n "$target_alias" &&
2561 test "$program_prefix$program_suffix$program_transform_name" = \
2562 NONENONEs,x,x, &&
2563 program_prefix=${target_alias}-
2564 am__api_version='1.15'
2565
2566 # Find a good install program. We prefer a C program (faster),
2567 # so one script is as good as another. But avoid the broken or
2568 # incompatible versions:
2569 # SysV /etc/install, /usr/sbin/install
2570 # SunOS /usr/etc/install
2571 # IRIX /sbin/install
2572 # AIX /bin/install
2573 # AmigaOS /C/install, which installs bootblocks on floppy discs
2574 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2575 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2576 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2577 # OS/2's system install, which has a completely different semantic
2578 # ./install, which can be erroneously created by make from ./install.sh.
2579 # Reject install programs that cannot install multiple files.
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2581 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2582 if test -z "$INSTALL"; then
2583 if ${ac_cv_path_install+:} false; then :
2584 $as_echo_n "(cached) " >&6
2585 else
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH
2588 do
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
2591 # Account for people who put trailing slashes in PATH elements.
2592 case $as_dir/ in #((
2593 ./ | .// | /[cC]/* | \
2594 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2595 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2596 /usr/ucb/* ) ;;
2597 *)
2598 # OSF1 and SCO ODT 3.0 have their own names for install.
2599 # Don't use installbsd from OSF since it installs stuff as root
2600 # by default.
2601 for ac_prog in ginstall scoinst install; do
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2604 if test $ac_prog = install &&
2605 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2606 # AIX install. It has an incompatible calling convention.
2607 :
2608 elif test $ac_prog = install &&
2609 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2610 # program-specific install script used by HP pwplus--don't use.
2611 :
2612 else
2613 rm -rf conftest.one conftest.two conftest.dir
2614 echo one > conftest.one
2615 echo two > conftest.two
2616 mkdir conftest.dir
2617 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2618 test -s conftest.one && test -s conftest.two &&
2619 test -s conftest.dir/conftest.one &&
2620 test -s conftest.dir/conftest.two
2621 then
2622 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2623 break 3
2624 fi
2625 fi
2626 fi
2627 done
2628 done
2629 ;;
2630 esac
2631
2632 done
2633 IFS=$as_save_IFS
2634
2635 rm -rf conftest.one conftest.two conftest.dir
2636
2637 fi
2638 if test "${ac_cv_path_install+set}" = set; then
2639 INSTALL=$ac_cv_path_install
2640 else
2641 # As a last resort, use the slow shell script. Don't cache a
2642 # value for INSTALL within a source directory, because that will
2643 # break other packages using the cache if that directory is
2644 # removed, or if the value is a relative name.
2645 INSTALL=$ac_install_sh
2646 fi
2647 fi
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2649 $as_echo "$INSTALL" >&6; }
2650
2651 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2652 # It thinks the first close brace ends the variable substitution.
2653 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2654
2655 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2656
2657 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2658
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2660 $as_echo_n "checking whether build environment is sane... " >&6; }
2661 # Reject unsafe characters in $srcdir or the absolute working directory
2662 # name. Accept space and tab only in the latter.
2663 am_lf='
2664 '
2665 case `pwd` in
2666 *[\\\"\#\$\&\'\`$am_lf]*)
2667 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2668 esac
2669 case $srcdir in
2670 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2671 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2672 esac
2673
2674 # Do 'set' in a subshell so we don't clobber the current shell's
2675 # arguments. Must try -L first in case configure is actually a
2676 # symlink; some systems play weird games with the mod time of symlinks
2677 # (eg FreeBSD returns the mod time of the symlink's containing
2678 # directory).
2679 if (
2680 am_has_slept=no
2681 for am_try in 1 2; do
2682 echo "timestamp, slept: $am_has_slept" > conftest.file
2683 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2684 if test "$*" = "X"; then
2685 # -L didn't work.
2686 set X `ls -t "$srcdir/configure" conftest.file`
2687 fi
2688 if test "$*" != "X $srcdir/configure conftest.file" \
2689 && test "$*" != "X conftest.file $srcdir/configure"; then
2690
2691 # If neither matched, then we have a broken ls. This can happen
2692 # if, for instance, CONFIG_SHELL is bash and it inherits a
2693 # broken ls alias from the environment. This has actually
2694 # happened. Such a system could not be considered "sane".
2695 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2696 alias in your environment" "$LINENO" 5
2697 fi
2698 if test "$2" = conftest.file || test $am_try -eq 2; then
2699 break
2700 fi
2701 # Just in case.
2702 sleep 1
2703 am_has_slept=yes
2704 done
2705 test "$2" = conftest.file
2706 )
2707 then
2708 # Ok.
2709 :
2710 else
2711 as_fn_error $? "newly created file is older than distributed files!
2712 Check your system clock" "$LINENO" 5
2713 fi
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2715 $as_echo "yes" >&6; }
2716 # If we didn't sleep, we still need to ensure time stamps of config.status and
2717 # generated files are strictly newer.
2718 am_sleep_pid=
2719 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2720 ( sleep 1 ) &
2721 am_sleep_pid=$!
2722 fi
2723
2724 rm -f conftest.file
2725
2726 test "$program_prefix" != NONE &&
2727 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2728 # Use a double $ so make ignores it.
2729 test "$program_suffix" != NONE &&
2730 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2731 # Double any \ or $.
2732 # By default was `s,x,x', remove it if useless.
2733 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2734 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2735
2736 # Expand $ac_aux_dir to an absolute path.
2737 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2738
2739 if test x"${MISSING+set}" != xset; then
2740 case $am_aux_dir in
2741 *\ * | *\ *)
2742 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2743 *)
2744 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2745 esac
2746 fi
2747 # Use eval to expand $SHELL
2748 if eval "$MISSING --is-lightweight"; then
2749 am_missing_run="$MISSING "
2750 else
2751 am_missing_run=
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2753 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2754 fi
2755
2756 if test x"${install_sh+set}" != xset; then
2757 case $am_aux_dir in
2758 *\ * | *\ *)
2759 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2760 *)
2761 install_sh="\${SHELL} $am_aux_dir/install-sh"
2762 esac
2763 fi
2764
2765 # Installed binaries are usually stripped using 'strip' when the user
2766 # run "make install-strip". However 'strip' might not be the right
2767 # tool to use in cross-compilation environments, therefore Automake
2768 # will honor the 'STRIP' environment variable to overrule this program.
2769 if test "$cross_compiling" != no; then
2770 if test -n "$ac_tool_prefix"; then
2771 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2772 set dummy ${ac_tool_prefix}strip; ac_word=$2
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774 $as_echo_n "checking for $ac_word... " >&6; }
2775 if ${ac_cv_prog_STRIP+:} false; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 if test -n "$STRIP"; then
2779 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2783 do
2784 IFS=$as_save_IFS
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2790 break 2
2791 fi
2792 done
2793 done
2794 IFS=$as_save_IFS
2795
2796 fi
2797 fi
2798 STRIP=$ac_cv_prog_STRIP
2799 if test -n "$STRIP"; then
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2801 $as_echo "$STRIP" >&6; }
2802 else
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804 $as_echo "no" >&6; }
2805 fi
2806
2807
2808 fi
2809 if test -z "$ac_cv_prog_STRIP"; then
2810 ac_ct_STRIP=$STRIP
2811 # Extract the first word of "strip", so it can be a program name with args.
2812 set dummy strip; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2816 $as_echo_n "(cached) " >&6
2817 else
2818 if test -n "$ac_ct_STRIP"; then
2819 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828 ac_cv_prog_ac_ct_STRIP="strip"
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 break 2
2831 fi
2832 done
2833 done
2834 IFS=$as_save_IFS
2835
2836 fi
2837 fi
2838 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2839 if test -n "$ac_ct_STRIP"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2841 $as_echo "$ac_ct_STRIP" >&6; }
2842 else
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2845 fi
2846
2847 if test "x$ac_ct_STRIP" = x; then
2848 STRIP=":"
2849 else
2850 case $cross_compiling:$ac_tool_warned in
2851 yes:)
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2854 ac_tool_warned=yes ;;
2855 esac
2856 STRIP=$ac_ct_STRIP
2857 fi
2858 else
2859 STRIP="$ac_cv_prog_STRIP"
2860 fi
2861
2862 fi
2863 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2864
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2866 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2867 if test -z "$MKDIR_P"; then
2868 if ${ac_cv_path_mkdir+:} false; then :
2869 $as_echo_n "(cached) " >&6
2870 else
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2873 do
2874 IFS=$as_save_IFS
2875 test -z "$as_dir" && as_dir=.
2876 for ac_prog in mkdir gmkdir; do
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2879 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2880 'mkdir (GNU coreutils) '* | \
2881 'mkdir (coreutils) '* | \
2882 'mkdir (fileutils) '4.1*)
2883 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2884 break 3;;
2885 esac
2886 done
2887 done
2888 done
2889 IFS=$as_save_IFS
2890
2891 fi
2892
2893 test -d ./--version && rmdir ./--version
2894 if test "${ac_cv_path_mkdir+set}" = set; then
2895 MKDIR_P="$ac_cv_path_mkdir -p"
2896 else
2897 # As a last resort, use the slow shell script. Don't cache a
2898 # value for MKDIR_P within a source directory, because that will
2899 # break other packages using the cache if that directory is
2900 # removed, or if the value is a relative name.
2901 MKDIR_P="$ac_install_sh -d"
2902 fi
2903 fi
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2905 $as_echo "$MKDIR_P" >&6; }
2906
2907 for ac_prog in gawk mawk nawk awk
2908 do
2909 # Extract the first word of "$ac_prog", so it can be a program name with args.
2910 set dummy $ac_prog; ac_word=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if ${ac_cv_prog_AWK+:} false; then :
2914 $as_echo_n "(cached) " >&6
2915 else
2916 if test -n "$AWK"; then
2917 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926 ac_cv_prog_AWK="$ac_prog"
2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 break 2
2929 fi
2930 done
2931 done
2932 IFS=$as_save_IFS
2933
2934 fi
2935 fi
2936 AWK=$ac_cv_prog_AWK
2937 if test -n "$AWK"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2939 $as_echo "$AWK" >&6; }
2940 else
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2943 fi
2944
2945
2946 test -n "$AWK" && break
2947 done
2948
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2950 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2951 set x ${MAKE-make}
2952 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2953 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2954 $as_echo_n "(cached) " >&6
2955 else
2956 cat >conftest.make <<\_ACEOF
2957 SHELL = /bin/sh
2958 all:
2959 @echo '@@@%%%=$(MAKE)=@@@%%%'
2960 _ACEOF
2961 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2962 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2963 *@@@%%%=?*=@@@%%%*)
2964 eval ac_cv_prog_make_${ac_make}_set=yes;;
2965 *)
2966 eval ac_cv_prog_make_${ac_make}_set=no;;
2967 esac
2968 rm -f conftest.make
2969 fi
2970 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2972 $as_echo "yes" >&6; }
2973 SET_MAKE=
2974 else
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2977 SET_MAKE="MAKE=${MAKE-make}"
2978 fi
2979
2980 rm -rf .tst 2>/dev/null
2981 mkdir .tst 2>/dev/null
2982 if test -d .tst; then
2983 am__leading_dot=.
2984 else
2985 am__leading_dot=_
2986 fi
2987 rmdir .tst 2>/dev/null
2988
2989 # Check whether --enable-silent-rules was given.
2990 if test "${enable_silent_rules+set}" = set; then :
2991 enableval=$enable_silent_rules;
2992 fi
2993
2994 case $enable_silent_rules in # (((
2995 yes) AM_DEFAULT_VERBOSITY=0;;
2996 no) AM_DEFAULT_VERBOSITY=1;;
2997 *) AM_DEFAULT_VERBOSITY=1;;
2998 esac
2999 am_make=${MAKE-make}
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3001 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3002 if ${am_cv_make_support_nested_variables+:} false; then :
3003 $as_echo_n "(cached) " >&6
3004 else
3005 if $as_echo 'TRUE=$(BAR$(V))
3006 BAR0=false
3007 BAR1=true
3008 V=1
3009 am__doit:
3010 @$(TRUE)
3011 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3012 am_cv_make_support_nested_variables=yes
3013 else
3014 am_cv_make_support_nested_variables=no
3015 fi
3016 fi
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3018 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3019 if test $am_cv_make_support_nested_variables = yes; then
3020 AM_V='$(V)'
3021 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3022 else
3023 AM_V=$AM_DEFAULT_VERBOSITY
3024 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3025 fi
3026 AM_BACKSLASH='\'
3027
3028 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3029 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3030 # is not polluted with repeated "-I."
3031 am__isrc=' -I$(srcdir)'
3032 # test to see if srcdir already configured
3033 if test -f $srcdir/config.status; then
3034 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3035 fi
3036 fi
3037
3038 # test whether we have cygpath
3039 if test -z "$CYGPATH_W"; then
3040 if (cygpath --version) >/dev/null 2>/dev/null; then
3041 CYGPATH_W='cygpath -w'
3042 else
3043 CYGPATH_W=echo
3044 fi
3045 fi
3046
3047
3048 # Define the identity of the package.
3049 PACKAGE='gprofng'
3050 VERSION='2.38.50'
3051
3052
3053 cat >>confdefs.h <<_ACEOF
3054 #define PACKAGE "$PACKAGE"
3055 _ACEOF
3056
3057
3058 cat >>confdefs.h <<_ACEOF
3059 #define VERSION "$VERSION"
3060 _ACEOF
3061
3062 # Some tools Automake needs.
3063
3064 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3065
3066
3067 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3068
3069
3070 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3071
3072
3073 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3074
3075
3076 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3077
3078 # For better backward compatibility. To be removed once Automake 1.9.x
3079 # dies out for good. For more background, see:
3080 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3081 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3082 mkdir_p='$(MKDIR_P)'
3083
3084 # We need awk for the "check" target (and possibly the TAP driver). The
3085 # system "awk" is bad on some platforms.
3086 # Always define AMTAR for backward compatibility. Yes, it's still used
3087 # in the wild :-( We should find a proper way to deprecate it ...
3088 AMTAR='$${TAR-tar}'
3089
3090
3091 # We'll loop over all known methods to create a tar archive until one works.
3092 _am_tools='gnutar pax cpio none'
3093
3094 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3095
3096
3097
3098
3099
3100
3101 # POSIX will say in a future version that running "rm -f" with no argument
3102 # is OK; and we want to be able to make that assumption in our Makefile
3103 # recipes. So use an aggressive probe to check that the usage we want is
3104 # actually supported "in the wild" to an acceptable degree.
3105 # See automake bug#10828.
3106 # To make any issue more visible, cause the running configure to be aborted
3107 # by default if the 'rm' program in use doesn't match our expectations; the
3108 # user can still override this though.
3109 if rm -f && rm -fr && rm -rf; then : OK; else
3110 cat >&2 <<'END'
3111 Oops!
3112
3113 Your 'rm' program seems unable to run without file operands specified
3114 on the command line, even when the '-f' option is present. This is contrary
3115 to the behaviour of most rm programs out there, and not conforming with
3116 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3117
3118 Please tell bug-automake@gnu.org about your system, including the value
3119 of your $PATH and any error possibly output before this message. This
3120 can help us improve future automake versions.
3121
3122 END
3123 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3124 echo 'Configuration will proceed anyway, since you have set the' >&2
3125 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3126 echo >&2
3127 else
3128 cat >&2 <<'END'
3129 Aborting the configuration process, to ensure you take notice of the issue.
3130
3131 You can download and install GNU coreutils to get an 'rm' implementation
3132 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3133
3134 If you want to complete the configuration process using your problematic
3135 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3136 to "yes", and re-run configure.
3137
3138 END
3139 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3140 fi
3141 fi
3142
3143
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3145 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3146 # Check whether --enable-maintainer-mode was given.
3147 if test "${enable_maintainer_mode+set}" = set; then :
3148 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3149 else
3150 USE_MAINTAINER_MODE=no
3151 fi
3152
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3154 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3155 if test $USE_MAINTAINER_MODE = yes; then
3156 MAINTAINER_MODE_TRUE=
3157 MAINTAINER_MODE_FALSE='#'
3158 else
3159 MAINTAINER_MODE_TRUE='#'
3160 MAINTAINER_MODE_FALSE=
3161 fi
3162
3163 MAINT=$MAINTAINER_MODE_TRUE
3164
3165
3166
3167 DEPDIR="${am__leading_dot}deps"
3168
3169 ac_config_commands="$ac_config_commands depfiles"
3170
3171
3172 am_make=${MAKE-make}
3173 cat > confinc << 'END'
3174 am__doit:
3175 @echo this is the am__doit target
3176 .PHONY: am__doit
3177 END
3178 # If we don't find an include directive, just comment out the code.
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3180 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3181 am__include="#"
3182 am__quote=
3183 _am_result=none
3184 # First try GNU make style include.
3185 echo "include confinc" > confmf
3186 # Ignore all kinds of additional output from 'make'.
3187 case `$am_make -s -f confmf 2> /dev/null` in #(
3188 *the\ am__doit\ target*)
3189 am__include=include
3190 am__quote=
3191 _am_result=GNU
3192 ;;
3193 esac
3194 # Now try BSD make style include.
3195 if test "$am__include" = "#"; then
3196 echo '.include "confinc"' > confmf
3197 case `$am_make -s -f confmf 2> /dev/null` in #(
3198 *the\ am__doit\ target*)
3199 am__include=.include
3200 am__quote="\""
3201 _am_result=BSD
3202 ;;
3203 esac
3204 fi
3205
3206
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3208 $as_echo "$_am_result" >&6; }
3209 rm -f confinc confmf
3210
3211 # Check whether --enable-dependency-tracking was given.
3212 if test "${enable_dependency_tracking+set}" = set; then :
3213 enableval=$enable_dependency_tracking;
3214 fi
3215
3216 if test "x$enable_dependency_tracking" != xno; then
3217 am_depcomp="$ac_aux_dir/depcomp"
3218 AMDEPBACKSLASH='\'
3219 am__nodep='_no'
3220 fi
3221 if test "x$enable_dependency_tracking" != xno; then
3222 AMDEP_TRUE=
3223 AMDEP_FALSE='#'
3224 else
3225 AMDEP_TRUE='#'
3226 AMDEP_FALSE=
3227 fi
3228
3229
3230 ac_ext=c
3231 ac_cpp='$CPP $CPPFLAGS'
3232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3235 if test -n "$ac_tool_prefix"; then
3236 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3237 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if ${ac_cv_prog_CC+:} false; then :
3241 $as_echo_n "(cached) " >&6
3242 else
3243 if test -n "$CC"; then
3244 ac_cv_prog_CC="$CC" # Let the user override the test.
3245 else
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3248 do
3249 IFS=$as_save_IFS
3250 test -z "$as_dir" && as_dir=.
3251 for ac_exec_ext in '' $ac_executable_extensions; do
3252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3253 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3255 break 2
3256 fi
3257 done
3258 done
3259 IFS=$as_save_IFS
3260
3261 fi
3262 fi
3263 CC=$ac_cv_prog_CC
3264 if test -n "$CC"; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3266 $as_echo "$CC" >&6; }
3267 else
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3270 fi
3271
3272
3273 fi
3274 if test -z "$ac_cv_prog_CC"; then
3275 ac_ct_CC=$CC
3276 # Extract the first word of "gcc", so it can be a program name with args.
3277 set dummy gcc; ac_word=$2
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3279 $as_echo_n "checking for $ac_word... " >&6; }
3280 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3281 $as_echo_n "(cached) " >&6
3282 else
3283 if test -n "$ac_ct_CC"; then
3284 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3285 else
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 for as_dir in $PATH
3288 do
3289 IFS=$as_save_IFS
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293 ac_cv_prog_ac_ct_CC="gcc"
3294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 break 2
3296 fi
3297 done
3298 done
3299 IFS=$as_save_IFS
3300
3301 fi
3302 fi
3303 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3304 if test -n "$ac_ct_CC"; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3306 $as_echo "$ac_ct_CC" >&6; }
3307 else
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3310 fi
3311
3312 if test "x$ac_ct_CC" = x; then
3313 CC=""
3314 else
3315 case $cross_compiling:$ac_tool_warned in
3316 yes:)
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3319 ac_tool_warned=yes ;;
3320 esac
3321 CC=$ac_ct_CC
3322 fi
3323 else
3324 CC="$ac_cv_prog_CC"
3325 fi
3326
3327 if test -z "$CC"; then
3328 if test -n "$ac_tool_prefix"; then
3329 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3330 set dummy ${ac_tool_prefix}cc; ac_word=$2
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332 $as_echo_n "checking for $ac_word... " >&6; }
3333 if ${ac_cv_prog_CC+:} false; then :
3334 $as_echo_n "(cached) " >&6
3335 else
3336 if test -n "$CC"; then
3337 ac_cv_prog_CC="$CC" # Let the user override the test.
3338 else
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 for as_dir in $PATH
3341 do
3342 IFS=$as_save_IFS
3343 test -z "$as_dir" && as_dir=.
3344 for ac_exec_ext in '' $ac_executable_extensions; do
3345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3346 ac_cv_prog_CC="${ac_tool_prefix}cc"
3347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3348 break 2
3349 fi
3350 done
3351 done
3352 IFS=$as_save_IFS
3353
3354 fi
3355 fi
3356 CC=$ac_cv_prog_CC
3357 if test -n "$CC"; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3359 $as_echo "$CC" >&6; }
3360 else
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3363 fi
3364
3365
3366 fi
3367 fi
3368 if test -z "$CC"; then
3369 # Extract the first word of "cc", so it can be a program name with args.
3370 set dummy cc; ac_word=$2
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3372 $as_echo_n "checking for $ac_word... " >&6; }
3373 if ${ac_cv_prog_CC+:} false; then :
3374 $as_echo_n "(cached) " >&6
3375 else
3376 if test -n "$CC"; then
3377 ac_cv_prog_CC="$CC" # Let the user override the test.
3378 else
3379 ac_prog_rejected=no
3380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 for as_dir in $PATH
3382 do
3383 IFS=$as_save_IFS
3384 test -z "$as_dir" && as_dir=.
3385 for ac_exec_ext in '' $ac_executable_extensions; do
3386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3387 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3388 ac_prog_rejected=yes
3389 continue
3390 fi
3391 ac_cv_prog_CC="cc"
3392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3393 break 2
3394 fi
3395 done
3396 done
3397 IFS=$as_save_IFS
3398
3399 if test $ac_prog_rejected = yes; then
3400 # We found a bogon in the path, so make sure we never use it.
3401 set dummy $ac_cv_prog_CC
3402 shift
3403 if test $# != 0; then
3404 # We chose a different compiler from the bogus one.
3405 # However, it has the same basename, so the bogon will be chosen
3406 # first if we set CC to just the basename; use the full file name.
3407 shift
3408 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3409 fi
3410 fi
3411 fi
3412 fi
3413 CC=$ac_cv_prog_CC
3414 if test -n "$CC"; then
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3416 $as_echo "$CC" >&6; }
3417 else
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419 $as_echo "no" >&6; }
3420 fi
3421
3422
3423 fi
3424 if test -z "$CC"; then
3425 if test -n "$ac_tool_prefix"; then
3426 for ac_prog in cl.exe
3427 do
3428 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3429 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431 $as_echo_n "checking for $ac_word... " >&6; }
3432 if ${ac_cv_prog_CC+:} false; then :
3433 $as_echo_n "(cached) " >&6
3434 else
3435 if test -n "$CC"; then
3436 ac_cv_prog_CC="$CC" # Let the user override the test.
3437 else
3438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439 for as_dir in $PATH
3440 do
3441 IFS=$as_save_IFS
3442 test -z "$as_dir" && as_dir=.
3443 for ac_exec_ext in '' $ac_executable_extensions; do
3444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3445 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 break 2
3448 fi
3449 done
3450 done
3451 IFS=$as_save_IFS
3452
3453 fi
3454 fi
3455 CC=$ac_cv_prog_CC
3456 if test -n "$CC"; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3458 $as_echo "$CC" >&6; }
3459 else
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 $as_echo "no" >&6; }
3462 fi
3463
3464
3465 test -n "$CC" && break
3466 done
3467 fi
3468 if test -z "$CC"; then
3469 ac_ct_CC=$CC
3470 for ac_prog in cl.exe
3471 do
3472 # Extract the first word of "$ac_prog", so it can be a program name with args.
3473 set dummy $ac_prog; ac_word=$2
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475 $as_echo_n "checking for $ac_word... " >&6; }
3476 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3477 $as_echo_n "(cached) " >&6
3478 else
3479 if test -n "$ac_ct_CC"; then
3480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3481 else
3482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483 for as_dir in $PATH
3484 do
3485 IFS=$as_save_IFS
3486 test -z "$as_dir" && as_dir=.
3487 for ac_exec_ext in '' $ac_executable_extensions; do
3488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3489 ac_cv_prog_ac_ct_CC="$ac_prog"
3490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3491 break 2
3492 fi
3493 done
3494 done
3495 IFS=$as_save_IFS
3496
3497 fi
3498 fi
3499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3500 if test -n "$ac_ct_CC"; then
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3502 $as_echo "$ac_ct_CC" >&6; }
3503 else
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3506 fi
3507
3508
3509 test -n "$ac_ct_CC" && break
3510 done
3511
3512 if test "x$ac_ct_CC" = x; then
3513 CC=""
3514 else
3515 case $cross_compiling:$ac_tool_warned in
3516 yes:)
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3519 ac_tool_warned=yes ;;
3520 esac
3521 CC=$ac_ct_CC
3522 fi
3523 fi
3524
3525 fi
3526
3527
3528 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3530 as_fn_error $? "no acceptable C compiler found in \$PATH
3531 See \`config.log' for more details" "$LINENO" 5; }
3532
3533 # Provide some information about the compiler.
3534 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3535 set X $ac_compile
3536 ac_compiler=$2
3537 for ac_option in --version -v -V -qversion; do
3538 { { ac_try="$ac_compiler $ac_option >&5"
3539 case "(($ac_try" in
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3542 esac
3543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3544 $as_echo "$ac_try_echo"; } >&5
3545 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3546 ac_status=$?
3547 if test -s conftest.err; then
3548 sed '10a\
3549 ... rest of stderr output deleted ...
3550 10q' conftest.err >conftest.er1
3551 cat conftest.er1 >&5
3552 fi
3553 rm -f conftest.er1 conftest.err
3554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3555 test $ac_status = 0; }
3556 done
3557
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3560
3561 int
3562 main ()
3563 {
3564
3565 ;
3566 return 0;
3567 }
3568 _ACEOF
3569 ac_clean_files_save=$ac_clean_files
3570 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3571 # Try to create an executable without -o first, disregard a.out.
3572 # It will help us diagnose broken compilers, and finding out an intuition
3573 # of exeext.
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3575 $as_echo_n "checking whether the C compiler works... " >&6; }
3576 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3577
3578 # The possible output files:
3579 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3580
3581 ac_rmfiles=
3582 for ac_file in $ac_files
3583 do
3584 case $ac_file in
3585 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3586 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3587 esac
3588 done
3589 rm -f $ac_rmfiles
3590
3591 if { { ac_try="$ac_link_default"
3592 case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3595 esac
3596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3597 $as_echo "$ac_try_echo"; } >&5
3598 (eval "$ac_link_default") 2>&5
3599 ac_status=$?
3600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3601 test $ac_status = 0; }; then :
3602 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3603 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3604 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3605 # so that the user can short-circuit this test for compilers unknown to
3606 # Autoconf.
3607 for ac_file in $ac_files ''
3608 do
3609 test -f "$ac_file" || continue
3610 case $ac_file in
3611 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3612 ;;
3613 [ab].out )
3614 # We found the default executable, but exeext='' is most
3615 # certainly right.
3616 break;;
3617 *.* )
3618 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3619 then :; else
3620 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3621 fi
3622 # We set ac_cv_exeext here because the later test for it is not
3623 # safe: cross compilers may not add the suffix if given an `-o'
3624 # argument, so we may need to know it at that point already.
3625 # Even if this section looks crufty: it has the advantage of
3626 # actually working.
3627 break;;
3628 * )
3629 break;;
3630 esac
3631 done
3632 test "$ac_cv_exeext" = no && ac_cv_exeext=
3633
3634 else
3635 ac_file=''
3636 fi
3637 if test -z "$ac_file"; then :
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3639 $as_echo "no" >&6; }
3640 $as_echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3642
3643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3645 as_fn_error 77 "C compiler cannot create executables
3646 See \`config.log' for more details" "$LINENO" 5; }
3647 else
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3649 $as_echo "yes" >&6; }
3650 fi
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3652 $as_echo_n "checking for C compiler default output file name... " >&6; }
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3654 $as_echo "$ac_file" >&6; }
3655 ac_exeext=$ac_cv_exeext
3656
3657 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3658 ac_clean_files=$ac_clean_files_save
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3660 $as_echo_n "checking for suffix of executables... " >&6; }
3661 if { { ac_try="$ac_link"
3662 case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665 esac
3666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3667 $as_echo "$ac_try_echo"; } >&5
3668 (eval "$ac_link") 2>&5
3669 ac_status=$?
3670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671 test $ac_status = 0; }; then :
3672 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3673 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3674 # work properly (i.e., refer to `conftest.exe'), while it won't with
3675 # `rm'.
3676 for ac_file in conftest.exe conftest conftest.*; do
3677 test -f "$ac_file" || continue
3678 case $ac_file in
3679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3680 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3681 break;;
3682 * ) break;;
3683 esac
3684 done
3685 else
3686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3688 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3689 See \`config.log' for more details" "$LINENO" 5; }
3690 fi
3691 rm -f conftest conftest$ac_cv_exeext
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3693 $as_echo "$ac_cv_exeext" >&6; }
3694
3695 rm -f conftest.$ac_ext
3696 EXEEXT=$ac_cv_exeext
3697 ac_exeext=$EXEEXT
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3700 #include <stdio.h>
3701 int
3702 main ()
3703 {
3704 FILE *f = fopen ("conftest.out", "w");
3705 return ferror (f) || fclose (f) != 0;
3706
3707 ;
3708 return 0;
3709 }
3710 _ACEOF
3711 ac_clean_files="$ac_clean_files conftest.out"
3712 # Check that the compiler produces executables we can run. If not, either
3713 # the compiler is broken, or we cross compile.
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3715 $as_echo_n "checking whether we are cross compiling... " >&6; }
3716 if test "$cross_compiling" != yes; then
3717 { { ac_try="$ac_link"
3718 case "(($ac_try" in
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3721 esac
3722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3723 $as_echo "$ac_try_echo"; } >&5
3724 (eval "$ac_link") 2>&5
3725 ac_status=$?
3726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3727 test $ac_status = 0; }
3728 if { ac_try='./conftest$ac_cv_exeext'
3729 { { case "(($ac_try" in
3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731 *) ac_try_echo=$ac_try;;
3732 esac
3733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3734 $as_echo "$ac_try_echo"; } >&5
3735 (eval "$ac_try") 2>&5
3736 ac_status=$?
3737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3738 test $ac_status = 0; }; }; then
3739 cross_compiling=no
3740 else
3741 if test "$cross_compiling" = maybe; then
3742 cross_compiling=yes
3743 else
3744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3746 as_fn_error $? "cannot run C compiled programs.
3747 If you meant to cross compile, use \`--host'.
3748 See \`config.log' for more details" "$LINENO" 5; }
3749 fi
3750 fi
3751 fi
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3753 $as_echo "$cross_compiling" >&6; }
3754
3755 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3756 ac_clean_files=$ac_clean_files_save
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3758 $as_echo_n "checking for suffix of object files... " >&6; }
3759 if ${ac_cv_objext+:} false; then :
3760 $as_echo_n "(cached) " >&6
3761 else
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3764
3765 int
3766 main ()
3767 {
3768
3769 ;
3770 return 0;
3771 }
3772 _ACEOF
3773 rm -f conftest.o conftest.obj
3774 if { { ac_try="$ac_compile"
3775 case "(($ac_try" in
3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3778 esac
3779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780 $as_echo "$ac_try_echo"; } >&5
3781 (eval "$ac_compile") 2>&5
3782 ac_status=$?
3783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3784 test $ac_status = 0; }; then :
3785 for ac_file in conftest.o conftest.obj conftest.*; do
3786 test -f "$ac_file" || continue;
3787 case $ac_file in
3788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3789 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3790 break;;
3791 esac
3792 done
3793 else
3794 $as_echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.$ac_ext >&5
3796
3797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3799 as_fn_error $? "cannot compute suffix of object files: cannot compile
3800 See \`config.log' for more details" "$LINENO" 5; }
3801 fi
3802 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3803 fi
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3805 $as_echo "$ac_cv_objext" >&6; }
3806 OBJEXT=$ac_cv_objext
3807 ac_objext=$OBJEXT
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3809 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3810 if ${ac_cv_c_compiler_gnu+:} false; then :
3811 $as_echo_n "(cached) " >&6
3812 else
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3815
3816 int
3817 main ()
3818 {
3819 #ifndef __GNUC__
3820 choke me
3821 #endif
3822
3823 ;
3824 return 0;
3825 }
3826 _ACEOF
3827 if ac_fn_c_try_compile "$LINENO"; then :
3828 ac_compiler_gnu=yes
3829 else
3830 ac_compiler_gnu=no
3831 fi
3832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3833 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3834
3835 fi
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3837 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3838 if test $ac_compiler_gnu = yes; then
3839 GCC=yes
3840 else
3841 GCC=
3842 fi
3843 ac_test_CFLAGS=${CFLAGS+set}
3844 ac_save_CFLAGS=$CFLAGS
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3846 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3847 if ${ac_cv_prog_cc_g+:} false; then :
3848 $as_echo_n "(cached) " >&6
3849 else
3850 ac_save_c_werror_flag=$ac_c_werror_flag
3851 ac_c_werror_flag=yes
3852 ac_cv_prog_cc_g=no
3853 CFLAGS="-g"
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3856
3857 int
3858 main ()
3859 {
3860
3861 ;
3862 return 0;
3863 }
3864 _ACEOF
3865 if ac_fn_c_try_compile "$LINENO"; then :
3866 ac_cv_prog_cc_g=yes
3867 else
3868 CFLAGS=""
3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h. */
3871
3872 int
3873 main ()
3874 {
3875
3876 ;
3877 return 0;
3878 }
3879 _ACEOF
3880 if ac_fn_c_try_compile "$LINENO"; then :
3881
3882 else
3883 ac_c_werror_flag=$ac_save_c_werror_flag
3884 CFLAGS="-g"
3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886 /* end confdefs.h. */
3887
3888 int
3889 main ()
3890 {
3891
3892 ;
3893 return 0;
3894 }
3895 _ACEOF
3896 if ac_fn_c_try_compile "$LINENO"; then :
3897 ac_cv_prog_cc_g=yes
3898 fi
3899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 fi
3901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3902 fi
3903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3904 ac_c_werror_flag=$ac_save_c_werror_flag
3905 fi
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3907 $as_echo "$ac_cv_prog_cc_g" >&6; }
3908 if test "$ac_test_CFLAGS" = set; then
3909 CFLAGS=$ac_save_CFLAGS
3910 elif test $ac_cv_prog_cc_g = yes; then
3911 if test "$GCC" = yes; then
3912 CFLAGS="-g -O2"
3913 else
3914 CFLAGS="-g"
3915 fi
3916 else
3917 if test "$GCC" = yes; then
3918 CFLAGS="-O2"
3919 else
3920 CFLAGS=
3921 fi
3922 fi
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3924 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3925 if ${ac_cv_prog_cc_c89+:} false; then :
3926 $as_echo_n "(cached) " >&6
3927 else
3928 ac_cv_prog_cc_c89=no
3929 ac_save_CC=$CC
3930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931 /* end confdefs.h. */
3932 #include <stdarg.h>
3933 #include <stdio.h>
3934 struct stat;
3935 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3936 struct buf { int x; };
3937 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3938 static char *e (p, i)
3939 char **p;
3940 int i;
3941 {
3942 return p[i];
3943 }
3944 static char *f (char * (*g) (char **, int), char **p, ...)
3945 {
3946 char *s;
3947 va_list v;
3948 va_start (v,p);
3949 s = g (p, va_arg (v,int));
3950 va_end (v);
3951 return s;
3952 }
3953
3954 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3955 function prototypes and stuff, but not '\xHH' hex character constants.
3956 These don't provoke an error unfortunately, instead are silently treated
3957 as 'x'. The following induces an error, until -std is added to get
3958 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3959 array size at least. It's necessary to write '\x00'==0 to get something
3960 that's true only with -std. */
3961 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3962
3963 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3964 inside strings and character constants. */
3965 #define FOO(x) 'x'
3966 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3967
3968 int test (int i, double x);
3969 struct s1 {int (*f) (int a);};
3970 struct s2 {int (*f) (double a);};
3971 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3972 int argc;
3973 char **argv;
3974 int
3975 main ()
3976 {
3977 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3978 ;
3979 return 0;
3980 }
3981 _ACEOF
3982 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3983 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3984 do
3985 CC="$ac_save_CC $ac_arg"
3986 if ac_fn_c_try_compile "$LINENO"; then :
3987 ac_cv_prog_cc_c89=$ac_arg
3988 fi
3989 rm -f core conftest.err conftest.$ac_objext
3990 test "x$ac_cv_prog_cc_c89" != "xno" && break
3991 done
3992 rm -f conftest.$ac_ext
3993 CC=$ac_save_CC
3994
3995 fi
3996 # AC_CACHE_VAL
3997 case "x$ac_cv_prog_cc_c89" in
3998 x)
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4000 $as_echo "none needed" >&6; } ;;
4001 xno)
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4003 $as_echo "unsupported" >&6; } ;;
4004 *)
4005 CC="$CC $ac_cv_prog_cc_c89"
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4007 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4008 esac
4009 if test "x$ac_cv_prog_cc_c89" != xno; then :
4010
4011 fi
4012
4013 ac_ext=c
4014 ac_cpp='$CPP $CPPFLAGS'
4015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4018
4019 ac_ext=c
4020 ac_cpp='$CPP $CPPFLAGS'
4021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4025 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4026 if ${am_cv_prog_cc_c_o+:} false; then :
4027 $as_echo_n "(cached) " >&6
4028 else
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4031
4032 int
4033 main ()
4034 {
4035
4036 ;
4037 return 0;
4038 }
4039 _ACEOF
4040 # Make sure it works both with $CC and with simple cc.
4041 # Following AC_PROG_CC_C_O, we do the test twice because some
4042 # compilers refuse to overwrite an existing .o file with -o,
4043 # though they will create one.
4044 am_cv_prog_cc_c_o=yes
4045 for am_i in 1 2; do
4046 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4047 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4048 ac_status=$?
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); } \
4051 && test -f conftest2.$ac_objext; then
4052 : OK
4053 else
4054 am_cv_prog_cc_c_o=no
4055 break
4056 fi
4057 done
4058 rm -f core conftest*
4059 unset am_i
4060 fi
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4062 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4063 if test "$am_cv_prog_cc_c_o" != yes; then
4064 # Losing compiler, so override with the script.
4065 # FIXME: It is wrong to rewrite CC.
4066 # But if we don't then we get into trouble of one sort or another.
4067 # A longer-term fix would be to have automake use am__CC in this case,
4068 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4069 CC="$am_aux_dir/compile $CC"
4070 fi
4071 ac_ext=c
4072 ac_cpp='$CPP $CPPFLAGS'
4073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4076
4077
4078 depcc="$CC" am_compiler_list=
4079
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4081 $as_echo_n "checking dependency style of $depcc... " >&6; }
4082 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4083 $as_echo_n "(cached) " >&6
4084 else
4085 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4086 # We make a subdir and do the tests there. Otherwise we can end up
4087 # making bogus files that we don't know about and never remove. For
4088 # instance it was reported that on HP-UX the gcc test will end up
4089 # making a dummy file named 'D' -- because '-MD' means "put the output
4090 # in D".
4091 rm -rf conftest.dir
4092 mkdir conftest.dir
4093 # Copy depcomp to subdir because otherwise we won't find it if we're
4094 # using a relative directory.
4095 cp "$am_depcomp" conftest.dir
4096 cd conftest.dir
4097 # We will build objects and dependencies in a subdirectory because
4098 # it helps to detect inapplicable dependency modes. For instance
4099 # both Tru64's cc and ICC support -MD to output dependencies as a
4100 # side effect of compilation, but ICC will put the dependencies in
4101 # the current directory while Tru64 will put them in the object
4102 # directory.
4103 mkdir sub
4104
4105 am_cv_CC_dependencies_compiler_type=none
4106 if test "$am_compiler_list" = ""; then
4107 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4108 fi
4109 am__universal=false
4110 case " $depcc " in #(
4111 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4112 esac
4113
4114 for depmode in $am_compiler_list; do
4115 # Setup a source with many dependencies, because some compilers
4116 # like to wrap large dependency lists on column 80 (with \), and
4117 # we should not choose a depcomp mode which is confused by this.
4118 #
4119 # We need to recreate these files for each test, as the compiler may
4120 # overwrite some of them when testing with obscure command lines.
4121 # This happens at least with the AIX C compiler.
4122 : > sub/conftest.c
4123 for i in 1 2 3 4 5 6; do
4124 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4125 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4126 # Solaris 10 /bin/sh.
4127 echo '/* dummy */' > sub/conftst$i.h
4128 done
4129 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4130
4131 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4132 # mode. It turns out that the SunPro C++ compiler does not properly
4133 # handle '-M -o', and we need to detect this. Also, some Intel
4134 # versions had trouble with output in subdirs.
4135 am__obj=sub/conftest.${OBJEXT-o}
4136 am__minus_obj="-o $am__obj"
4137 case $depmode in
4138 gcc)
4139 # This depmode causes a compiler race in universal mode.
4140 test "$am__universal" = false || continue
4141 ;;
4142 nosideeffect)
4143 # After this tag, mechanisms are not by side-effect, so they'll
4144 # only be used when explicitly requested.
4145 if test "x$enable_dependency_tracking" = xyes; then
4146 continue
4147 else
4148 break
4149 fi
4150 ;;
4151 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4152 # This compiler won't grok '-c -o', but also, the minuso test has
4153 # not run yet. These depmodes are late enough in the game, and
4154 # so weak that their functioning should not be impacted.
4155 am__obj=conftest.${OBJEXT-o}
4156 am__minus_obj=
4157 ;;
4158 none) break ;;
4159 esac
4160 if depmode=$depmode \
4161 source=sub/conftest.c object=$am__obj \
4162 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4163 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4164 >/dev/null 2>conftest.err &&
4165 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4166 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4167 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4168 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4169 # icc doesn't choke on unknown options, it will just issue warnings
4170 # or remarks (even with -Werror). So we grep stderr for any message
4171 # that says an option was ignored or not supported.
4172 # When given -MP, icc 7.0 and 7.1 complain thusly:
4173 # icc: Command line warning: ignoring option '-M'; no argument required
4174 # The diagnosis changed in icc 8.0:
4175 # icc: Command line remark: option '-MP' not supported
4176 if (grep 'ignoring option' conftest.err ||
4177 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4178 am_cv_CC_dependencies_compiler_type=$depmode
4179 break
4180 fi
4181 fi
4182 done
4183
4184 cd ..
4185 rm -rf conftest.dir
4186 else
4187 am_cv_CC_dependencies_compiler_type=none
4188 fi
4189
4190 fi
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4192 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4193 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4194
4195 if
4196 test "x$enable_dependency_tracking" != xno \
4197 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4198 am__fastdepCC_TRUE=
4199 am__fastdepCC_FALSE='#'
4200 else
4201 am__fastdepCC_TRUE='#'
4202 am__fastdepCC_FALSE=
4203 fi
4204
4205
4206
4207 ac_ext=c
4208 ac_cpp='$CPP $CPPFLAGS'
4209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4213 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4214 # On Suns, sometimes $CPP names a directory.
4215 if test -n "$CPP" && test -d "$CPP"; then
4216 CPP=
4217 fi
4218 if test -z "$CPP"; then
4219 if ${ac_cv_prog_CPP+:} false; then :
4220 $as_echo_n "(cached) " >&6
4221 else
4222 # Double quotes because CPP needs to be expanded
4223 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4224 do
4225 ac_preproc_ok=false
4226 for ac_c_preproc_warn_flag in '' yes
4227 do
4228 # Use a header file that comes with gcc, so configuring glibc
4229 # with a fresh cross-compiler works.
4230 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4231 # <limits.h> exists even on freestanding compilers.
4232 # On the NeXT, cc -E runs the code through the compiler's parser,
4233 # not just through cpp. "Syntax error" is here to catch this case.
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4236 #ifdef __STDC__
4237 # include <limits.h>
4238 #else
4239 # include <assert.h>
4240 #endif
4241 Syntax error
4242 _ACEOF
4243 if ac_fn_c_try_cpp "$LINENO"; then :
4244
4245 else
4246 # Broken: fails on valid input.
4247 continue
4248 fi
4249 rm -f conftest.err conftest.i conftest.$ac_ext
4250
4251 # OK, works on sane cases. Now check whether nonexistent headers
4252 # can be detected and how.
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4255 #include <ac_nonexistent.h>
4256 _ACEOF
4257 if ac_fn_c_try_cpp "$LINENO"; then :
4258 # Broken: success on invalid input.
4259 continue
4260 else
4261 # Passes both tests.
4262 ac_preproc_ok=:
4263 break
4264 fi
4265 rm -f conftest.err conftest.i conftest.$ac_ext
4266
4267 done
4268 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4269 rm -f conftest.i conftest.err conftest.$ac_ext
4270 if $ac_preproc_ok; then :
4271 break
4272 fi
4273
4274 done
4275 ac_cv_prog_CPP=$CPP
4276
4277 fi
4278 CPP=$ac_cv_prog_CPP
4279 else
4280 ac_cv_prog_CPP=$CPP
4281 fi
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4283 $as_echo "$CPP" >&6; }
4284 ac_preproc_ok=false
4285 for ac_c_preproc_warn_flag in '' yes
4286 do
4287 # Use a header file that comes with gcc, so configuring glibc
4288 # with a fresh cross-compiler works.
4289 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4290 # <limits.h> exists even on freestanding compilers.
4291 # On the NeXT, cc -E runs the code through the compiler's parser,
4292 # not just through cpp. "Syntax error" is here to catch this case.
4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h. */
4295 #ifdef __STDC__
4296 # include <limits.h>
4297 #else
4298 # include <assert.h>
4299 #endif
4300 Syntax error
4301 _ACEOF
4302 if ac_fn_c_try_cpp "$LINENO"; then :
4303
4304 else
4305 # Broken: fails on valid input.
4306 continue
4307 fi
4308 rm -f conftest.err conftest.i conftest.$ac_ext
4309
4310 # OK, works on sane cases. Now check whether nonexistent headers
4311 # can be detected and how.
4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h. */
4314 #include <ac_nonexistent.h>
4315 _ACEOF
4316 if ac_fn_c_try_cpp "$LINENO"; then :
4317 # Broken: success on invalid input.
4318 continue
4319 else
4320 # Passes both tests.
4321 ac_preproc_ok=:
4322 break
4323 fi
4324 rm -f conftest.err conftest.i conftest.$ac_ext
4325
4326 done
4327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4328 rm -f conftest.i conftest.err conftest.$ac_ext
4329 if $ac_preproc_ok; then :
4330
4331 else
4332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4334 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4335 See \`config.log' for more details" "$LINENO" 5; }
4336 fi
4337
4338 ac_ext=c
4339 ac_cpp='$CPP $CPPFLAGS'
4340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343
4344
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4346 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4347 if ${ac_cv_path_GREP+:} false; then :
4348 $as_echo_n "(cached) " >&6
4349 else
4350 if test -z "$GREP"; then
4351 ac_path_GREP_found=false
4352 # Loop through the user's path and test for each of PROGNAME-LIST
4353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4355 do
4356 IFS=$as_save_IFS
4357 test -z "$as_dir" && as_dir=.
4358 for ac_prog in grep ggrep; do
4359 for ac_exec_ext in '' $ac_executable_extensions; do
4360 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4361 as_fn_executable_p "$ac_path_GREP" || continue
4362 # Check for GNU ac_path_GREP and select it if it is found.
4363 # Check for GNU $ac_path_GREP
4364 case `"$ac_path_GREP" --version 2>&1` in
4365 *GNU*)
4366 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4367 *)
4368 ac_count=0
4369 $as_echo_n 0123456789 >"conftest.in"
4370 while :
4371 do
4372 cat "conftest.in" "conftest.in" >"conftest.tmp"
4373 mv "conftest.tmp" "conftest.in"
4374 cp "conftest.in" "conftest.nl"
4375 $as_echo 'GREP' >> "conftest.nl"
4376 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4377 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4378 as_fn_arith $ac_count + 1 && ac_count=$as_val
4379 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4380 # Best one so far, save it but keep looking for a better one
4381 ac_cv_path_GREP="$ac_path_GREP"
4382 ac_path_GREP_max=$ac_count
4383 fi
4384 # 10*(2^10) chars as input seems more than enough
4385 test $ac_count -gt 10 && break
4386 done
4387 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4388 esac
4389
4390 $ac_path_GREP_found && break 3
4391 done
4392 done
4393 done
4394 IFS=$as_save_IFS
4395 if test -z "$ac_cv_path_GREP"; then
4396 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4397 fi
4398 else
4399 ac_cv_path_GREP=$GREP
4400 fi
4401
4402 fi
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4404 $as_echo "$ac_cv_path_GREP" >&6; }
4405 GREP="$ac_cv_path_GREP"
4406
4407
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4409 $as_echo_n "checking for egrep... " >&6; }
4410 if ${ac_cv_path_EGREP+:} false; then :
4411 $as_echo_n "(cached) " >&6
4412 else
4413 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4414 then ac_cv_path_EGREP="$GREP -E"
4415 else
4416 if test -z "$EGREP"; then
4417 ac_path_EGREP_found=false
4418 # Loop through the user's path and test for each of PROGNAME-LIST
4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4421 do
4422 IFS=$as_save_IFS
4423 test -z "$as_dir" && as_dir=.
4424 for ac_prog in egrep; do
4425 for ac_exec_ext in '' $ac_executable_extensions; do
4426 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4427 as_fn_executable_p "$ac_path_EGREP" || continue
4428 # Check for GNU ac_path_EGREP and select it if it is found.
4429 # Check for GNU $ac_path_EGREP
4430 case `"$ac_path_EGREP" --version 2>&1` in
4431 *GNU*)
4432 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4433 *)
4434 ac_count=0
4435 $as_echo_n 0123456789 >"conftest.in"
4436 while :
4437 do
4438 cat "conftest.in" "conftest.in" >"conftest.tmp"
4439 mv "conftest.tmp" "conftest.in"
4440 cp "conftest.in" "conftest.nl"
4441 $as_echo 'EGREP' >> "conftest.nl"
4442 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4443 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4444 as_fn_arith $ac_count + 1 && ac_count=$as_val
4445 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4446 # Best one so far, save it but keep looking for a better one
4447 ac_cv_path_EGREP="$ac_path_EGREP"
4448 ac_path_EGREP_max=$ac_count
4449 fi
4450 # 10*(2^10) chars as input seems more than enough
4451 test $ac_count -gt 10 && break
4452 done
4453 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4454 esac
4455
4456 $ac_path_EGREP_found && break 3
4457 done
4458 done
4459 done
4460 IFS=$as_save_IFS
4461 if test -z "$ac_cv_path_EGREP"; then
4462 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4463 fi
4464 else
4465 ac_cv_path_EGREP=$EGREP
4466 fi
4467
4468 fi
4469 fi
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4471 $as_echo "$ac_cv_path_EGREP" >&6; }
4472 EGREP="$ac_cv_path_EGREP"
4473
4474
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4476 $as_echo_n "checking for ANSI C header files... " >&6; }
4477 if ${ac_cv_header_stdc+:} false; then :
4478 $as_echo_n "(cached) " >&6
4479 else
4480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481 /* end confdefs.h. */
4482 #include <stdlib.h>
4483 #include <stdarg.h>
4484 #include <string.h>
4485 #include <float.h>
4486
4487 int
4488 main ()
4489 {
4490
4491 ;
4492 return 0;
4493 }
4494 _ACEOF
4495 if ac_fn_c_try_compile "$LINENO"; then :
4496 ac_cv_header_stdc=yes
4497 else
4498 ac_cv_header_stdc=no
4499 fi
4500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4501
4502 if test $ac_cv_header_stdc = yes; then
4503 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505 /* end confdefs.h. */
4506 #include <string.h>
4507
4508 _ACEOF
4509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4510 $EGREP "memchr" >/dev/null 2>&1; then :
4511
4512 else
4513 ac_cv_header_stdc=no
4514 fi
4515 rm -f conftest*
4516
4517 fi
4518
4519 if test $ac_cv_header_stdc = yes; then
4520 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h. */
4523 #include <stdlib.h>
4524
4525 _ACEOF
4526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4527 $EGREP "free" >/dev/null 2>&1; then :
4528
4529 else
4530 ac_cv_header_stdc=no
4531 fi
4532 rm -f conftest*
4533
4534 fi
4535
4536 if test $ac_cv_header_stdc = yes; then
4537 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4538 if test "$cross_compiling" = yes; then :
4539 :
4540 else
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4543 #include <ctype.h>
4544 #include <stdlib.h>
4545 #if ((' ' & 0x0FF) == 0x020)
4546 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4547 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4548 #else
4549 # define ISLOWER(c) \
4550 (('a' <= (c) && (c) <= 'i') \
4551 || ('j' <= (c) && (c) <= 'r') \
4552 || ('s' <= (c) && (c) <= 'z'))
4553 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4554 #endif
4555
4556 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4557 int
4558 main ()
4559 {
4560 int i;
4561 for (i = 0; i < 256; i++)
4562 if (XOR (islower (i), ISLOWER (i))
4563 || toupper (i) != TOUPPER (i))
4564 return 2;
4565 return 0;
4566 }
4567 _ACEOF
4568 if ac_fn_c_try_run "$LINENO"; then :
4569
4570 else
4571 ac_cv_header_stdc=no
4572 fi
4573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4574 conftest.$ac_objext conftest.beam conftest.$ac_ext
4575 fi
4576
4577 fi
4578 fi
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4580 $as_echo "$ac_cv_header_stdc" >&6; }
4581 if test $ac_cv_header_stdc = yes; then
4582
4583 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4584
4585 fi
4586
4587 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4588 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4589 inttypes.h stdint.h unistd.h
4590 do :
4591 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4592 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4593 "
4594 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4595 cat >>confdefs.h <<_ACEOF
4596 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4597 _ACEOF
4598
4599 fi
4600
4601 done
4602
4603
4604
4605 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4606 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4607 MINIX=yes
4608 else
4609 MINIX=
4610 fi
4611
4612
4613 if test "$MINIX" = yes; then
4614
4615 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4616
4617
4618 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4619
4620
4621 $as_echo "#define _MINIX 1" >>confdefs.h
4622
4623 fi
4624
4625
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4627 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4628 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4629 $as_echo_n "(cached) " >&6
4630 else
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4633
4634 # define __EXTENSIONS__ 1
4635 $ac_includes_default
4636 int
4637 main ()
4638 {
4639
4640 ;
4641 return 0;
4642 }
4643 _ACEOF
4644 if ac_fn_c_try_compile "$LINENO"; then :
4645 ac_cv_safe_to_define___extensions__=yes
4646 else
4647 ac_cv_safe_to_define___extensions__=no
4648 fi
4649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 fi
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4652 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4653 test $ac_cv_safe_to_define___extensions__ = yes &&
4654 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4655
4656 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4657
4658 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4659
4660 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4661
4662 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4663
4664
4665 ac_ext=c
4666 ac_cpp='$CPP $CPPFLAGS'
4667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4670 if test -n "$ac_tool_prefix"; then
4671 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4672 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4674 $as_echo_n "checking for $ac_word... " >&6; }
4675 if ${ac_cv_prog_CC+:} false; then :
4676 $as_echo_n "(cached) " >&6
4677 else
4678 if test -n "$CC"; then
4679 ac_cv_prog_CC="$CC" # Let the user override the test.
4680 else
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH
4683 do
4684 IFS=$as_save_IFS
4685 test -z "$as_dir" && as_dir=.
4686 for ac_exec_ext in '' $ac_executable_extensions; do
4687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4688 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4690 break 2
4691 fi
4692 done
4693 done
4694 IFS=$as_save_IFS
4695
4696 fi
4697 fi
4698 CC=$ac_cv_prog_CC
4699 if test -n "$CC"; then
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4701 $as_echo "$CC" >&6; }
4702 else
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704 $as_echo "no" >&6; }
4705 fi
4706
4707
4708 fi
4709 if test -z "$ac_cv_prog_CC"; then
4710 ac_ct_CC=$CC
4711 # Extract the first word of "gcc", so it can be a program name with args.
4712 set dummy gcc; ac_word=$2
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4714 $as_echo_n "checking for $ac_word... " >&6; }
4715 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 if test -n "$ac_ct_CC"; then
4719 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4720 else
4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 for as_dir in $PATH
4723 do
4724 IFS=$as_save_IFS
4725 test -z "$as_dir" && as_dir=.
4726 for ac_exec_ext in '' $ac_executable_extensions; do
4727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4728 ac_cv_prog_ac_ct_CC="gcc"
4729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 break 2
4731 fi
4732 done
4733 done
4734 IFS=$as_save_IFS
4735
4736 fi
4737 fi
4738 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4739 if test -n "$ac_ct_CC"; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4741 $as_echo "$ac_ct_CC" >&6; }
4742 else
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744 $as_echo "no" >&6; }
4745 fi
4746
4747 if test "x$ac_ct_CC" = x; then
4748 CC=""
4749 else
4750 case $cross_compiling:$ac_tool_warned in
4751 yes:)
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4754 ac_tool_warned=yes ;;
4755 esac
4756 CC=$ac_ct_CC
4757 fi
4758 else
4759 CC="$ac_cv_prog_CC"
4760 fi
4761
4762 if test -z "$CC"; then
4763 if test -n "$ac_tool_prefix"; then
4764 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4765 set dummy ${ac_tool_prefix}cc; ac_word=$2
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 $as_echo_n "checking for $ac_word... " >&6; }
4768 if ${ac_cv_prog_CC+:} false; then :
4769 $as_echo_n "(cached) " >&6
4770 else
4771 if test -n "$CC"; then
4772 ac_cv_prog_CC="$CC" # Let the user override the test.
4773 else
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775 for as_dir in $PATH
4776 do
4777 IFS=$as_save_IFS
4778 test -z "$as_dir" && as_dir=.
4779 for ac_exec_ext in '' $ac_executable_extensions; do
4780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4781 ac_cv_prog_CC="${ac_tool_prefix}cc"
4782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4783 break 2
4784 fi
4785 done
4786 done
4787 IFS=$as_save_IFS
4788
4789 fi
4790 fi
4791 CC=$ac_cv_prog_CC
4792 if test -n "$CC"; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4794 $as_echo "$CC" >&6; }
4795 else
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4798 fi
4799
4800
4801 fi
4802 fi
4803 if test -z "$CC"; then
4804 # Extract the first word of "cc", so it can be a program name with args.
4805 set dummy cc; ac_word=$2
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807 $as_echo_n "checking for $ac_word... " >&6; }
4808 if ${ac_cv_prog_CC+:} false; then :
4809 $as_echo_n "(cached) " >&6
4810 else
4811 if test -n "$CC"; then
4812 ac_cv_prog_CC="$CC" # Let the user override the test.
4813 else
4814 ac_prog_rejected=no
4815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 for as_dir in $PATH
4817 do
4818 IFS=$as_save_IFS
4819 test -z "$as_dir" && as_dir=.
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4822 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4823 ac_prog_rejected=yes
4824 continue
4825 fi
4826 ac_cv_prog_CC="cc"
4827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 break 2
4829 fi
4830 done
4831 done
4832 IFS=$as_save_IFS
4833
4834 if test $ac_prog_rejected = yes; then
4835 # We found a bogon in the path, so make sure we never use it.
4836 set dummy $ac_cv_prog_CC
4837 shift
4838 if test $# != 0; then
4839 # We chose a different compiler from the bogus one.
4840 # However, it has the same basename, so the bogon will be chosen
4841 # first if we set CC to just the basename; use the full file name.
4842 shift
4843 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4844 fi
4845 fi
4846 fi
4847 fi
4848 CC=$ac_cv_prog_CC
4849 if test -n "$CC"; then
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4851 $as_echo "$CC" >&6; }
4852 else
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854 $as_echo "no" >&6; }
4855 fi
4856
4857
4858 fi
4859 if test -z "$CC"; then
4860 if test -n "$ac_tool_prefix"; then
4861 for ac_prog in cl.exe
4862 do
4863 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4864 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866 $as_echo_n "checking for $ac_word... " >&6; }
4867 if ${ac_cv_prog_CC+:} false; then :
4868 $as_echo_n "(cached) " >&6
4869 else
4870 if test -n "$CC"; then
4871 ac_cv_prog_CC="$CC" # Let the user override the test.
4872 else
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH
4875 do
4876 IFS=$as_save_IFS
4877 test -z "$as_dir" && as_dir=.
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4880 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4882 break 2
4883 fi
4884 done
4885 done
4886 IFS=$as_save_IFS
4887
4888 fi
4889 fi
4890 CC=$ac_cv_prog_CC
4891 if test -n "$CC"; then
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4893 $as_echo "$CC" >&6; }
4894 else
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 $as_echo "no" >&6; }
4897 fi
4898
4899
4900 test -n "$CC" && break
4901 done
4902 fi
4903 if test -z "$CC"; then
4904 ac_ct_CC=$CC
4905 for ac_prog in cl.exe
4906 do
4907 # Extract the first word of "$ac_prog", so it can be a program name with args.
4908 set dummy $ac_prog; ac_word=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4912 $as_echo_n "(cached) " >&6
4913 else
4914 if test -n "$ac_ct_CC"; then
4915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4916 else
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 for as_dir in $PATH
4919 do
4920 IFS=$as_save_IFS
4921 test -z "$as_dir" && as_dir=.
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4924 ac_cv_prog_ac_ct_CC="$ac_prog"
4925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4926 break 2
4927 fi
4928 done
4929 done
4930 IFS=$as_save_IFS
4931
4932 fi
4933 fi
4934 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4935 if test -n "$ac_ct_CC"; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4937 $as_echo "$ac_ct_CC" >&6; }
4938 else
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4941 fi
4942
4943
4944 test -n "$ac_ct_CC" && break
4945 done
4946
4947 if test "x$ac_ct_CC" = x; then
4948 CC=""
4949 else
4950 case $cross_compiling:$ac_tool_warned in
4951 yes:)
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4954 ac_tool_warned=yes ;;
4955 esac
4956 CC=$ac_ct_CC
4957 fi
4958 fi
4959
4960 fi
4961
4962
4963 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4965 as_fn_error $? "no acceptable C compiler found in \$PATH
4966 See \`config.log' for more details" "$LINENO" 5; }
4967
4968 # Provide some information about the compiler.
4969 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4970 set X $ac_compile
4971 ac_compiler=$2
4972 for ac_option in --version -v -V -qversion; do
4973 { { ac_try="$ac_compiler $ac_option >&5"
4974 case "(($ac_try" in
4975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976 *) ac_try_echo=$ac_try;;
4977 esac
4978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4979 $as_echo "$ac_try_echo"; } >&5
4980 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4981 ac_status=$?
4982 if test -s conftest.err; then
4983 sed '10a\
4984 ... rest of stderr output deleted ...
4985 10q' conftest.err >conftest.er1
4986 cat conftest.er1 >&5
4987 fi
4988 rm -f conftest.er1 conftest.err
4989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4990 test $ac_status = 0; }
4991 done
4992
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4994 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4995 if ${ac_cv_c_compiler_gnu+:} false; then :
4996 $as_echo_n "(cached) " >&6
4997 else
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5000
5001 int
5002 main ()
5003 {
5004 #ifndef __GNUC__
5005 choke me
5006 #endif
5007
5008 ;
5009 return 0;
5010 }
5011 _ACEOF
5012 if ac_fn_c_try_compile "$LINENO"; then :
5013 ac_compiler_gnu=yes
5014 else
5015 ac_compiler_gnu=no
5016 fi
5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5019
5020 fi
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5022 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5023 if test $ac_compiler_gnu = yes; then
5024 GCC=yes
5025 else
5026 GCC=
5027 fi
5028 ac_test_CFLAGS=${CFLAGS+set}
5029 ac_save_CFLAGS=$CFLAGS
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5031 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5032 if ${ac_cv_prog_cc_g+:} false; then :
5033 $as_echo_n "(cached) " >&6
5034 else
5035 ac_save_c_werror_flag=$ac_c_werror_flag
5036 ac_c_werror_flag=yes
5037 ac_cv_prog_cc_g=no
5038 CFLAGS="-g"
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5041
5042 int
5043 main ()
5044 {
5045
5046 ;
5047 return 0;
5048 }
5049 _ACEOF
5050 if ac_fn_c_try_compile "$LINENO"; then :
5051 ac_cv_prog_cc_g=yes
5052 else
5053 CFLAGS=""
5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h. */
5056
5057 int
5058 main ()
5059 {
5060
5061 ;
5062 return 0;
5063 }
5064 _ACEOF
5065 if ac_fn_c_try_compile "$LINENO"; then :
5066
5067 else
5068 ac_c_werror_flag=$ac_save_c_werror_flag
5069 CFLAGS="-g"
5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071 /* end confdefs.h. */
5072
5073 int
5074 main ()
5075 {
5076
5077 ;
5078 return 0;
5079 }
5080 _ACEOF
5081 if ac_fn_c_try_compile "$LINENO"; then :
5082 ac_cv_prog_cc_g=yes
5083 fi
5084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5085 fi
5086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5087 fi
5088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5089 ac_c_werror_flag=$ac_save_c_werror_flag
5090 fi
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5092 $as_echo "$ac_cv_prog_cc_g" >&6; }
5093 if test "$ac_test_CFLAGS" = set; then
5094 CFLAGS=$ac_save_CFLAGS
5095 elif test $ac_cv_prog_cc_g = yes; then
5096 if test "$GCC" = yes; then
5097 CFLAGS="-g -O2"
5098 else
5099 CFLAGS="-g"
5100 fi
5101 else
5102 if test "$GCC" = yes; then
5103 CFLAGS="-O2"
5104 else
5105 CFLAGS=
5106 fi
5107 fi
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5109 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5110 if ${ac_cv_prog_cc_c89+:} false; then :
5111 $as_echo_n "(cached) " >&6
5112 else
5113 ac_cv_prog_cc_c89=no
5114 ac_save_CC=$CC
5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h. */
5117 #include <stdarg.h>
5118 #include <stdio.h>
5119 struct stat;
5120 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5121 struct buf { int x; };
5122 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5123 static char *e (p, i)
5124 char **p;
5125 int i;
5126 {
5127 return p[i];
5128 }
5129 static char *f (char * (*g) (char **, int), char **p, ...)
5130 {
5131 char *s;
5132 va_list v;
5133 va_start (v,p);
5134 s = g (p, va_arg (v,int));
5135 va_end (v);
5136 return s;
5137 }
5138
5139 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5140 function prototypes and stuff, but not '\xHH' hex character constants.
5141 These don't provoke an error unfortunately, instead are silently treated
5142 as 'x'. The following induces an error, until -std is added to get
5143 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5144 array size at least. It's necessary to write '\x00'==0 to get something
5145 that's true only with -std. */
5146 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5147
5148 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5149 inside strings and character constants. */
5150 #define FOO(x) 'x'
5151 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5152
5153 int test (int i, double x);
5154 struct s1 {int (*f) (int a);};
5155 struct s2 {int (*f) (double a);};
5156 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5157 int argc;
5158 char **argv;
5159 int
5160 main ()
5161 {
5162 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5163 ;
5164 return 0;
5165 }
5166 _ACEOF
5167 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5168 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5169 do
5170 CC="$ac_save_CC $ac_arg"
5171 if ac_fn_c_try_compile "$LINENO"; then :
5172 ac_cv_prog_cc_c89=$ac_arg
5173 fi
5174 rm -f core conftest.err conftest.$ac_objext
5175 test "x$ac_cv_prog_cc_c89" != "xno" && break
5176 done
5177 rm -f conftest.$ac_ext
5178 CC=$ac_save_CC
5179
5180 fi
5181 # AC_CACHE_VAL
5182 case "x$ac_cv_prog_cc_c89" in
5183 x)
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5185 $as_echo "none needed" >&6; } ;;
5186 xno)
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5188 $as_echo "unsupported" >&6; } ;;
5189 *)
5190 CC="$CC $ac_cv_prog_cc_c89"
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5192 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5193 esac
5194 if test "x$ac_cv_prog_cc_c89" != xno; then :
5195
5196 fi
5197
5198 ac_ext=c
5199 ac_cpp='$CPP $CPPFLAGS'
5200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5203
5204 ac_ext=c
5205 ac_cpp='$CPP $CPPFLAGS'
5206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5210 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5211 if ${am_cv_prog_cc_c_o+:} false; then :
5212 $as_echo_n "(cached) " >&6
5213 else
5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5216
5217 int
5218 main ()
5219 {
5220
5221 ;
5222 return 0;
5223 }
5224 _ACEOF
5225 # Make sure it works both with $CC and with simple cc.
5226 # Following AC_PROG_CC_C_O, we do the test twice because some
5227 # compilers refuse to overwrite an existing .o file with -o,
5228 # though they will create one.
5229 am_cv_prog_cc_c_o=yes
5230 for am_i in 1 2; do
5231 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5232 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5233 ac_status=$?
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } \
5236 && test -f conftest2.$ac_objext; then
5237 : OK
5238 else
5239 am_cv_prog_cc_c_o=no
5240 break
5241 fi
5242 done
5243 rm -f core conftest*
5244 unset am_i
5245 fi
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5247 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5248 if test "$am_cv_prog_cc_c_o" != yes; then
5249 # Losing compiler, so override with the script.
5250 # FIXME: It is wrong to rewrite CC.
5251 # But if we don't then we get into trouble of one sort or another.
5252 # A longer-term fix would be to have automake use am__CC in this case,
5253 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5254 CC="$am_aux_dir/compile $CC"
5255 fi
5256 ac_ext=c
5257 ac_cpp='$CPP $CPPFLAGS'
5258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5261
5262
5263 depcc="$CC" am_compiler_list=
5264
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5266 $as_echo_n "checking dependency style of $depcc... " >&6; }
5267 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5270 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5271 # We make a subdir and do the tests there. Otherwise we can end up
5272 # making bogus files that we don't know about and never remove. For
5273 # instance it was reported that on HP-UX the gcc test will end up
5274 # making a dummy file named 'D' -- because '-MD' means "put the output
5275 # in D".
5276 rm -rf conftest.dir
5277 mkdir conftest.dir
5278 # Copy depcomp to subdir because otherwise we won't find it if we're
5279 # using a relative directory.
5280 cp "$am_depcomp" conftest.dir
5281 cd conftest.dir
5282 # We will build objects and dependencies in a subdirectory because
5283 # it helps to detect inapplicable dependency modes. For instance
5284 # both Tru64's cc and ICC support -MD to output dependencies as a
5285 # side effect of compilation, but ICC will put the dependencies in
5286 # the current directory while Tru64 will put them in the object
5287 # directory.
5288 mkdir sub
5289
5290 am_cv_CC_dependencies_compiler_type=none
5291 if test "$am_compiler_list" = ""; then
5292 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5293 fi
5294 am__universal=false
5295 case " $depcc " in #(
5296 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5297 esac
5298
5299 for depmode in $am_compiler_list; do
5300 # Setup a source with many dependencies, because some compilers
5301 # like to wrap large dependency lists on column 80 (with \), and
5302 # we should not choose a depcomp mode which is confused by this.
5303 #
5304 # We need to recreate these files for each test, as the compiler may
5305 # overwrite some of them when testing with obscure command lines.
5306 # This happens at least with the AIX C compiler.
5307 : > sub/conftest.c
5308 for i in 1 2 3 4 5 6; do
5309 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5310 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5311 # Solaris 10 /bin/sh.
5312 echo '/* dummy */' > sub/conftst$i.h
5313 done
5314 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5315
5316 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5317 # mode. It turns out that the SunPro C++ compiler does not properly
5318 # handle '-M -o', and we need to detect this. Also, some Intel
5319 # versions had trouble with output in subdirs.
5320 am__obj=sub/conftest.${OBJEXT-o}
5321 am__minus_obj="-o $am__obj"
5322 case $depmode in
5323 gcc)
5324 # This depmode causes a compiler race in universal mode.
5325 test "$am__universal" = false || continue
5326 ;;
5327 nosideeffect)
5328 # After this tag, mechanisms are not by side-effect, so they'll
5329 # only be used when explicitly requested.
5330 if test "x$enable_dependency_tracking" = xyes; then
5331 continue
5332 else
5333 break
5334 fi
5335 ;;
5336 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5337 # This compiler won't grok '-c -o', but also, the minuso test has
5338 # not run yet. These depmodes are late enough in the game, and
5339 # so weak that their functioning should not be impacted.
5340 am__obj=conftest.${OBJEXT-o}
5341 am__minus_obj=
5342 ;;
5343 none) break ;;
5344 esac
5345 if depmode=$depmode \
5346 source=sub/conftest.c object=$am__obj \
5347 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5348 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5349 >/dev/null 2>conftest.err &&
5350 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5351 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5352 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5353 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5354 # icc doesn't choke on unknown options, it will just issue warnings
5355 # or remarks (even with -Werror). So we grep stderr for any message
5356 # that says an option was ignored or not supported.
5357 # When given -MP, icc 7.0 and 7.1 complain thusly:
5358 # icc: Command line warning: ignoring option '-M'; no argument required
5359 # The diagnosis changed in icc 8.0:
5360 # icc: Command line remark: option '-MP' not supported
5361 if (grep 'ignoring option' conftest.err ||
5362 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5363 am_cv_CC_dependencies_compiler_type=$depmode
5364 break
5365 fi
5366 fi
5367 done
5368
5369 cd ..
5370 rm -rf conftest.dir
5371 else
5372 am_cv_CC_dependencies_compiler_type=none
5373 fi
5374
5375 fi
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5377 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5378 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5379
5380 if
5381 test "x$enable_dependency_tracking" != xno \
5382 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5383 am__fastdepCC_TRUE=
5384 am__fastdepCC_FALSE='#'
5385 else
5386 am__fastdepCC_TRUE='#'
5387 am__fastdepCC_FALSE=
5388 fi
5389
5390
5391 ac_ext=cpp
5392 ac_cpp='$CXXCPP $CPPFLAGS'
5393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5396 if test -z "$CXX"; then
5397 if test -n "$CCC"; then
5398 CXX=$CCC
5399 else
5400 if test -n "$ac_tool_prefix"; then
5401 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5402 do
5403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5406 $as_echo_n "checking for $ac_word... " >&6; }
5407 if ${ac_cv_prog_CXX+:} false; then :
5408 $as_echo_n "(cached) " >&6
5409 else
5410 if test -n "$CXX"; then
5411 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5412 else
5413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 for as_dir in $PATH
5415 do
5416 IFS=$as_save_IFS
5417 test -z "$as_dir" && as_dir=.
5418 for ac_exec_ext in '' $ac_executable_extensions; do
5419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5420 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5422 break 2
5423 fi
5424 done
5425 done
5426 IFS=$as_save_IFS
5427
5428 fi
5429 fi
5430 CXX=$ac_cv_prog_CXX
5431 if test -n "$CXX"; then
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5433 $as_echo "$CXX" >&6; }
5434 else
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5436 $as_echo "no" >&6; }
5437 fi
5438
5439
5440 test -n "$CXX" && break
5441 done
5442 fi
5443 if test -z "$CXX"; then
5444 ac_ct_CXX=$CXX
5445 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5446 do
5447 # Extract the first word of "$ac_prog", so it can be a program name with args.
5448 set dummy $ac_prog; ac_word=$2
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450 $as_echo_n "checking for $ac_word... " >&6; }
5451 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5454 if test -n "$ac_ct_CXX"; then
5455 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5456 else
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 for as_dir in $PATH
5459 do
5460 IFS=$as_save_IFS
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5464 ac_cv_prog_ac_ct_CXX="$ac_prog"
5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 break 2
5467 fi
5468 done
5469 done
5470 IFS=$as_save_IFS
5471
5472 fi
5473 fi
5474 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5475 if test -n "$ac_ct_CXX"; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5477 $as_echo "$ac_ct_CXX" >&6; }
5478 else
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480 $as_echo "no" >&6; }
5481 fi
5482
5483
5484 test -n "$ac_ct_CXX" && break
5485 done
5486
5487 if test "x$ac_ct_CXX" = x; then
5488 CXX="g++"
5489 else
5490 case $cross_compiling:$ac_tool_warned in
5491 yes:)
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5494 ac_tool_warned=yes ;;
5495 esac
5496 CXX=$ac_ct_CXX
5497 fi
5498 fi
5499
5500 fi
5501 fi
5502 # Provide some information about the compiler.
5503 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5504 set X $ac_compile
5505 ac_compiler=$2
5506 for ac_option in --version -v -V -qversion; do
5507 { { ac_try="$ac_compiler $ac_option >&5"
5508 case "(($ac_try" in
5509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5510 *) ac_try_echo=$ac_try;;
5511 esac
5512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5513 $as_echo "$ac_try_echo"; } >&5
5514 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5515 ac_status=$?
5516 if test -s conftest.err; then
5517 sed '10a\
5518 ... rest of stderr output deleted ...
5519 10q' conftest.err >conftest.er1
5520 cat conftest.er1 >&5
5521 fi
5522 rm -f conftest.er1 conftest.err
5523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5524 test $ac_status = 0; }
5525 done
5526
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5528 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5529 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5534
5535 int
5536 main ()
5537 {
5538 #ifndef __GNUC__
5539 choke me
5540 #endif
5541
5542 ;
5543 return 0;
5544 }
5545 _ACEOF
5546 if ac_fn_cxx_try_compile "$LINENO"; then :
5547 ac_compiler_gnu=yes
5548 else
5549 ac_compiler_gnu=no
5550 fi
5551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5552 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5553
5554 fi
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5556 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5557 if test $ac_compiler_gnu = yes; then
5558 GXX=yes
5559 else
5560 GXX=
5561 fi
5562 ac_test_CXXFLAGS=${CXXFLAGS+set}
5563 ac_save_CXXFLAGS=$CXXFLAGS
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5565 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5566 if ${ac_cv_prog_cxx_g+:} false; then :
5567 $as_echo_n "(cached) " >&6
5568 else
5569 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5570 ac_cxx_werror_flag=yes
5571 ac_cv_prog_cxx_g=no
5572 CXXFLAGS="-g"
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5575
5576 int
5577 main ()
5578 {
5579
5580 ;
5581 return 0;
5582 }
5583 _ACEOF
5584 if ac_fn_cxx_try_compile "$LINENO"; then :
5585 ac_cv_prog_cxx_g=yes
5586 else
5587 CXXFLAGS=""
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5590
5591 int
5592 main ()
5593 {
5594
5595 ;
5596 return 0;
5597 }
5598 _ACEOF
5599 if ac_fn_cxx_try_compile "$LINENO"; then :
5600
5601 else
5602 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5603 CXXFLAGS="-g"
5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h. */
5606
5607 int
5608 main ()
5609 {
5610
5611 ;
5612 return 0;
5613 }
5614 _ACEOF
5615 if ac_fn_cxx_try_compile "$LINENO"; then :
5616 ac_cv_prog_cxx_g=yes
5617 fi
5618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5619 fi
5620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5621 fi
5622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5624 fi
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5626 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5627 if test "$ac_test_CXXFLAGS" = set; then
5628 CXXFLAGS=$ac_save_CXXFLAGS
5629 elif test $ac_cv_prog_cxx_g = yes; then
5630 if test "$GXX" = yes; then
5631 CXXFLAGS="-g -O2"
5632 else
5633 CXXFLAGS="-g"
5634 fi
5635 else
5636 if test "$GXX" = yes; then
5637 CXXFLAGS="-O2"
5638 else
5639 CXXFLAGS=
5640 fi
5641 fi
5642 ac_ext=c
5643 ac_cpp='$CPP $CPPFLAGS'
5644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5647
5648 depcc="$CXX" am_compiler_list=
5649
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5651 $as_echo_n "checking dependency style of $depcc... " >&6; }
5652 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5653 $as_echo_n "(cached) " >&6
5654 else
5655 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5656 # We make a subdir and do the tests there. Otherwise we can end up
5657 # making bogus files that we don't know about and never remove. For
5658 # instance it was reported that on HP-UX the gcc test will end up
5659 # making a dummy file named 'D' -- because '-MD' means "put the output
5660 # in D".
5661 rm -rf conftest.dir
5662 mkdir conftest.dir
5663 # Copy depcomp to subdir because otherwise we won't find it if we're
5664 # using a relative directory.
5665 cp "$am_depcomp" conftest.dir
5666 cd conftest.dir
5667 # We will build objects and dependencies in a subdirectory because
5668 # it helps to detect inapplicable dependency modes. For instance
5669 # both Tru64's cc and ICC support -MD to output dependencies as a
5670 # side effect of compilation, but ICC will put the dependencies in
5671 # the current directory while Tru64 will put them in the object
5672 # directory.
5673 mkdir sub
5674
5675 am_cv_CXX_dependencies_compiler_type=none
5676 if test "$am_compiler_list" = ""; then
5677 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5678 fi
5679 am__universal=false
5680 case " $depcc " in #(
5681 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5682 esac
5683
5684 for depmode in $am_compiler_list; do
5685 # Setup a source with many dependencies, because some compilers
5686 # like to wrap large dependency lists on column 80 (with \), and
5687 # we should not choose a depcomp mode which is confused by this.
5688 #
5689 # We need to recreate these files for each test, as the compiler may
5690 # overwrite some of them when testing with obscure command lines.
5691 # This happens at least with the AIX C compiler.
5692 : > sub/conftest.c
5693 for i in 1 2 3 4 5 6; do
5694 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5695 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5696 # Solaris 10 /bin/sh.
5697 echo '/* dummy */' > sub/conftst$i.h
5698 done
5699 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5700
5701 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5702 # mode. It turns out that the SunPro C++ compiler does not properly
5703 # handle '-M -o', and we need to detect this. Also, some Intel
5704 # versions had trouble with output in subdirs.
5705 am__obj=sub/conftest.${OBJEXT-o}
5706 am__minus_obj="-o $am__obj"
5707 case $depmode in
5708 gcc)
5709 # This depmode causes a compiler race in universal mode.
5710 test "$am__universal" = false || continue
5711 ;;
5712 nosideeffect)
5713 # After this tag, mechanisms are not by side-effect, so they'll
5714 # only be used when explicitly requested.
5715 if test "x$enable_dependency_tracking" = xyes; then
5716 continue
5717 else
5718 break
5719 fi
5720 ;;
5721 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5722 # This compiler won't grok '-c -o', but also, the minuso test has
5723 # not run yet. These depmodes are late enough in the game, and
5724 # so weak that their functioning should not be impacted.
5725 am__obj=conftest.${OBJEXT-o}
5726 am__minus_obj=
5727 ;;
5728 none) break ;;
5729 esac
5730 if depmode=$depmode \
5731 source=sub/conftest.c object=$am__obj \
5732 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5733 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5734 >/dev/null 2>conftest.err &&
5735 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5736 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5737 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5738 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5739 # icc doesn't choke on unknown options, it will just issue warnings
5740 # or remarks (even with -Werror). So we grep stderr for any message
5741 # that says an option was ignored or not supported.
5742 # When given -MP, icc 7.0 and 7.1 complain thusly:
5743 # icc: Command line warning: ignoring option '-M'; no argument required
5744 # The diagnosis changed in icc 8.0:
5745 # icc: Command line remark: option '-MP' not supported
5746 if (grep 'ignoring option' conftest.err ||
5747 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5748 am_cv_CXX_dependencies_compiler_type=$depmode
5749 break
5750 fi
5751 fi
5752 done
5753
5754 cd ..
5755 rm -rf conftest.dir
5756 else
5757 am_cv_CXX_dependencies_compiler_type=none
5758 fi
5759
5760 fi
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5762 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5763 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5764
5765 if
5766 test "x$enable_dependency_tracking" != xno \
5767 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5768 am__fastdepCXX_TRUE=
5769 am__fastdepCXX_FALSE='#'
5770 else
5771 am__fastdepCXX_TRUE='#'
5772 am__fastdepCXX_FALSE=
5773 fi
5774
5775
5776
5777 if test -n "$ac_tool_prefix"; then
5778 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5779 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781 $as_echo_n "checking for $ac_word... " >&6; }
5782 if ${ac_cv_prog_RANLIB+:} false; then :
5783 $as_echo_n "(cached) " >&6
5784 else
5785 if test -n "$RANLIB"; then
5786 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5787 else
5788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789 for as_dir in $PATH
5790 do
5791 IFS=$as_save_IFS
5792 test -z "$as_dir" && as_dir=.
5793 for ac_exec_ext in '' $ac_executable_extensions; do
5794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797 break 2
5798 fi
5799 done
5800 done
5801 IFS=$as_save_IFS
5802
5803 fi
5804 fi
5805 RANLIB=$ac_cv_prog_RANLIB
5806 if test -n "$RANLIB"; then
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5808 $as_echo "$RANLIB" >&6; }
5809 else
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811 $as_echo "no" >&6; }
5812 fi
5813
5814
5815 fi
5816 if test -z "$ac_cv_prog_RANLIB"; then
5817 ac_ct_RANLIB=$RANLIB
5818 # Extract the first word of "ranlib", so it can be a program name with args.
5819 set dummy ranlib; ac_word=$2
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5821 $as_echo_n "checking for $ac_word... " >&6; }
5822 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5823 $as_echo_n "(cached) " >&6
5824 else
5825 if test -n "$ac_ct_RANLIB"; then
5826 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5827 else
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 for as_dir in $PATH
5830 do
5831 IFS=$as_save_IFS
5832 test -z "$as_dir" && as_dir=.
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5835 ac_cv_prog_ac_ct_RANLIB="ranlib"
5836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 break 2
5838 fi
5839 done
5840 done
5841 IFS=$as_save_IFS
5842
5843 fi
5844 fi
5845 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5846 if test -n "$ac_ct_RANLIB"; then
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5848 $as_echo "$ac_ct_RANLIB" >&6; }
5849 else
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851 $as_echo "no" >&6; }
5852 fi
5853
5854 if test "x$ac_ct_RANLIB" = x; then
5855 RANLIB=":"
5856 else
5857 case $cross_compiling:$ac_tool_warned in
5858 yes:)
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5861 ac_tool_warned=yes ;;
5862 esac
5863 RANLIB=$ac_ct_RANLIB
5864 fi
5865 else
5866 RANLIB="$ac_cv_prog_RANLIB"
5867 fi
5868
5869 if test -n "$ac_tool_prefix"; then
5870 for ac_prog in ar lib "link -lib"
5871 do
5872 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5873 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5875 $as_echo_n "checking for $ac_word... " >&6; }
5876 if ${ac_cv_prog_AR+:} false; then :
5877 $as_echo_n "(cached) " >&6
5878 else
5879 if test -n "$AR"; then
5880 ac_cv_prog_AR="$AR" # Let the user override the test.
5881 else
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH
5884 do
5885 IFS=$as_save_IFS
5886 test -z "$as_dir" && as_dir=.
5887 for ac_exec_ext in '' $ac_executable_extensions; do
5888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 break 2
5892 fi
5893 done
5894 done
5895 IFS=$as_save_IFS
5896
5897 fi
5898 fi
5899 AR=$ac_cv_prog_AR
5900 if test -n "$AR"; then
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5902 $as_echo "$AR" >&6; }
5903 else
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905 $as_echo "no" >&6; }
5906 fi
5907
5908
5909 test -n "$AR" && break
5910 done
5911 fi
5912 if test -z "$AR"; then
5913 ac_ct_AR=$AR
5914 for ac_prog in ar lib "link -lib"
5915 do
5916 # Extract the first word of "$ac_prog", so it can be a program name with args.
5917 set dummy $ac_prog; ac_word=$2
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5919 $as_echo_n "checking for $ac_word... " >&6; }
5920 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5921 $as_echo_n "(cached) " >&6
5922 else
5923 if test -n "$ac_ct_AR"; then
5924 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5925 else
5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 for as_dir in $PATH
5928 do
5929 IFS=$as_save_IFS
5930 test -z "$as_dir" && as_dir=.
5931 for ac_exec_ext in '' $ac_executable_extensions; do
5932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5933 ac_cv_prog_ac_ct_AR="$ac_prog"
5934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935 break 2
5936 fi
5937 done
5938 done
5939 IFS=$as_save_IFS
5940
5941 fi
5942 fi
5943 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5944 if test -n "$ac_ct_AR"; then
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5946 $as_echo "$ac_ct_AR" >&6; }
5947 else
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5949 $as_echo "no" >&6; }
5950 fi
5951
5952
5953 test -n "$ac_ct_AR" && break
5954 done
5955
5956 if test "x$ac_ct_AR" = x; then
5957 AR="false"
5958 else
5959 case $cross_compiling:$ac_tool_warned in
5960 yes:)
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5963 ac_tool_warned=yes ;;
5964 esac
5965 AR=$ac_ct_AR
5966 fi
5967 fi
5968
5969 : ${AR=ar}
5970
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5972 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5973 if ${am_cv_ar_interface+:} false; then :
5974 $as_echo_n "(cached) " >&6
5975 else
5976 ac_ext=c
5977 ac_cpp='$CPP $CPPFLAGS'
5978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5981
5982 am_cv_ar_interface=ar
5983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984 /* end confdefs.h. */
5985 int some_variable = 0;
5986 _ACEOF
5987 if ac_fn_c_try_compile "$LINENO"; then :
5988 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5990 (eval $am_ar_try) 2>&5
5991 ac_status=$?
5992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5993 test $ac_status = 0; }
5994 if test "$ac_status" -eq 0; then
5995 am_cv_ar_interface=ar
5996 else
5997 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5999 (eval $am_ar_try) 2>&5
6000 ac_status=$?
6001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6002 test $ac_status = 0; }
6003 if test "$ac_status" -eq 0; then
6004 am_cv_ar_interface=lib
6005 else
6006 am_cv_ar_interface=unknown
6007 fi
6008 fi
6009 rm -f conftest.lib libconftest.a
6010
6011 fi
6012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6013 ac_ext=c
6014 ac_cpp='$CPP $CPPFLAGS'
6015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6018
6019 fi
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6021 $as_echo "$am_cv_ar_interface" >&6; }
6022
6023 case $am_cv_ar_interface in
6024 ar)
6025 ;;
6026 lib)
6027 # Microsoft lib, so override with the ar-lib wrapper script.
6028 # FIXME: It is wrong to rewrite AR.
6029 # But if we don't then we get into trouble of one sort or another.
6030 # A longer-term fix would be to have automake use am__AR in this case,
6031 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6032 # similar.
6033 AR="$am_aux_dir/ar-lib $AR"
6034 ;;
6035 unknown)
6036 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6037 ;;
6038 esac
6039
6040
6041 # Check whether --enable-shared was given.
6042 if test "${enable_shared+set}" = set; then :
6043 enableval=$enable_shared; p=${PACKAGE-default}
6044 case $enableval in
6045 yes) enable_shared=yes ;;
6046 no) enable_shared=no ;;
6047 *)
6048 enable_shared=no
6049 # Look at the argument we got. We use all the common list separators.
6050 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6051 for pkg in $enableval; do
6052 IFS="$lt_save_ifs"
6053 if test "X$pkg" = "X$p"; then
6054 enable_shared=yes
6055 fi
6056 done
6057 IFS="$lt_save_ifs"
6058 ;;
6059 esac
6060 else
6061 enable_shared=no
6062 fi
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072 case `pwd` in
6073 *\ * | *\ *)
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6075 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6076 esac
6077
6078
6079
6080 macro_version='2.2.7a'
6081 macro_revision='1.3134'
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095 ltmain="$ac_aux_dir/ltmain.sh"
6096
6097 # Backslashify metacharacters that are still active within
6098 # double-quoted strings.
6099 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6100
6101 # Same as above, but do not quote variable references.
6102 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6103
6104 # Sed substitution to delay expansion of an escaped shell variable in a
6105 # double_quote_subst'ed string.
6106 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6107
6108 # Sed substitution to delay expansion of an escaped single quote.
6109 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6110
6111 # Sed substitution to avoid accidental globbing in evaled expressions
6112 no_glob_subst='s/\*/\\\*/g'
6113
6114 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6115 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6116 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6117
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6119 $as_echo_n "checking how to print strings... " >&6; }
6120 # Test print first, because it will be a builtin if present.
6121 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6122 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6123 ECHO='print -r --'
6124 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6125 ECHO='printf %s\n'
6126 else
6127 # Use this function as a fallback that always works.
6128 func_fallback_echo ()
6129 {
6130 eval 'cat <<_LTECHO_EOF
6131 $1
6132 _LTECHO_EOF'
6133 }
6134 ECHO='func_fallback_echo'
6135 fi
6136
6137 # func_echo_all arg...
6138 # Invoke $ECHO with all args, space-separated.
6139 func_echo_all ()
6140 {
6141 $ECHO ""
6142 }
6143
6144 case "$ECHO" in
6145 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6146 $as_echo "printf" >&6; } ;;
6147 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6148 $as_echo "print -r" >&6; } ;;
6149 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6150 $as_echo "cat" >&6; } ;;
6151 esac
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6167 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6168 if ${ac_cv_path_SED+:} false; then :
6169 $as_echo_n "(cached) " >&6
6170 else
6171 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6172 for ac_i in 1 2 3 4 5 6 7; do
6173 ac_script="$ac_script$as_nl$ac_script"
6174 done
6175 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6176 { ac_script=; unset ac_script;}
6177 if test -z "$SED"; then
6178 ac_path_SED_found=false
6179 # Loop through the user's path and test for each of PROGNAME-LIST
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 for as_dir in $PATH
6182 do
6183 IFS=$as_save_IFS
6184 test -z "$as_dir" && as_dir=.
6185 for ac_prog in sed gsed; do
6186 for ac_exec_ext in '' $ac_executable_extensions; do
6187 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6188 as_fn_executable_p "$ac_path_SED" || continue
6189 # Check for GNU ac_path_SED and select it if it is found.
6190 # Check for GNU $ac_path_SED
6191 case `"$ac_path_SED" --version 2>&1` in
6192 *GNU*)
6193 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6194 *)
6195 ac_count=0
6196 $as_echo_n 0123456789 >"conftest.in"
6197 while :
6198 do
6199 cat "conftest.in" "conftest.in" >"conftest.tmp"
6200 mv "conftest.tmp" "conftest.in"
6201 cp "conftest.in" "conftest.nl"
6202 $as_echo '' >> "conftest.nl"
6203 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6204 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6205 as_fn_arith $ac_count + 1 && ac_count=$as_val
6206 if test $ac_count -gt ${ac_path_SED_max-0}; then
6207 # Best one so far, save it but keep looking for a better one
6208 ac_cv_path_SED="$ac_path_SED"
6209 ac_path_SED_max=$ac_count
6210 fi
6211 # 10*(2^10) chars as input seems more than enough
6212 test $ac_count -gt 10 && break
6213 done
6214 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6215 esac
6216
6217 $ac_path_SED_found && break 3
6218 done
6219 done
6220 done
6221 IFS=$as_save_IFS
6222 if test -z "$ac_cv_path_SED"; then
6223 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6224 fi
6225 else
6226 ac_cv_path_SED=$SED
6227 fi
6228
6229 fi
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6231 $as_echo "$ac_cv_path_SED" >&6; }
6232 SED="$ac_cv_path_SED"
6233 rm -f conftest.sed
6234
6235 test -z "$SED" && SED=sed
6236 Xsed="$SED -e 1s/^X//"
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6249 $as_echo_n "checking for fgrep... " >&6; }
6250 if ${ac_cv_path_FGREP+:} false; then :
6251 $as_echo_n "(cached) " >&6
6252 else
6253 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6254 then ac_cv_path_FGREP="$GREP -F"
6255 else
6256 if test -z "$FGREP"; then
6257 ac_path_FGREP_found=false
6258 # Loop through the user's path and test for each of PROGNAME-LIST
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6261 do
6262 IFS=$as_save_IFS
6263 test -z "$as_dir" && as_dir=.
6264 for ac_prog in fgrep; do
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6267 as_fn_executable_p "$ac_path_FGREP" || continue
6268 # Check for GNU ac_path_FGREP and select it if it is found.
6269 # Check for GNU $ac_path_FGREP
6270 case `"$ac_path_FGREP" --version 2>&1` in
6271 *GNU*)
6272 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6273 *)
6274 ac_count=0
6275 $as_echo_n 0123456789 >"conftest.in"
6276 while :
6277 do
6278 cat "conftest.in" "conftest.in" >"conftest.tmp"
6279 mv "conftest.tmp" "conftest.in"
6280 cp "conftest.in" "conftest.nl"
6281 $as_echo 'FGREP' >> "conftest.nl"
6282 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6283 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6284 as_fn_arith $ac_count + 1 && ac_count=$as_val
6285 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6286 # Best one so far, save it but keep looking for a better one
6287 ac_cv_path_FGREP="$ac_path_FGREP"
6288 ac_path_FGREP_max=$ac_count
6289 fi
6290 # 10*(2^10) chars as input seems more than enough
6291 test $ac_count -gt 10 && break
6292 done
6293 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6294 esac
6295
6296 $ac_path_FGREP_found && break 3
6297 done
6298 done
6299 done
6300 IFS=$as_save_IFS
6301 if test -z "$ac_cv_path_FGREP"; then
6302 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6303 fi
6304 else
6305 ac_cv_path_FGREP=$FGREP
6306 fi
6307
6308 fi
6309 fi
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6311 $as_echo "$ac_cv_path_FGREP" >&6; }
6312 FGREP="$ac_cv_path_FGREP"
6313
6314
6315 test -z "$GREP" && GREP=grep
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335 # Check whether --with-gnu-ld was given.
6336 if test "${with_gnu_ld+set}" = set; then :
6337 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6338 else
6339 with_gnu_ld=no
6340 fi
6341
6342 ac_prog=ld
6343 if test "$GCC" = yes; then
6344 # Check if gcc -print-prog-name=ld gives a path.
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6346 $as_echo_n "checking for ld used by $CC... " >&6; }
6347 case $host in
6348 *-*-mingw*)
6349 # gcc leaves a trailing carriage return which upsets mingw
6350 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6351 *)
6352 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6353 esac
6354 case $ac_prog in
6355 # Accept absolute paths.
6356 [\\/]* | ?:[\\/]*)
6357 re_direlt='/[^/][^/]*/\.\./'
6358 # Canonicalize the pathname of ld
6359 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6360 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6361 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6362 done
6363 test -z "$LD" && LD="$ac_prog"
6364 ;;
6365 "")
6366 # If it fails, then pretend we aren't using GCC.
6367 ac_prog=ld
6368 ;;
6369 *)
6370 # If it is relative, then search for the first ld in PATH.
6371 with_gnu_ld=unknown
6372 ;;
6373 esac
6374 elif test "$with_gnu_ld" = yes; then
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6376 $as_echo_n "checking for GNU ld... " >&6; }
6377 else
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6379 $as_echo_n "checking for non-GNU ld... " >&6; }
6380 fi
6381 if ${lt_cv_path_LD+:} false; then :
6382 $as_echo_n "(cached) " >&6
6383 else
6384 if test -z "$LD"; then
6385 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6386 for ac_dir in $PATH; do
6387 IFS="$lt_save_ifs"
6388 test -z "$ac_dir" && ac_dir=.
6389 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6390 lt_cv_path_LD="$ac_dir/$ac_prog"
6391 # Check to see if the program is GNU ld. I'd rather use --version,
6392 # but apparently some variants of GNU ld only accept -v.
6393 # Break only if it was the GNU/non-GNU ld that we prefer.
6394 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6395 *GNU* | *'with BFD'*)
6396 test "$with_gnu_ld" != no && break
6397 ;;
6398 *)
6399 test "$with_gnu_ld" != yes && break
6400 ;;
6401 esac
6402 fi
6403 done
6404 IFS="$lt_save_ifs"
6405 else
6406 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6407 fi
6408 fi
6409
6410 LD="$lt_cv_path_LD"
6411 if test -n "$LD"; then
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6413 $as_echo "$LD" >&6; }
6414 else
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416 $as_echo "no" >&6; }
6417 fi
6418 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6420 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6421 if ${lt_cv_prog_gnu_ld+:} false; then :
6422 $as_echo_n "(cached) " >&6
6423 else
6424 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6425 case `$LD -v 2>&1 </dev/null` in
6426 *GNU* | *'with BFD'*)
6427 lt_cv_prog_gnu_ld=yes
6428 ;;
6429 *)
6430 lt_cv_prog_gnu_ld=no
6431 ;;
6432 esac
6433 fi
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6435 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6436 with_gnu_ld=$lt_cv_prog_gnu_ld
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6447 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6448 if ${lt_cv_path_NM+:} false; then :
6449 $as_echo_n "(cached) " >&6
6450 else
6451 if test -n "$NM"; then
6452 # Let the user override the nm to test.
6453 lt_nm_to_check="$NM"
6454 else
6455 lt_nm_to_check="${ac_tool_prefix}nm"
6456 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6457 lt_nm_to_check="$lt_nm_to_check nm"
6458 fi
6459 fi
6460 for lt_tmp_nm in $lt_nm_to_check; do
6461 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6462 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6463 IFS="$lt_save_ifs"
6464 test -z "$ac_dir" && ac_dir=.
6465 case "$lt_tmp_nm" in
6466 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6467 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6468 esac
6469 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6470 # Check to see if the nm accepts a BSD-compat flag.
6471 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6472 # nm: unknown option "B" ignored
6473 case `"$tmp_nm" -B "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6474 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6475 break
6476 ;;
6477 *)
6478 case `"$tmp_nm" -p "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6479 *$tmp_nm*)
6480 lt_cv_path_NM="$tmp_nm -p"
6481 break
6482 ;;
6483 *)
6484 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6485 continue # so that we can try to find one that supports BSD flags
6486 ;;
6487 esac
6488 ;;
6489 esac
6490 fi
6491 done
6492 IFS="$lt_save_ifs"
6493 done
6494 : ${lt_cv_path_NM=no}
6495 fi
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6497 $as_echo "$lt_cv_path_NM" >&6; }
6498 if test "$lt_cv_path_NM" != "no"; then
6499 NM="$lt_cv_path_NM"
6500 else
6501 # Didn't find any BSD compatible name lister, look for dumpbin.
6502 if test -n "$DUMPBIN"; then :
6503 # Let the user override the test.
6504 else
6505 if test -n "$ac_tool_prefix"; then
6506 for ac_prog in dumpbin "link -dump"
6507 do
6508 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6509 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6511 $as_echo_n "checking for $ac_word... " >&6; }
6512 if ${ac_cv_prog_DUMPBIN+:} false; then :
6513 $as_echo_n "(cached) " >&6
6514 else
6515 if test -n "$DUMPBIN"; then
6516 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6517 else
6518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519 for as_dir in $PATH
6520 do
6521 IFS=$as_save_IFS
6522 test -z "$as_dir" && as_dir=.
6523 for ac_exec_ext in '' $ac_executable_extensions; do
6524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6525 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6527 break 2
6528 fi
6529 done
6530 done
6531 IFS=$as_save_IFS
6532
6533 fi
6534 fi
6535 DUMPBIN=$ac_cv_prog_DUMPBIN
6536 if test -n "$DUMPBIN"; then
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6538 $as_echo "$DUMPBIN" >&6; }
6539 else
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541 $as_echo "no" >&6; }
6542 fi
6543
6544
6545 test -n "$DUMPBIN" && break
6546 done
6547 fi
6548 if test -z "$DUMPBIN"; then
6549 ac_ct_DUMPBIN=$DUMPBIN
6550 for ac_prog in dumpbin "link -dump"
6551 do
6552 # Extract the first word of "$ac_prog", so it can be a program name with args.
6553 set dummy $ac_prog; ac_word=$2
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6555 $as_echo_n "checking for $ac_word... " >&6; }
6556 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6557 $as_echo_n "(cached) " >&6
6558 else
6559 if test -n "$ac_ct_DUMPBIN"; then
6560 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6561 else
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 for as_dir in $PATH
6564 do
6565 IFS=$as_save_IFS
6566 test -z "$as_dir" && as_dir=.
6567 for ac_exec_ext in '' $ac_executable_extensions; do
6568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6569 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6571 break 2
6572 fi
6573 done
6574 done
6575 IFS=$as_save_IFS
6576
6577 fi
6578 fi
6579 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6580 if test -n "$ac_ct_DUMPBIN"; then
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6582 $as_echo "$ac_ct_DUMPBIN" >&6; }
6583 else
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6585 $as_echo "no" >&6; }
6586 fi
6587
6588
6589 test -n "$ac_ct_DUMPBIN" && break
6590 done
6591
6592 if test "x$ac_ct_DUMPBIN" = x; then
6593 DUMPBIN=":"
6594 else
6595 case $cross_compiling:$ac_tool_warned in
6596 yes:)
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6599 ac_tool_warned=yes ;;
6600 esac
6601 DUMPBIN=$ac_ct_DUMPBIN
6602 fi
6603 fi
6604
6605 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6606 *COFF*)
6607 DUMPBIN="$DUMPBIN -symbols"
6608 ;;
6609 *)
6610 DUMPBIN=:
6611 ;;
6612 esac
6613 fi
6614
6615 if test "$DUMPBIN" != ":"; then
6616 NM="$DUMPBIN"
6617 fi
6618 fi
6619 test -z "$NM" && NM=nm
6620
6621
6622
6623
6624
6625
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6627 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6628 if ${lt_cv_nm_interface+:} false; then :
6629 $as_echo_n "(cached) " >&6
6630 else
6631 lt_cv_nm_interface="BSD nm"
6632 echo "int some_variable = 0;" > conftest.$ac_ext
6633 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6634 (eval "$ac_compile" 2>conftest.err)
6635 cat conftest.err >&5
6636 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6637 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6638 cat conftest.err >&5
6639 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6640 cat conftest.out >&5
6641 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6642 lt_cv_nm_interface="MS dumpbin"
6643 fi
6644 rm -f conftest*
6645 fi
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6647 $as_echo "$lt_cv_nm_interface" >&6; }
6648
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6650 $as_echo_n "checking whether ln -s works... " >&6; }
6651 LN_S=$as_ln_s
6652 if test "$LN_S" = "ln -s"; then
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6654 $as_echo "yes" >&6; }
6655 else
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6657 $as_echo "no, using $LN_S" >&6; }
6658 fi
6659
6660 # find the maximum length of command line arguments
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6662 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6663 if ${lt_cv_sys_max_cmd_len+:} false; then :
6664 $as_echo_n "(cached) " >&6
6665 else
6666 i=0
6667 teststring="ABCD"
6668
6669 case $build_os in
6670 msdosdjgpp*)
6671 # On DJGPP, this test can blow up pretty badly due to problems in libc
6672 # (any single argument exceeding 2000 bytes causes a buffer overrun
6673 # during glob expansion). Even if it were fixed, the result of this
6674 # check would be larger than it should be.
6675 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6676 ;;
6677
6678 gnu*)
6679 # Under GNU Hurd, this test is not required because there is
6680 # no limit to the length of command line arguments.
6681 # Libtool will interpret -1 as no limit whatsoever
6682 lt_cv_sys_max_cmd_len=-1;
6683 ;;
6684
6685 cygwin* | mingw* | cegcc*)
6686 # On Win9x/ME, this test blows up -- it succeeds, but takes
6687 # about 5 minutes as the teststring grows exponentially.
6688 # Worse, since 9x/ME are not pre-emptively multitasking,
6689 # you end up with a "frozen" computer, even though with patience
6690 # the test eventually succeeds (with a max line length of 256k).
6691 # Instead, let's just punt: use the minimum linelength reported by
6692 # all of the supported platforms: 8192 (on NT/2K/XP).
6693 lt_cv_sys_max_cmd_len=8192;
6694 ;;
6695
6696 mint*)
6697 # On MiNT this can take a long time and run out of memory.
6698 lt_cv_sys_max_cmd_len=8192;
6699 ;;
6700
6701 amigaos*)
6702 # On AmigaOS with pdksh, this test takes hours, literally.
6703 # So we just punt and use a minimum line length of 8192.
6704 lt_cv_sys_max_cmd_len=8192;
6705 ;;
6706
6707 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6708 # This has been around since 386BSD, at least. Likely further.
6709 if test -x /sbin/sysctl; then
6710 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6711 elif test -x /usr/sbin/sysctl; then
6712 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6713 else
6714 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6715 fi
6716 # And add a safety zone
6717 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6718 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6719 ;;
6720
6721 interix*)
6722 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6723 lt_cv_sys_max_cmd_len=196608
6724 ;;
6725
6726 osf*)
6727 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6728 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6729 # nice to cause kernel panics so lets avoid the loop below.
6730 # First set a reasonable default.
6731 lt_cv_sys_max_cmd_len=16384
6732 #
6733 if test -x /sbin/sysconfig; then
6734 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6735 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6736 esac
6737 fi
6738 ;;
6739 sco3.2v5*)
6740 lt_cv_sys_max_cmd_len=102400
6741 ;;
6742 sysv5* | sco5v6* | sysv4.2uw2*)
6743 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6744 if test -n "$kargmax"; then
6745 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6746 else
6747 lt_cv_sys_max_cmd_len=32768
6748 fi
6749 ;;
6750 *)
6751 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6752 if test -n "$lt_cv_sys_max_cmd_len"; then
6753 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6754 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6755 else
6756 # Make teststring a little bigger before we do anything with it.
6757 # a 1K string should be a reasonable start.
6758 for i in 1 2 3 4 5 6 7 8 ; do
6759 teststring=$teststring$teststring
6760 done
6761 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6762 # If test is not a shell built-in, we'll probably end up computing a
6763 # maximum length that is only half of the actual maximum length, but
6764 # we can't tell.
6765 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6766 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6767 test $i != 17 # 1/2 MB should be enough
6768 do
6769 i=`expr $i + 1`
6770 teststring=$teststring$teststring
6771 done
6772 # Only check the string length outside the loop.
6773 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6774 teststring=
6775 # Add a significant safety factor because C++ compilers can tack on
6776 # massive amounts of additional arguments before passing them to the
6777 # linker. It appears as though 1/2 is a usable value.
6778 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6779 fi
6780 ;;
6781 esac
6782
6783 fi
6784
6785 if test -n $lt_cv_sys_max_cmd_len ; then
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6787 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6788 else
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6790 $as_echo "none" >&6; }
6791 fi
6792 max_cmd_len=$lt_cv_sys_max_cmd_len
6793
6794
6795
6796
6797
6798
6799 : ${CP="cp -f"}
6800 : ${MV="mv -f"}
6801 : ${RM="rm -f"}
6802
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6804 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6805 # Try some XSI features
6806 xsi_shell=no
6807 ( _lt_dummy="a/b/c"
6808 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6809 = c,a/b,, \
6810 && eval 'test $(( 1 + 1 )) -eq 2 \
6811 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6812 && xsi_shell=yes
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6814 $as_echo "$xsi_shell" >&6; }
6815
6816
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6818 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6819 lt_shell_append=no
6820 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6821 >/dev/null 2>&1 \
6822 && lt_shell_append=yes
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6824 $as_echo "$lt_shell_append" >&6; }
6825
6826
6827 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6828 lt_unset=unset
6829 else
6830 lt_unset=false
6831 fi
6832
6833
6834
6835
6836
6837 # test EBCDIC or ASCII
6838 case `echo X|tr X '\101'` in
6839 A) # ASCII based system
6840 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6841 lt_SP2NL='tr \040 \012'
6842 lt_NL2SP='tr \015\012 \040\040'
6843 ;;
6844 *) # EBCDIC based system
6845 lt_SP2NL='tr \100 \n'
6846 lt_NL2SP='tr \r\n \100\100'
6847 ;;
6848 esac
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6859 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6860 if ${lt_cv_ld_reload_flag+:} false; then :
6861 $as_echo_n "(cached) " >&6
6862 else
6863 lt_cv_ld_reload_flag='-r'
6864 fi
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6866 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6867 reload_flag=$lt_cv_ld_reload_flag
6868 case $reload_flag in
6869 "" | " "*) ;;
6870 *) reload_flag=" $reload_flag" ;;
6871 esac
6872 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6873 case $host_os in
6874 darwin*)
6875 if test "$GCC" = yes; then
6876 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6877 else
6878 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6879 fi
6880 ;;
6881 esac
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891 if test -n "$ac_tool_prefix"; then
6892 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6893 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895 $as_echo_n "checking for $ac_word... " >&6; }
6896 if ${ac_cv_prog_OBJDUMP+:} false; then :
6897 $as_echo_n "(cached) " >&6
6898 else
6899 if test -n "$OBJDUMP"; then
6900 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6901 else
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 for as_dir in $PATH
6904 do
6905 IFS=$as_save_IFS
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6909 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6911 break 2
6912 fi
6913 done
6914 done
6915 IFS=$as_save_IFS
6916
6917 fi
6918 fi
6919 OBJDUMP=$ac_cv_prog_OBJDUMP
6920 if test -n "$OBJDUMP"; then
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6922 $as_echo "$OBJDUMP" >&6; }
6923 else
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925 $as_echo "no" >&6; }
6926 fi
6927
6928
6929 fi
6930 if test -z "$ac_cv_prog_OBJDUMP"; then
6931 ac_ct_OBJDUMP=$OBJDUMP
6932 # Extract the first word of "objdump", so it can be a program name with args.
6933 set dummy objdump; ac_word=$2
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 $as_echo_n "checking for $ac_word... " >&6; }
6936 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6937 $as_echo_n "(cached) " >&6
6938 else
6939 if test -n "$ac_ct_OBJDUMP"; then
6940 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6941 else
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6944 do
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6949 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 break 2
6952 fi
6953 done
6954 done
6955 IFS=$as_save_IFS
6956
6957 fi
6958 fi
6959 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6960 if test -n "$ac_ct_OBJDUMP"; then
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6962 $as_echo "$ac_ct_OBJDUMP" >&6; }
6963 else
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965 $as_echo "no" >&6; }
6966 fi
6967
6968 if test "x$ac_ct_OBJDUMP" = x; then
6969 OBJDUMP="false"
6970 else
6971 case $cross_compiling:$ac_tool_warned in
6972 yes:)
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6975 ac_tool_warned=yes ;;
6976 esac
6977 OBJDUMP=$ac_ct_OBJDUMP
6978 fi
6979 else
6980 OBJDUMP="$ac_cv_prog_OBJDUMP"
6981 fi
6982
6983 test -z "$OBJDUMP" && OBJDUMP=objdump
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6994 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6995 if ${lt_cv_deplibs_check_method+:} false; then :
6996 $as_echo_n "(cached) " >&6
6997 else
6998 lt_cv_file_magic_cmd='$MAGIC_CMD'
6999 lt_cv_file_magic_test_file=
7000 lt_cv_deplibs_check_method='unknown'
7001 # Need to set the preceding variable on all platforms that support
7002 # interlibrary dependencies.
7003 # 'none' -- dependencies not supported.
7004 # `unknown' -- same as none, but documents that we really don't know.
7005 # 'pass_all' -- all dependencies passed with no checks.
7006 # 'test_compile' -- check by making test program.
7007 # 'file_magic [[regex]]' -- check by looking for files in library path
7008 # which responds to the $file_magic_cmd with a given extended regex.
7009 # If you have `file' or equivalent on your system and you're not sure
7010 # whether `pass_all' will *always* work, you probably want this one.
7011
7012 case $host_os in
7013 aix[4-9]*)
7014 lt_cv_deplibs_check_method=pass_all
7015 ;;
7016
7017 beos*)
7018 lt_cv_deplibs_check_method=pass_all
7019 ;;
7020
7021 bsdi[45]*)
7022 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7023 lt_cv_file_magic_cmd='/usr/bin/file -L'
7024 lt_cv_file_magic_test_file=/shlib/libc.so
7025 ;;
7026
7027 cygwin*)
7028 # func_win32_libid is a shell function defined in ltmain.sh
7029 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7030 lt_cv_file_magic_cmd='func_win32_libid'
7031 ;;
7032
7033 mingw* | pw32*)
7034 # Base MSYS/MinGW do not provide the 'file' command needed by
7035 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7036 # unless we find 'file', for example because we are cross-compiling.
7037 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7038 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7039 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7040 lt_cv_file_magic_cmd='func_win32_libid'
7041 else
7042 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7043 lt_cv_file_magic_cmd='$OBJDUMP -f'
7044 fi
7045 ;;
7046
7047 cegcc*)
7048 # use the weaker test based on 'objdump'. See mingw*.
7049 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7050 lt_cv_file_magic_cmd='$OBJDUMP -f'
7051 ;;
7052
7053 darwin* | rhapsody*)
7054 lt_cv_deplibs_check_method=pass_all
7055 ;;
7056
7057 freebsd* | dragonfly*)
7058 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7059 case $host_cpu in
7060 i*86 )
7061 # Not sure whether the presence of OpenBSD here was a mistake.
7062 # Let's accept both of them until this is cleared up.
7063 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7064 lt_cv_file_magic_cmd=/usr/bin/file
7065 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7066 ;;
7067 esac
7068 else
7069 lt_cv_deplibs_check_method=pass_all
7070 fi
7071 ;;
7072
7073 gnu*)
7074 lt_cv_deplibs_check_method=pass_all
7075 ;;
7076
7077 haiku*)
7078 lt_cv_deplibs_check_method=pass_all
7079 ;;
7080
7081 hpux10.20* | hpux11*)
7082 lt_cv_file_magic_cmd=/usr/bin/file
7083 case $host_cpu in
7084 ia64*)
7085 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7086 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7087 ;;
7088 hppa*64*)
7089 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]'
7090 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7091 ;;
7092 *)
7093 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7094 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7095 ;;
7096 esac
7097 ;;
7098
7099 interix[3-9]*)
7100 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7101 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7102 ;;
7103
7104 irix5* | irix6* | nonstopux*)
7105 case $LD in
7106 *-32|*"-32 ") libmagic=32-bit;;
7107 *-n32|*"-n32 ") libmagic=N32;;
7108 *-64|*"-64 ") libmagic=64-bit;;
7109 *) libmagic=never-match;;
7110 esac
7111 lt_cv_deplibs_check_method=pass_all
7112 ;;
7113
7114 # This must be Linux ELF.
7115 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7116 lt_cv_deplibs_check_method=pass_all
7117 ;;
7118
7119 netbsd*)
7120 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7121 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7122 else
7123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7124 fi
7125 ;;
7126
7127 newos6*)
7128 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7129 lt_cv_file_magic_cmd=/usr/bin/file
7130 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7131 ;;
7132
7133 *nto* | *qnx*)
7134 lt_cv_deplibs_check_method=pass_all
7135 ;;
7136
7137 openbsd*)
7138 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7139 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7140 else
7141 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7142 fi
7143 ;;
7144
7145 osf3* | osf4* | osf5*)
7146 lt_cv_deplibs_check_method=pass_all
7147 ;;
7148
7149 rdos*)
7150 lt_cv_deplibs_check_method=pass_all
7151 ;;
7152
7153 solaris*)
7154 lt_cv_deplibs_check_method=pass_all
7155 ;;
7156
7157 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7158 lt_cv_deplibs_check_method=pass_all
7159 ;;
7160
7161 sysv4 | sysv4.3*)
7162 case $host_vendor in
7163 motorola)
7164 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]'
7165 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7166 ;;
7167 ncr)
7168 lt_cv_deplibs_check_method=pass_all
7169 ;;
7170 sequent)
7171 lt_cv_file_magic_cmd='/bin/file'
7172 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7173 ;;
7174 sni)
7175 lt_cv_file_magic_cmd='/bin/file'
7176 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7177 lt_cv_file_magic_test_file=/lib/libc.so
7178 ;;
7179 siemens)
7180 lt_cv_deplibs_check_method=pass_all
7181 ;;
7182 pc)
7183 lt_cv_deplibs_check_method=pass_all
7184 ;;
7185 esac
7186 ;;
7187
7188 tpf*)
7189 lt_cv_deplibs_check_method=pass_all
7190 ;;
7191 esac
7192
7193 fi
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7195 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7196 file_magic_cmd=$lt_cv_file_magic_cmd
7197 deplibs_check_method=$lt_cv_deplibs_check_method
7198 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211 plugin_option=
7212 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
7213 for plugin in $plugin_names; do
7214 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
7215 if test x$plugin_so = x$plugin; then
7216 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
7217 fi
7218 if test x$plugin_so != x$plugin; then
7219 plugin_option="--plugin $plugin_so"
7220 break
7221 fi
7222 done
7223
7224 if test -n "$ac_tool_prefix"; then
7225 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7226 set dummy ${ac_tool_prefix}ar; ac_word=$2
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7228 $as_echo_n "checking for $ac_word... " >&6; }
7229 if ${ac_cv_prog_AR+:} false; then :
7230 $as_echo_n "(cached) " >&6
7231 else
7232 if test -n "$AR"; then
7233 ac_cv_prog_AR="$AR" # Let the user override the test.
7234 else
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 for as_dir in $PATH
7237 do
7238 IFS=$as_save_IFS
7239 test -z "$as_dir" && as_dir=.
7240 for ac_exec_ext in '' $ac_executable_extensions; do
7241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7242 ac_cv_prog_AR="${ac_tool_prefix}ar"
7243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7244 break 2
7245 fi
7246 done
7247 done
7248 IFS=$as_save_IFS
7249
7250 fi
7251 fi
7252 AR=$ac_cv_prog_AR
7253 if test -n "$AR"; then
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7255 $as_echo "$AR" >&6; }
7256 else
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258 $as_echo "no" >&6; }
7259 fi
7260
7261
7262 fi
7263 if test -z "$ac_cv_prog_AR"; then
7264 ac_ct_AR=$AR
7265 # Extract the first word of "ar", so it can be a program name with args.
7266 set dummy ar; ac_word=$2
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7268 $as_echo_n "checking for $ac_word... " >&6; }
7269 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7270 $as_echo_n "(cached) " >&6
7271 else
7272 if test -n "$ac_ct_AR"; then
7273 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7274 else
7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 for as_dir in $PATH
7277 do
7278 IFS=$as_save_IFS
7279 test -z "$as_dir" && as_dir=.
7280 for ac_exec_ext in '' $ac_executable_extensions; do
7281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7282 ac_cv_prog_ac_ct_AR="ar"
7283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7284 break 2
7285 fi
7286 done
7287 done
7288 IFS=$as_save_IFS
7289
7290 fi
7291 fi
7292 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7293 if test -n "$ac_ct_AR"; then
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7295 $as_echo "$ac_ct_AR" >&6; }
7296 else
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7298 $as_echo "no" >&6; }
7299 fi
7300
7301 if test "x$ac_ct_AR" = x; then
7302 AR="false"
7303 else
7304 case $cross_compiling:$ac_tool_warned in
7305 yes:)
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7308 ac_tool_warned=yes ;;
7309 esac
7310 AR=$ac_ct_AR
7311 fi
7312 else
7313 AR="$ac_cv_prog_AR"
7314 fi
7315
7316 test -z "$AR" && AR=ar
7317 if test -n "$plugin_option"; then
7318 if $AR --help 2>&1 | grep -q "\--plugin"; then
7319 touch conftest.c
7320 $AR $plugin_option rc conftest.a conftest.c
7321 if test "$?" != 0; then
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
7323 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
7324 else
7325 AR="$AR $plugin_option"
7326 fi
7327 rm -f conftest.*
7328 fi
7329 fi
7330 test -z "$AR_FLAGS" && AR_FLAGS=cru
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342 if test -n "$ac_tool_prefix"; then
7343 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7344 set dummy ${ac_tool_prefix}strip; ac_word=$2
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7346 $as_echo_n "checking for $ac_word... " >&6; }
7347 if ${ac_cv_prog_STRIP+:} false; then :
7348 $as_echo_n "(cached) " >&6
7349 else
7350 if test -n "$STRIP"; then
7351 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7352 else
7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 for as_dir in $PATH
7355 do
7356 IFS=$as_save_IFS
7357 test -z "$as_dir" && as_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7360 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 break 2
7363 fi
7364 done
7365 done
7366 IFS=$as_save_IFS
7367
7368 fi
7369 fi
7370 STRIP=$ac_cv_prog_STRIP
7371 if test -n "$STRIP"; then
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7373 $as_echo "$STRIP" >&6; }
7374 else
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7376 $as_echo "no" >&6; }
7377 fi
7378
7379
7380 fi
7381 if test -z "$ac_cv_prog_STRIP"; then
7382 ac_ct_STRIP=$STRIP
7383 # Extract the first word of "strip", so it can be a program name with args.
7384 set dummy strip; ac_word=$2
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7386 $as_echo_n "checking for $ac_word... " >&6; }
7387 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7388 $as_echo_n "(cached) " >&6
7389 else
7390 if test -n "$ac_ct_STRIP"; then
7391 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7392 else
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 for as_dir in $PATH
7395 do
7396 IFS=$as_save_IFS
7397 test -z "$as_dir" && as_dir=.
7398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7400 ac_cv_prog_ac_ct_STRIP="strip"
7401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7402 break 2
7403 fi
7404 done
7405 done
7406 IFS=$as_save_IFS
7407
7408 fi
7409 fi
7410 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7411 if test -n "$ac_ct_STRIP"; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7413 $as_echo "$ac_ct_STRIP" >&6; }
7414 else
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7416 $as_echo "no" >&6; }
7417 fi
7418
7419 if test "x$ac_ct_STRIP" = x; then
7420 STRIP=":"
7421 else
7422 case $cross_compiling:$ac_tool_warned in
7423 yes:)
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7426 ac_tool_warned=yes ;;
7427 esac
7428 STRIP=$ac_ct_STRIP
7429 fi
7430 else
7431 STRIP="$ac_cv_prog_STRIP"
7432 fi
7433
7434 test -z "$STRIP" && STRIP=:
7435
7436
7437
7438
7439
7440
7441 if test -n "$ac_tool_prefix"; then
7442 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7443 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if ${ac_cv_prog_RANLIB+:} false; then :
7447 $as_echo_n "(cached) " >&6
7448 else
7449 if test -n "$RANLIB"; then
7450 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7451 else
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $PATH
7454 do
7455 IFS=$as_save_IFS
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7459 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 break 2
7462 fi
7463 done
7464 done
7465 IFS=$as_save_IFS
7466
7467 fi
7468 fi
7469 RANLIB=$ac_cv_prog_RANLIB
7470 if test -n "$RANLIB"; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7472 $as_echo "$RANLIB" >&6; }
7473 else
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7476 fi
7477
7478
7479 fi
7480 if test -z "$ac_cv_prog_RANLIB"; then
7481 ac_ct_RANLIB=$RANLIB
7482 # Extract the first word of "ranlib", so it can be a program name with args.
7483 set dummy ranlib; ac_word=$2
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7485 $as_echo_n "checking for $ac_word... " >&6; }
7486 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7487 $as_echo_n "(cached) " >&6
7488 else
7489 if test -n "$ac_ct_RANLIB"; then
7490 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7491 else
7492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493 for as_dir in $PATH
7494 do
7495 IFS=$as_save_IFS
7496 test -z "$as_dir" && as_dir=.
7497 for ac_exec_ext in '' $ac_executable_extensions; do
7498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7499 ac_cv_prog_ac_ct_RANLIB="ranlib"
7500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7501 break 2
7502 fi
7503 done
7504 done
7505 IFS=$as_save_IFS
7506
7507 fi
7508 fi
7509 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7510 if test -n "$ac_ct_RANLIB"; then
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7512 $as_echo "$ac_ct_RANLIB" >&6; }
7513 else
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515 $as_echo "no" >&6; }
7516 fi
7517
7518 if test "x$ac_ct_RANLIB" = x; then
7519 RANLIB=":"
7520 else
7521 case $cross_compiling:$ac_tool_warned in
7522 yes:)
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7525 ac_tool_warned=yes ;;
7526 esac
7527 RANLIB=$ac_ct_RANLIB
7528 fi
7529 else
7530 RANLIB="$ac_cv_prog_RANLIB"
7531 fi
7532
7533 test -z "$RANLIB" && RANLIB=:
7534 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7535 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7536 RANLIB="$RANLIB $plugin_option"
7537 fi
7538 fi
7539
7540
7541
7542
7543
7544
7545 # Determine commands to create old-style static archives.
7546 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7547 old_postinstall_cmds='chmod 644 $oldlib'
7548 old_postuninstall_cmds=
7549
7550 if test -n "$RANLIB"; then
7551 case $host_os in
7552 openbsd*)
7553 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7554 ;;
7555 *)
7556 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7557 ;;
7558 esac
7559 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7560 fi
7561
7562 case $host_os in
7563 darwin*)
7564 lock_old_archive_extraction=yes ;;
7565 *)
7566 lock_old_archive_extraction=no ;;
7567 esac
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607 # If no C compiler was specified, use CC.
7608 LTCC=${LTCC-"$CC"}
7609
7610 # If no C compiler flags were specified, use CFLAGS.
7611 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7612
7613 # Allow CC to be a program name with arguments.
7614 compiler=$CC
7615
7616
7617 # Check for command to grab the raw symbol name followed by C symbol from nm.
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7619 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7620 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7621 $as_echo_n "(cached) " >&6
7622 else
7623
7624 # These are sane defaults that work on at least a few old systems.
7625 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7626
7627 # Character class describing NM global symbol codes.
7628 symcode='[BCDEGRST]'
7629
7630 # Regexp to match symbols that can be accessed directly from C.
7631 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7632
7633 # Define system-specific variables.
7634 case $host_os in
7635 aix*)
7636 symcode='[BCDT]'
7637 ;;
7638 cygwin* | mingw* | pw32* | cegcc*)
7639 symcode='[ABCDGISTW]'
7640 ;;
7641 hpux*)
7642 if test "$host_cpu" = ia64; then
7643 symcode='[ABCDEGRST]'
7644 fi
7645 ;;
7646 irix* | nonstopux*)
7647 symcode='[BCDEGRST]'
7648 ;;
7649 osf*)
7650 symcode='[BCDEGQRST]'
7651 ;;
7652 solaris*)
7653 symcode='[BCDRT]'
7654 ;;
7655 sco3.2v5*)
7656 symcode='[DT]'
7657 ;;
7658 sysv4.2uw2*)
7659 symcode='[DT]'
7660 ;;
7661 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7662 symcode='[ABDT]'
7663 ;;
7664 sysv4)
7665 symcode='[DFNSTU]'
7666 ;;
7667 esac
7668
7669 # If we're using GNU nm, then use its standard symbol codes.
7670 case `$NM -V 2>&1` in
7671 *GNU* | *'with BFD'*)
7672 symcode='[ABCDGIRSTW]' ;;
7673 esac
7674
7675 # Transform an extracted symbol line into a proper C declaration.
7676 # Some systems (esp. on ia64) link data and code symbols differently,
7677 # so use this general approach.
7678 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7679
7680 # Transform an extracted symbol line into symbol name and symbol address
7681 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7682 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'"
7683
7684 # Handle CRLF in mingw tool chain
7685 opt_cr=
7686 case $build_os in
7687 mingw*)
7688 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7689 ;;
7690 esac
7691
7692 # Try without a prefix underscore, then with it.
7693 for ac_symprfx in "" "_"; do
7694
7695 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7696 symxfrm="\\1 $ac_symprfx\\2 \\2"
7697
7698 # Write the raw and C identifiers.
7699 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7700 # Fake it for dumpbin and say T for any non-static function
7701 # and D for any global variable.
7702 # Also find C++ and __fastcall symbols from MSVC++,
7703 # which start with @ or ?.
7704 lt_cv_sys_global_symbol_pipe="$AWK '"\
7705 " {last_section=section; section=\$ 3};"\
7706 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7707 " \$ 0!~/External *\|/{next};"\
7708 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7709 " {if(hide[section]) next};"\
7710 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7711 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7712 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7713 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7714 " ' prfx=^$ac_symprfx"
7715 else
7716 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7717 fi
7718
7719 # Check to see that the pipe works correctly.
7720 pipe_works=no
7721
7722 rm -f conftest*
7723 cat > conftest.$ac_ext <<_LT_EOF
7724 #ifdef __cplusplus
7725 extern "C" {
7726 #endif
7727 char nm_test_var;
7728 void nm_test_func(void);
7729 void nm_test_func(void){}
7730 #ifdef __cplusplus
7731 }
7732 #endif
7733 int main(){nm_test_var='a';nm_test_func();return(0);}
7734 _LT_EOF
7735
7736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7737 (eval $ac_compile) 2>&5
7738 ac_status=$?
7739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7740 test $ac_status = 0; }; then
7741 # Now try to grab the symbols.
7742 nlist=conftest.nm
7743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7744 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7745 ac_status=$?
7746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7747 test $ac_status = 0; } && test -s "$nlist"; then
7748 # Try sorting and uniquifying the output.
7749 if sort "$nlist" | uniq > "$nlist"T; then
7750 mv -f "$nlist"T "$nlist"
7751 else
7752 rm -f "$nlist"T
7753 fi
7754
7755 # Make sure that we snagged all the symbols we need.
7756 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7757 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7758 cat <<_LT_EOF > conftest.$ac_ext
7759 #ifdef __cplusplus
7760 extern "C" {
7761 #endif
7762
7763 _LT_EOF
7764 # Now generate the symbol file.
7765 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7766
7767 cat <<_LT_EOF >> conftest.$ac_ext
7768
7769 /* The mapping between symbol names and symbols. */
7770 const struct {
7771 const char *name;
7772 void *address;
7773 }
7774 lt__PROGRAM__LTX_preloaded_symbols[] =
7775 {
7776 { "@PROGRAM@", (void *) 0 },
7777 _LT_EOF
7778 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7779 cat <<\_LT_EOF >> conftest.$ac_ext
7780 {0, (void *) 0}
7781 };
7782
7783 /* This works around a problem in FreeBSD linker */
7784 #ifdef FREEBSD_WORKAROUND
7785 static const void *lt_preloaded_setup() {
7786 return lt__PROGRAM__LTX_preloaded_symbols;
7787 }
7788 #endif
7789
7790 #ifdef __cplusplus
7791 }
7792 #endif
7793 _LT_EOF
7794 # Now try linking the two files.
7795 mv conftest.$ac_objext conftstm.$ac_objext
7796 lt_save_LIBS="$LIBS"
7797 lt_save_CFLAGS="$CFLAGS"
7798 LIBS="conftstm.$ac_objext"
7799 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7801 (eval $ac_link) 2>&5
7802 ac_status=$?
7803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7804 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7805 pipe_works=yes
7806 fi
7807 LIBS="$lt_save_LIBS"
7808 CFLAGS="$lt_save_CFLAGS"
7809 else
7810 echo "cannot find nm_test_func in $nlist" >&5
7811 fi
7812 else
7813 echo "cannot find nm_test_var in $nlist" >&5
7814 fi
7815 else
7816 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7817 fi
7818 else
7819 echo "$progname: failed program was:" >&5
7820 cat conftest.$ac_ext >&5
7821 fi
7822 rm -rf conftest* conftst*
7823
7824 # Do not use the global_symbol_pipe unless it works.
7825 if test "$pipe_works" = yes; then
7826 break
7827 else
7828 lt_cv_sys_global_symbol_pipe=
7829 fi
7830 done
7831
7832 fi
7833
7834 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7835 lt_cv_sys_global_symbol_to_cdecl=
7836 fi
7837 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7839 $as_echo "failed" >&6; }
7840 else
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7842 $as_echo "ok" >&6; }
7843 fi
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866 # Check whether --enable-libtool-lock was given.
7867 if test "${enable_libtool_lock+set}" = set; then :
7868 enableval=$enable_libtool_lock;
7869 fi
7870
7871 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7872
7873 # Some flags need to be propagated to the compiler or linker for good
7874 # libtool support.
7875 case $host in
7876 ia64-*-hpux*)
7877 # Find out which ABI we are using.
7878 echo 'int i;' > conftest.$ac_ext
7879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7880 (eval $ac_compile) 2>&5
7881 ac_status=$?
7882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7883 test $ac_status = 0; }; then
7884 case `/usr/bin/file conftest.$ac_objext` in
7885 *ELF-32*)
7886 HPUX_IA64_MODE="32"
7887 ;;
7888 *ELF-64*)
7889 HPUX_IA64_MODE="64"
7890 ;;
7891 esac
7892 fi
7893 rm -rf conftest*
7894 ;;
7895 *-*-irix6*)
7896 # Find out which ABI we are using.
7897 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7899 (eval $ac_compile) 2>&5
7900 ac_status=$?
7901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7902 test $ac_status = 0; }; then
7903 if test "$lt_cv_prog_gnu_ld" = yes; then
7904 case `/usr/bin/file conftest.$ac_objext` in
7905 *32-bit*)
7906 LD="${LD-ld} -melf32bsmip"
7907 ;;
7908 *N32*)
7909 LD="${LD-ld} -melf32bmipn32"
7910 ;;
7911 *64-bit*)
7912 LD="${LD-ld} -melf64bmip"
7913 ;;
7914 esac
7915 else
7916 case `/usr/bin/file conftest.$ac_objext` in
7917 *32-bit*)
7918 LD="${LD-ld} -32"
7919 ;;
7920 *N32*)
7921 LD="${LD-ld} -n32"
7922 ;;
7923 *64-bit*)
7924 LD="${LD-ld} -64"
7925 ;;
7926 esac
7927 fi
7928 fi
7929 rm -rf conftest*
7930 ;;
7931
7932 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7933 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7934 # Find out which ABI we are using.
7935 echo 'int i;' > conftest.$ac_ext
7936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7937 (eval $ac_compile) 2>&5
7938 ac_status=$?
7939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7940 test $ac_status = 0; }; then
7941 case `/usr/bin/file conftest.o` in
7942 *32-bit*)
7943 case $host in
7944 x86_64-*kfreebsd*-gnu)
7945 LD="${LD-ld} -m elf_i386_fbsd"
7946 ;;
7947 x86_64-*linux*)
7948 case `/usr/bin/file conftest.o` in
7949 *x86-64*)
7950 LD="${LD-ld} -m elf32_x86_64"
7951 ;;
7952 *)
7953 LD="${LD-ld} -m elf_i386"
7954 ;;
7955 esac
7956 ;;
7957 powerpc64le-*linux*)
7958 LD="${LD-ld} -m elf32lppclinux"
7959 ;;
7960 powerpc64-*linux*)
7961 LD="${LD-ld} -m elf32ppclinux"
7962 ;;
7963 s390x-*linux*)
7964 LD="${LD-ld} -m elf_s390"
7965 ;;
7966 sparc64-*linux*)
7967 LD="${LD-ld} -m elf32_sparc"
7968 ;;
7969 esac
7970 ;;
7971 *64-bit*)
7972 case $host in
7973 x86_64-*kfreebsd*-gnu)
7974 LD="${LD-ld} -m elf_x86_64_fbsd"
7975 ;;
7976 x86_64-*linux*)
7977 LD="${LD-ld} -m elf_x86_64"
7978 ;;
7979 powerpcle-*linux*)
7980 LD="${LD-ld} -m elf64lppc"
7981 ;;
7982 powerpc-*linux*)
7983 LD="${LD-ld} -m elf64ppc"
7984 ;;
7985 s390*-*linux*|s390*-*tpf*)
7986 LD="${LD-ld} -m elf64_s390"
7987 ;;
7988 sparc*-*linux*)
7989 LD="${LD-ld} -m elf64_sparc"
7990 ;;
7991 esac
7992 ;;
7993 esac
7994 fi
7995 rm -rf conftest*
7996 ;;
7997
7998 *-*-sco3.2v5*)
7999 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8000 SAVE_CFLAGS="$CFLAGS"
8001 CFLAGS="$CFLAGS -belf"
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8003 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8004 if ${lt_cv_cc_needs_belf+:} false; then :
8005 $as_echo_n "(cached) " >&6
8006 else
8007 ac_ext=c
8008 ac_cpp='$CPP $CPPFLAGS'
8009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8012
8013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014 /* end confdefs.h. */
8015
8016 int
8017 main ()
8018 {
8019
8020 ;
8021 return 0;
8022 }
8023 _ACEOF
8024 if ac_fn_c_try_link "$LINENO"; then :
8025 lt_cv_cc_needs_belf=yes
8026 else
8027 lt_cv_cc_needs_belf=no
8028 fi
8029 rm -f core conftest.err conftest.$ac_objext \
8030 conftest$ac_exeext conftest.$ac_ext
8031 ac_ext=c
8032 ac_cpp='$CPP $CPPFLAGS'
8033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8036
8037 fi
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8039 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8040 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8041 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8042 CFLAGS="$SAVE_CFLAGS"
8043 fi
8044 ;;
8045 sparc*-*solaris*)
8046 # Find out which ABI we are using.
8047 echo 'int i;' > conftest.$ac_ext
8048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8049 (eval $ac_compile) 2>&5
8050 ac_status=$?
8051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8052 test $ac_status = 0; }; then
8053 case `/usr/bin/file conftest.o` in
8054 *64-bit*)
8055 case $lt_cv_prog_gnu_ld in
8056 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8057 *)
8058 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8059 LD="${LD-ld} -64"
8060 fi
8061 ;;
8062 esac
8063 ;;
8064 esac
8065 fi
8066 rm -rf conftest*
8067 ;;
8068 esac
8069
8070 need_locks="$enable_libtool_lock"
8071
8072
8073 case $host_os in
8074 rhapsody* | darwin*)
8075 if test -n "$ac_tool_prefix"; then
8076 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8077 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8079 $as_echo_n "checking for $ac_word... " >&6; }
8080 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8081 $as_echo_n "(cached) " >&6
8082 else
8083 if test -n "$DSYMUTIL"; then
8084 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8085 else
8086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8087 for as_dir in $PATH
8088 do
8089 IFS=$as_save_IFS
8090 test -z "$as_dir" && as_dir=.
8091 for ac_exec_ext in '' $ac_executable_extensions; do
8092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8093 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8095 break 2
8096 fi
8097 done
8098 done
8099 IFS=$as_save_IFS
8100
8101 fi
8102 fi
8103 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8104 if test -n "$DSYMUTIL"; then
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8106 $as_echo "$DSYMUTIL" >&6; }
8107 else
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109 $as_echo "no" >&6; }
8110 fi
8111
8112
8113 fi
8114 if test -z "$ac_cv_prog_DSYMUTIL"; then
8115 ac_ct_DSYMUTIL=$DSYMUTIL
8116 # Extract the first word of "dsymutil", so it can be a program name with args.
8117 set dummy dsymutil; ac_word=$2
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8119 $as_echo_n "checking for $ac_word... " >&6; }
8120 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8121 $as_echo_n "(cached) " >&6
8122 else
8123 if test -n "$ac_ct_DSYMUTIL"; then
8124 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8125 else
8126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127 for as_dir in $PATH
8128 do
8129 IFS=$as_save_IFS
8130 test -z "$as_dir" && as_dir=.
8131 for ac_exec_ext in '' $ac_executable_extensions; do
8132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8133 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8135 break 2
8136 fi
8137 done
8138 done
8139 IFS=$as_save_IFS
8140
8141 fi
8142 fi
8143 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8144 if test -n "$ac_ct_DSYMUTIL"; then
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8146 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8147 else
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149 $as_echo "no" >&6; }
8150 fi
8151
8152 if test "x$ac_ct_DSYMUTIL" = x; then
8153 DSYMUTIL=":"
8154 else
8155 case $cross_compiling:$ac_tool_warned in
8156 yes:)
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8159 ac_tool_warned=yes ;;
8160 esac
8161 DSYMUTIL=$ac_ct_DSYMUTIL
8162 fi
8163 else
8164 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8165 fi
8166
8167 if test -n "$ac_tool_prefix"; then
8168 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8169 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8171 $as_echo_n "checking for $ac_word... " >&6; }
8172 if ${ac_cv_prog_NMEDIT+:} false; then :
8173 $as_echo_n "(cached) " >&6
8174 else
8175 if test -n "$NMEDIT"; then
8176 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8177 else
8178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8179 for as_dir in $PATH
8180 do
8181 IFS=$as_save_IFS
8182 test -z "$as_dir" && as_dir=.
8183 for ac_exec_ext in '' $ac_executable_extensions; do
8184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8185 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8187 break 2
8188 fi
8189 done
8190 done
8191 IFS=$as_save_IFS
8192
8193 fi
8194 fi
8195 NMEDIT=$ac_cv_prog_NMEDIT
8196 if test -n "$NMEDIT"; then
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8198 $as_echo "$NMEDIT" >&6; }
8199 else
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8201 $as_echo "no" >&6; }
8202 fi
8203
8204
8205 fi
8206 if test -z "$ac_cv_prog_NMEDIT"; then
8207 ac_ct_NMEDIT=$NMEDIT
8208 # Extract the first word of "nmedit", so it can be a program name with args.
8209 set dummy nmedit; ac_word=$2
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8211 $as_echo_n "checking for $ac_word... " >&6; }
8212 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8213 $as_echo_n "(cached) " >&6
8214 else
8215 if test -n "$ac_ct_NMEDIT"; then
8216 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8217 else
8218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219 for as_dir in $PATH
8220 do
8221 IFS=$as_save_IFS
8222 test -z "$as_dir" && as_dir=.
8223 for ac_exec_ext in '' $ac_executable_extensions; do
8224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8225 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8227 break 2
8228 fi
8229 done
8230 done
8231 IFS=$as_save_IFS
8232
8233 fi
8234 fi
8235 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8236 if test -n "$ac_ct_NMEDIT"; then
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8238 $as_echo "$ac_ct_NMEDIT" >&6; }
8239 else
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8241 $as_echo "no" >&6; }
8242 fi
8243
8244 if test "x$ac_ct_NMEDIT" = x; then
8245 NMEDIT=":"
8246 else
8247 case $cross_compiling:$ac_tool_warned in
8248 yes:)
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8251 ac_tool_warned=yes ;;
8252 esac
8253 NMEDIT=$ac_ct_NMEDIT
8254 fi
8255 else
8256 NMEDIT="$ac_cv_prog_NMEDIT"
8257 fi
8258
8259 if test -n "$ac_tool_prefix"; then
8260 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8261 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8263 $as_echo_n "checking for $ac_word... " >&6; }
8264 if ${ac_cv_prog_LIPO+:} false; then :
8265 $as_echo_n "(cached) " >&6
8266 else
8267 if test -n "$LIPO"; then
8268 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8269 else
8270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271 for as_dir in $PATH
8272 do
8273 IFS=$as_save_IFS
8274 test -z "$as_dir" && as_dir=.
8275 for ac_exec_ext in '' $ac_executable_extensions; do
8276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8277 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8279 break 2
8280 fi
8281 done
8282 done
8283 IFS=$as_save_IFS
8284
8285 fi
8286 fi
8287 LIPO=$ac_cv_prog_LIPO
8288 if test -n "$LIPO"; then
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8290 $as_echo "$LIPO" >&6; }
8291 else
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 $as_echo "no" >&6; }
8294 fi
8295
8296
8297 fi
8298 if test -z "$ac_cv_prog_LIPO"; then
8299 ac_ct_LIPO=$LIPO
8300 # Extract the first word of "lipo", so it can be a program name with args.
8301 set dummy lipo; ac_word=$2
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8303 $as_echo_n "checking for $ac_word... " >&6; }
8304 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8305 $as_echo_n "(cached) " >&6
8306 else
8307 if test -n "$ac_ct_LIPO"; then
8308 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8309 else
8310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311 for as_dir in $PATH
8312 do
8313 IFS=$as_save_IFS
8314 test -z "$as_dir" && as_dir=.
8315 for ac_exec_ext in '' $ac_executable_extensions; do
8316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8317 ac_cv_prog_ac_ct_LIPO="lipo"
8318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8319 break 2
8320 fi
8321 done
8322 done
8323 IFS=$as_save_IFS
8324
8325 fi
8326 fi
8327 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8328 if test -n "$ac_ct_LIPO"; then
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8330 $as_echo "$ac_ct_LIPO" >&6; }
8331 else
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8333 $as_echo "no" >&6; }
8334 fi
8335
8336 if test "x$ac_ct_LIPO" = x; then
8337 LIPO=":"
8338 else
8339 case $cross_compiling:$ac_tool_warned in
8340 yes:)
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8343 ac_tool_warned=yes ;;
8344 esac
8345 LIPO=$ac_ct_LIPO
8346 fi
8347 else
8348 LIPO="$ac_cv_prog_LIPO"
8349 fi
8350
8351 if test -n "$ac_tool_prefix"; then
8352 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8353 set dummy ${ac_tool_prefix}otool; ac_word=$2
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8355 $as_echo_n "checking for $ac_word... " >&6; }
8356 if ${ac_cv_prog_OTOOL+:} false; then :
8357 $as_echo_n "(cached) " >&6
8358 else
8359 if test -n "$OTOOL"; then
8360 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8361 else
8362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363 for as_dir in $PATH
8364 do
8365 IFS=$as_save_IFS
8366 test -z "$as_dir" && as_dir=.
8367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8369 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8371 break 2
8372 fi
8373 done
8374 done
8375 IFS=$as_save_IFS
8376
8377 fi
8378 fi
8379 OTOOL=$ac_cv_prog_OTOOL
8380 if test -n "$OTOOL"; then
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8382 $as_echo "$OTOOL" >&6; }
8383 else
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385 $as_echo "no" >&6; }
8386 fi
8387
8388
8389 fi
8390 if test -z "$ac_cv_prog_OTOOL"; then
8391 ac_ct_OTOOL=$OTOOL
8392 # Extract the first word of "otool", so it can be a program name with args.
8393 set dummy otool; ac_word=$2
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8395 $as_echo_n "checking for $ac_word... " >&6; }
8396 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8397 $as_echo_n "(cached) " >&6
8398 else
8399 if test -n "$ac_ct_OTOOL"; then
8400 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8401 else
8402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8403 for as_dir in $PATH
8404 do
8405 IFS=$as_save_IFS
8406 test -z "$as_dir" && as_dir=.
8407 for ac_exec_ext in '' $ac_executable_extensions; do
8408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8409 ac_cv_prog_ac_ct_OTOOL="otool"
8410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8411 break 2
8412 fi
8413 done
8414 done
8415 IFS=$as_save_IFS
8416
8417 fi
8418 fi
8419 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8420 if test -n "$ac_ct_OTOOL"; then
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8422 $as_echo "$ac_ct_OTOOL" >&6; }
8423 else
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8425 $as_echo "no" >&6; }
8426 fi
8427
8428 if test "x$ac_ct_OTOOL" = x; then
8429 OTOOL=":"
8430 else
8431 case $cross_compiling:$ac_tool_warned in
8432 yes:)
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8435 ac_tool_warned=yes ;;
8436 esac
8437 OTOOL=$ac_ct_OTOOL
8438 fi
8439 else
8440 OTOOL="$ac_cv_prog_OTOOL"
8441 fi
8442
8443 if test -n "$ac_tool_prefix"; then
8444 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8445 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8447 $as_echo_n "checking for $ac_word... " >&6; }
8448 if ${ac_cv_prog_OTOOL64+:} false; then :
8449 $as_echo_n "(cached) " >&6
8450 else
8451 if test -n "$OTOOL64"; then
8452 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8453 else
8454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8455 for as_dir in $PATH
8456 do
8457 IFS=$as_save_IFS
8458 test -z "$as_dir" && as_dir=.
8459 for ac_exec_ext in '' $ac_executable_extensions; do
8460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8461 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8463 break 2
8464 fi
8465 done
8466 done
8467 IFS=$as_save_IFS
8468
8469 fi
8470 fi
8471 OTOOL64=$ac_cv_prog_OTOOL64
8472 if test -n "$OTOOL64"; then
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8474 $as_echo "$OTOOL64" >&6; }
8475 else
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8477 $as_echo "no" >&6; }
8478 fi
8479
8480
8481 fi
8482 if test -z "$ac_cv_prog_OTOOL64"; then
8483 ac_ct_OTOOL64=$OTOOL64
8484 # Extract the first word of "otool64", so it can be a program name with args.
8485 set dummy otool64; ac_word=$2
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8487 $as_echo_n "checking for $ac_word... " >&6; }
8488 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8489 $as_echo_n "(cached) " >&6
8490 else
8491 if test -n "$ac_ct_OTOOL64"; then
8492 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8493 else
8494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8495 for as_dir in $PATH
8496 do
8497 IFS=$as_save_IFS
8498 test -z "$as_dir" && as_dir=.
8499 for ac_exec_ext in '' $ac_executable_extensions; do
8500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8501 ac_cv_prog_ac_ct_OTOOL64="otool64"
8502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8503 break 2
8504 fi
8505 done
8506 done
8507 IFS=$as_save_IFS
8508
8509 fi
8510 fi
8511 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8512 if test -n "$ac_ct_OTOOL64"; then
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8514 $as_echo "$ac_ct_OTOOL64" >&6; }
8515 else
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8517 $as_echo "no" >&6; }
8518 fi
8519
8520 if test "x$ac_ct_OTOOL64" = x; then
8521 OTOOL64=":"
8522 else
8523 case $cross_compiling:$ac_tool_warned in
8524 yes:)
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8527 ac_tool_warned=yes ;;
8528 esac
8529 OTOOL64=$ac_ct_OTOOL64
8530 fi
8531 else
8532 OTOOL64="$ac_cv_prog_OTOOL64"
8533 fi
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8562 $as_echo_n "checking for -single_module linker flag... " >&6; }
8563 if ${lt_cv_apple_cc_single_mod+:} false; then :
8564 $as_echo_n "(cached) " >&6
8565 else
8566 lt_cv_apple_cc_single_mod=no
8567 if test -z "${LT_MULTI_MODULE}"; then
8568 # By default we will add the -single_module flag. You can override
8569 # by either setting the environment variable LT_MULTI_MODULE
8570 # non-empty at configure time, or by adding -multi_module to the
8571 # link flags.
8572 rm -rf libconftest.dylib*
8573 echo "int foo(void){return 1;}" > conftest.c
8574 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8575 -dynamiclib -Wl,-single_module conftest.c" >&5
8576 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8577 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8578 _lt_result=$?
8579 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8580 lt_cv_apple_cc_single_mod=yes
8581 else
8582 cat conftest.err >&5
8583 fi
8584 rm -rf libconftest.dylib*
8585 rm -f conftest.*
8586 fi
8587 fi
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8589 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8591 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8592 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8593 $as_echo_n "(cached) " >&6
8594 else
8595 lt_cv_ld_exported_symbols_list=no
8596 save_LDFLAGS=$LDFLAGS
8597 echo "_main" > conftest.sym
8598 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8600 /* end confdefs.h. */
8601
8602 int
8603 main ()
8604 {
8605
8606 ;
8607 return 0;
8608 }
8609 _ACEOF
8610 if ac_fn_c_try_link "$LINENO"; then :
8611 lt_cv_ld_exported_symbols_list=yes
8612 else
8613 lt_cv_ld_exported_symbols_list=no
8614 fi
8615 rm -f core conftest.err conftest.$ac_objext \
8616 conftest$ac_exeext conftest.$ac_ext
8617 LDFLAGS="$save_LDFLAGS"
8618
8619 fi
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8621 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8623 $as_echo_n "checking for -force_load linker flag... " >&6; }
8624 if ${lt_cv_ld_force_load+:} false; then :
8625 $as_echo_n "(cached) " >&6
8626 else
8627 lt_cv_ld_force_load=no
8628 cat > conftest.c << _LT_EOF
8629 int forced_loaded() { return 2;}
8630 _LT_EOF
8631 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8632 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8633 echo "$AR cru libconftest.a conftest.o" >&5
8634 $AR cru libconftest.a conftest.o 2>&5
8635 cat > conftest.c << _LT_EOF
8636 int main() { return 0;}
8637 _LT_EOF
8638 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8639 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8640 _lt_result=$?
8641 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8642 lt_cv_ld_force_load=yes
8643 else
8644 cat conftest.err >&5
8645 fi
8646 rm -f conftest.err libconftest.a conftest conftest.c
8647 rm -rf conftest.dSYM
8648
8649 fi
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8651 $as_echo "$lt_cv_ld_force_load" >&6; }
8652 case $host_os in
8653 rhapsody* | darwin1.[012])
8654 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8655 darwin1.*)
8656 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8657 darwin*) # darwin 5.x on
8658 # if running on 10.5 or later, the deployment target defaults
8659 # to the OS version, if on x86, and 10.4, the deployment
8660 # target defaults to 10.4. Don't you love it?
8661 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8662 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8663 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8664 10.[012][,.]*)
8665 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8666 10.*)
8667 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8668 esac
8669 ;;
8670 esac
8671 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8672 _lt_dar_single_mod='$single_module'
8673 fi
8674 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8675 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8676 else
8677 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8678 fi
8679 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8680 _lt_dsymutil='~$DSYMUTIL $lib || :'
8681 else
8682 _lt_dsymutil=
8683 fi
8684 ;;
8685 esac
8686
8687 for ac_header in dlfcn.h
8688 do :
8689 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8690 "
8691 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8692 cat >>confdefs.h <<_ACEOF
8693 #define HAVE_DLFCN_H 1
8694 _ACEOF
8695
8696 fi
8697
8698 done
8699
8700
8701
8702
8703
8704
8705 # Set options
8706
8707
8708
8709 enable_dlopen=no
8710
8711
8712 enable_win32_dll=no
8713
8714
8715
8716 # Check whether --enable-static was given.
8717 if test "${enable_static+set}" = set; then :
8718 enableval=$enable_static; p=${PACKAGE-default}
8719 case $enableval in
8720 yes) enable_static=yes ;;
8721 no) enable_static=no ;;
8722 *)
8723 enable_static=no
8724 # Look at the argument we got. We use all the common list separators.
8725 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8726 for pkg in $enableval; do
8727 IFS="$lt_save_ifs"
8728 if test "X$pkg" = "X$p"; then
8729 enable_static=yes
8730 fi
8731 done
8732 IFS="$lt_save_ifs"
8733 ;;
8734 esac
8735 else
8736 enable_static=yes
8737 fi
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748 # Check whether --with-pic was given.
8749 if test "${with_pic+set}" = set; then :
8750 withval=$with_pic; pic_mode="$withval"
8751 else
8752 pic_mode=default
8753 fi
8754
8755
8756 test -z "$pic_mode" && pic_mode=default
8757
8758
8759
8760
8761
8762
8763
8764 # Check whether --enable-fast-install was given.
8765 if test "${enable_fast_install+set}" = set; then :
8766 enableval=$enable_fast_install; p=${PACKAGE-default}
8767 case $enableval in
8768 yes) enable_fast_install=yes ;;
8769 no) enable_fast_install=no ;;
8770 *)
8771 enable_fast_install=no
8772 # Look at the argument we got. We use all the common list separators.
8773 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8774 for pkg in $enableval; do
8775 IFS="$lt_save_ifs"
8776 if test "X$pkg" = "X$p"; then
8777 enable_fast_install=yes
8778 fi
8779 done
8780 IFS="$lt_save_ifs"
8781 ;;
8782 esac
8783 else
8784 enable_fast_install=yes
8785 fi
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797 # This can be used to rebuild libtool when needed
8798 LIBTOOL_DEPS="$ltmain"
8799
8800 # Always use our own libtool.
8801 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828 test -z "$LN_S" && LN_S="ln -s"
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843 if test -n "${ZSH_VERSION+set}" ; then
8844 setopt NO_GLOB_SUBST
8845 fi
8846
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8848 $as_echo_n "checking for objdir... " >&6; }
8849 if ${lt_cv_objdir+:} false; then :
8850 $as_echo_n "(cached) " >&6
8851 else
8852 rm -f .libs 2>/dev/null
8853 mkdir .libs 2>/dev/null
8854 if test -d .libs; then
8855 lt_cv_objdir=.libs
8856 else
8857 # MS-DOS does not allow filenames that begin with a dot.
8858 lt_cv_objdir=_libs
8859 fi
8860 rmdir .libs 2>/dev/null
8861 fi
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8863 $as_echo "$lt_cv_objdir" >&6; }
8864 objdir=$lt_cv_objdir
8865
8866
8867
8868
8869
8870 cat >>confdefs.h <<_ACEOF
8871 #define LT_OBJDIR "$lt_cv_objdir/"
8872 _ACEOF
8873
8874
8875
8876
8877 case $host_os in
8878 aix3*)
8879 # AIX sometimes has problems with the GCC collect2 program. For some
8880 # reason, if we set the COLLECT_NAMES environment variable, the problems
8881 # vanish in a puff of smoke.
8882 if test "X${COLLECT_NAMES+set}" != Xset; then
8883 COLLECT_NAMES=
8884 export COLLECT_NAMES
8885 fi
8886 ;;
8887 esac
8888
8889 # Global variables:
8890 ofile=libtool
8891 can_build_shared=yes
8892
8893 # All known linkers require a `.a' archive for static linking (except MSVC,
8894 # which needs '.lib').
8895 libext=a
8896
8897 with_gnu_ld="$lt_cv_prog_gnu_ld"
8898
8899 old_CC="$CC"
8900 old_CFLAGS="$CFLAGS"
8901
8902 # Set sane defaults for various variables
8903 test -z "$CC" && CC=cc
8904 test -z "$LTCC" && LTCC=$CC
8905 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8906 test -z "$LD" && LD=ld
8907 test -z "$ac_objext" && ac_objext=o
8908
8909 for cc_temp in $compiler""; do
8910 case $cc_temp in
8911 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8912 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8913 \-*) ;;
8914 *) break;;
8915 esac
8916 done
8917 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8918
8919
8920 # Only perform the check for file, if the check method requires it
8921 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8922 case $deplibs_check_method in
8923 file_magic*)
8924 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8926 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8927 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8928 $as_echo_n "(cached) " >&6
8929 else
8930 case $MAGIC_CMD in
8931 [\\/*] | ?:[\\/]*)
8932 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8933 ;;
8934 *)
8935 lt_save_MAGIC_CMD="$MAGIC_CMD"
8936 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8937 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8938 for ac_dir in $ac_dummy; do
8939 IFS="$lt_save_ifs"
8940 test -z "$ac_dir" && ac_dir=.
8941 if test -f $ac_dir/${ac_tool_prefix}file; then
8942 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8943 if test -n "$file_magic_test_file"; then
8944 case $deplibs_check_method in
8945 "file_magic "*)
8946 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8947 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8948 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8949 $EGREP "$file_magic_regex" > /dev/null; then
8950 :
8951 else
8952 cat <<_LT_EOF 1>&2
8953
8954 *** Warning: the command libtool uses to detect shared libraries,
8955 *** $file_magic_cmd, produces output that libtool cannot recognize.
8956 *** The result is that libtool may fail to recognize shared libraries
8957 *** as such. This will affect the creation of libtool libraries that
8958 *** depend on shared libraries, but programs linked with such libtool
8959 *** libraries will work regardless of this problem. Nevertheless, you
8960 *** may want to report the problem to your system manager and/or to
8961 *** bug-libtool@gnu.org
8962
8963 _LT_EOF
8964 fi ;;
8965 esac
8966 fi
8967 break
8968 fi
8969 done
8970 IFS="$lt_save_ifs"
8971 MAGIC_CMD="$lt_save_MAGIC_CMD"
8972 ;;
8973 esac
8974 fi
8975
8976 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8977 if test -n "$MAGIC_CMD"; then
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8979 $as_echo "$MAGIC_CMD" >&6; }
8980 else
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8982 $as_echo "no" >&6; }
8983 fi
8984
8985
8986
8987
8988
8989 if test -z "$lt_cv_path_MAGIC_CMD"; then
8990 if test -n "$ac_tool_prefix"; then
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8992 $as_echo_n "checking for file... " >&6; }
8993 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8994 $as_echo_n "(cached) " >&6
8995 else
8996 case $MAGIC_CMD in
8997 [\\/*] | ?:[\\/]*)
8998 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8999 ;;
9000 *)
9001 lt_save_MAGIC_CMD="$MAGIC_CMD"
9002 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9003 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9004 for ac_dir in $ac_dummy; do
9005 IFS="$lt_save_ifs"
9006 test -z "$ac_dir" && ac_dir=.
9007 if test -f $ac_dir/file; then
9008 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9009 if test -n "$file_magic_test_file"; then
9010 case $deplibs_check_method in
9011 "file_magic "*)
9012 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9013 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9014 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9015 $EGREP "$file_magic_regex" > /dev/null; then
9016 :
9017 else
9018 cat <<_LT_EOF 1>&2
9019
9020 *** Warning: the command libtool uses to detect shared libraries,
9021 *** $file_magic_cmd, produces output that libtool cannot recognize.
9022 *** The result is that libtool may fail to recognize shared libraries
9023 *** as such. This will affect the creation of libtool libraries that
9024 *** depend on shared libraries, but programs linked with such libtool
9025 *** libraries will work regardless of this problem. Nevertheless, you
9026 *** may want to report the problem to your system manager and/or to
9027 *** bug-libtool@gnu.org
9028
9029 _LT_EOF
9030 fi ;;
9031 esac
9032 fi
9033 break
9034 fi
9035 done
9036 IFS="$lt_save_ifs"
9037 MAGIC_CMD="$lt_save_MAGIC_CMD"
9038 ;;
9039 esac
9040 fi
9041
9042 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9043 if test -n "$MAGIC_CMD"; then
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9045 $as_echo "$MAGIC_CMD" >&6; }
9046 else
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9048 $as_echo "no" >&6; }
9049 fi
9050
9051
9052 else
9053 MAGIC_CMD=:
9054 fi
9055 fi
9056
9057 fi
9058 ;;
9059 esac
9060
9061 # Use C for the default configuration in the libtool script
9062
9063 lt_save_CC="$CC"
9064 ac_ext=c
9065 ac_cpp='$CPP $CPPFLAGS'
9066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9069
9070
9071 # Source file extension for C test sources.
9072 ac_ext=c
9073
9074 # Object file extension for compiled C test sources.
9075 objext=o
9076 objext=$objext
9077
9078 # Code to be used in simple compile tests
9079 lt_simple_compile_test_code="int some_variable = 0;"
9080
9081 # Code to be used in simple link tests
9082 lt_simple_link_test_code='int main(){return(0);}'
9083
9084
9085
9086
9087
9088
9089
9090 # If no C compiler was specified, use CC.
9091 LTCC=${LTCC-"$CC"}
9092
9093 # If no C compiler flags were specified, use CFLAGS.
9094 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9095
9096 # Allow CC to be a program name with arguments.
9097 compiler=$CC
9098
9099 # Save the default compiler, since it gets overwritten when the other
9100 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9101 compiler_DEFAULT=$CC
9102
9103 # save warnings/boilerplate of simple test code
9104 ac_outfile=conftest.$ac_objext
9105 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9106 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9107 _lt_compiler_boilerplate=`cat conftest.err`
9108 $RM conftest*
9109
9110 ac_outfile=conftest.$ac_objext
9111 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9112 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9113 _lt_linker_boilerplate=`cat conftest.err`
9114 $RM -r conftest*
9115
9116
9117 ## CAVEAT EMPTOR:
9118 ## There is no encapsulation within the following macros, do not change
9119 ## the running order or otherwise move them around unless you know exactly
9120 ## what you are doing...
9121 if test -n "$compiler"; then
9122
9123 lt_prog_compiler_no_builtin_flag=
9124
9125 if test "$GCC" = yes; then
9126 case $cc_basename in
9127 nvcc*)
9128 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9129 *)
9130 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9131 esac
9132
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9134 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9135 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9136 $as_echo_n "(cached) " >&6
9137 else
9138 lt_cv_prog_compiler_rtti_exceptions=no
9139 ac_outfile=conftest.$ac_objext
9140 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9141 lt_compiler_flag="-fno-rtti -fno-exceptions"
9142 # Insert the option either (1) after the last *FLAGS variable, or
9143 # (2) before a word containing "conftest.", or (3) at the end.
9144 # Note that $ac_compile itself does not contain backslashes and begins
9145 # with a dollar sign (not a hyphen), so the echo should work correctly.
9146 # The option is referenced via a variable to avoid confusing sed.
9147 lt_compile=`echo "$ac_compile" | $SED \
9148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9150 -e 's:$: $lt_compiler_flag:'`
9151 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9152 (eval "$lt_compile" 2>conftest.err)
9153 ac_status=$?
9154 cat conftest.err >&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 if (exit $ac_status) && test -s "$ac_outfile"; then
9157 # The compiler can only warn and ignore the option if not recognized
9158 # So say no if there are warnings other than the usual output.
9159 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9160 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9161 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9162 lt_cv_prog_compiler_rtti_exceptions=yes
9163 fi
9164 fi
9165 $RM conftest*
9166
9167 fi
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9169 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9170
9171 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9172 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9173 else
9174 :
9175 fi
9176
9177 fi
9178
9179
9180
9181
9182
9183
9184 lt_prog_compiler_wl=
9185 lt_prog_compiler_pic=
9186 lt_prog_compiler_static=
9187
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9189 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9190
9191 if test "$GCC" = yes; then
9192 lt_prog_compiler_wl='-Wl,'
9193 lt_prog_compiler_static='-static'
9194
9195 case $host_os in
9196 aix*)
9197 # All AIX code is PIC.
9198 if test "$host_cpu" = ia64; then
9199 # AIX 5 now supports IA64 processor
9200 lt_prog_compiler_static='-Bstatic'
9201 fi
9202 lt_prog_compiler_pic='-fPIC'
9203 ;;
9204
9205 amigaos*)
9206 case $host_cpu in
9207 powerpc)
9208 # see comment about AmigaOS4 .so support
9209 lt_prog_compiler_pic='-fPIC'
9210 ;;
9211 m68k)
9212 # FIXME: we need at least 68020 code to build shared libraries, but
9213 # adding the `-m68020' flag to GCC prevents building anything better,
9214 # like `-m68040'.
9215 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9216 ;;
9217 esac
9218 ;;
9219
9220 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9221 # PIC is the default for these OSes.
9222 ;;
9223
9224 mingw* | cygwin* | pw32* | os2* | cegcc*)
9225 # This hack is so that the source file can tell whether it is being
9226 # built for inclusion in a dll (and should export symbols for example).
9227 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9228 # (--disable-auto-import) libraries
9229 lt_prog_compiler_pic='-DDLL_EXPORT'
9230 ;;
9231
9232 darwin* | rhapsody*)
9233 # PIC is the default on this platform
9234 # Common symbols not allowed in MH_DYLIB files
9235 lt_prog_compiler_pic='-fno-common'
9236 ;;
9237
9238 haiku*)
9239 # PIC is the default for Haiku.
9240 # The "-static" flag exists, but is broken.
9241 lt_prog_compiler_static=
9242 ;;
9243
9244 hpux*)
9245 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9246 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9247 # sets the default TLS model and affects inlining.
9248 case $host_cpu in
9249 hppa*64*)
9250 # +Z the default
9251 ;;
9252 *)
9253 lt_prog_compiler_pic='-fPIC'
9254 ;;
9255 esac
9256 ;;
9257
9258 interix[3-9]*)
9259 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9260 # Instead, we relocate shared libraries at runtime.
9261 ;;
9262
9263 msdosdjgpp*)
9264 # Just because we use GCC doesn't mean we suddenly get shared libraries
9265 # on systems that don't support them.
9266 lt_prog_compiler_can_build_shared=no
9267 enable_shared=no
9268 ;;
9269
9270 *nto* | *qnx*)
9271 # QNX uses GNU C++, but need to define -shared option too, otherwise
9272 # it will coredump.
9273 lt_prog_compiler_pic='-fPIC -shared'
9274 ;;
9275
9276 sysv4*MP*)
9277 if test -d /usr/nec; then
9278 lt_prog_compiler_pic=-Kconform_pic
9279 fi
9280 ;;
9281
9282 *)
9283 lt_prog_compiler_pic='-fPIC'
9284 ;;
9285 esac
9286
9287 case $cc_basename in
9288 nvcc*) # Cuda Compiler Driver 2.2
9289 lt_prog_compiler_wl='-Xlinker '
9290 lt_prog_compiler_pic='-Xcompiler -fPIC'
9291 ;;
9292 esac
9293 else
9294 # PORTME Check for flag to pass linker flags through the system compiler.
9295 case $host_os in
9296 aix*)
9297 lt_prog_compiler_wl='-Wl,'
9298 if test "$host_cpu" = ia64; then
9299 # AIX 5 now supports IA64 processor
9300 lt_prog_compiler_static='-Bstatic'
9301 else
9302 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9303 fi
9304 ;;
9305
9306 mingw* | cygwin* | pw32* | os2* | cegcc*)
9307 # This hack is so that the source file can tell whether it is being
9308 # built for inclusion in a dll (and should export symbols for example).
9309 lt_prog_compiler_pic='-DDLL_EXPORT'
9310 ;;
9311
9312 hpux9* | hpux10* | hpux11*)
9313 lt_prog_compiler_wl='-Wl,'
9314 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9315 # not for PA HP-UX.
9316 case $host_cpu in
9317 hppa*64*|ia64*)
9318 # +Z the default
9319 ;;
9320 *)
9321 lt_prog_compiler_pic='+Z'
9322 ;;
9323 esac
9324 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9325 lt_prog_compiler_static='${wl}-a ${wl}archive'
9326 ;;
9327
9328 irix5* | irix6* | nonstopux*)
9329 lt_prog_compiler_wl='-Wl,'
9330 # PIC (with -KPIC) is the default.
9331 lt_prog_compiler_static='-non_shared'
9332 ;;
9333
9334 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9335 case $cc_basename in
9336 # old Intel for x86_64 which still supported -KPIC.
9337 ecc*)
9338 lt_prog_compiler_wl='-Wl,'
9339 lt_prog_compiler_pic='-KPIC'
9340 lt_prog_compiler_static='-static'
9341 ;;
9342 # icc used to be incompatible with GCC.
9343 # ICC 10 doesn't accept -KPIC any more.
9344 icc* | ifort*)
9345 lt_prog_compiler_wl='-Wl,'
9346 lt_prog_compiler_pic='-fPIC'
9347 lt_prog_compiler_static='-static'
9348 ;;
9349 # Lahey Fortran 8.1.
9350 lf95*)
9351 lt_prog_compiler_wl='-Wl,'
9352 lt_prog_compiler_pic='--shared'
9353 lt_prog_compiler_static='--static'
9354 ;;
9355 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9356 # Portland Group compilers (*not* the Pentium gcc compiler,
9357 # which looks to be a dead project)
9358 lt_prog_compiler_wl='-Wl,'
9359 lt_prog_compiler_pic='-fpic'
9360 lt_prog_compiler_static='-Bstatic'
9361 ;;
9362 ccc*)
9363 lt_prog_compiler_wl='-Wl,'
9364 # All Alpha code is PIC.
9365 lt_prog_compiler_static='-non_shared'
9366 ;;
9367 xl* | bgxl* | bgf* | mpixl*)
9368 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9369 lt_prog_compiler_wl='-Wl,'
9370 lt_prog_compiler_pic='-qpic'
9371 lt_prog_compiler_static='-qstaticlink'
9372 ;;
9373 *)
9374 case `$CC -V 2>&1 | sed 5q` in
9375 *Sun\ F* | *Sun*Fortran*)
9376 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9377 lt_prog_compiler_pic='-KPIC'
9378 lt_prog_compiler_static='-Bstatic'
9379 lt_prog_compiler_wl=''
9380 ;;
9381 *Sun\ C*)
9382 # Sun C 5.9
9383 lt_prog_compiler_pic='-KPIC'
9384 lt_prog_compiler_static='-Bstatic'
9385 lt_prog_compiler_wl='-Wl,'
9386 ;;
9387 esac
9388 ;;
9389 esac
9390 ;;
9391
9392 newsos6)
9393 lt_prog_compiler_pic='-KPIC'
9394 lt_prog_compiler_static='-Bstatic'
9395 ;;
9396
9397 *nto* | *qnx*)
9398 # QNX uses GNU C++, but need to define -shared option too, otherwise
9399 # it will coredump.
9400 lt_prog_compiler_pic='-fPIC -shared'
9401 ;;
9402
9403 osf3* | osf4* | osf5*)
9404 lt_prog_compiler_wl='-Wl,'
9405 # All OSF/1 code is PIC.
9406 lt_prog_compiler_static='-non_shared'
9407 ;;
9408
9409 rdos*)
9410 lt_prog_compiler_static='-non_shared'
9411 ;;
9412
9413 solaris*)
9414 lt_prog_compiler_pic='-KPIC'
9415 lt_prog_compiler_static='-Bstatic'
9416 case $cc_basename in
9417 f77* | f90* | f95*)
9418 lt_prog_compiler_wl='-Qoption ld ';;
9419 *)
9420 lt_prog_compiler_wl='-Wl,';;
9421 esac
9422 ;;
9423
9424 sunos4*)
9425 lt_prog_compiler_wl='-Qoption ld '
9426 lt_prog_compiler_pic='-PIC'
9427 lt_prog_compiler_static='-Bstatic'
9428 ;;
9429
9430 sysv4 | sysv4.2uw2* | sysv4.3*)
9431 lt_prog_compiler_wl='-Wl,'
9432 lt_prog_compiler_pic='-KPIC'
9433 lt_prog_compiler_static='-Bstatic'
9434 ;;
9435
9436 sysv4*MP*)
9437 if test -d /usr/nec ;then
9438 lt_prog_compiler_pic='-Kconform_pic'
9439 lt_prog_compiler_static='-Bstatic'
9440 fi
9441 ;;
9442
9443 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9444 lt_prog_compiler_wl='-Wl,'
9445 lt_prog_compiler_pic='-KPIC'
9446 lt_prog_compiler_static='-Bstatic'
9447 ;;
9448
9449 unicos*)
9450 lt_prog_compiler_wl='-Wl,'
9451 lt_prog_compiler_can_build_shared=no
9452 ;;
9453
9454 uts4*)
9455 lt_prog_compiler_pic='-pic'
9456 lt_prog_compiler_static='-Bstatic'
9457 ;;
9458
9459 *)
9460 lt_prog_compiler_can_build_shared=no
9461 ;;
9462 esac
9463 fi
9464
9465 case $host_os in
9466 # For platforms which do not support PIC, -DPIC is meaningless:
9467 *djgpp*)
9468 lt_prog_compiler_pic=
9469 ;;
9470 *)
9471 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9472 ;;
9473 esac
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9475 $as_echo "$lt_prog_compiler_pic" >&6; }
9476
9477
9478
9479
9480
9481
9482 #
9483 # Check to make sure the PIC flag actually works.
9484 #
9485 if test -n "$lt_prog_compiler_pic"; then
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9487 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9488 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9489 $as_echo_n "(cached) " >&6
9490 else
9491 lt_cv_prog_compiler_pic_works=no
9492 ac_outfile=conftest.$ac_objext
9493 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9494 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9495 # Insert the option either (1) after the last *FLAGS variable, or
9496 # (2) before a word containing "conftest.", or (3) at the end.
9497 # Note that $ac_compile itself does not contain backslashes and begins
9498 # with a dollar sign (not a hyphen), so the echo should work correctly.
9499 # The option is referenced via a variable to avoid confusing sed.
9500 lt_compile=`echo "$ac_compile" | $SED \
9501 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9502 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9503 -e 's:$: $lt_compiler_flag:'`
9504 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9505 (eval "$lt_compile" 2>conftest.err)
9506 ac_status=$?
9507 cat conftest.err >&5
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 if (exit $ac_status) && test -s "$ac_outfile"; then
9510 # The compiler can only warn and ignore the option if not recognized
9511 # So say no if there are warnings other than the usual output.
9512 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9513 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9514 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9515 lt_cv_prog_compiler_pic_works=yes
9516 fi
9517 fi
9518 $RM conftest*
9519
9520 fi
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9522 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9523
9524 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9525 case $lt_prog_compiler_pic in
9526 "" | " "*) ;;
9527 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9528 esac
9529 else
9530 lt_prog_compiler_pic=
9531 lt_prog_compiler_can_build_shared=no
9532 fi
9533
9534 fi
9535
9536
9537
9538
9539
9540
9541 #
9542 # Check to make sure the static flag actually works.
9543 #
9544 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9546 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9547 if ${lt_cv_prog_compiler_static_works+:} false; then :
9548 $as_echo_n "(cached) " >&6
9549 else
9550 lt_cv_prog_compiler_static_works=no
9551 save_LDFLAGS="$LDFLAGS"
9552 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9553 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9554 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9555 # The linker can only warn and ignore the option if not recognized
9556 # So say no if there are warnings
9557 if test -s conftest.err; then
9558 # Append any errors to the config.log.
9559 cat conftest.err 1>&5
9560 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9561 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9562 if diff conftest.exp conftest.er2 >/dev/null; then
9563 lt_cv_prog_compiler_static_works=yes
9564 fi
9565 else
9566 lt_cv_prog_compiler_static_works=yes
9567 fi
9568 fi
9569 $RM -r conftest*
9570 LDFLAGS="$save_LDFLAGS"
9571
9572 fi
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9574 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9575
9576 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9577 :
9578 else
9579 lt_prog_compiler_static=
9580 fi
9581
9582
9583
9584
9585
9586
9587
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9589 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9590 if ${lt_cv_prog_compiler_c_o+:} false; then :
9591 $as_echo_n "(cached) " >&6
9592 else
9593 lt_cv_prog_compiler_c_o=no
9594 $RM -r conftest 2>/dev/null
9595 mkdir conftest
9596 cd conftest
9597 mkdir out
9598 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9599
9600 lt_compiler_flag="-o out/conftest2.$ac_objext"
9601 # Insert the option either (1) after the last *FLAGS variable, or
9602 # (2) before a word containing "conftest.", or (3) at the end.
9603 # Note that $ac_compile itself does not contain backslashes and begins
9604 # with a dollar sign (not a hyphen), so the echo should work correctly.
9605 lt_compile=`echo "$ac_compile" | $SED \
9606 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9607 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9608 -e 's:$: $lt_compiler_flag:'`
9609 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9610 (eval "$lt_compile" 2>out/conftest.err)
9611 ac_status=$?
9612 cat out/conftest.err >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9615 then
9616 # The compiler can only warn and ignore the option if not recognized
9617 # So say no if there are warnings
9618 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9619 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9620 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9621 lt_cv_prog_compiler_c_o=yes
9622 fi
9623 fi
9624 chmod u+w . 2>&5
9625 $RM conftest*
9626 # SGI C++ compiler will create directory out/ii_files/ for
9627 # template instantiation
9628 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9629 $RM out/* && rmdir out
9630 cd ..
9631 $RM -r conftest
9632 $RM conftest*
9633
9634 fi
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9636 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9637
9638
9639
9640
9641
9642
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9644 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9645 if ${lt_cv_prog_compiler_c_o+:} false; then :
9646 $as_echo_n "(cached) " >&6
9647 else
9648 lt_cv_prog_compiler_c_o=no
9649 $RM -r conftest 2>/dev/null
9650 mkdir conftest
9651 cd conftest
9652 mkdir out
9653 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9654
9655 lt_compiler_flag="-o out/conftest2.$ac_objext"
9656 # Insert the option either (1) after the last *FLAGS variable, or
9657 # (2) before a word containing "conftest.", or (3) at the end.
9658 # Note that $ac_compile itself does not contain backslashes and begins
9659 # with a dollar sign (not a hyphen), so the echo should work correctly.
9660 lt_compile=`echo "$ac_compile" | $SED \
9661 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9663 -e 's:$: $lt_compiler_flag:'`
9664 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9665 (eval "$lt_compile" 2>out/conftest.err)
9666 ac_status=$?
9667 cat out/conftest.err >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9670 then
9671 # The compiler can only warn and ignore the option if not recognized
9672 # So say no if there are warnings
9673 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9674 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9675 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9676 lt_cv_prog_compiler_c_o=yes
9677 fi
9678 fi
9679 chmod u+w . 2>&5
9680 $RM conftest*
9681 # SGI C++ compiler will create directory out/ii_files/ for
9682 # template instantiation
9683 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9684 $RM out/* && rmdir out
9685 cd ..
9686 $RM -r conftest
9687 $RM conftest*
9688
9689 fi
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9691 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9692
9693
9694
9695
9696 hard_links="nottested"
9697 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9698 # do not overwrite the value of need_locks provided by the user
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9700 $as_echo_n "checking if we can lock with hard links... " >&6; }
9701 hard_links=yes
9702 $RM conftest*
9703 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9704 touch conftest.a
9705 ln conftest.a conftest.b 2>&5 || hard_links=no
9706 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9708 $as_echo "$hard_links" >&6; }
9709 if test "$hard_links" = no; then
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9711 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9712 need_locks=warn
9713 fi
9714 else
9715 need_locks=no
9716 fi
9717
9718
9719
9720
9721
9722
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9724 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9725
9726 runpath_var=
9727 allow_undefined_flag=
9728 always_export_symbols=no
9729 archive_cmds=
9730 archive_expsym_cmds=
9731 compiler_needs_object=no
9732 enable_shared_with_static_runtimes=no
9733 export_dynamic_flag_spec=
9734 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9735 hardcode_automatic=no
9736 hardcode_direct=no
9737 hardcode_direct_absolute=no
9738 hardcode_libdir_flag_spec=
9739 hardcode_libdir_flag_spec_ld=
9740 hardcode_libdir_separator=
9741 hardcode_minus_L=no
9742 hardcode_shlibpath_var=unsupported
9743 inherit_rpath=no
9744 link_all_deplibs=unknown
9745 module_cmds=
9746 module_expsym_cmds=
9747 old_archive_from_new_cmds=
9748 old_archive_from_expsyms_cmds=
9749 thread_safe_flag_spec=
9750 whole_archive_flag_spec=
9751 # include_expsyms should be a list of space-separated symbols to be *always*
9752 # included in the symbol list
9753 include_expsyms=
9754 # exclude_expsyms can be an extended regexp of symbols to exclude
9755 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9756 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9757 # as well as any symbol that contains `d'.
9758 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9759 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9760 # platforms (ab)use it in PIC code, but their linkers get confused if
9761 # the symbol is explicitly referenced. Since portable code cannot
9762 # rely on this symbol name, it's probably fine to never include it in
9763 # preloaded symbol tables.
9764 # Exclude shared library initialization/finalization symbols.
9765 extract_expsyms_cmds=
9766
9767 case $host_os in
9768 cygwin* | mingw* | pw32* | cegcc*)
9769 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9770 # When not using gcc, we currently assume that we are using
9771 # Microsoft Visual C++.
9772 if test "$GCC" != yes; then
9773 with_gnu_ld=no
9774 fi
9775 ;;
9776 interix*)
9777 # we just hope/assume this is gcc and not c89 (= MSVC++)
9778 with_gnu_ld=yes
9779 ;;
9780 openbsd*)
9781 with_gnu_ld=no
9782 ;;
9783 esac
9784
9785 ld_shlibs=yes
9786
9787 # On some targets, GNU ld is compatible enough with the native linker
9788 # that we're better off using the native interface for both.
9789 lt_use_gnu_ld_interface=no
9790 if test "$with_gnu_ld" = yes; then
9791 case $host_os in
9792 aix*)
9793 # The AIX port of GNU ld has always aspired to compatibility
9794 # with the native linker. However, as the warning in the GNU ld
9795 # block says, versions before 2.19.5* couldn't really create working
9796 # shared libraries, regardless of the interface used.
9797 case `$LD -v 2>&1` in
9798 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9799 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9800 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9801 *)
9802 lt_use_gnu_ld_interface=yes
9803 ;;
9804 esac
9805 ;;
9806 *)
9807 lt_use_gnu_ld_interface=yes
9808 ;;
9809 esac
9810 fi
9811
9812 if test "$lt_use_gnu_ld_interface" = yes; then
9813 # If archive_cmds runs LD, not CC, wlarc should be empty
9814 wlarc='${wl}'
9815
9816 # Set some defaults for GNU ld with shared library support. These
9817 # are reset later if shared libraries are not supported. Putting them
9818 # here allows them to be overridden if necessary.
9819 runpath_var=LD_RUN_PATH
9820 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9821 export_dynamic_flag_spec='${wl}--export-dynamic'
9822 # ancient GNU ld didn't support --whole-archive et. al.
9823 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9824 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9825 else
9826 whole_archive_flag_spec=
9827 fi
9828 supports_anon_versioning=no
9829 case `$LD -v 2>&1` in
9830 *GNU\ gold*) supports_anon_versioning=yes ;;
9831 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9832 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9833 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9834 *\ 2.11.*) ;; # other 2.11 versions
9835 *) supports_anon_versioning=yes ;;
9836 esac
9837
9838 # See if GNU ld supports shared libraries.
9839 case $host_os in
9840 aix[3-9]*)
9841 # On AIX/PPC, the GNU linker is very broken
9842 if test "$host_cpu" != ia64; then
9843 ld_shlibs=no
9844 cat <<_LT_EOF 1>&2
9845
9846 *** Warning: the GNU linker, at least up to release 2.19, is reported
9847 *** to be unable to reliably create shared libraries on AIX.
9848 *** Therefore, libtool is disabling shared libraries support. If you
9849 *** really care for shared libraries, you may want to install binutils
9850 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9851 *** You will then need to restart the configuration process.
9852
9853 _LT_EOF
9854 fi
9855 ;;
9856
9857 amigaos*)
9858 case $host_cpu in
9859 powerpc)
9860 # see comment about AmigaOS4 .so support
9861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9862 archive_expsym_cmds=''
9863 ;;
9864 m68k)
9865 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)'
9866 hardcode_libdir_flag_spec='-L$libdir'
9867 hardcode_minus_L=yes
9868 ;;
9869 esac
9870 ;;
9871
9872 beos*)
9873 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9874 allow_undefined_flag=unsupported
9875 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9876 # support --undefined. This deserves some investigation. FIXME
9877 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9878 else
9879 ld_shlibs=no
9880 fi
9881 ;;
9882
9883 cygwin* | mingw* | pw32* | cegcc*)
9884 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9885 # as there is no search path for DLLs.
9886 hardcode_libdir_flag_spec='-L$libdir'
9887 export_dynamic_flag_spec='${wl}--export-all-symbols'
9888 allow_undefined_flag=unsupported
9889 always_export_symbols=no
9890 enable_shared_with_static_runtimes=yes
9891 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9892
9893 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9894 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9895 # If the export-symbols file already is a .def file (1st line
9896 # is EXPORTS), use it as is; otherwise, prepend...
9897 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9898 cp $export_symbols $output_objdir/$soname.def;
9899 else
9900 echo EXPORTS > $output_objdir/$soname.def;
9901 cat $export_symbols >> $output_objdir/$soname.def;
9902 fi~
9903 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9904 else
9905 ld_shlibs=no
9906 fi
9907 ;;
9908
9909 haiku*)
9910 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9911 link_all_deplibs=yes
9912 ;;
9913
9914 interix[3-9]*)
9915 hardcode_direct=no
9916 hardcode_shlibpath_var=no
9917 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9918 export_dynamic_flag_spec='${wl}-E'
9919 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9920 # Instead, shared libraries are loaded at an image base (0x10000000 by
9921 # default) and relocated if they conflict, which is a slow very memory
9922 # consuming and fragmenting process. To avoid this, we pick a random,
9923 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9924 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9925 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9926 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'
9927 ;;
9928
9929 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9930 tmp_diet=no
9931 if test "$host_os" = linux-dietlibc; then
9932 case $cc_basename in
9933 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9934 esac
9935 fi
9936 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9937 && test "$tmp_diet" = no
9938 then
9939 tmp_addflag=' $pic_flag'
9940 tmp_sharedflag='-shared'
9941 case $cc_basename,$host_cpu in
9942 pgcc*) # Portland Group C compiler
9943 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'
9944 tmp_addflag=' $pic_flag'
9945 ;;
9946 pgf77* | pgf90* | pgf95* | pgfortran*)
9947 # Portland Group f77 and f90 compilers
9948 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'
9949 tmp_addflag=' $pic_flag -Mnomain' ;;
9950 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9951 tmp_addflag=' -i_dynamic' ;;
9952 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9953 tmp_addflag=' -i_dynamic -nofor_main' ;;
9954 ifc* | ifort*) # Intel Fortran compiler
9955 tmp_addflag=' -nofor_main' ;;
9956 lf95*) # Lahey Fortran 8.1
9957 whole_archive_flag_spec=
9958 tmp_sharedflag='--shared' ;;
9959 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9960 tmp_sharedflag='-qmkshrobj'
9961 tmp_addflag= ;;
9962 nvcc*) # Cuda Compiler Driver 2.2
9963 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'
9964 compiler_needs_object=yes
9965 ;;
9966 esac
9967 case `$CC -V 2>&1 | sed 5q` in
9968 *Sun\ C*) # Sun C 5.9
9969 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'
9970 compiler_needs_object=yes
9971 tmp_sharedflag='-G' ;;
9972 *Sun\ F*) # Sun Fortran 8.3
9973 tmp_sharedflag='-G' ;;
9974 esac
9975 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9976
9977 if test "x$supports_anon_versioning" = xyes; then
9978 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9979 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9980 echo "local: *; };" >> $output_objdir/$libname.ver~
9981 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9982 fi
9983
9984 case $cc_basename in
9985 xlf* | bgf* | bgxlf* | mpixlf*)
9986 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9987 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9988 hardcode_libdir_flag_spec=
9989 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9990 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9991 if test "x$supports_anon_versioning" = xyes; then
9992 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9993 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9994 echo "local: *; };" >> $output_objdir/$libname.ver~
9995 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9996 fi
9997 ;;
9998 esac
9999 else
10000 ld_shlibs=no
10001 fi
10002 ;;
10003
10004 netbsd*)
10005 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10006 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10007 wlarc=
10008 else
10009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10010 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10011 fi
10012 ;;
10013
10014 solaris*)
10015 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10016 ld_shlibs=no
10017 cat <<_LT_EOF 1>&2
10018
10019 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10020 *** create shared libraries on Solaris systems. Therefore, libtool
10021 *** is disabling shared libraries support. We urge you to upgrade GNU
10022 *** binutils to release 2.9.1 or newer. Another option is to modify
10023 *** your PATH or compiler configuration so that the native linker is
10024 *** used, and then restart.
10025
10026 _LT_EOF
10027 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10028 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10029 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10030 else
10031 ld_shlibs=no
10032 fi
10033 ;;
10034
10035 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10036 case `$LD -v 2>&1` in
10037 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10038 ld_shlibs=no
10039 cat <<_LT_EOF 1>&2
10040
10041 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10042 *** reliably create shared libraries on SCO systems. Therefore, libtool
10043 *** is disabling shared libraries support. We urge you to upgrade GNU
10044 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10045 *** your PATH or compiler configuration so that the native linker is
10046 *** used, and then restart.
10047
10048 _LT_EOF
10049 ;;
10050 *)
10051 # For security reasons, it is highly recommended that you always
10052 # use absolute paths for naming shared libraries, and exclude the
10053 # DT_RUNPATH tag from executables and libraries. But doing so
10054 # requires that you compile everything twice, which is a pain.
10055 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10056 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10058 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10059 else
10060 ld_shlibs=no
10061 fi
10062 ;;
10063 esac
10064 ;;
10065
10066 sunos4*)
10067 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10068 wlarc=
10069 hardcode_direct=yes
10070 hardcode_shlibpath_var=no
10071 ;;
10072
10073 *)
10074 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10075 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10076 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10077 else
10078 ld_shlibs=no
10079 fi
10080 ;;
10081 esac
10082
10083 if test "$ld_shlibs" = no; then
10084 runpath_var=
10085 hardcode_libdir_flag_spec=
10086 export_dynamic_flag_spec=
10087 whole_archive_flag_spec=
10088 fi
10089 else
10090 # PORTME fill in a description of your system's linker (not GNU ld)
10091 case $host_os in
10092 aix3*)
10093 allow_undefined_flag=unsupported
10094 always_export_symbols=yes
10095 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'
10096 # Note: this linker hardcodes the directories in LIBPATH if there
10097 # are no directories specified by -L.
10098 hardcode_minus_L=yes
10099 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10100 # Neither direct hardcoding nor static linking is supported with a
10101 # broken collect2.
10102 hardcode_direct=unsupported
10103 fi
10104 ;;
10105
10106 aix[4-9]*)
10107 if test "$host_cpu" = ia64; then
10108 # On IA64, the linker does run time linking by default, so we don't
10109 # have to do anything special.
10110 aix_use_runtimelinking=no
10111 exp_sym_flag='-Bexport'
10112 no_entry_flag=""
10113 else
10114 # If we're using GNU nm, then we don't want the "-C" option.
10115 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10116 # Also, AIX nm treats weak defined symbols like other global
10117 # defined symbols, whereas GNU nm marks them as "W".
10118 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10119 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'
10120 else
10121 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10122 fi
10123 aix_use_runtimelinking=no
10124
10125 # Test if we are trying to use run time linking or normal
10126 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10127 # need to do runtime linking.
10128 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10129 for ld_flag in $LDFLAGS; do
10130 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10131 aix_use_runtimelinking=yes
10132 break
10133 fi
10134 done
10135 ;;
10136 esac
10137
10138 exp_sym_flag='-bexport'
10139 no_entry_flag='-bnoentry'
10140 fi
10141
10142 # When large executables or shared objects are built, AIX ld can
10143 # have problems creating the table of contents. If linking a library
10144 # or program results in "error TOC overflow" add -mminimal-toc to
10145 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10146 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10147
10148 archive_cmds=''
10149 hardcode_direct=yes
10150 hardcode_direct_absolute=yes
10151 hardcode_libdir_separator=':'
10152 link_all_deplibs=yes
10153 file_list_spec='${wl}-f,'
10154
10155 if test "$GCC" = yes; then
10156 case $host_os in aix4.[012]|aix4.[012].*)
10157 # We only want to do this on AIX 4.2 and lower, the check
10158 # below for broken collect2 doesn't work under 4.3+
10159 collect2name=`${CC} -print-prog-name=collect2`
10160 if test -f "$collect2name" &&
10161 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10162 then
10163 # We have reworked collect2
10164 :
10165 else
10166 # We have old collect2
10167 hardcode_direct=unsupported
10168 # It fails to find uninstalled libraries when the uninstalled
10169 # path is not listed in the libpath. Setting hardcode_minus_L
10170 # to unsupported forces relinking
10171 hardcode_minus_L=yes
10172 hardcode_libdir_flag_spec='-L$libdir'
10173 hardcode_libdir_separator=
10174 fi
10175 ;;
10176 esac
10177 shared_flag='-shared'
10178 if test "$aix_use_runtimelinking" = yes; then
10179 shared_flag="$shared_flag "'${wl}-G'
10180 fi
10181 else
10182 # not using gcc
10183 if test "$host_cpu" = ia64; then
10184 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10185 # chokes on -Wl,-G. The following line is correct:
10186 shared_flag='-G'
10187 else
10188 if test "$aix_use_runtimelinking" = yes; then
10189 shared_flag='${wl}-G'
10190 else
10191 shared_flag='${wl}-bM:SRE'
10192 fi
10193 fi
10194 fi
10195
10196 export_dynamic_flag_spec='${wl}-bexpall'
10197 # It seems that -bexpall does not export symbols beginning with
10198 # underscore (_), so it is better to generate a list of symbols to export.
10199 always_export_symbols=yes
10200 if test "$aix_use_runtimelinking" = yes; then
10201 # Warning - without using the other runtime loading flags (-brtl),
10202 # -berok will link without error, but may produce a broken library.
10203 allow_undefined_flag='-berok'
10204 # Determine the default libpath from the value encoded in an
10205 # empty executable.
10206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10207 /* end confdefs.h. */
10208
10209 int
10210 main ()
10211 {
10212
10213 ;
10214 return 0;
10215 }
10216 _ACEOF
10217 if ac_fn_c_try_link "$LINENO"; then :
10218
10219 lt_aix_libpath_sed='
10220 /Import File Strings/,/^$/ {
10221 /^0/ {
10222 s/^0 *\(.*\)$/\1/
10223 p
10224 }
10225 }'
10226 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10227 # Check for a 64-bit object if we didn't find anything.
10228 if test -z "$aix_libpath"; then
10229 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10230 fi
10231 fi
10232 rm -f core conftest.err conftest.$ac_objext \
10233 conftest$ac_exeext conftest.$ac_ext
10234 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10235
10236 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10237 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"
10238 else
10239 if test "$host_cpu" = ia64; then
10240 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10241 allow_undefined_flag="-z nodefs"
10242 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"
10243 else
10244 # Determine the default libpath from the value encoded in an
10245 # empty executable.
10246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10247 /* end confdefs.h. */
10248
10249 int
10250 main ()
10251 {
10252
10253 ;
10254 return 0;
10255 }
10256 _ACEOF
10257 if ac_fn_c_try_link "$LINENO"; then :
10258
10259 lt_aix_libpath_sed='
10260 /Import File Strings/,/^$/ {
10261 /^0/ {
10262 s/^0 *\(.*\)$/\1/
10263 p
10264 }
10265 }'
10266 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10267 # Check for a 64-bit object if we didn't find anything.
10268 if test -z "$aix_libpath"; then
10269 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10270 fi
10271 fi
10272 rm -f core conftest.err conftest.$ac_objext \
10273 conftest$ac_exeext conftest.$ac_ext
10274 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10275
10276 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10277 # Warning - without using the other run time loading flags,
10278 # -berok will link without error, but may produce a broken library.
10279 no_undefined_flag=' ${wl}-bernotok'
10280 allow_undefined_flag=' ${wl}-berok'
10281 if test "$with_gnu_ld" = yes; then
10282 # We only use this code for GNU lds that support --whole-archive.
10283 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10284 else
10285 # Exported symbols can be pulled into shared objects from archives
10286 whole_archive_flag_spec='$convenience'
10287 fi
10288 archive_cmds_need_lc=yes
10289 # This is similar to how AIX traditionally builds its shared libraries.
10290 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'
10291 fi
10292 fi
10293 ;;
10294
10295 amigaos*)
10296 case $host_cpu in
10297 powerpc)
10298 # see comment about AmigaOS4 .so support
10299 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10300 archive_expsym_cmds=''
10301 ;;
10302 m68k)
10303 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)'
10304 hardcode_libdir_flag_spec='-L$libdir'
10305 hardcode_minus_L=yes
10306 ;;
10307 esac
10308 ;;
10309
10310 bsdi[45]*)
10311 export_dynamic_flag_spec=-rdynamic
10312 ;;
10313
10314 cygwin* | mingw* | pw32* | cegcc*)
10315 # When not using gcc, we currently assume that we are using
10316 # Microsoft Visual C++.
10317 # hardcode_libdir_flag_spec is actually meaningless, as there is
10318 # no search path for DLLs.
10319 hardcode_libdir_flag_spec=' '
10320 allow_undefined_flag=unsupported
10321 # Tell ltmain to make .lib files, not .a files.
10322 libext=lib
10323 # Tell ltmain to make .dll files, not .so files.
10324 shrext_cmds=".dll"
10325 # FIXME: Setting linknames here is a bad hack.
10326 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10327 # The linker will automatically build a .lib file if we build a DLL.
10328 old_archive_from_new_cmds='true'
10329 # FIXME: Should let the user specify the lib program.
10330 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10331 fix_srcfile_path='`cygpath -w "$srcfile"`'
10332 enable_shared_with_static_runtimes=yes
10333 ;;
10334
10335 darwin* | rhapsody*)
10336
10337
10338 archive_cmds_need_lc=no
10339 hardcode_direct=no
10340 hardcode_automatic=yes
10341 hardcode_shlibpath_var=unsupported
10342 if test "$lt_cv_ld_force_load" = "yes"; then
10343 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\"`'
10344 else
10345 whole_archive_flag_spec=''
10346 fi
10347 link_all_deplibs=yes
10348 allow_undefined_flag="$_lt_dar_allow_undefined"
10349 case $cc_basename in
10350 ifort*) _lt_dar_can_shared=yes ;;
10351 *) _lt_dar_can_shared=$GCC ;;
10352 esac
10353 if test "$_lt_dar_can_shared" = "yes"; then
10354 output_verbose_link_cmd=func_echo_all
10355 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10356 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10357 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}"
10358 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}"
10359
10360 else
10361 ld_shlibs=no
10362 fi
10363
10364 ;;
10365
10366 dgux*)
10367 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10368 hardcode_libdir_flag_spec='-L$libdir'
10369 hardcode_shlibpath_var=no
10370 ;;
10371
10372 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10373 # support. Future versions do this automatically, but an explicit c++rt0.o
10374 # does not break anything, and helps significantly (at the cost of a little
10375 # extra space).
10376 freebsd2.2*)
10377 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10378 hardcode_libdir_flag_spec='-R$libdir'
10379 hardcode_direct=yes
10380 hardcode_shlibpath_var=no
10381 ;;
10382
10383 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10384 freebsd2.*)
10385 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10386 hardcode_direct=yes
10387 hardcode_minus_L=yes
10388 hardcode_shlibpath_var=no
10389 ;;
10390
10391 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10392 freebsd* | dragonfly*)
10393 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10394 hardcode_libdir_flag_spec='-R$libdir'
10395 hardcode_direct=yes
10396 hardcode_shlibpath_var=no
10397 ;;
10398
10399 hpux9*)
10400 if test "$GCC" = yes; then
10401 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10402 else
10403 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'
10404 fi
10405 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10406 hardcode_libdir_separator=:
10407 hardcode_direct=yes
10408
10409 # hardcode_minus_L: Not really in the search PATH,
10410 # but as the default location of the library.
10411 hardcode_minus_L=yes
10412 export_dynamic_flag_spec='${wl}-E'
10413 ;;
10414
10415 hpux10*)
10416 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10417 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10418 else
10419 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10420 fi
10421 if test "$with_gnu_ld" = no; then
10422 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10423 hardcode_libdir_flag_spec_ld='+b $libdir'
10424 hardcode_libdir_separator=:
10425 hardcode_direct=yes
10426 hardcode_direct_absolute=yes
10427 export_dynamic_flag_spec='${wl}-E'
10428 # hardcode_minus_L: Not really in the search PATH,
10429 # but as the default location of the library.
10430 hardcode_minus_L=yes
10431 fi
10432 ;;
10433
10434 hpux11*)
10435 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10436 case $host_cpu in
10437 hppa*64*)
10438 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10439 ;;
10440 ia64*)
10441 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10442 ;;
10443 *)
10444 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10445 ;;
10446 esac
10447 else
10448 case $host_cpu in
10449 hppa*64*)
10450 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10451 ;;
10452 ia64*)
10453 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10454 ;;
10455 *)
10456
10457 # Older versions of the 11.00 compiler do not understand -b yet
10458 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10460 $as_echo_n "checking if $CC understands -b... " >&6; }
10461 if ${lt_cv_prog_compiler__b+:} false; then :
10462 $as_echo_n "(cached) " >&6
10463 else
10464 lt_cv_prog_compiler__b=no
10465 save_LDFLAGS="$LDFLAGS"
10466 LDFLAGS="$LDFLAGS -b"
10467 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10468 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10469 # The linker can only warn and ignore the option if not recognized
10470 # So say no if there are warnings
10471 if test -s conftest.err; then
10472 # Append any errors to the config.log.
10473 cat conftest.err 1>&5
10474 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10476 if diff conftest.exp conftest.er2 >/dev/null; then
10477 lt_cv_prog_compiler__b=yes
10478 fi
10479 else
10480 lt_cv_prog_compiler__b=yes
10481 fi
10482 fi
10483 $RM -r conftest*
10484 LDFLAGS="$save_LDFLAGS"
10485
10486 fi
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10488 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10489
10490 if test x"$lt_cv_prog_compiler__b" = xyes; then
10491 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10492 else
10493 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10494 fi
10495
10496 ;;
10497 esac
10498 fi
10499 if test "$with_gnu_ld" = no; then
10500 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10501 hardcode_libdir_separator=:
10502
10503 case $host_cpu in
10504 hppa*64*|ia64*)
10505 hardcode_direct=no
10506 hardcode_shlibpath_var=no
10507 ;;
10508 *)
10509 hardcode_direct=yes
10510 hardcode_direct_absolute=yes
10511 export_dynamic_flag_spec='${wl}-E'
10512
10513 # hardcode_minus_L: Not really in the search PATH,
10514 # but as the default location of the library.
10515 hardcode_minus_L=yes
10516 ;;
10517 esac
10518 fi
10519 ;;
10520
10521 irix5* | irix6* | nonstopux*)
10522 if test "$GCC" = yes; then
10523 archive_cmds='$CC -shared $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'
10524 # Try to use the -exported_symbol ld option, if it does not
10525 # work, assume that -exports_file does not work either and
10526 # implicitly export all symbols.
10527 save_LDFLAGS="$LDFLAGS"
10528 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10530 /* end confdefs.h. */
10531 int foo(void) {}
10532 _ACEOF
10533 if ac_fn_c_try_link "$LINENO"; then :
10534 archive_expsym_cmds='$CC -shared $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'
10535
10536 fi
10537 rm -f core conftest.err conftest.$ac_objext \
10538 conftest$ac_exeext conftest.$ac_ext
10539 LDFLAGS="$save_LDFLAGS"
10540 else
10541 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'
10542 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'
10543 fi
10544 archive_cmds_need_lc='no'
10545 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10546 hardcode_libdir_separator=:
10547 inherit_rpath=yes
10548 link_all_deplibs=yes
10549 ;;
10550
10551 netbsd*)
10552 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10553 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10554 else
10555 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10556 fi
10557 hardcode_libdir_flag_spec='-R$libdir'
10558 hardcode_direct=yes
10559 hardcode_shlibpath_var=no
10560 ;;
10561
10562 newsos6)
10563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10564 hardcode_direct=yes
10565 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10566 hardcode_libdir_separator=:
10567 hardcode_shlibpath_var=no
10568 ;;
10569
10570 *nto* | *qnx*)
10571 ;;
10572
10573 openbsd*)
10574 if test -f /usr/libexec/ld.so; then
10575 hardcode_direct=yes
10576 hardcode_shlibpath_var=no
10577 hardcode_direct_absolute=yes
10578 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10579 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10580 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10581 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10582 export_dynamic_flag_spec='${wl}-E'
10583 else
10584 case $host_os in
10585 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10586 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10587 hardcode_libdir_flag_spec='-R$libdir'
10588 ;;
10589 *)
10590 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10591 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10592 ;;
10593 esac
10594 fi
10595 else
10596 ld_shlibs=no
10597 fi
10598 ;;
10599
10600 os2*)
10601 hardcode_libdir_flag_spec='-L$libdir'
10602 hardcode_minus_L=yes
10603 allow_undefined_flag=unsupported
10604 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'
10605 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10606 ;;
10607
10608 osf3*)
10609 if test "$GCC" = yes; then
10610 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10611 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'
10612 else
10613 allow_undefined_flag=' -expect_unresolved \*'
10614 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'
10615 fi
10616 archive_cmds_need_lc='no'
10617 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10618 hardcode_libdir_separator=:
10619 ;;
10620
10621 osf4* | osf5*) # as osf3* with the addition of -msym flag
10622 if test "$GCC" = yes; then
10623 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10624 archive_cmds='$CC -shared${allow_undefined_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'
10625 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10626 else
10627 allow_undefined_flag=' -expect_unresolved \*'
10628 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'
10629 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~
10630 $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'
10631
10632 # Both c and cxx compiler support -rpath directly
10633 hardcode_libdir_flag_spec='-rpath $libdir'
10634 fi
10635 archive_cmds_need_lc='no'
10636 hardcode_libdir_separator=:
10637 ;;
10638
10639 solaris*)
10640 no_undefined_flag=' -z defs'
10641 if test "$GCC" = yes; then
10642 wlarc='${wl}'
10643 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10644 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10645 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10646 else
10647 case `$CC -V 2>&1` in
10648 *"Compilers 5.0"*)
10649 wlarc=''
10650 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10651 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10652 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10653 ;;
10654 *)
10655 wlarc='${wl}'
10656 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10657 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10658 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10659 ;;
10660 esac
10661 fi
10662 hardcode_libdir_flag_spec='-R$libdir'
10663 hardcode_shlibpath_var=no
10664 case $host_os in
10665 solaris2.[0-5] | solaris2.[0-5].*) ;;
10666 *)
10667 # The compiler driver will combine and reorder linker options,
10668 # but understands `-z linker_flag'. GCC discards it without `$wl',
10669 # but is careful enough not to reorder.
10670 # Supported since Solaris 2.6 (maybe 2.5.1?)
10671 if test "$GCC" = yes; then
10672 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10673 else
10674 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10675 fi
10676 ;;
10677 esac
10678 link_all_deplibs=yes
10679 ;;
10680
10681 sunos4*)
10682 if test "x$host_vendor" = xsequent; then
10683 # Use $CC to link under sequent, because it throws in some extra .o
10684 # files that make .init and .fini sections work.
10685 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10686 else
10687 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10688 fi
10689 hardcode_libdir_flag_spec='-L$libdir'
10690 hardcode_direct=yes
10691 hardcode_minus_L=yes
10692 hardcode_shlibpath_var=no
10693 ;;
10694
10695 sysv4)
10696 case $host_vendor in
10697 sni)
10698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10699 hardcode_direct=yes # is this really true???
10700 ;;
10701 siemens)
10702 ## LD is ld it makes a PLAMLIB
10703 ## CC just makes a GrossModule.
10704 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10705 reload_cmds='$CC -r -o $output$reload_objs'
10706 hardcode_direct=no
10707 ;;
10708 motorola)
10709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10710 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10711 ;;
10712 esac
10713 runpath_var='LD_RUN_PATH'
10714 hardcode_shlibpath_var=no
10715 ;;
10716
10717 sysv4.3*)
10718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10719 hardcode_shlibpath_var=no
10720 export_dynamic_flag_spec='-Bexport'
10721 ;;
10722
10723 sysv4*MP*)
10724 if test -d /usr/nec; then
10725 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10726 hardcode_shlibpath_var=no
10727 runpath_var=LD_RUN_PATH
10728 hardcode_runpath_var=yes
10729 ld_shlibs=yes
10730 fi
10731 ;;
10732
10733 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10734 no_undefined_flag='${wl}-z,text'
10735 archive_cmds_need_lc=no
10736 hardcode_shlibpath_var=no
10737 runpath_var='LD_RUN_PATH'
10738
10739 if test "$GCC" = yes; then
10740 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10741 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10742 else
10743 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10744 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10745 fi
10746 ;;
10747
10748 sysv5* | sco3.2v5* | sco5v6*)
10749 # Note: We can NOT use -z defs as we might desire, because we do not
10750 # link with -lc, and that would cause any symbols used from libc to
10751 # always be unresolved, which means just about no library would
10752 # ever link correctly. If we're not using GNU ld we use -z text
10753 # though, which does catch some bad symbols but isn't as heavy-handed
10754 # as -z defs.
10755 no_undefined_flag='${wl}-z,text'
10756 allow_undefined_flag='${wl}-z,nodefs'
10757 archive_cmds_need_lc=no
10758 hardcode_shlibpath_var=no
10759 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10760 hardcode_libdir_separator=':'
10761 link_all_deplibs=yes
10762 export_dynamic_flag_spec='${wl}-Bexport'
10763 runpath_var='LD_RUN_PATH'
10764
10765 if test "$GCC" = yes; then
10766 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10767 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10768 else
10769 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10770 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10771 fi
10772 ;;
10773
10774 uts4*)
10775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10776 hardcode_libdir_flag_spec='-L$libdir'
10777 hardcode_shlibpath_var=no
10778 ;;
10779
10780 *)
10781 ld_shlibs=no
10782 ;;
10783 esac
10784
10785 if test x$host_vendor = xsni; then
10786 case $host in
10787 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10788 export_dynamic_flag_spec='${wl}-Blargedynsym'
10789 ;;
10790 esac
10791 fi
10792 fi
10793
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10795 $as_echo "$ld_shlibs" >&6; }
10796 test "$ld_shlibs" = no && can_build_shared=no
10797
10798 with_gnu_ld=$with_gnu_ld
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814 #
10815 # Do we need to explicitly link libc?
10816 #
10817 case "x$archive_cmds_need_lc" in
10818 x|xyes)
10819 # Assume -lc should be added
10820 archive_cmds_need_lc=yes
10821
10822 if test "$enable_shared" = yes && test "$GCC" = yes; then
10823 case $archive_cmds in
10824 *'~'*)
10825 # FIXME: we may have to deal with multi-command sequences.
10826 ;;
10827 '$CC '*)
10828 # Test whether the compiler implicitly links with -lc since on some
10829 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10830 # to ld, don't add -lc before -lgcc.
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10832 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10833 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10834 $as_echo_n "(cached) " >&6
10835 else
10836 $RM conftest*
10837 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10838
10839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10840 (eval $ac_compile) 2>&5
10841 ac_status=$?
10842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10843 test $ac_status = 0; } 2>conftest.err; then
10844 soname=conftest
10845 lib=conftest
10846 libobjs=conftest.$ac_objext
10847 deplibs=
10848 wl=$lt_prog_compiler_wl
10849 pic_flag=$lt_prog_compiler_pic
10850 compiler_flags=-v
10851 linker_flags=-v
10852 verstring=
10853 output_objdir=.
10854 libname=conftest
10855 lt_save_allow_undefined_flag=$allow_undefined_flag
10856 allow_undefined_flag=
10857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10858 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10859 ac_status=$?
10860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10861 test $ac_status = 0; }
10862 then
10863 lt_cv_archive_cmds_need_lc=no
10864 else
10865 lt_cv_archive_cmds_need_lc=yes
10866 fi
10867 allow_undefined_flag=$lt_save_allow_undefined_flag
10868 else
10869 cat conftest.err 1>&5
10870 fi
10871 $RM conftest*
10872
10873 fi
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10875 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10876 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10877 ;;
10878 esac
10879 fi
10880 ;;
10881 esac
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11040 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11041
11042 if test "$GCC" = yes; then
11043 case $host_os in
11044 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11045 *) lt_awk_arg="/^libraries:/" ;;
11046 esac
11047 case $host_os in
11048 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11049 *) lt_sed_strip_eq="s,=/,/,g" ;;
11050 esac
11051 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11052 case $lt_search_path_spec in
11053 *\;*)
11054 # if the path contains ";" then we assume it to be the separator
11055 # otherwise default to the standard path separator (i.e. ":") - it is
11056 # assumed that no part of a normal pathname contains ";" but that should
11057 # okay in the real world where ";" in dirpaths is itself problematic.
11058 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11059 ;;
11060 *)
11061 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11062 ;;
11063 esac
11064 # Ok, now we have the path, separated by spaces, we can step through it
11065 # and add multilib dir if necessary.
11066 lt_tmp_lt_search_path_spec=
11067 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11068 for lt_sys_path in $lt_search_path_spec; do
11069 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11070 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11071 else
11072 test -d "$lt_sys_path" && \
11073 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11074 fi
11075 done
11076 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11077 BEGIN {RS=" "; FS="/|\n";} {
11078 lt_foo="";
11079 lt_count=0;
11080 for (lt_i = NF; lt_i > 0; lt_i--) {
11081 if ($lt_i != "" && $lt_i != ".") {
11082 if ($lt_i == "..") {
11083 lt_count++;
11084 } else {
11085 if (lt_count == 0) {
11086 lt_foo="/" $lt_i lt_foo;
11087 } else {
11088 lt_count--;
11089 }
11090 }
11091 }
11092 }
11093 if (lt_foo != "") { lt_freq[lt_foo]++; }
11094 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11095 }'`
11096 # AWK program above erroneously prepends '/' to C:/dos/paths
11097 # for these hosts.
11098 case $host_os in
11099 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11100 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11101 esac
11102 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11103 else
11104 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11105 fi
11106 library_names_spec=
11107 libname_spec='lib$name'
11108 soname_spec=
11109 shrext_cmds=".so"
11110 postinstall_cmds=
11111 postuninstall_cmds=
11112 finish_cmds=
11113 finish_eval=
11114 shlibpath_var=
11115 shlibpath_overrides_runpath=unknown
11116 version_type=none
11117 dynamic_linker="$host_os ld.so"
11118 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11119 need_lib_prefix=unknown
11120 hardcode_into_libs=no
11121
11122 # when you set need_version to no, make sure it does not cause -set_version
11123 # flags to be left without arguments
11124 need_version=unknown
11125
11126 case $host_os in
11127 aix3*)
11128 version_type=linux
11129 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11130 shlibpath_var=LIBPATH
11131
11132 # AIX 3 has no versioning support, so we append a major version to the name.
11133 soname_spec='${libname}${release}${shared_ext}$major'
11134 ;;
11135
11136 aix[4-9]*)
11137 version_type=linux
11138 need_lib_prefix=no
11139 need_version=no
11140 hardcode_into_libs=yes
11141 if test "$host_cpu" = ia64; then
11142 # AIX 5 supports IA64
11143 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11144 shlibpath_var=LD_LIBRARY_PATH
11145 else
11146 # With GCC up to 2.95.x, collect2 would create an import file
11147 # for dependence libraries. The import file would start with
11148 # the line `#! .'. This would cause the generated library to
11149 # depend on `.', always an invalid library. This was fixed in
11150 # development snapshots of GCC prior to 3.0.
11151 case $host_os in
11152 aix4 | aix4.[01] | aix4.[01].*)
11153 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11154 echo ' yes '
11155 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11156 :
11157 else
11158 can_build_shared=no
11159 fi
11160 ;;
11161 esac
11162 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11163 # soname into executable. Probably we can add versioning support to
11164 # collect2, so additional links can be useful in future.
11165 if test "$aix_use_runtimelinking" = yes; then
11166 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11167 # instead of lib<name>.a to let people know that these are not
11168 # typical AIX shared libraries.
11169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11170 else
11171 # We preserve .a as extension for shared libraries through AIX4.2
11172 # and later when we are not doing run time linking.
11173 library_names_spec='${libname}${release}.a $libname.a'
11174 soname_spec='${libname}${release}${shared_ext}$major'
11175 fi
11176 shlibpath_var=LIBPATH
11177 fi
11178 ;;
11179
11180 amigaos*)
11181 case $host_cpu in
11182 powerpc)
11183 # Since July 2007 AmigaOS4 officially supports .so libraries.
11184 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11186 ;;
11187 m68k)
11188 library_names_spec='$libname.ixlibrary $libname.a'
11189 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11190 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'
11191 ;;
11192 esac
11193 ;;
11194
11195 beos*)
11196 library_names_spec='${libname}${shared_ext}'
11197 dynamic_linker="$host_os ld.so"
11198 shlibpath_var=LIBRARY_PATH
11199 ;;
11200
11201 bsdi[45]*)
11202 version_type=linux
11203 need_version=no
11204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11205 soname_spec='${libname}${release}${shared_ext}$major'
11206 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11207 shlibpath_var=LD_LIBRARY_PATH
11208 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11209 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11210 # the default ld.so.conf also contains /usr/contrib/lib and
11211 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11212 # libtool to hard-code these into programs
11213 ;;
11214
11215 cygwin* | mingw* | pw32* | cegcc*)
11216 version_type=windows
11217 shrext_cmds=".dll"
11218 need_version=no
11219 need_lib_prefix=no
11220
11221 case $GCC,$host_os in
11222 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11223 library_names_spec='$libname.dll.a'
11224 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11225 postinstall_cmds='base_file=`basename \${file}`~
11226 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11227 dldir=$destdir/`dirname \$dlpath`~
11228 test -d \$dldir || mkdir -p \$dldir~
11229 $install_prog $dir/$dlname \$dldir/$dlname~
11230 chmod a+x \$dldir/$dlname~
11231 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11232 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11233 fi'
11234 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11235 dlpath=$dir/\$dldll~
11236 $RM \$dlpath'
11237 shlibpath_overrides_runpath=yes
11238
11239 case $host_os in
11240 cygwin*)
11241 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11242 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11243
11244 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11245 ;;
11246 mingw* | cegcc*)
11247 # MinGW DLLs use traditional 'lib' prefix
11248 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11249 ;;
11250 pw32*)
11251 # pw32 DLLs use 'pw' prefix rather than 'lib'
11252 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11253 ;;
11254 esac
11255 ;;
11256
11257 *)
11258 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11259 ;;
11260 esac
11261 dynamic_linker='Win32 ld.exe'
11262 # FIXME: first we should search . and the directory the executable is in
11263 shlibpath_var=PATH
11264 ;;
11265
11266 darwin* | rhapsody*)
11267 dynamic_linker="$host_os dyld"
11268 version_type=darwin
11269 need_lib_prefix=no
11270 need_version=no
11271 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11272 soname_spec='${libname}${release}${major}$shared_ext'
11273 shlibpath_overrides_runpath=yes
11274 shlibpath_var=DYLD_LIBRARY_PATH
11275 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11276
11277 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11278 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11279 ;;
11280
11281 dgux*)
11282 version_type=linux
11283 need_lib_prefix=no
11284 need_version=no
11285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11286 soname_spec='${libname}${release}${shared_ext}$major'
11287 shlibpath_var=LD_LIBRARY_PATH
11288 ;;
11289
11290 freebsd* | dragonfly*)
11291 # DragonFly does not have aout. When/if they implement a new
11292 # versioning mechanism, adjust this.
11293 if test -x /usr/bin/objformat; then
11294 objformat=`/usr/bin/objformat`
11295 else
11296 case $host_os in
11297 freebsd[23].*) objformat=aout ;;
11298 *) objformat=elf ;;
11299 esac
11300 fi
11301 version_type=freebsd-$objformat
11302 case $version_type in
11303 freebsd-elf*)
11304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11305 need_version=no
11306 need_lib_prefix=no
11307 ;;
11308 freebsd-*)
11309 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11310 need_version=yes
11311 ;;
11312 esac
11313 shlibpath_var=LD_LIBRARY_PATH
11314 case $host_os in
11315 freebsd2.*)
11316 shlibpath_overrides_runpath=yes
11317 ;;
11318 freebsd3.[01]* | freebsdelf3.[01]*)
11319 shlibpath_overrides_runpath=yes
11320 hardcode_into_libs=yes
11321 ;;
11322 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11323 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11324 shlibpath_overrides_runpath=no
11325 hardcode_into_libs=yes
11326 ;;
11327 *) # from 4.6 on, and DragonFly
11328 shlibpath_overrides_runpath=yes
11329 hardcode_into_libs=yes
11330 ;;
11331 esac
11332 ;;
11333
11334 haiku*)
11335 version_type=linux
11336 need_lib_prefix=no
11337 need_version=no
11338 dynamic_linker="$host_os runtime_loader"
11339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11340 soname_spec='${libname}${release}${shared_ext}$major'
11341 shlibpath_var=LIBRARY_PATH
11342 shlibpath_overrides_runpath=yes
11343 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11344 hardcode_into_libs=yes
11345 ;;
11346
11347 hpux9* | hpux10* | hpux11*)
11348 # Give a soname corresponding to the major version so that dld.sl refuses to
11349 # link against other versions.
11350 version_type=sunos
11351 need_lib_prefix=no
11352 need_version=no
11353 case $host_cpu in
11354 ia64*)
11355 shrext_cmds='.so'
11356 hardcode_into_libs=yes
11357 dynamic_linker="$host_os dld.so"
11358 shlibpath_var=LD_LIBRARY_PATH
11359 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11361 soname_spec='${libname}${release}${shared_ext}$major'
11362 if test "X$HPUX_IA64_MODE" = X32; then
11363 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11364 else
11365 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11366 fi
11367 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11368 ;;
11369 hppa*64*)
11370 shrext_cmds='.sl'
11371 hardcode_into_libs=yes
11372 dynamic_linker="$host_os dld.sl"
11373 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11374 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11376 soname_spec='${libname}${release}${shared_ext}$major'
11377 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11378 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11379 ;;
11380 *)
11381 shrext_cmds='.sl'
11382 dynamic_linker="$host_os dld.sl"
11383 shlibpath_var=SHLIB_PATH
11384 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11386 soname_spec='${libname}${release}${shared_ext}$major'
11387 ;;
11388 esac
11389 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11390 postinstall_cmds='chmod 555 $lib'
11391 # or fails outright, so override atomically:
11392 install_override_mode=555
11393 ;;
11394
11395 interix[3-9]*)
11396 version_type=linux
11397 need_lib_prefix=no
11398 need_version=no
11399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11400 soname_spec='${libname}${release}${shared_ext}$major'
11401 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11402 shlibpath_var=LD_LIBRARY_PATH
11403 shlibpath_overrides_runpath=no
11404 hardcode_into_libs=yes
11405 ;;
11406
11407 irix5* | irix6* | nonstopux*)
11408 case $host_os in
11409 nonstopux*) version_type=nonstopux ;;
11410 *)
11411 if test "$lt_cv_prog_gnu_ld" = yes; then
11412 version_type=linux
11413 else
11414 version_type=irix
11415 fi ;;
11416 esac
11417 need_lib_prefix=no
11418 need_version=no
11419 soname_spec='${libname}${release}${shared_ext}$major'
11420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11421 case $host_os in
11422 irix5* | nonstopux*)
11423 libsuff= shlibsuff=
11424 ;;
11425 *)
11426 case $LD in # libtool.m4 will add one of these switches to LD
11427 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11428 libsuff= shlibsuff= libmagic=32-bit;;
11429 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11430 libsuff=32 shlibsuff=N32 libmagic=N32;;
11431 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11432 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11433 *) libsuff= shlibsuff= libmagic=never-match;;
11434 esac
11435 ;;
11436 esac
11437 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11438 shlibpath_overrides_runpath=no
11439 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11440 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11441 hardcode_into_libs=yes
11442 ;;
11443
11444 # No shared lib support for Linux oldld, aout, or coff.
11445 linux*oldld* | linux*aout* | linux*coff*)
11446 dynamic_linker=no
11447 ;;
11448
11449 # This must be Linux ELF.
11450 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11451 version_type=linux
11452 need_lib_prefix=no
11453 need_version=no
11454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11455 soname_spec='${libname}${release}${shared_ext}$major'
11456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11457 shlibpath_var=LD_LIBRARY_PATH
11458 shlibpath_overrides_runpath=no
11459
11460 # Some binutils ld are patched to set DT_RUNPATH
11461 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11462 $as_echo_n "(cached) " >&6
11463 else
11464 lt_cv_shlibpath_overrides_runpath=no
11465 save_LDFLAGS=$LDFLAGS
11466 save_libdir=$libdir
11467 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11468 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11470 /* end confdefs.h. */
11471
11472 int
11473 main ()
11474 {
11475
11476 ;
11477 return 0;
11478 }
11479 _ACEOF
11480 if ac_fn_c_try_link "$LINENO"; then :
11481 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11482 lt_cv_shlibpath_overrides_runpath=yes
11483 fi
11484 fi
11485 rm -f core conftest.err conftest.$ac_objext \
11486 conftest$ac_exeext conftest.$ac_ext
11487 LDFLAGS=$save_LDFLAGS
11488 libdir=$save_libdir
11489
11490 fi
11491
11492 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11493
11494 # This implies no fast_install, which is unacceptable.
11495 # Some rework will be needed to allow for fast_install
11496 # before this can be enabled.
11497 hardcode_into_libs=yes
11498
11499 # Append ld.so.conf contents to the search path
11500 if test -f /etc/ld.so.conf; then
11501 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' ' '`
11502 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11503 fi
11504
11505 # We used to test for /lib/ld.so.1 and disable shared libraries on
11506 # powerpc, because MkLinux only supported shared libraries with the
11507 # GNU dynamic linker. Since this was broken with cross compilers,
11508 # most powerpc-linux boxes support dynamic linking these days and
11509 # people can always --disable-shared, the test was removed, and we
11510 # assume the GNU/Linux dynamic linker is in use.
11511 dynamic_linker='GNU/Linux ld.so'
11512 ;;
11513
11514 netbsd*)
11515 version_type=sunos
11516 need_lib_prefix=no
11517 need_version=no
11518 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11521 dynamic_linker='NetBSD (a.out) ld.so'
11522 else
11523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11524 soname_spec='${libname}${release}${shared_ext}$major'
11525 dynamic_linker='NetBSD ld.elf_so'
11526 fi
11527 shlibpath_var=LD_LIBRARY_PATH
11528 shlibpath_overrides_runpath=yes
11529 hardcode_into_libs=yes
11530 ;;
11531
11532 newsos6)
11533 version_type=linux
11534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11535 shlibpath_var=LD_LIBRARY_PATH
11536 shlibpath_overrides_runpath=yes
11537 ;;
11538
11539 *nto* | *qnx*)
11540 version_type=qnx
11541 need_lib_prefix=no
11542 need_version=no
11543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11544 soname_spec='${libname}${release}${shared_ext}$major'
11545 shlibpath_var=LD_LIBRARY_PATH
11546 shlibpath_overrides_runpath=no
11547 hardcode_into_libs=yes
11548 dynamic_linker='ldqnx.so'
11549 ;;
11550
11551 openbsd*)
11552 version_type=sunos
11553 sys_lib_dlsearch_path_spec="/usr/lib"
11554 need_lib_prefix=no
11555 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11556 case $host_os in
11557 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11558 *) need_version=no ;;
11559 esac
11560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11562 shlibpath_var=LD_LIBRARY_PATH
11563 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11564 case $host_os in
11565 openbsd2.[89] | openbsd2.[89].*)
11566 shlibpath_overrides_runpath=no
11567 ;;
11568 *)
11569 shlibpath_overrides_runpath=yes
11570 ;;
11571 esac
11572 else
11573 shlibpath_overrides_runpath=yes
11574 fi
11575 ;;
11576
11577 os2*)
11578 libname_spec='$name'
11579 shrext_cmds=".dll"
11580 need_lib_prefix=no
11581 library_names_spec='$libname${shared_ext} $libname.a'
11582 dynamic_linker='OS/2 ld.exe'
11583 shlibpath_var=LIBPATH
11584 ;;
11585
11586 osf3* | osf4* | osf5*)
11587 version_type=osf
11588 need_lib_prefix=no
11589 need_version=no
11590 soname_spec='${libname}${release}${shared_ext}$major'
11591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11592 shlibpath_var=LD_LIBRARY_PATH
11593 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11594 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11595 ;;
11596
11597 rdos*)
11598 dynamic_linker=no
11599 ;;
11600
11601 solaris*)
11602 version_type=linux
11603 need_lib_prefix=no
11604 need_version=no
11605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11606 soname_spec='${libname}${release}${shared_ext}$major'
11607 shlibpath_var=LD_LIBRARY_PATH
11608 shlibpath_overrides_runpath=yes
11609 hardcode_into_libs=yes
11610 # ldd complains unless libraries are executable
11611 postinstall_cmds='chmod +x $lib'
11612 ;;
11613
11614 sunos4*)
11615 version_type=sunos
11616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11617 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11618 shlibpath_var=LD_LIBRARY_PATH
11619 shlibpath_overrides_runpath=yes
11620 if test "$with_gnu_ld" = yes; then
11621 need_lib_prefix=no
11622 fi
11623 need_version=yes
11624 ;;
11625
11626 sysv4 | sysv4.3*)
11627 version_type=linux
11628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11629 soname_spec='${libname}${release}${shared_ext}$major'
11630 shlibpath_var=LD_LIBRARY_PATH
11631 case $host_vendor in
11632 sni)
11633 shlibpath_overrides_runpath=no
11634 need_lib_prefix=no
11635 runpath_var=LD_RUN_PATH
11636 ;;
11637 siemens)
11638 need_lib_prefix=no
11639 ;;
11640 motorola)
11641 need_lib_prefix=no
11642 need_version=no
11643 shlibpath_overrides_runpath=no
11644 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11645 ;;
11646 esac
11647 ;;
11648
11649 sysv4*MP*)
11650 if test -d /usr/nec ;then
11651 version_type=linux
11652 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11653 soname_spec='$libname${shared_ext}.$major'
11654 shlibpath_var=LD_LIBRARY_PATH
11655 fi
11656 ;;
11657
11658 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11659 version_type=freebsd-elf
11660 need_lib_prefix=no
11661 need_version=no
11662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11663 soname_spec='${libname}${release}${shared_ext}$major'
11664 shlibpath_var=LD_LIBRARY_PATH
11665 shlibpath_overrides_runpath=yes
11666 hardcode_into_libs=yes
11667 if test "$with_gnu_ld" = yes; then
11668 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11669 else
11670 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11671 case $host_os in
11672 sco3.2v5*)
11673 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11674 ;;
11675 esac
11676 fi
11677 sys_lib_dlsearch_path_spec='/usr/lib'
11678 ;;
11679
11680 tpf*)
11681 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11682 version_type=linux
11683 need_lib_prefix=no
11684 need_version=no
11685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11686 shlibpath_var=LD_LIBRARY_PATH
11687 shlibpath_overrides_runpath=no
11688 hardcode_into_libs=yes
11689 ;;
11690
11691 uts4*)
11692 version_type=linux
11693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11694 soname_spec='${libname}${release}${shared_ext}$major'
11695 shlibpath_var=LD_LIBRARY_PATH
11696 ;;
11697
11698 *)
11699 dynamic_linker=no
11700 ;;
11701 esac
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11703 $as_echo "$dynamic_linker" >&6; }
11704 test "$dynamic_linker" = no && can_build_shared=no
11705
11706 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11707 if test "$GCC" = yes; then
11708 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11709 fi
11710
11711 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11712 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11713 fi
11714 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11715 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11716 fi
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11810 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11811 hardcode_action=
11812 if test -n "$hardcode_libdir_flag_spec" ||
11813 test -n "$runpath_var" ||
11814 test "X$hardcode_automatic" = "Xyes" ; then
11815
11816 # We can hardcode non-existent directories.
11817 if test "$hardcode_direct" != no &&
11818 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11819 # have to relink, otherwise we might link with an installed library
11820 # when we should be linking with a yet-to-be-installed one
11821 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11822 test "$hardcode_minus_L" != no; then
11823 # Linking always hardcodes the temporary library directory.
11824 hardcode_action=relink
11825 else
11826 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11827 hardcode_action=immediate
11828 fi
11829 else
11830 # We cannot hardcode anything, or else we can only hardcode existing
11831 # directories.
11832 hardcode_action=unsupported
11833 fi
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11835 $as_echo "$hardcode_action" >&6; }
11836
11837 if test "$hardcode_action" = relink ||
11838 test "$inherit_rpath" = yes; then
11839 # Fast installation is not supported
11840 enable_fast_install=no
11841 elif test "$shlibpath_overrides_runpath" = yes ||
11842 test "$enable_shared" = no; then
11843 # Fast installation is not necessary
11844 enable_fast_install=needless
11845 fi
11846
11847
11848
11849
11850
11851
11852 if test "x$enable_dlopen" != xyes; then
11853 enable_dlopen=unknown
11854 enable_dlopen_self=unknown
11855 enable_dlopen_self_static=unknown
11856 else
11857 lt_cv_dlopen=no
11858 lt_cv_dlopen_libs=
11859
11860 case $host_os in
11861 beos*)
11862 lt_cv_dlopen="load_add_on"
11863 lt_cv_dlopen_libs=
11864 lt_cv_dlopen_self=yes
11865 ;;
11866
11867 mingw* | pw32* | cegcc*)
11868 lt_cv_dlopen="LoadLibrary"
11869 lt_cv_dlopen_libs=
11870 ;;
11871
11872 cygwin*)
11873 lt_cv_dlopen="dlopen"
11874 lt_cv_dlopen_libs=
11875 ;;
11876
11877 darwin*)
11878 # if libdl is installed we need to link against it
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11880 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11881 if ${ac_cv_lib_dl_dlopen+:} false; then :
11882 $as_echo_n "(cached) " >&6
11883 else
11884 ac_check_lib_save_LIBS=$LIBS
11885 LIBS="-ldl $LIBS"
11886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11887 /* end confdefs.h. */
11888
11889 /* Override any GCC internal prototype to avoid an error.
11890 Use char because int might match the return type of a GCC
11891 builtin and then its argument prototype would still apply. */
11892 #ifdef __cplusplus
11893 extern "C"
11894 #endif
11895 char dlopen ();
11896 int
11897 main ()
11898 {
11899 return dlopen ();
11900 ;
11901 return 0;
11902 }
11903 _ACEOF
11904 if ac_fn_c_try_link "$LINENO"; then :
11905 ac_cv_lib_dl_dlopen=yes
11906 else
11907 ac_cv_lib_dl_dlopen=no
11908 fi
11909 rm -f core conftest.err conftest.$ac_objext \
11910 conftest$ac_exeext conftest.$ac_ext
11911 LIBS=$ac_check_lib_save_LIBS
11912 fi
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11914 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11915 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11916 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11917 else
11918
11919 lt_cv_dlopen="dyld"
11920 lt_cv_dlopen_libs=
11921 lt_cv_dlopen_self=yes
11922
11923 fi
11924
11925 ;;
11926
11927 *)
11928 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11929 if test "x$ac_cv_func_shl_load" = xyes; then :
11930 lt_cv_dlopen="shl_load"
11931 else
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11933 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11934 if ${ac_cv_lib_dld_shl_load+:} false; then :
11935 $as_echo_n "(cached) " >&6
11936 else
11937 ac_check_lib_save_LIBS=$LIBS
11938 LIBS="-ldld $LIBS"
11939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11940 /* end confdefs.h. */
11941
11942 /* Override any GCC internal prototype to avoid an error.
11943 Use char because int might match the return type of a GCC
11944 builtin and then its argument prototype would still apply. */
11945 #ifdef __cplusplus
11946 extern "C"
11947 #endif
11948 char shl_load ();
11949 int
11950 main ()
11951 {
11952 return shl_load ();
11953 ;
11954 return 0;
11955 }
11956 _ACEOF
11957 if ac_fn_c_try_link "$LINENO"; then :
11958 ac_cv_lib_dld_shl_load=yes
11959 else
11960 ac_cv_lib_dld_shl_load=no
11961 fi
11962 rm -f core conftest.err conftest.$ac_objext \
11963 conftest$ac_exeext conftest.$ac_ext
11964 LIBS=$ac_check_lib_save_LIBS
11965 fi
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11967 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11968 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11969 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11970 else
11971 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11972 if test "x$ac_cv_func_dlopen" = xyes; then :
11973 lt_cv_dlopen="dlopen"
11974 else
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11976 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11977 if ${ac_cv_lib_dl_dlopen+:} false; then :
11978 $as_echo_n "(cached) " >&6
11979 else
11980 ac_check_lib_save_LIBS=$LIBS
11981 LIBS="-ldl $LIBS"
11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983 /* end confdefs.h. */
11984
11985 /* Override any GCC internal prototype to avoid an error.
11986 Use char because int might match the return type of a GCC
11987 builtin and then its argument prototype would still apply. */
11988 #ifdef __cplusplus
11989 extern "C"
11990 #endif
11991 char dlopen ();
11992 int
11993 main ()
11994 {
11995 return dlopen ();
11996 ;
11997 return 0;
11998 }
11999 _ACEOF
12000 if ac_fn_c_try_link "$LINENO"; then :
12001 ac_cv_lib_dl_dlopen=yes
12002 else
12003 ac_cv_lib_dl_dlopen=no
12004 fi
12005 rm -f core conftest.err conftest.$ac_objext \
12006 conftest$ac_exeext conftest.$ac_ext
12007 LIBS=$ac_check_lib_save_LIBS
12008 fi
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12010 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12011 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12013 else
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12015 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12016 if ${ac_cv_lib_svld_dlopen+:} false; then :
12017 $as_echo_n "(cached) " >&6
12018 else
12019 ac_check_lib_save_LIBS=$LIBS
12020 LIBS="-lsvld $LIBS"
12021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12022 /* end confdefs.h. */
12023
12024 /* Override any GCC internal prototype to avoid an error.
12025 Use char because int might match the return type of a GCC
12026 builtin and then its argument prototype would still apply. */
12027 #ifdef __cplusplus
12028 extern "C"
12029 #endif
12030 char dlopen ();
12031 int
12032 main ()
12033 {
12034 return dlopen ();
12035 ;
12036 return 0;
12037 }
12038 _ACEOF
12039 if ac_fn_c_try_link "$LINENO"; then :
12040 ac_cv_lib_svld_dlopen=yes
12041 else
12042 ac_cv_lib_svld_dlopen=no
12043 fi
12044 rm -f core conftest.err conftest.$ac_objext \
12045 conftest$ac_exeext conftest.$ac_ext
12046 LIBS=$ac_check_lib_save_LIBS
12047 fi
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12049 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12050 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12051 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12052 else
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12054 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12055 if ${ac_cv_lib_dld_dld_link+:} false; then :
12056 $as_echo_n "(cached) " >&6
12057 else
12058 ac_check_lib_save_LIBS=$LIBS
12059 LIBS="-ldld $LIBS"
12060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12061 /* end confdefs.h. */
12062
12063 /* Override any GCC internal prototype to avoid an error.
12064 Use char because int might match the return type of a GCC
12065 builtin and then its argument prototype would still apply. */
12066 #ifdef __cplusplus
12067 extern "C"
12068 #endif
12069 char dld_link ();
12070 int
12071 main ()
12072 {
12073 return dld_link ();
12074 ;
12075 return 0;
12076 }
12077 _ACEOF
12078 if ac_fn_c_try_link "$LINENO"; then :
12079 ac_cv_lib_dld_dld_link=yes
12080 else
12081 ac_cv_lib_dld_dld_link=no
12082 fi
12083 rm -f core conftest.err conftest.$ac_objext \
12084 conftest$ac_exeext conftest.$ac_ext
12085 LIBS=$ac_check_lib_save_LIBS
12086 fi
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12088 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12089 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12090 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12091 fi
12092
12093
12094 fi
12095
12096
12097 fi
12098
12099
12100 fi
12101
12102
12103 fi
12104
12105
12106 fi
12107
12108 ;;
12109 esac
12110
12111 if test "x$lt_cv_dlopen" != xno; then
12112 enable_dlopen=yes
12113 else
12114 enable_dlopen=no
12115 fi
12116
12117 case $lt_cv_dlopen in
12118 dlopen)
12119 save_CPPFLAGS="$CPPFLAGS"
12120 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12121
12122 save_LDFLAGS="$LDFLAGS"
12123 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12124
12125 save_LIBS="$LIBS"
12126 LIBS="$lt_cv_dlopen_libs $LIBS"
12127
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12129 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12130 if ${lt_cv_dlopen_self+:} false; then :
12131 $as_echo_n "(cached) " >&6
12132 else
12133 if test "$cross_compiling" = yes; then :
12134 lt_cv_dlopen_self=cross
12135 else
12136 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12137 lt_status=$lt_dlunknown
12138 cat > conftest.$ac_ext <<_LT_EOF
12139 #line 12139 "configure"
12140 #include "confdefs.h"
12141
12142 #if HAVE_DLFCN_H
12143 #include <dlfcn.h>
12144 #endif
12145
12146 #include <stdio.h>
12147
12148 #ifdef RTLD_GLOBAL
12149 # define LT_DLGLOBAL RTLD_GLOBAL
12150 #else
12151 # ifdef DL_GLOBAL
12152 # define LT_DLGLOBAL DL_GLOBAL
12153 # else
12154 # define LT_DLGLOBAL 0
12155 # endif
12156 #endif
12157
12158 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12159 find out it does not work in some platform. */
12160 #ifndef LT_DLLAZY_OR_NOW
12161 # ifdef RTLD_LAZY
12162 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12163 # else
12164 # ifdef DL_LAZY
12165 # define LT_DLLAZY_OR_NOW DL_LAZY
12166 # else
12167 # ifdef RTLD_NOW
12168 # define LT_DLLAZY_OR_NOW RTLD_NOW
12169 # else
12170 # ifdef DL_NOW
12171 # define LT_DLLAZY_OR_NOW DL_NOW
12172 # else
12173 # define LT_DLLAZY_OR_NOW 0
12174 # endif
12175 # endif
12176 # endif
12177 # endif
12178 #endif
12179
12180 /* When -fvisbility=hidden is used, assume the code has been annotated
12181 correspondingly for the symbols needed. */
12182 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12183 void fnord () __attribute__((visibility("default")));
12184 #endif
12185
12186 void fnord () { int i=42; }
12187 int main ()
12188 {
12189 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12190 int status = $lt_dlunknown;
12191
12192 if (self)
12193 {
12194 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12195 else
12196 {
12197 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12198 else puts (dlerror ());
12199 }
12200 /* dlclose (self); */
12201 }
12202 else
12203 puts (dlerror ());
12204
12205 return status;
12206 }
12207 _LT_EOF
12208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12209 (eval $ac_link) 2>&5
12210 ac_status=$?
12211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12212 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12213 (./conftest; exit; ) >&5 2>/dev/null
12214 lt_status=$?
12215 case x$lt_status in
12216 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12217 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12218 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12219 esac
12220 else :
12221 # compilation failed
12222 lt_cv_dlopen_self=no
12223 fi
12224 fi
12225 rm -fr conftest*
12226
12227
12228 fi
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12230 $as_echo "$lt_cv_dlopen_self" >&6; }
12231
12232 if test "x$lt_cv_dlopen_self" = xyes; then
12233 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12235 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12236 if ${lt_cv_dlopen_self_static+:} false; then :
12237 $as_echo_n "(cached) " >&6
12238 else
12239 if test "$cross_compiling" = yes; then :
12240 lt_cv_dlopen_self_static=cross
12241 else
12242 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12243 lt_status=$lt_dlunknown
12244 cat > conftest.$ac_ext <<_LT_EOF
12245 #line 12245 "configure"
12246 #include "confdefs.h"
12247
12248 #if HAVE_DLFCN_H
12249 #include <dlfcn.h>
12250 #endif
12251
12252 #include <stdio.h>
12253
12254 #ifdef RTLD_GLOBAL
12255 # define LT_DLGLOBAL RTLD_GLOBAL
12256 #else
12257 # ifdef DL_GLOBAL
12258 # define LT_DLGLOBAL DL_GLOBAL
12259 # else
12260 # define LT_DLGLOBAL 0
12261 # endif
12262 #endif
12263
12264 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12265 find out it does not work in some platform. */
12266 #ifndef LT_DLLAZY_OR_NOW
12267 # ifdef RTLD_LAZY
12268 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12269 # else
12270 # ifdef DL_LAZY
12271 # define LT_DLLAZY_OR_NOW DL_LAZY
12272 # else
12273 # ifdef RTLD_NOW
12274 # define LT_DLLAZY_OR_NOW RTLD_NOW
12275 # else
12276 # ifdef DL_NOW
12277 # define LT_DLLAZY_OR_NOW DL_NOW
12278 # else
12279 # define LT_DLLAZY_OR_NOW 0
12280 # endif
12281 # endif
12282 # endif
12283 # endif
12284 #endif
12285
12286 /* When -fvisbility=hidden is used, assume the code has been annotated
12287 correspondingly for the symbols needed. */
12288 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12289 void fnord () __attribute__((visibility("default")));
12290 #endif
12291
12292 void fnord () { int i=42; }
12293 int main ()
12294 {
12295 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12296 int status = $lt_dlunknown;
12297
12298 if (self)
12299 {
12300 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12301 else
12302 {
12303 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12304 else puts (dlerror ());
12305 }
12306 /* dlclose (self); */
12307 }
12308 else
12309 puts (dlerror ());
12310
12311 return status;
12312 }
12313 _LT_EOF
12314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12315 (eval $ac_link) 2>&5
12316 ac_status=$?
12317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12318 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12319 (./conftest; exit; ) >&5 2>/dev/null
12320 lt_status=$?
12321 case x$lt_status in
12322 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12323 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12324 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12325 esac
12326 else :
12327 # compilation failed
12328 lt_cv_dlopen_self_static=no
12329 fi
12330 fi
12331 rm -fr conftest*
12332
12333
12334 fi
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12336 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12337 fi
12338
12339 CPPFLAGS="$save_CPPFLAGS"
12340 LDFLAGS="$save_LDFLAGS"
12341 LIBS="$save_LIBS"
12342 ;;
12343 esac
12344
12345 case $lt_cv_dlopen_self in
12346 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12347 *) enable_dlopen_self=unknown ;;
12348 esac
12349
12350 case $lt_cv_dlopen_self_static in
12351 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12352 *) enable_dlopen_self_static=unknown ;;
12353 esac
12354 fi
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372 striplib=
12373 old_striplib=
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12375 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12376 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12377 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12378 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12380 $as_echo "yes" >&6; }
12381 else
12382 # FIXME - insert some real tests, host_os isn't really good enough
12383 case $host_os in
12384 darwin*)
12385 if test -n "$STRIP" ; then
12386 striplib="$STRIP -x"
12387 old_striplib="$STRIP -S"
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12389 $as_echo "yes" >&6; }
12390 else
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12392 $as_echo "no" >&6; }
12393 fi
12394 ;;
12395 *)
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397 $as_echo "no" >&6; }
12398 ;;
12399 esac
12400 fi
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413 # Report which library types will actually be built
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12415 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12417 $as_echo "$can_build_shared" >&6; }
12418
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12420 $as_echo_n "checking whether to build shared libraries... " >&6; }
12421 test "$can_build_shared" = "no" && enable_shared=no
12422
12423 # On AIX, shared libraries and static libraries use the same namespace, and
12424 # are all built from PIC.
12425 case $host_os in
12426 aix3*)
12427 test "$enable_shared" = yes && enable_static=no
12428 if test -n "$RANLIB"; then
12429 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12430 postinstall_cmds='$RANLIB $lib'
12431 fi
12432 ;;
12433
12434 aix[4-9]*)
12435 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12436 test "$enable_shared" = yes && enable_static=no
12437 fi
12438 ;;
12439 esac
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12441 $as_echo "$enable_shared" >&6; }
12442
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12444 $as_echo_n "checking whether to build static libraries... " >&6; }
12445 # Make sure either enable_shared or enable_static is yes.
12446 test "$enable_shared" = yes || enable_static=yes
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12448 $as_echo "$enable_static" >&6; }
12449
12450
12451
12452
12453 fi
12454 ac_ext=c
12455 ac_cpp='$CPP $CPPFLAGS'
12456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12459
12460 CC="$lt_save_CC"
12461
12462 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12463 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12464 (test "X$CXX" != "Xg++"))) ; then
12465 ac_ext=cpp
12466 ac_cpp='$CXXCPP $CPPFLAGS'
12467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12471 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12472 if test -z "$CXXCPP"; then
12473 if ${ac_cv_prog_CXXCPP+:} false; then :
12474 $as_echo_n "(cached) " >&6
12475 else
12476 # Double quotes because CXXCPP needs to be expanded
12477 for CXXCPP in "$CXX -E" "/lib/cpp"
12478 do
12479 ac_preproc_ok=false
12480 for ac_cxx_preproc_warn_flag in '' yes
12481 do
12482 # Use a header file that comes with gcc, so configuring glibc
12483 # with a fresh cross-compiler works.
12484 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12485 # <limits.h> exists even on freestanding compilers.
12486 # On the NeXT, cc -E runs the code through the compiler's parser,
12487 # not just through cpp. "Syntax error" is here to catch this case.
12488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12489 /* end confdefs.h. */
12490 #ifdef __STDC__
12491 # include <limits.h>
12492 #else
12493 # include <assert.h>
12494 #endif
12495 Syntax error
12496 _ACEOF
12497 if ac_fn_cxx_try_cpp "$LINENO"; then :
12498
12499 else
12500 # Broken: fails on valid input.
12501 continue
12502 fi
12503 rm -f conftest.err conftest.i conftest.$ac_ext
12504
12505 # OK, works on sane cases. Now check whether nonexistent headers
12506 # can be detected and how.
12507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12508 /* end confdefs.h. */
12509 #include <ac_nonexistent.h>
12510 _ACEOF
12511 if ac_fn_cxx_try_cpp "$LINENO"; then :
12512 # Broken: success on invalid input.
12513 continue
12514 else
12515 # Passes both tests.
12516 ac_preproc_ok=:
12517 break
12518 fi
12519 rm -f conftest.err conftest.i conftest.$ac_ext
12520
12521 done
12522 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12523 rm -f conftest.i conftest.err conftest.$ac_ext
12524 if $ac_preproc_ok; then :
12525 break
12526 fi
12527
12528 done
12529 ac_cv_prog_CXXCPP=$CXXCPP
12530
12531 fi
12532 CXXCPP=$ac_cv_prog_CXXCPP
12533 else
12534 ac_cv_prog_CXXCPP=$CXXCPP
12535 fi
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12537 $as_echo "$CXXCPP" >&6; }
12538 ac_preproc_ok=false
12539 for ac_cxx_preproc_warn_flag in '' yes
12540 do
12541 # Use a header file that comes with gcc, so configuring glibc
12542 # with a fresh cross-compiler works.
12543 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12544 # <limits.h> exists even on freestanding compilers.
12545 # On the NeXT, cc -E runs the code through the compiler's parser,
12546 # not just through cpp. "Syntax error" is here to catch this case.
12547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12548 /* end confdefs.h. */
12549 #ifdef __STDC__
12550 # include <limits.h>
12551 #else
12552 # include <assert.h>
12553 #endif
12554 Syntax error
12555 _ACEOF
12556 if ac_fn_cxx_try_cpp "$LINENO"; then :
12557
12558 else
12559 # Broken: fails on valid input.
12560 continue
12561 fi
12562 rm -f conftest.err conftest.i conftest.$ac_ext
12563
12564 # OK, works on sane cases. Now check whether nonexistent headers
12565 # can be detected and how.
12566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12567 /* end confdefs.h. */
12568 #include <ac_nonexistent.h>
12569 _ACEOF
12570 if ac_fn_cxx_try_cpp "$LINENO"; then :
12571 # Broken: success on invalid input.
12572 continue
12573 else
12574 # Passes both tests.
12575 ac_preproc_ok=:
12576 break
12577 fi
12578 rm -f conftest.err conftest.i conftest.$ac_ext
12579
12580 done
12581 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12582 rm -f conftest.i conftest.err conftest.$ac_ext
12583 if $ac_preproc_ok; then :
12584
12585 else
12586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12588 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12589 See \`config.log' for more details" "$LINENO" 5; }
12590 fi
12591
12592 ac_ext=c
12593 ac_cpp='$CPP $CPPFLAGS'
12594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12597
12598 else
12599 _lt_caught_CXX_error=yes
12600 fi
12601
12602 ac_ext=cpp
12603 ac_cpp='$CXXCPP $CPPFLAGS'
12604 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12605 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12606 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12607
12608 archive_cmds_need_lc_CXX=no
12609 allow_undefined_flag_CXX=
12610 always_export_symbols_CXX=no
12611 archive_expsym_cmds_CXX=
12612 compiler_needs_object_CXX=no
12613 export_dynamic_flag_spec_CXX=
12614 hardcode_direct_CXX=no
12615 hardcode_direct_absolute_CXX=no
12616 hardcode_libdir_flag_spec_CXX=
12617 hardcode_libdir_flag_spec_ld_CXX=
12618 hardcode_libdir_separator_CXX=
12619 hardcode_minus_L_CXX=no
12620 hardcode_shlibpath_var_CXX=unsupported
12621 hardcode_automatic_CXX=no
12622 inherit_rpath_CXX=no
12623 module_cmds_CXX=
12624 module_expsym_cmds_CXX=
12625 link_all_deplibs_CXX=unknown
12626 old_archive_cmds_CXX=$old_archive_cmds
12627 reload_flag_CXX=$reload_flag
12628 reload_cmds_CXX=$reload_cmds
12629 no_undefined_flag_CXX=
12630 whole_archive_flag_spec_CXX=
12631 enable_shared_with_static_runtimes_CXX=no
12632
12633 # Source file extension for C++ test sources.
12634 ac_ext=cpp
12635
12636 # Object file extension for compiled C++ test sources.
12637 objext=o
12638 objext_CXX=$objext
12639
12640 # No sense in running all these tests if we already determined that
12641 # the CXX compiler isn't working. Some variables (like enable_shared)
12642 # are currently assumed to apply to all compilers on this platform,
12643 # and will be corrupted by setting them based on a non-working compiler.
12644 if test "$_lt_caught_CXX_error" != yes; then
12645 # Code to be used in simple compile tests
12646 lt_simple_compile_test_code="int some_variable = 0;"
12647
12648 # Code to be used in simple link tests
12649 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12650
12651 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12652
12653
12654
12655
12656
12657
12658 # If no C compiler was specified, use CC.
12659 LTCC=${LTCC-"$CC"}
12660
12661 # If no C compiler flags were specified, use CFLAGS.
12662 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12663
12664 # Allow CC to be a program name with arguments.
12665 compiler=$CC
12666
12667
12668 # save warnings/boilerplate of simple test code
12669 ac_outfile=conftest.$ac_objext
12670 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12671 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12672 _lt_compiler_boilerplate=`cat conftest.err`
12673 $RM conftest*
12674
12675 ac_outfile=conftest.$ac_objext
12676 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12677 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12678 _lt_linker_boilerplate=`cat conftest.err`
12679 $RM -r conftest*
12680
12681
12682 # Allow CC to be a program name with arguments.
12683 lt_save_CC=$CC
12684 lt_save_LD=$LD
12685 lt_save_GCC=$GCC
12686 GCC=$GXX
12687 lt_save_with_gnu_ld=$with_gnu_ld
12688 lt_save_path_LD=$lt_cv_path_LD
12689 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12690 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12691 else
12692 $as_unset lt_cv_prog_gnu_ld
12693 fi
12694 if test -n "${lt_cv_path_LDCXX+set}"; then
12695 lt_cv_path_LD=$lt_cv_path_LDCXX
12696 else
12697 $as_unset lt_cv_path_LD
12698 fi
12699 test -z "${LDCXX+set}" || LD=$LDCXX
12700 CC=${CXX-"c++"}
12701 compiler=$CC
12702 compiler_CXX=$CC
12703 for cc_temp in $compiler""; do
12704 case $cc_temp in
12705 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12706 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12707 \-*) ;;
12708 *) break;;
12709 esac
12710 done
12711 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12712
12713
12714 if test -n "$compiler"; then
12715 # We don't want -fno-exception when compiling C++ code, so set the
12716 # no_builtin_flag separately
12717 if test "$GXX" = yes; then
12718 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12719 else
12720 lt_prog_compiler_no_builtin_flag_CXX=
12721 fi
12722
12723 if test "$GXX" = yes; then
12724 # Set up default GNU C++ configuration
12725
12726
12727
12728 # Check whether --with-gnu-ld was given.
12729 if test "${with_gnu_ld+set}" = set; then :
12730 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12731 else
12732 with_gnu_ld=no
12733 fi
12734
12735 ac_prog=ld
12736 if test "$GCC" = yes; then
12737 # Check if gcc -print-prog-name=ld gives a path.
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12739 $as_echo_n "checking for ld used by $CC... " >&6; }
12740 case $host in
12741 *-*-mingw*)
12742 # gcc leaves a trailing carriage return which upsets mingw
12743 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12744 *)
12745 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12746 esac
12747 case $ac_prog in
12748 # Accept absolute paths.
12749 [\\/]* | ?:[\\/]*)
12750 re_direlt='/[^/][^/]*/\.\./'
12751 # Canonicalize the pathname of ld
12752 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12753 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12754 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12755 done
12756 test -z "$LD" && LD="$ac_prog"
12757 ;;
12758 "")
12759 # If it fails, then pretend we aren't using GCC.
12760 ac_prog=ld
12761 ;;
12762 *)
12763 # If it is relative, then search for the first ld in PATH.
12764 with_gnu_ld=unknown
12765 ;;
12766 esac
12767 elif test "$with_gnu_ld" = yes; then
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12769 $as_echo_n "checking for GNU ld... " >&6; }
12770 else
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12772 $as_echo_n "checking for non-GNU ld... " >&6; }
12773 fi
12774 if ${lt_cv_path_LD+:} false; then :
12775 $as_echo_n "(cached) " >&6
12776 else
12777 if test -z "$LD"; then
12778 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12779 for ac_dir in $PATH; do
12780 IFS="$lt_save_ifs"
12781 test -z "$ac_dir" && ac_dir=.
12782 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12783 lt_cv_path_LD="$ac_dir/$ac_prog"
12784 # Check to see if the program is GNU ld. I'd rather use --version,
12785 # but apparently some variants of GNU ld only accept -v.
12786 # Break only if it was the GNU/non-GNU ld that we prefer.
12787 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12788 *GNU* | *'with BFD'*)
12789 test "$with_gnu_ld" != no && break
12790 ;;
12791 *)
12792 test "$with_gnu_ld" != yes && break
12793 ;;
12794 esac
12795 fi
12796 done
12797 IFS="$lt_save_ifs"
12798 else
12799 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12800 fi
12801 fi
12802
12803 LD="$lt_cv_path_LD"
12804 if test -n "$LD"; then
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12806 $as_echo "$LD" >&6; }
12807 else
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12809 $as_echo "no" >&6; }
12810 fi
12811 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12813 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12814 if ${lt_cv_prog_gnu_ld+:} false; then :
12815 $as_echo_n "(cached) " >&6
12816 else
12817 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12818 case `$LD -v 2>&1 </dev/null` in
12819 *GNU* | *'with BFD'*)
12820 lt_cv_prog_gnu_ld=yes
12821 ;;
12822 *)
12823 lt_cv_prog_gnu_ld=no
12824 ;;
12825 esac
12826 fi
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12828 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12829 with_gnu_ld=$lt_cv_prog_gnu_ld
12830
12831
12832
12833
12834
12835
12836
12837 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12838 # archiving commands below assume that GNU ld is being used.
12839 if test "$with_gnu_ld" = yes; then
12840 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12841 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'
12842
12843 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12844 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12845
12846 # If archive_cmds runs LD, not CC, wlarc should be empty
12847 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12848 # investigate it a little bit more. (MM)
12849 wlarc='${wl}'
12850
12851 # ancient GNU ld didn't support --whole-archive et. al.
12852 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12853 $GREP 'no-whole-archive' > /dev/null; then
12854 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12855 else
12856 whole_archive_flag_spec_CXX=
12857 fi
12858 else
12859 with_gnu_ld=no
12860 wlarc=
12861
12862 # A generic and very simple default shared library creation
12863 # command for GNU C++ for the case where it uses the native
12864 # linker, instead of GNU ld. If possible, this setting should
12865 # overridden to take advantage of the native linker features on
12866 # the platform it is being used on.
12867 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12868 fi
12869
12870 # Commands to make compiler produce verbose output that lists
12871 # what "hidden" libraries, object files and flags are used when
12872 # linking a shared library.
12873 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12874
12875 else
12876 GXX=no
12877 with_gnu_ld=no
12878 wlarc=
12879 fi
12880
12881 # PORTME: fill in a description of your system's C++ link characteristics
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12883 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12884 ld_shlibs_CXX=yes
12885 case $host_os in
12886 aix3*)
12887 # FIXME: insert proper C++ library support
12888 ld_shlibs_CXX=no
12889 ;;
12890 aix[4-9]*)
12891 if test "$host_cpu" = ia64; then
12892 # On IA64, the linker does run time linking by default, so we don't
12893 # have to do anything special.
12894 aix_use_runtimelinking=no
12895 exp_sym_flag='-Bexport'
12896 no_entry_flag=""
12897 else
12898 aix_use_runtimelinking=no
12899
12900 # Test if we are trying to use run time linking or normal
12901 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12902 # need to do runtime linking.
12903 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12904 for ld_flag in $LDFLAGS; do
12905 case $ld_flag in
12906 *-brtl*)
12907 aix_use_runtimelinking=yes
12908 break
12909 ;;
12910 esac
12911 done
12912 ;;
12913 esac
12914
12915 exp_sym_flag='-bexport'
12916 no_entry_flag='-bnoentry'
12917 fi
12918
12919 # When large executables or shared objects are built, AIX ld can
12920 # have problems creating the table of contents. If linking a library
12921 # or program results in "error TOC overflow" add -mminimal-toc to
12922 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12923 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12924
12925 archive_cmds_CXX=''
12926 hardcode_direct_CXX=yes
12927 hardcode_direct_absolute_CXX=yes
12928 hardcode_libdir_separator_CXX=':'
12929 link_all_deplibs_CXX=yes
12930 file_list_spec_CXX='${wl}-f,'
12931
12932 if test "$GXX" = yes; then
12933 case $host_os in aix4.[012]|aix4.[012].*)
12934 # We only want to do this on AIX 4.2 and lower, the check
12935 # below for broken collect2 doesn't work under 4.3+
12936 collect2name=`${CC} -print-prog-name=collect2`
12937 if test -f "$collect2name" &&
12938 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12939 then
12940 # We have reworked collect2
12941 :
12942 else
12943 # We have old collect2
12944 hardcode_direct_CXX=unsupported
12945 # It fails to find uninstalled libraries when the uninstalled
12946 # path is not listed in the libpath. Setting hardcode_minus_L
12947 # to unsupported forces relinking
12948 hardcode_minus_L_CXX=yes
12949 hardcode_libdir_flag_spec_CXX='-L$libdir'
12950 hardcode_libdir_separator_CXX=
12951 fi
12952 esac
12953 shared_flag='-shared'
12954 if test "$aix_use_runtimelinking" = yes; then
12955 shared_flag="$shared_flag "'${wl}-G'
12956 fi
12957 else
12958 # not using gcc
12959 if test "$host_cpu" = ia64; then
12960 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12961 # chokes on -Wl,-G. The following line is correct:
12962 shared_flag='-G'
12963 else
12964 if test "$aix_use_runtimelinking" = yes; then
12965 shared_flag='${wl}-G'
12966 else
12967 shared_flag='${wl}-bM:SRE'
12968 fi
12969 fi
12970 fi
12971
12972 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12973 # It seems that -bexpall does not export symbols beginning with
12974 # underscore (_), so it is better to generate a list of symbols to
12975 # export.
12976 always_export_symbols_CXX=yes
12977 if test "$aix_use_runtimelinking" = yes; then
12978 # Warning - without using the other runtime loading flags (-brtl),
12979 # -berok will link without error, but may produce a broken library.
12980 allow_undefined_flag_CXX='-berok'
12981 # Determine the default libpath from the value encoded in an empty
12982 # executable.
12983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12984 /* end confdefs.h. */
12985
12986 int
12987 main ()
12988 {
12989
12990 ;
12991 return 0;
12992 }
12993 _ACEOF
12994 if ac_fn_cxx_try_link "$LINENO"; then :
12995
12996 lt_aix_libpath_sed='
12997 /Import File Strings/,/^$/ {
12998 /^0/ {
12999 s/^0 *\(.*\)$/\1/
13000 p
13001 }
13002 }'
13003 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13004 # Check for a 64-bit object if we didn't find anything.
13005 if test -z "$aix_libpath"; then
13006 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13007 fi
13008 fi
13009 rm -f core conftest.err conftest.$ac_objext \
13010 conftest$ac_exeext conftest.$ac_ext
13011 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13012
13013 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13014
13015 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"
13016 else
13017 if test "$host_cpu" = ia64; then
13018 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13019 allow_undefined_flag_CXX="-z nodefs"
13020 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"
13021 else
13022 # Determine the default libpath from the value encoded in an
13023 # empty executable.
13024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13025 /* end confdefs.h. */
13026
13027 int
13028 main ()
13029 {
13030
13031 ;
13032 return 0;
13033 }
13034 _ACEOF
13035 if ac_fn_cxx_try_link "$LINENO"; then :
13036
13037 lt_aix_libpath_sed='
13038 /Import File Strings/,/^$/ {
13039 /^0/ {
13040 s/^0 *\(.*\)$/\1/
13041 p
13042 }
13043 }'
13044 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13045 # Check for a 64-bit object if we didn't find anything.
13046 if test -z "$aix_libpath"; then
13047 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13048 fi
13049 fi
13050 rm -f core conftest.err conftest.$ac_objext \
13051 conftest$ac_exeext conftest.$ac_ext
13052 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13053
13054 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13055 # Warning - without using the other run time loading flags,
13056 # -berok will link without error, but may produce a broken library.
13057 no_undefined_flag_CXX=' ${wl}-bernotok'
13058 allow_undefined_flag_CXX=' ${wl}-berok'
13059 if test "$with_gnu_ld" = yes; then
13060 # We only use this code for GNU lds that support --whole-archive.
13061 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13062 else
13063 # Exported symbols can be pulled into shared objects from archives
13064 whole_archive_flag_spec_CXX='$convenience'
13065 fi
13066 archive_cmds_need_lc_CXX=yes
13067 # This is similar to how AIX traditionally builds its shared
13068 # libraries.
13069 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'
13070 fi
13071 fi
13072 ;;
13073
13074 beos*)
13075 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13076 allow_undefined_flag_CXX=unsupported
13077 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13078 # support --undefined. This deserves some investigation. FIXME
13079 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13080 else
13081 ld_shlibs_CXX=no
13082 fi
13083 ;;
13084
13085 chorus*)
13086 case $cc_basename in
13087 *)
13088 # FIXME: insert proper C++ library support
13089 ld_shlibs_CXX=no
13090 ;;
13091 esac
13092 ;;
13093
13094 cygwin* | mingw* | pw32* | cegcc*)
13095 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13096 # as there is no search path for DLLs.
13097 hardcode_libdir_flag_spec_CXX='-L$libdir'
13098 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13099 allow_undefined_flag_CXX=unsupported
13100 always_export_symbols_CXX=no
13101 enable_shared_with_static_runtimes_CXX=yes
13102
13103 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13104 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'
13105 # If the export-symbols file already is a .def file (1st line
13106 # is EXPORTS), use it as is; otherwise, prepend...
13107 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13108 cp $export_symbols $output_objdir/$soname.def;
13109 else
13110 echo EXPORTS > $output_objdir/$soname.def;
13111 cat $export_symbols >> $output_objdir/$soname.def;
13112 fi~
13113 $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'
13114 else
13115 ld_shlibs_CXX=no
13116 fi
13117 ;;
13118 darwin* | rhapsody*)
13119
13120
13121 archive_cmds_need_lc_CXX=no
13122 hardcode_direct_CXX=no
13123 hardcode_automatic_CXX=yes
13124 hardcode_shlibpath_var_CXX=unsupported
13125 if test "$lt_cv_ld_force_load" = "yes"; then
13126 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\"`'
13127 else
13128 whole_archive_flag_spec_CXX=''
13129 fi
13130 link_all_deplibs_CXX=yes
13131 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13132 case $cc_basename in
13133 ifort*) _lt_dar_can_shared=yes ;;
13134 *) _lt_dar_can_shared=$GCC ;;
13135 esac
13136 if test "$_lt_dar_can_shared" = "yes"; then
13137 output_verbose_link_cmd=func_echo_all
13138 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}"
13139 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13140 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}"
13141 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}"
13142 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13143 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}"
13144 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}"
13145 fi
13146
13147 else
13148 ld_shlibs_CXX=no
13149 fi
13150
13151 ;;
13152
13153 dgux*)
13154 case $cc_basename in
13155 ec++*)
13156 # FIXME: insert proper C++ library support
13157 ld_shlibs_CXX=no
13158 ;;
13159 ghcx*)
13160 # Green Hills C++ Compiler
13161 # FIXME: insert proper C++ library support
13162 ld_shlibs_CXX=no
13163 ;;
13164 *)
13165 # FIXME: insert proper C++ library support
13166 ld_shlibs_CXX=no
13167 ;;
13168 esac
13169 ;;
13170
13171 freebsd2.*)
13172 # C++ shared libraries reported to be fairly broken before
13173 # switch to ELF
13174 ld_shlibs_CXX=no
13175 ;;
13176
13177 freebsd-elf*)
13178 archive_cmds_need_lc_CXX=no
13179 ;;
13180
13181 freebsd* | dragonfly*)
13182 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13183 # conventions
13184 ld_shlibs_CXX=yes
13185 ;;
13186
13187 gnu*)
13188 ;;
13189
13190 haiku*)
13191 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13192 link_all_deplibs_CXX=yes
13193 ;;
13194
13195 hpux9*)
13196 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13197 hardcode_libdir_separator_CXX=:
13198 export_dynamic_flag_spec_CXX='${wl}-E'
13199 hardcode_direct_CXX=yes
13200 hardcode_minus_L_CXX=yes # Not in the search PATH,
13201 # but as the default
13202 # location of the library.
13203
13204 case $cc_basename in
13205 CC*)
13206 # FIXME: insert proper C++ library support
13207 ld_shlibs_CXX=no
13208 ;;
13209 aCC*)
13210 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'
13211 # Commands to make compiler produce verbose output that lists
13212 # what "hidden" libraries, object files and flags are used when
13213 # linking a shared library.
13214 #
13215 # There doesn't appear to be a way to prevent this compiler from
13216 # explicitly linking system object files so we need to strip them
13217 # from the output so that they don't get included in the library
13218 # dependencies.
13219 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"'
13220 ;;
13221 *)
13222 if test "$GXX" = yes; then
13223 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
13224 else
13225 # FIXME: insert proper C++ library support
13226 ld_shlibs_CXX=no
13227 fi
13228 ;;
13229 esac
13230 ;;
13231
13232 hpux10*|hpux11*)
13233 if test $with_gnu_ld = no; then
13234 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13235 hardcode_libdir_separator_CXX=:
13236
13237 case $host_cpu in
13238 hppa*64*|ia64*)
13239 ;;
13240 *)
13241 export_dynamic_flag_spec_CXX='${wl}-E'
13242 ;;
13243 esac
13244 fi
13245 case $host_cpu in
13246 hppa*64*|ia64*)
13247 hardcode_direct_CXX=no
13248 hardcode_shlibpath_var_CXX=no
13249 ;;
13250 *)
13251 hardcode_direct_CXX=yes
13252 hardcode_direct_absolute_CXX=yes
13253 hardcode_minus_L_CXX=yes # Not in the search PATH,
13254 # but as the default
13255 # location of the library.
13256 ;;
13257 esac
13258
13259 case $cc_basename in
13260 CC*)
13261 # FIXME: insert proper C++ library support
13262 ld_shlibs_CXX=no
13263 ;;
13264 aCC*)
13265 case $host_cpu in
13266 hppa*64*)
13267 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13268 ;;
13269 ia64*)
13270 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13271 ;;
13272 *)
13273 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13274 ;;
13275 esac
13276 # Commands to make compiler produce verbose output that lists
13277 # what "hidden" libraries, object files and flags are used when
13278 # linking a shared library.
13279 #
13280 # There doesn't appear to be a way to prevent this compiler from
13281 # explicitly linking system object files so we need to strip them
13282 # from the output so that they don't get included in the library
13283 # dependencies.
13284 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"'
13285 ;;
13286 *)
13287 if test "$GXX" = yes; then
13288 if test $with_gnu_ld = no; then
13289 case $host_cpu in
13290 hppa*64*)
13291 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13292 ;;
13293 ia64*)
13294 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13295 ;;
13296 *)
13297 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13298 ;;
13299 esac
13300 fi
13301 else
13302 # FIXME: insert proper C++ library support
13303 ld_shlibs_CXX=no
13304 fi
13305 ;;
13306 esac
13307 ;;
13308
13309 interix[3-9]*)
13310 hardcode_direct_CXX=no
13311 hardcode_shlibpath_var_CXX=no
13312 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13313 export_dynamic_flag_spec_CXX='${wl}-E'
13314 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13315 # Instead, shared libraries are loaded at an image base (0x10000000 by
13316 # default) and relocated if they conflict, which is a slow very memory
13317 # consuming and fragmenting process. To avoid this, we pick a random,
13318 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13319 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13320 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'
13321 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'
13322 ;;
13323 irix5* | irix6*)
13324 case $cc_basename in
13325 CC*)
13326 # SGI C++
13327 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'
13328
13329 # Archives containing C++ object files must be created using
13330 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13331 # necessary to make sure instantiated templates are included
13332 # in the archive.
13333 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13334 ;;
13335 *)
13336 if test "$GXX" = yes; then
13337 if test "$with_gnu_ld" = no; then
13338 archive_cmds_CXX='$CC -shared -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'
13339 else
13340 archive_cmds_CXX='$CC -shared -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'
13341 fi
13342 fi
13343 link_all_deplibs_CXX=yes
13344 ;;
13345 esac
13346 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13347 hardcode_libdir_separator_CXX=:
13348 inherit_rpath_CXX=yes
13349 ;;
13350
13351 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13352 case $cc_basename in
13353 KCC*)
13354 # Kuck and Associates, Inc. (KAI) C++ Compiler
13355
13356 # KCC will only create a shared library if the output file
13357 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13358 # to its proper name (with version) after linking.
13359 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'
13360 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'
13361 # Commands to make compiler produce verbose output that lists
13362 # what "hidden" libraries, object files and flags are used when
13363 # linking a shared library.
13364 #
13365 # There doesn't appear to be a way to prevent this compiler from
13366 # explicitly linking system object files so we need to strip them
13367 # from the output so that they don't get included in the library
13368 # dependencies.
13369 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"'
13370
13371 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13372 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13373
13374 # Archives containing C++ object files must be created using
13375 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13376 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13377 ;;
13378 icpc* | ecpc* )
13379 # Intel C++
13380 with_gnu_ld=yes
13381 # version 8.0 and above of icpc choke on multiply defined symbols
13382 # if we add $predep_objects and $postdep_objects, however 7.1 and
13383 # earlier do not add the objects themselves.
13384 case `$CC -V 2>&1` in
13385 *"Version 7."*)
13386 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13387 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'
13388 ;;
13389 *) # Version 8.0 or newer
13390 tmp_idyn=
13391 case $host_cpu in
13392 ia64*) tmp_idyn=' -i_dynamic';;
13393 esac
13394 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13395 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'
13396 ;;
13397 esac
13398 archive_cmds_need_lc_CXX=no
13399 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13400 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13401 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13402 ;;
13403 pgCC* | pgcpp*)
13404 # Portland Group C++ compiler
13405 case `$CC -V` in
13406 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13407 prelink_cmds_CXX='tpldir=Template.dir~
13408 rm -rf $tpldir~
13409 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13410 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13411 old_archive_cmds_CXX='tpldir=Template.dir~
13412 rm -rf $tpldir~
13413 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13414 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13415 $RANLIB $oldlib'
13416 archive_cmds_CXX='tpldir=Template.dir~
13417 rm -rf $tpldir~
13418 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13419 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13420 archive_expsym_cmds_CXX='tpldir=Template.dir~
13421 rm -rf $tpldir~
13422 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13423 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13424 ;;
13425 *) # Version 6 and above use weak symbols
13426 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13427 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'
13428 ;;
13429 esac
13430
13431 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13432 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13433 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'
13434 ;;
13435 cxx*)
13436 # Compaq C++
13437 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13438 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'
13439
13440 runpath_var=LD_RUN_PATH
13441 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13442 hardcode_libdir_separator_CXX=:
13443
13444 # Commands to make compiler produce verbose output that lists
13445 # what "hidden" libraries, object files and flags are used when
13446 # linking a shared library.
13447 #
13448 # There doesn't appear to be a way to prevent this compiler from
13449 # explicitly linking system object files so we need to strip them
13450 # from the output so that they don't get included in the library
13451 # dependencies.
13452 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'
13453 ;;
13454 xl* | mpixl* | bgxl*)
13455 # IBM XL 8.0 on PPC, with GNU ld
13456 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13457 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13458 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13459 if test "x$supports_anon_versioning" = xyes; then
13460 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13461 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13462 echo "local: *; };" >> $output_objdir/$libname.ver~
13463 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13464 fi
13465 ;;
13466 *)
13467 case `$CC -V 2>&1 | sed 5q` in
13468 *Sun\ C*)
13469 # Sun C++ 5.9
13470 no_undefined_flag_CXX=' -zdefs'
13471 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13472 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'
13473 hardcode_libdir_flag_spec_CXX='-R$libdir'
13474 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'
13475 compiler_needs_object_CXX=yes
13476
13477 # Not sure whether something based on
13478 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13479 # would be better.
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 esac
13489 ;;
13490 esac
13491 ;;
13492
13493 lynxos*)
13494 # FIXME: insert proper C++ library support
13495 ld_shlibs_CXX=no
13496 ;;
13497
13498 m88k*)
13499 # FIXME: insert proper C++ library support
13500 ld_shlibs_CXX=no
13501 ;;
13502
13503 mvs*)
13504 case $cc_basename in
13505 cxx*)
13506 # FIXME: insert proper C++ library support
13507 ld_shlibs_CXX=no
13508 ;;
13509 *)
13510 # FIXME: insert proper C++ library support
13511 ld_shlibs_CXX=no
13512 ;;
13513 esac
13514 ;;
13515
13516 netbsd*)
13517 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13518 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13519 wlarc=
13520 hardcode_libdir_flag_spec_CXX='-R$libdir'
13521 hardcode_direct_CXX=yes
13522 hardcode_shlibpath_var_CXX=no
13523 fi
13524 # Workaround some broken pre-1.5 toolchains
13525 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13526 ;;
13527
13528 *nto* | *qnx*)
13529 ld_shlibs_CXX=yes
13530 ;;
13531
13532 openbsd2*)
13533 # C++ shared libraries are fairly broken
13534 ld_shlibs_CXX=no
13535 ;;
13536
13537 openbsd*)
13538 if test -f /usr/libexec/ld.so; then
13539 hardcode_direct_CXX=yes
13540 hardcode_shlibpath_var_CXX=no
13541 hardcode_direct_absolute_CXX=yes
13542 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13543 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13544 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13545 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13546 export_dynamic_flag_spec_CXX='${wl}-E'
13547 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13548 fi
13549 output_verbose_link_cmd=func_echo_all
13550 else
13551 ld_shlibs_CXX=no
13552 fi
13553 ;;
13554
13555 osf3* | osf4* | osf5*)
13556 case $cc_basename in
13557 KCC*)
13558 # Kuck and Associates, Inc. (KAI) C++ Compiler
13559
13560 # KCC will only create a shared library if the output file
13561 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13562 # to its proper name (with version) after linking.
13563 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'
13564
13565 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13566 hardcode_libdir_separator_CXX=:
13567
13568 # Archives containing C++ object files must be created using
13569 # the KAI C++ compiler.
13570 case $host in
13571 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13572 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13573 esac
13574 ;;
13575 RCC*)
13576 # Rational C++ 2.4.1
13577 # FIXME: insert proper C++ library support
13578 ld_shlibs_CXX=no
13579 ;;
13580 cxx*)
13581 case $host in
13582 osf3*)
13583 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13584 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'
13585 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13586 ;;
13587 *)
13588 allow_undefined_flag_CXX=' -expect_unresolved \*'
13589 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'
13590 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13591 echo "-hidden">> $lib.exp~
13592 $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~
13593 $RM $lib.exp'
13594 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13595 ;;
13596 esac
13597
13598 hardcode_libdir_separator_CXX=:
13599
13600 # Commands to make compiler produce verbose output that lists
13601 # what "hidden" libraries, object files and flags are used when
13602 # linking a shared library.
13603 #
13604 # There doesn't appear to be a way to prevent this compiler from
13605 # explicitly linking system object files so we need to strip them
13606 # from the output so that they don't get included in the library
13607 # dependencies.
13608 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $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"'
13609 ;;
13610 *)
13611 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13612 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13613 case $host in
13614 osf3*)
13615 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'
13616 ;;
13617 *)
13618 archive_cmds_CXX='$CC -shared -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'
13619 ;;
13620 esac
13621
13622 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13623 hardcode_libdir_separator_CXX=:
13624
13625 # Commands to make compiler produce verbose output that lists
13626 # what "hidden" libraries, object files and flags are used when
13627 # linking a shared library.
13628 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13629
13630 else
13631 # FIXME: insert proper C++ library support
13632 ld_shlibs_CXX=no
13633 fi
13634 ;;
13635 esac
13636 ;;
13637
13638 psos*)
13639 # FIXME: insert proper C++ library support
13640 ld_shlibs_CXX=no
13641 ;;
13642
13643 sunos4*)
13644 case $cc_basename in
13645 CC*)
13646 # Sun C++ 4.x
13647 # FIXME: insert proper C++ library support
13648 ld_shlibs_CXX=no
13649 ;;
13650 lcc*)
13651 # Lucid
13652 # FIXME: insert proper C++ library support
13653 ld_shlibs_CXX=no
13654 ;;
13655 *)
13656 # FIXME: insert proper C++ library support
13657 ld_shlibs_CXX=no
13658 ;;
13659 esac
13660 ;;
13661
13662 solaris*)
13663 case $cc_basename in
13664 CC*)
13665 # Sun C++ 4.2, 5.x and Centerline C++
13666 archive_cmds_need_lc_CXX=yes
13667 no_undefined_flag_CXX=' -zdefs'
13668 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13669 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13670 $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'
13671
13672 hardcode_libdir_flag_spec_CXX='-R$libdir'
13673 hardcode_shlibpath_var_CXX=no
13674 case $host_os in
13675 solaris2.[0-5] | solaris2.[0-5].*) ;;
13676 *)
13677 # The compiler driver will combine and reorder linker options,
13678 # but understands `-z linker_flag'.
13679 # Supported since Solaris 2.6 (maybe 2.5.1?)
13680 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13681 ;;
13682 esac
13683 link_all_deplibs_CXX=yes
13684
13685 output_verbose_link_cmd='func_echo_all'
13686
13687 # Archives containing C++ object files must be created using
13688 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13689 # necessary to make sure instantiated templates are included
13690 # in the archive.
13691 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13692 ;;
13693 gcx*)
13694 # Green Hills C++ Compiler
13695 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13696
13697 # The C++ compiler must be used to create the archive.
13698 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13699 ;;
13700 *)
13701 # GNU C++ compiler with Solaris linker
13702 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13703 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13704 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13705 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13706 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13707 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13708
13709 # Commands to make compiler produce verbose output that lists
13710 # what "hidden" libraries, object files and flags are used when
13711 # linking a shared library.
13712 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13713 else
13714 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13715 # platform.
13716 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13717 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13718 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13719
13720 # Commands to make compiler produce verbose output that lists
13721 # what "hidden" libraries, object files and flags are used when
13722 # linking a shared library.
13723 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13724 fi
13725
13726 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13727 case $host_os in
13728 solaris2.[0-5] | solaris2.[0-5].*) ;;
13729 *)
13730 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13731 ;;
13732 esac
13733 fi
13734 ;;
13735 esac
13736 ;;
13737
13738 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13739 no_undefined_flag_CXX='${wl}-z,text'
13740 archive_cmds_need_lc_CXX=no
13741 hardcode_shlibpath_var_CXX=no
13742 runpath_var='LD_RUN_PATH'
13743
13744 case $cc_basename in
13745 CC*)
13746 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13747 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13748 ;;
13749 *)
13750 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13751 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13752 ;;
13753 esac
13754 ;;
13755
13756 sysv5* | sco3.2v5* | sco5v6*)
13757 # Note: We can NOT use -z defs as we might desire, because we do not
13758 # link with -lc, and that would cause any symbols used from libc to
13759 # always be unresolved, which means just about no library would
13760 # ever link correctly. If we're not using GNU ld we use -z text
13761 # though, which does catch some bad symbols but isn't as heavy-handed
13762 # as -z defs.
13763 no_undefined_flag_CXX='${wl}-z,text'
13764 allow_undefined_flag_CXX='${wl}-z,nodefs'
13765 archive_cmds_need_lc_CXX=no
13766 hardcode_shlibpath_var_CXX=no
13767 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13768 hardcode_libdir_separator_CXX=':'
13769 link_all_deplibs_CXX=yes
13770 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13771 runpath_var='LD_RUN_PATH'
13772
13773 case $cc_basename in
13774 CC*)
13775 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13776 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13777 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13778 '"$old_archive_cmds_CXX"
13779 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13780 '"$reload_cmds_CXX"
13781 ;;
13782 *)
13783 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13784 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13785 ;;
13786 esac
13787 ;;
13788
13789 tandem*)
13790 case $cc_basename in
13791 NCC*)
13792 # NonStop-UX NCC 3.20
13793 # FIXME: insert proper C++ library support
13794 ld_shlibs_CXX=no
13795 ;;
13796 *)
13797 # FIXME: insert proper C++ library support
13798 ld_shlibs_CXX=no
13799 ;;
13800 esac
13801 ;;
13802
13803 vxworks*)
13804 # FIXME: insert proper C++ library support
13805 ld_shlibs_CXX=no
13806 ;;
13807
13808 *)
13809 # FIXME: insert proper C++ library support
13810 ld_shlibs_CXX=no
13811 ;;
13812 esac
13813
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13815 $as_echo "$ld_shlibs_CXX" >&6; }
13816 test "$ld_shlibs_CXX" = no && can_build_shared=no
13817
13818 GCC_CXX="$GXX"
13819 LD_CXX="$LD"
13820
13821 ## CAVEAT EMPTOR:
13822 ## There is no encapsulation within the following macros, do not change
13823 ## the running order or otherwise move them around unless you know exactly
13824 ## what you are doing...
13825 # Dependencies to place before and after the object being linked:
13826 predep_objects_CXX=
13827 postdep_objects_CXX=
13828 predeps_CXX=
13829 postdeps_CXX=
13830 compiler_lib_search_path_CXX=
13831
13832 cat > conftest.$ac_ext <<_LT_EOF
13833 class Foo
13834 {
13835 public:
13836 Foo (void) { a = 0; }
13837 private:
13838 int a;
13839 };
13840 _LT_EOF
13841
13842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13843 (eval $ac_compile) 2>&5
13844 ac_status=$?
13845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13846 test $ac_status = 0; }; then
13847 # Parse the compiler output and extract the necessary
13848 # objects, libraries and library flags.
13849
13850 # Sentinel used to keep track of whether or not we are before
13851 # the conftest object file.
13852 pre_test_object_deps_done=no
13853
13854 for p in `eval "$output_verbose_link_cmd"`; do
13855 case $p in
13856
13857 -L* | -R* | -l*)
13858 # Some compilers place space between "-{L,R}" and the path.
13859 # Remove the space.
13860 if test $p = "-L" ||
13861 test $p = "-R"; then
13862 prev=$p
13863 continue
13864 else
13865 prev=
13866 fi
13867
13868 if test "$pre_test_object_deps_done" = no; then
13869 case $p in
13870 -L* | -R*)
13871 # Internal compiler library paths should come after those
13872 # provided the user. The postdeps already come after the
13873 # user supplied libs so there is no need to process them.
13874 if test -z "$compiler_lib_search_path_CXX"; then
13875 compiler_lib_search_path_CXX="${prev}${p}"
13876 else
13877 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13878 fi
13879 ;;
13880 # The "-l" case would never come before the object being
13881 # linked, so don't bother handling this case.
13882 esac
13883 else
13884 if test -z "$postdeps_CXX"; then
13885 postdeps_CXX="${prev}${p}"
13886 else
13887 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13888 fi
13889 fi
13890 ;;
13891
13892 *.$objext)
13893 # This assumes that the test object file only shows up
13894 # once in the compiler output.
13895 if test "$p" = "conftest.$objext"; then
13896 pre_test_object_deps_done=yes
13897 continue
13898 fi
13899
13900 if test "$pre_test_object_deps_done" = no; then
13901 if test -z "$predep_objects_CXX"; then
13902 predep_objects_CXX="$p"
13903 else
13904 predep_objects_CXX="$predep_objects_CXX $p"
13905 fi
13906 else
13907 if test -z "$postdep_objects_CXX"; then
13908 postdep_objects_CXX="$p"
13909 else
13910 postdep_objects_CXX="$postdep_objects_CXX $p"
13911 fi
13912 fi
13913 ;;
13914
13915 *) ;; # Ignore the rest.
13916
13917 esac
13918 done
13919
13920 # Clean up.
13921 rm -f a.out a.exe
13922 else
13923 echo "libtool.m4: error: problem compiling CXX test program"
13924 fi
13925
13926 $RM -f confest.$objext
13927
13928 # PORTME: override above test on systems where it is broken
13929 case $host_os in
13930 interix[3-9]*)
13931 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13932 # hack all around it, let's just trust "g++" to DTRT.
13933 predep_objects_CXX=
13934 postdep_objects_CXX=
13935 postdeps_CXX=
13936 ;;
13937
13938 linux*)
13939 case `$CC -V 2>&1 | sed 5q` in
13940 *Sun\ C*)
13941 # Sun C++ 5.9
13942
13943 # The more standards-conforming stlport4 library is
13944 # incompatible with the Cstd library. Avoid specifying
13945 # it if it's in CXXFLAGS. Ignore libCrun as
13946 # -library=stlport4 depends on it.
13947 case " $CXX $CXXFLAGS " in
13948 *" -library=stlport4 "*)
13949 solaris_use_stlport4=yes
13950 ;;
13951 esac
13952
13953 if test "$solaris_use_stlport4" != yes; then
13954 postdeps_CXX='-library=Cstd -library=Crun'
13955 fi
13956 ;;
13957 esac
13958 ;;
13959
13960 solaris*)
13961 case $cc_basename in
13962 CC*)
13963 # The more standards-conforming stlport4 library is
13964 # incompatible with the Cstd library. Avoid specifying
13965 # it if it's in CXXFLAGS. Ignore libCrun as
13966 # -library=stlport4 depends on it.
13967 case " $CXX $CXXFLAGS " in
13968 *" -library=stlport4 "*)
13969 solaris_use_stlport4=yes
13970 ;;
13971 esac
13972
13973 # Adding this requires a known-good setup of shared libraries for
13974 # Sun compiler versions before 5.6, else PIC objects from an old
13975 # archive will be linked into the output, leading to subtle bugs.
13976 if test "$solaris_use_stlport4" != yes; then
13977 postdeps_CXX='-library=Cstd -library=Crun'
13978 fi
13979 ;;
13980 esac
13981 ;;
13982 esac
13983
13984
13985 case " $postdeps_CXX " in
13986 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13987 esac
13988 compiler_lib_search_dirs_CXX=
13989 if test -n "${compiler_lib_search_path_CXX}"; then
13990 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13991 fi
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023 lt_prog_compiler_wl_CXX=
14024 lt_prog_compiler_pic_CXX=
14025 lt_prog_compiler_static_CXX=
14026
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14028 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14029
14030 # C++ specific cases for pic, static, wl, etc.
14031 if test "$GXX" = yes; then
14032 lt_prog_compiler_wl_CXX='-Wl,'
14033 lt_prog_compiler_static_CXX='-static'
14034
14035 case $host_os in
14036 aix*)
14037 # All AIX code is PIC.
14038 if test "$host_cpu" = ia64; then
14039 # AIX 5 now supports IA64 processor
14040 lt_prog_compiler_static_CXX='-Bstatic'
14041 fi
14042 lt_prog_compiler_pic_CXX='-fPIC'
14043 ;;
14044
14045 amigaos*)
14046 case $host_cpu in
14047 powerpc)
14048 # see comment about AmigaOS4 .so support
14049 lt_prog_compiler_pic_CXX='-fPIC'
14050 ;;
14051 m68k)
14052 # FIXME: we need at least 68020 code to build shared libraries, but
14053 # adding the `-m68020' flag to GCC prevents building anything better,
14054 # like `-m68040'.
14055 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14056 ;;
14057 esac
14058 ;;
14059
14060 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14061 # PIC is the default for these OSes.
14062 ;;
14063 mingw* | cygwin* | os2* | pw32* | cegcc*)
14064 # This hack is so that the source file can tell whether it is being
14065 # built for inclusion in a dll (and should export symbols for example).
14066 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14067 # (--disable-auto-import) libraries
14068 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14069 ;;
14070 darwin* | rhapsody*)
14071 # PIC is the default on this platform
14072 # Common symbols not allowed in MH_DYLIB files
14073 lt_prog_compiler_pic_CXX='-fno-common'
14074 ;;
14075 *djgpp*)
14076 # DJGPP does not support shared libraries at all
14077 lt_prog_compiler_pic_CXX=
14078 ;;
14079 haiku*)
14080 # PIC is the default for Haiku.
14081 # The "-static" flag exists, but is broken.
14082 lt_prog_compiler_static_CXX=
14083 ;;
14084 interix[3-9]*)
14085 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14086 # Instead, we relocate shared libraries at runtime.
14087 ;;
14088 sysv4*MP*)
14089 if test -d /usr/nec; then
14090 lt_prog_compiler_pic_CXX=-Kconform_pic
14091 fi
14092 ;;
14093 hpux*)
14094 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14095 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14096 # sets the default TLS model and affects inlining.
14097 case $host_cpu in
14098 hppa*64*)
14099 ;;
14100 *)
14101 lt_prog_compiler_pic_CXX='-fPIC'
14102 ;;
14103 esac
14104 ;;
14105 *qnx* | *nto*)
14106 # QNX uses GNU C++, but need to define -shared option too, otherwise
14107 # it will coredump.
14108 lt_prog_compiler_pic_CXX='-fPIC -shared'
14109 ;;
14110 *)
14111 lt_prog_compiler_pic_CXX='-fPIC'
14112 ;;
14113 esac
14114 else
14115 case $host_os in
14116 aix[4-9]*)
14117 # All AIX code is PIC.
14118 if test "$host_cpu" = ia64; then
14119 # AIX 5 now supports IA64 processor
14120 lt_prog_compiler_static_CXX='-Bstatic'
14121 else
14122 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14123 fi
14124 ;;
14125 chorus*)
14126 case $cc_basename in
14127 cxch68*)
14128 # Green Hills C++ Compiler
14129 # _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"
14130 ;;
14131 esac
14132 ;;
14133 dgux*)
14134 case $cc_basename in
14135 ec++*)
14136 lt_prog_compiler_pic_CXX='-KPIC'
14137 ;;
14138 ghcx*)
14139 # Green Hills C++ Compiler
14140 lt_prog_compiler_pic_CXX='-pic'
14141 ;;
14142 *)
14143 ;;
14144 esac
14145 ;;
14146 freebsd* | dragonfly*)
14147 # FreeBSD uses GNU C++
14148 ;;
14149 hpux9* | hpux10* | hpux11*)
14150 case $cc_basename in
14151 CC*)
14152 lt_prog_compiler_wl_CXX='-Wl,'
14153 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14154 if test "$host_cpu" != ia64; then
14155 lt_prog_compiler_pic_CXX='+Z'
14156 fi
14157 ;;
14158 aCC*)
14159 lt_prog_compiler_wl_CXX='-Wl,'
14160 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14161 case $host_cpu in
14162 hppa*64*|ia64*)
14163 # +Z the default
14164 ;;
14165 *)
14166 lt_prog_compiler_pic_CXX='+Z'
14167 ;;
14168 esac
14169 ;;
14170 *)
14171 ;;
14172 esac
14173 ;;
14174 interix*)
14175 # This is c89, which is MS Visual C++ (no shared libs)
14176 # Anyone wants to do a port?
14177 ;;
14178 irix5* | irix6* | nonstopux*)
14179 case $cc_basename in
14180 CC*)
14181 lt_prog_compiler_wl_CXX='-Wl,'
14182 lt_prog_compiler_static_CXX='-non_shared'
14183 # CC pic flag -KPIC is the default.
14184 ;;
14185 *)
14186 ;;
14187 esac
14188 ;;
14189 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14190 case $cc_basename in
14191 KCC*)
14192 # KAI C++ Compiler
14193 lt_prog_compiler_wl_CXX='--backend -Wl,'
14194 lt_prog_compiler_pic_CXX='-fPIC'
14195 ;;
14196 ecpc* )
14197 # old Intel C++ for x86_64 which still supported -KPIC.
14198 lt_prog_compiler_wl_CXX='-Wl,'
14199 lt_prog_compiler_pic_CXX='-KPIC'
14200 lt_prog_compiler_static_CXX='-static'
14201 ;;
14202 icpc* )
14203 # Intel C++, used to be incompatible with GCC.
14204 # ICC 10 doesn't accept -KPIC any more.
14205 lt_prog_compiler_wl_CXX='-Wl,'
14206 lt_prog_compiler_pic_CXX='-fPIC'
14207 lt_prog_compiler_static_CXX='-static'
14208 ;;
14209 pgCC* | pgcpp*)
14210 # Portland Group C++ compiler
14211 lt_prog_compiler_wl_CXX='-Wl,'
14212 lt_prog_compiler_pic_CXX='-fpic'
14213 lt_prog_compiler_static_CXX='-Bstatic'
14214 ;;
14215 cxx*)
14216 # Compaq C++
14217 # Make sure the PIC flag is empty. It appears that all Alpha
14218 # Linux and Compaq Tru64 Unix objects are PIC.
14219 lt_prog_compiler_pic_CXX=
14220 lt_prog_compiler_static_CXX='-non_shared'
14221 ;;
14222 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14223 # IBM XL 8.0, 9.0 on PPC and BlueGene
14224 lt_prog_compiler_wl_CXX='-Wl,'
14225 lt_prog_compiler_pic_CXX='-qpic'
14226 lt_prog_compiler_static_CXX='-qstaticlink'
14227 ;;
14228 *)
14229 case `$CC -V 2>&1 | sed 5q` in
14230 *Sun\ C*)
14231 # Sun C++ 5.9
14232 lt_prog_compiler_pic_CXX='-KPIC'
14233 lt_prog_compiler_static_CXX='-Bstatic'
14234 lt_prog_compiler_wl_CXX='-Qoption ld '
14235 ;;
14236 esac
14237 ;;
14238 esac
14239 ;;
14240 lynxos*)
14241 ;;
14242 m88k*)
14243 ;;
14244 mvs*)
14245 case $cc_basename in
14246 cxx*)
14247 lt_prog_compiler_pic_CXX='-W c,exportall'
14248 ;;
14249 *)
14250 ;;
14251 esac
14252 ;;
14253 netbsd*)
14254 ;;
14255 *qnx* | *nto*)
14256 # QNX uses GNU C++, but need to define -shared option too, otherwise
14257 # it will coredump.
14258 lt_prog_compiler_pic_CXX='-fPIC -shared'
14259 ;;
14260 osf3* | osf4* | osf5*)
14261 case $cc_basename in
14262 KCC*)
14263 lt_prog_compiler_wl_CXX='--backend -Wl,'
14264 ;;
14265 RCC*)
14266 # Rational C++ 2.4.1
14267 lt_prog_compiler_pic_CXX='-pic'
14268 ;;
14269 cxx*)
14270 # Digital/Compaq C++
14271 lt_prog_compiler_wl_CXX='-Wl,'
14272 # Make sure the PIC flag is empty. It appears that all Alpha
14273 # Linux and Compaq Tru64 Unix objects are PIC.
14274 lt_prog_compiler_pic_CXX=
14275 lt_prog_compiler_static_CXX='-non_shared'
14276 ;;
14277 *)
14278 ;;
14279 esac
14280 ;;
14281 psos*)
14282 ;;
14283 solaris*)
14284 case $cc_basename in
14285 CC*)
14286 # Sun C++ 4.2, 5.x and Centerline C++
14287 lt_prog_compiler_pic_CXX='-KPIC'
14288 lt_prog_compiler_static_CXX='-Bstatic'
14289 lt_prog_compiler_wl_CXX='-Qoption ld '
14290 ;;
14291 gcx*)
14292 # Green Hills C++ Compiler
14293 lt_prog_compiler_pic_CXX='-PIC'
14294 ;;
14295 *)
14296 ;;
14297 esac
14298 ;;
14299 sunos4*)
14300 case $cc_basename in
14301 CC*)
14302 # Sun C++ 4.x
14303 lt_prog_compiler_pic_CXX='-pic'
14304 lt_prog_compiler_static_CXX='-Bstatic'
14305 ;;
14306 lcc*)
14307 # Lucid
14308 lt_prog_compiler_pic_CXX='-pic'
14309 ;;
14310 *)
14311 ;;
14312 esac
14313 ;;
14314 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14315 case $cc_basename in
14316 CC*)
14317 lt_prog_compiler_wl_CXX='-Wl,'
14318 lt_prog_compiler_pic_CXX='-KPIC'
14319 lt_prog_compiler_static_CXX='-Bstatic'
14320 ;;
14321 esac
14322 ;;
14323 tandem*)
14324 case $cc_basename in
14325 NCC*)
14326 # NonStop-UX NCC 3.20
14327 lt_prog_compiler_pic_CXX='-KPIC'
14328 ;;
14329 *)
14330 ;;
14331 esac
14332 ;;
14333 vxworks*)
14334 ;;
14335 *)
14336 lt_prog_compiler_can_build_shared_CXX=no
14337 ;;
14338 esac
14339 fi
14340
14341 case $host_os in
14342 # For platforms which do not support PIC, -DPIC is meaningless:
14343 *djgpp*)
14344 lt_prog_compiler_pic_CXX=
14345 ;;
14346 *)
14347 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14348 ;;
14349 esac
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14351 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14352
14353
14354
14355 #
14356 # Check to make sure the PIC flag actually works.
14357 #
14358 if test -n "$lt_prog_compiler_pic_CXX"; then
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14360 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14361 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14362 $as_echo_n "(cached) " >&6
14363 else
14364 lt_cv_prog_compiler_pic_works_CXX=no
14365 ac_outfile=conftest.$ac_objext
14366 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14367 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14368 # Insert the option either (1) after the last *FLAGS variable, or
14369 # (2) before a word containing "conftest.", or (3) at the end.
14370 # Note that $ac_compile itself does not contain backslashes and begins
14371 # with a dollar sign (not a hyphen), so the echo should work correctly.
14372 # The option is referenced via a variable to avoid confusing sed.
14373 lt_compile=`echo "$ac_compile" | $SED \
14374 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14375 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14376 -e 's:$: $lt_compiler_flag:'`
14377 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14378 (eval "$lt_compile" 2>conftest.err)
14379 ac_status=$?
14380 cat conftest.err >&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 if (exit $ac_status) && test -s "$ac_outfile"; then
14383 # The compiler can only warn and ignore the option if not recognized
14384 # So say no if there are warnings other than the usual output.
14385 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14386 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14387 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14388 lt_cv_prog_compiler_pic_works_CXX=yes
14389 fi
14390 fi
14391 $RM conftest*
14392
14393 fi
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14395 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14396
14397 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14398 case $lt_prog_compiler_pic_CXX in
14399 "" | " "*) ;;
14400 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14401 esac
14402 else
14403 lt_prog_compiler_pic_CXX=
14404 lt_prog_compiler_can_build_shared_CXX=no
14405 fi
14406
14407 fi
14408
14409
14410
14411 #
14412 # Check to make sure the static flag actually works.
14413 #
14414 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14416 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14417 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14418 $as_echo_n "(cached) " >&6
14419 else
14420 lt_cv_prog_compiler_static_works_CXX=no
14421 save_LDFLAGS="$LDFLAGS"
14422 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14423 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14424 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14425 # The linker can only warn and ignore the option if not recognized
14426 # So say no if there are warnings
14427 if test -s conftest.err; then
14428 # Append any errors to the config.log.
14429 cat conftest.err 1>&5
14430 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14431 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14432 if diff conftest.exp conftest.er2 >/dev/null; then
14433 lt_cv_prog_compiler_static_works_CXX=yes
14434 fi
14435 else
14436 lt_cv_prog_compiler_static_works_CXX=yes
14437 fi
14438 fi
14439 $RM -r conftest*
14440 LDFLAGS="$save_LDFLAGS"
14441
14442 fi
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14444 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14445
14446 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14447 :
14448 else
14449 lt_prog_compiler_static_CXX=
14450 fi
14451
14452
14453
14454
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14456 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14457 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14458 $as_echo_n "(cached) " >&6
14459 else
14460 lt_cv_prog_compiler_c_o_CXX=no
14461 $RM -r conftest 2>/dev/null
14462 mkdir conftest
14463 cd conftest
14464 mkdir out
14465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14466
14467 lt_compiler_flag="-o out/conftest2.$ac_objext"
14468 # Insert the option either (1) after the last *FLAGS variable, or
14469 # (2) before a word containing "conftest.", or (3) at the end.
14470 # Note that $ac_compile itself does not contain backslashes and begins
14471 # with a dollar sign (not a hyphen), so the echo should work correctly.
14472 lt_compile=`echo "$ac_compile" | $SED \
14473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14475 -e 's:$: $lt_compiler_flag:'`
14476 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14477 (eval "$lt_compile" 2>out/conftest.err)
14478 ac_status=$?
14479 cat out/conftest.err >&5
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14482 then
14483 # The compiler can only warn and ignore the option if not recognized
14484 # So say no if there are warnings
14485 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14486 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14487 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14488 lt_cv_prog_compiler_c_o_CXX=yes
14489 fi
14490 fi
14491 chmod u+w . 2>&5
14492 $RM conftest*
14493 # SGI C++ compiler will create directory out/ii_files/ for
14494 # template instantiation
14495 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14496 $RM out/* && rmdir out
14497 cd ..
14498 $RM -r conftest
14499 $RM conftest*
14500
14501 fi
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14503 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14504
14505
14506
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14508 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14509 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14510 $as_echo_n "(cached) " >&6
14511 else
14512 lt_cv_prog_compiler_c_o_CXX=no
14513 $RM -r conftest 2>/dev/null
14514 mkdir conftest
14515 cd conftest
14516 mkdir out
14517 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14518
14519 lt_compiler_flag="-o out/conftest2.$ac_objext"
14520 # Insert the option either (1) after the last *FLAGS variable, or
14521 # (2) before a word containing "conftest.", or (3) at the end.
14522 # Note that $ac_compile itself does not contain backslashes and begins
14523 # with a dollar sign (not a hyphen), so the echo should work correctly.
14524 lt_compile=`echo "$ac_compile" | $SED \
14525 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14526 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14527 -e 's:$: $lt_compiler_flag:'`
14528 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14529 (eval "$lt_compile" 2>out/conftest.err)
14530 ac_status=$?
14531 cat out/conftest.err >&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14534 then
14535 # The compiler can only warn and ignore the option if not recognized
14536 # So say no if there are warnings
14537 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14538 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14539 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14540 lt_cv_prog_compiler_c_o_CXX=yes
14541 fi
14542 fi
14543 chmod u+w . 2>&5
14544 $RM conftest*
14545 # SGI C++ compiler will create directory out/ii_files/ for
14546 # template instantiation
14547 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14548 $RM out/* && rmdir out
14549 cd ..
14550 $RM -r conftest
14551 $RM conftest*
14552
14553 fi
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14555 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14556
14557
14558
14559
14560 hard_links="nottested"
14561 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14562 # do not overwrite the value of need_locks provided by the user
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14564 $as_echo_n "checking if we can lock with hard links... " >&6; }
14565 hard_links=yes
14566 $RM conftest*
14567 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14568 touch conftest.a
14569 ln conftest.a conftest.b 2>&5 || hard_links=no
14570 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14572 $as_echo "$hard_links" >&6; }
14573 if test "$hard_links" = no; then
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14575 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14576 need_locks=warn
14577 fi
14578 else
14579 need_locks=no
14580 fi
14581
14582
14583
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14585 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14586
14587 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14588 case $host_os in
14589 aix[4-9]*)
14590 # If we're using GNU nm, then we don't want the "-C" option.
14591 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14592 # Also, AIX nm treats weak defined symbols like other global defined
14593 # symbols, whereas GNU nm marks them as "W".
14594 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14595 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'
14596 else
14597 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14598 fi
14599 ;;
14600 pw32*)
14601 export_symbols_cmds_CXX="$ltdll_cmds"
14602 ;;
14603 cygwin* | mingw* | cegcc*)
14604 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14605 ;;
14606 *)
14607 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14608 ;;
14609 esac
14610 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14611
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14613 $as_echo "$ld_shlibs_CXX" >&6; }
14614 test "$ld_shlibs_CXX" = no && can_build_shared=no
14615
14616 with_gnu_ld_CXX=$with_gnu_ld
14617
14618
14619
14620
14621
14622
14623 #
14624 # Do we need to explicitly link libc?
14625 #
14626 case "x$archive_cmds_need_lc_CXX" in
14627 x|xyes)
14628 # Assume -lc should be added
14629 archive_cmds_need_lc_CXX=yes
14630
14631 if test "$enable_shared" = yes && test "$GCC" = yes; then
14632 case $archive_cmds_CXX in
14633 *'~'*)
14634 # FIXME: we may have to deal with multi-command sequences.
14635 ;;
14636 '$CC '*)
14637 # Test whether the compiler implicitly links with -lc since on some
14638 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14639 # to ld, don't add -lc before -lgcc.
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14641 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14642 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14643 $as_echo_n "(cached) " >&6
14644 else
14645 $RM conftest*
14646 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14647
14648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14649 (eval $ac_compile) 2>&5
14650 ac_status=$?
14651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14652 test $ac_status = 0; } 2>conftest.err; then
14653 soname=conftest
14654 lib=conftest
14655 libobjs=conftest.$ac_objext
14656 deplibs=
14657 wl=$lt_prog_compiler_wl_CXX
14658 pic_flag=$lt_prog_compiler_pic_CXX
14659 compiler_flags=-v
14660 linker_flags=-v
14661 verstring=
14662 output_objdir=.
14663 libname=conftest
14664 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14665 allow_undefined_flag_CXX=
14666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14667 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14668 ac_status=$?
14669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14670 test $ac_status = 0; }
14671 then
14672 lt_cv_archive_cmds_need_lc_CXX=no
14673 else
14674 lt_cv_archive_cmds_need_lc_CXX=yes
14675 fi
14676 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14677 else
14678 cat conftest.err 1>&5
14679 fi
14680 $RM conftest*
14681
14682 fi
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14684 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14685 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14686 ;;
14687 esac
14688 fi
14689 ;;
14690 esac
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14756 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14757
14758 library_names_spec=
14759 libname_spec='lib$name'
14760 soname_spec=
14761 shrext_cmds=".so"
14762 postinstall_cmds=
14763 postuninstall_cmds=
14764 finish_cmds=
14765 finish_eval=
14766 shlibpath_var=
14767 shlibpath_overrides_runpath=unknown
14768 version_type=none
14769 dynamic_linker="$host_os ld.so"
14770 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14771 need_lib_prefix=unknown
14772 hardcode_into_libs=no
14773
14774 # when you set need_version to no, make sure it does not cause -set_version
14775 # flags to be left without arguments
14776 need_version=unknown
14777
14778 case $host_os in
14779 aix3*)
14780 version_type=linux
14781 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14782 shlibpath_var=LIBPATH
14783
14784 # AIX 3 has no versioning support, so we append a major version to the name.
14785 soname_spec='${libname}${release}${shared_ext}$major'
14786 ;;
14787
14788 aix[4-9]*)
14789 version_type=linux
14790 need_lib_prefix=no
14791 need_version=no
14792 hardcode_into_libs=yes
14793 if test "$host_cpu" = ia64; then
14794 # AIX 5 supports IA64
14795 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14796 shlibpath_var=LD_LIBRARY_PATH
14797 else
14798 # With GCC up to 2.95.x, collect2 would create an import file
14799 # for dependence libraries. The import file would start with
14800 # the line `#! .'. This would cause the generated library to
14801 # depend on `.', always an invalid library. This was fixed in
14802 # development snapshots of GCC prior to 3.0.
14803 case $host_os in
14804 aix4 | aix4.[01] | aix4.[01].*)
14805 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14806 echo ' yes '
14807 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14808 :
14809 else
14810 can_build_shared=no
14811 fi
14812 ;;
14813 esac
14814 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14815 # soname into executable. Probably we can add versioning support to
14816 # collect2, so additional links can be useful in future.
14817 if test "$aix_use_runtimelinking" = yes; then
14818 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14819 # instead of lib<name>.a to let people know that these are not
14820 # typical AIX shared libraries.
14821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14822 else
14823 # We preserve .a as extension for shared libraries through AIX4.2
14824 # and later when we are not doing run time linking.
14825 library_names_spec='${libname}${release}.a $libname.a'
14826 soname_spec='${libname}${release}${shared_ext}$major'
14827 fi
14828 shlibpath_var=LIBPATH
14829 fi
14830 ;;
14831
14832 amigaos*)
14833 case $host_cpu in
14834 powerpc)
14835 # Since July 2007 AmigaOS4 officially supports .so libraries.
14836 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14838 ;;
14839 m68k)
14840 library_names_spec='$libname.ixlibrary $libname.a'
14841 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14842 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'
14843 ;;
14844 esac
14845 ;;
14846
14847 beos*)
14848 library_names_spec='${libname}${shared_ext}'
14849 dynamic_linker="$host_os ld.so"
14850 shlibpath_var=LIBRARY_PATH
14851 ;;
14852
14853 bsdi[45]*)
14854 version_type=linux
14855 need_version=no
14856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14857 soname_spec='${libname}${release}${shared_ext}$major'
14858 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14859 shlibpath_var=LD_LIBRARY_PATH
14860 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14861 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14862 # the default ld.so.conf also contains /usr/contrib/lib and
14863 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14864 # libtool to hard-code these into programs
14865 ;;
14866
14867 cygwin* | mingw* | pw32* | cegcc*)
14868 version_type=windows
14869 shrext_cmds=".dll"
14870 need_version=no
14871 need_lib_prefix=no
14872
14873 case $GCC,$host_os in
14874 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14875 library_names_spec='$libname.dll.a'
14876 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14877 postinstall_cmds='base_file=`basename \${file}`~
14878 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14879 dldir=$destdir/`dirname \$dlpath`~
14880 test -d \$dldir || mkdir -p \$dldir~
14881 $install_prog $dir/$dlname \$dldir/$dlname~
14882 chmod a+x \$dldir/$dlname~
14883 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14884 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14885 fi'
14886 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14887 dlpath=$dir/\$dldll~
14888 $RM \$dlpath'
14889 shlibpath_overrides_runpath=yes
14890
14891 case $host_os in
14892 cygwin*)
14893 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14894 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14895
14896 ;;
14897 mingw* | cegcc*)
14898 # MinGW DLLs use traditional 'lib' prefix
14899 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14900 ;;
14901 pw32*)
14902 # pw32 DLLs use 'pw' prefix rather than 'lib'
14903 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14904 ;;
14905 esac
14906 ;;
14907
14908 *)
14909 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14910 ;;
14911 esac
14912 dynamic_linker='Win32 ld.exe'
14913 # FIXME: first we should search . and the directory the executable is in
14914 shlibpath_var=PATH
14915 ;;
14916
14917 darwin* | rhapsody*)
14918 dynamic_linker="$host_os dyld"
14919 version_type=darwin
14920 need_lib_prefix=no
14921 need_version=no
14922 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14923 soname_spec='${libname}${release}${major}$shared_ext'
14924 shlibpath_overrides_runpath=yes
14925 shlibpath_var=DYLD_LIBRARY_PATH
14926 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14927
14928 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14929 ;;
14930
14931 dgux*)
14932 version_type=linux
14933 need_lib_prefix=no
14934 need_version=no
14935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14936 soname_spec='${libname}${release}${shared_ext}$major'
14937 shlibpath_var=LD_LIBRARY_PATH
14938 ;;
14939
14940 freebsd* | dragonfly*)
14941 # DragonFly does not have aout. When/if they implement a new
14942 # versioning mechanism, adjust this.
14943 if test -x /usr/bin/objformat; then
14944 objformat=`/usr/bin/objformat`
14945 else
14946 case $host_os in
14947 freebsd[23].*) objformat=aout ;;
14948 *) objformat=elf ;;
14949 esac
14950 fi
14951 version_type=freebsd-$objformat
14952 case $version_type in
14953 freebsd-elf*)
14954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14955 need_version=no
14956 need_lib_prefix=no
14957 ;;
14958 freebsd-*)
14959 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14960 need_version=yes
14961 ;;
14962 esac
14963 shlibpath_var=LD_LIBRARY_PATH
14964 case $host_os in
14965 freebsd2.*)
14966 shlibpath_overrides_runpath=yes
14967 ;;
14968 freebsd3.[01]* | freebsdelf3.[01]*)
14969 shlibpath_overrides_runpath=yes
14970 hardcode_into_libs=yes
14971 ;;
14972 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14973 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14974 shlibpath_overrides_runpath=no
14975 hardcode_into_libs=yes
14976 ;;
14977 *) # from 4.6 on, and DragonFly
14978 shlibpath_overrides_runpath=yes
14979 hardcode_into_libs=yes
14980 ;;
14981 esac
14982 ;;
14983
14984 haiku*)
14985 version_type=linux
14986 need_lib_prefix=no
14987 need_version=no
14988 dynamic_linker="$host_os runtime_loader"
14989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14990 soname_spec='${libname}${release}${shared_ext}$major'
14991 shlibpath_var=LIBRARY_PATH
14992 shlibpath_overrides_runpath=yes
14993 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14994 hardcode_into_libs=yes
14995 ;;
14996
14997 hpux9* | hpux10* | hpux11*)
14998 # Give a soname corresponding to the major version so that dld.sl refuses to
14999 # link against other versions.
15000 version_type=sunos
15001 need_lib_prefix=no
15002 need_version=no
15003 case $host_cpu in
15004 ia64*)
15005 shrext_cmds='.so'
15006 hardcode_into_libs=yes
15007 dynamic_linker="$host_os dld.so"
15008 shlibpath_var=LD_LIBRARY_PATH
15009 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15011 soname_spec='${libname}${release}${shared_ext}$major'
15012 if test "X$HPUX_IA64_MODE" = X32; then
15013 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15014 else
15015 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15016 fi
15017 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15018 ;;
15019 hppa*64*)
15020 shrext_cmds='.sl'
15021 hardcode_into_libs=yes
15022 dynamic_linker="$host_os dld.sl"
15023 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15024 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15026 soname_spec='${libname}${release}${shared_ext}$major'
15027 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15028 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15029 ;;
15030 *)
15031 shrext_cmds='.sl'
15032 dynamic_linker="$host_os dld.sl"
15033 shlibpath_var=SHLIB_PATH
15034 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15036 soname_spec='${libname}${release}${shared_ext}$major'
15037 ;;
15038 esac
15039 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15040 postinstall_cmds='chmod 555 $lib'
15041 # or fails outright, so override atomically:
15042 install_override_mode=555
15043 ;;
15044
15045 interix[3-9]*)
15046 version_type=linux
15047 need_lib_prefix=no
15048 need_version=no
15049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15050 soname_spec='${libname}${release}${shared_ext}$major'
15051 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15052 shlibpath_var=LD_LIBRARY_PATH
15053 shlibpath_overrides_runpath=no
15054 hardcode_into_libs=yes
15055 ;;
15056
15057 irix5* | irix6* | nonstopux*)
15058 case $host_os in
15059 nonstopux*) version_type=nonstopux ;;
15060 *)
15061 if test "$lt_cv_prog_gnu_ld" = yes; then
15062 version_type=linux
15063 else
15064 version_type=irix
15065 fi ;;
15066 esac
15067 need_lib_prefix=no
15068 need_version=no
15069 soname_spec='${libname}${release}${shared_ext}$major'
15070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15071 case $host_os in
15072 irix5* | nonstopux*)
15073 libsuff= shlibsuff=
15074 ;;
15075 *)
15076 case $LD in # libtool.m4 will add one of these switches to LD
15077 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15078 libsuff= shlibsuff= libmagic=32-bit;;
15079 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15080 libsuff=32 shlibsuff=N32 libmagic=N32;;
15081 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15082 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15083 *) libsuff= shlibsuff= libmagic=never-match;;
15084 esac
15085 ;;
15086 esac
15087 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15088 shlibpath_overrides_runpath=no
15089 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15090 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15091 hardcode_into_libs=yes
15092 ;;
15093
15094 # No shared lib support for Linux oldld, aout, or coff.
15095 linux*oldld* | linux*aout* | linux*coff*)
15096 dynamic_linker=no
15097 ;;
15098
15099 # This must be Linux ELF.
15100 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15101 version_type=linux
15102 need_lib_prefix=no
15103 need_version=no
15104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15105 soname_spec='${libname}${release}${shared_ext}$major'
15106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15107 shlibpath_var=LD_LIBRARY_PATH
15108 shlibpath_overrides_runpath=no
15109
15110 # Some binutils ld are patched to set DT_RUNPATH
15111 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15112 $as_echo_n "(cached) " >&6
15113 else
15114 lt_cv_shlibpath_overrides_runpath=no
15115 save_LDFLAGS=$LDFLAGS
15116 save_libdir=$libdir
15117 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15118 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15120 /* end confdefs.h. */
15121
15122 int
15123 main ()
15124 {
15125
15126 ;
15127 return 0;
15128 }
15129 _ACEOF
15130 if ac_fn_cxx_try_link "$LINENO"; then :
15131 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15132 lt_cv_shlibpath_overrides_runpath=yes
15133 fi
15134 fi
15135 rm -f core conftest.err conftest.$ac_objext \
15136 conftest$ac_exeext conftest.$ac_ext
15137 LDFLAGS=$save_LDFLAGS
15138 libdir=$save_libdir
15139
15140 fi
15141
15142 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15143
15144 # This implies no fast_install, which is unacceptable.
15145 # Some rework will be needed to allow for fast_install
15146 # before this can be enabled.
15147 hardcode_into_libs=yes
15148
15149 # Append ld.so.conf contents to the search path
15150 if test -f /etc/ld.so.conf; then
15151 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' ' '`
15152 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15153 fi
15154
15155 # We used to test for /lib/ld.so.1 and disable shared libraries on
15156 # powerpc, because MkLinux only supported shared libraries with the
15157 # GNU dynamic linker. Since this was broken with cross compilers,
15158 # most powerpc-linux boxes support dynamic linking these days and
15159 # people can always --disable-shared, the test was removed, and we
15160 # assume the GNU/Linux dynamic linker is in use.
15161 dynamic_linker='GNU/Linux ld.so'
15162 ;;
15163
15164 netbsd*)
15165 version_type=sunos
15166 need_lib_prefix=no
15167 need_version=no
15168 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15170 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15171 dynamic_linker='NetBSD (a.out) ld.so'
15172 else
15173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15174 soname_spec='${libname}${release}${shared_ext}$major'
15175 dynamic_linker='NetBSD ld.elf_so'
15176 fi
15177 shlibpath_var=LD_LIBRARY_PATH
15178 shlibpath_overrides_runpath=yes
15179 hardcode_into_libs=yes
15180 ;;
15181
15182 newsos6)
15183 version_type=linux
15184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15185 shlibpath_var=LD_LIBRARY_PATH
15186 shlibpath_overrides_runpath=yes
15187 ;;
15188
15189 *nto* | *qnx*)
15190 version_type=qnx
15191 need_lib_prefix=no
15192 need_version=no
15193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15194 soname_spec='${libname}${release}${shared_ext}$major'
15195 shlibpath_var=LD_LIBRARY_PATH
15196 shlibpath_overrides_runpath=no
15197 hardcode_into_libs=yes
15198 dynamic_linker='ldqnx.so'
15199 ;;
15200
15201 openbsd*)
15202 version_type=sunos
15203 sys_lib_dlsearch_path_spec="/usr/lib"
15204 need_lib_prefix=no
15205 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15206 case $host_os in
15207 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15208 *) need_version=no ;;
15209 esac
15210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15211 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15212 shlibpath_var=LD_LIBRARY_PATH
15213 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15214 case $host_os in
15215 openbsd2.[89] | openbsd2.[89].*)
15216 shlibpath_overrides_runpath=no
15217 ;;
15218 *)
15219 shlibpath_overrides_runpath=yes
15220 ;;
15221 esac
15222 else
15223 shlibpath_overrides_runpath=yes
15224 fi
15225 ;;
15226
15227 os2*)
15228 libname_spec='$name'
15229 shrext_cmds=".dll"
15230 need_lib_prefix=no
15231 library_names_spec='$libname${shared_ext} $libname.a'
15232 dynamic_linker='OS/2 ld.exe'
15233 shlibpath_var=LIBPATH
15234 ;;
15235
15236 osf3* | osf4* | osf5*)
15237 version_type=osf
15238 need_lib_prefix=no
15239 need_version=no
15240 soname_spec='${libname}${release}${shared_ext}$major'
15241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15242 shlibpath_var=LD_LIBRARY_PATH
15243 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15244 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15245 ;;
15246
15247 rdos*)
15248 dynamic_linker=no
15249 ;;
15250
15251 solaris*)
15252 version_type=linux
15253 need_lib_prefix=no
15254 need_version=no
15255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15256 soname_spec='${libname}${release}${shared_ext}$major'
15257 shlibpath_var=LD_LIBRARY_PATH
15258 shlibpath_overrides_runpath=yes
15259 hardcode_into_libs=yes
15260 # ldd complains unless libraries are executable
15261 postinstall_cmds='chmod +x $lib'
15262 ;;
15263
15264 sunos4*)
15265 version_type=sunos
15266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15267 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15268 shlibpath_var=LD_LIBRARY_PATH
15269 shlibpath_overrides_runpath=yes
15270 if test "$with_gnu_ld" = yes; then
15271 need_lib_prefix=no
15272 fi
15273 need_version=yes
15274 ;;
15275
15276 sysv4 | sysv4.3*)
15277 version_type=linux
15278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15279 soname_spec='${libname}${release}${shared_ext}$major'
15280 shlibpath_var=LD_LIBRARY_PATH
15281 case $host_vendor in
15282 sni)
15283 shlibpath_overrides_runpath=no
15284 need_lib_prefix=no
15285 runpath_var=LD_RUN_PATH
15286 ;;
15287 siemens)
15288 need_lib_prefix=no
15289 ;;
15290 motorola)
15291 need_lib_prefix=no
15292 need_version=no
15293 shlibpath_overrides_runpath=no
15294 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15295 ;;
15296 esac
15297 ;;
15298
15299 sysv4*MP*)
15300 if test -d /usr/nec ;then
15301 version_type=linux
15302 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15303 soname_spec='$libname${shared_ext}.$major'
15304 shlibpath_var=LD_LIBRARY_PATH
15305 fi
15306 ;;
15307
15308 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15309 version_type=freebsd-elf
15310 need_lib_prefix=no
15311 need_version=no
15312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15313 soname_spec='${libname}${release}${shared_ext}$major'
15314 shlibpath_var=LD_LIBRARY_PATH
15315 shlibpath_overrides_runpath=yes
15316 hardcode_into_libs=yes
15317 if test "$with_gnu_ld" = yes; then
15318 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15319 else
15320 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15321 case $host_os in
15322 sco3.2v5*)
15323 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15324 ;;
15325 esac
15326 fi
15327 sys_lib_dlsearch_path_spec='/usr/lib'
15328 ;;
15329
15330 tpf*)
15331 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15332 version_type=linux
15333 need_lib_prefix=no
15334 need_version=no
15335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15336 shlibpath_var=LD_LIBRARY_PATH
15337 shlibpath_overrides_runpath=no
15338 hardcode_into_libs=yes
15339 ;;
15340
15341 uts4*)
15342 version_type=linux
15343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15344 soname_spec='${libname}${release}${shared_ext}$major'
15345 shlibpath_var=LD_LIBRARY_PATH
15346 ;;
15347
15348 *)
15349 dynamic_linker=no
15350 ;;
15351 esac
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15353 $as_echo "$dynamic_linker" >&6; }
15354 test "$dynamic_linker" = no && can_build_shared=no
15355
15356 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15357 if test "$GCC" = yes; then
15358 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15359 fi
15360
15361 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15362 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15363 fi
15364 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15365 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15366 fi
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15406 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15407 hardcode_action_CXX=
15408 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15409 test -n "$runpath_var_CXX" ||
15410 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15411
15412 # We can hardcode non-existent directories.
15413 if test "$hardcode_direct_CXX" != no &&
15414 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15415 # have to relink, otherwise we might link with an installed library
15416 # when we should be linking with a yet-to-be-installed one
15417 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15418 test "$hardcode_minus_L_CXX" != no; then
15419 # Linking always hardcodes the temporary library directory.
15420 hardcode_action_CXX=relink
15421 else
15422 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15423 hardcode_action_CXX=immediate
15424 fi
15425 else
15426 # We cannot hardcode anything, or else we can only hardcode existing
15427 # directories.
15428 hardcode_action_CXX=unsupported
15429 fi
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15431 $as_echo "$hardcode_action_CXX" >&6; }
15432
15433 if test "$hardcode_action_CXX" = relink ||
15434 test "$inherit_rpath_CXX" = yes; then
15435 # Fast installation is not supported
15436 enable_fast_install=no
15437 elif test "$shlibpath_overrides_runpath" = yes ||
15438 test "$enable_shared" = no; then
15439 # Fast installation is not necessary
15440 enable_fast_install=needless
15441 fi
15442
15443
15444
15445
15446
15447
15448
15449 fi # test -n "$compiler"
15450
15451 CC=$lt_save_CC
15452 LDCXX=$LD
15453 LD=$lt_save_LD
15454 GCC=$lt_save_GCC
15455 with_gnu_ld=$lt_save_with_gnu_ld
15456 lt_cv_path_LDCXX=$lt_cv_path_LD
15457 lt_cv_path_LD=$lt_save_path_LD
15458 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15459 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15460 fi # test "$_lt_caught_CXX_error" != yes
15461
15462 ac_ext=c
15463 ac_cpp='$CPP $CPPFLAGS'
15464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480 ac_config_commands="$ac_config_commands libtool"
15481
15482
15483
15484
15485 # Only expand once:
15486
15487
15488
15489 GPROFNG_LIBADD="-L../../libiberty -liberty"
15490 if test "$enable_shared" = "yes"; then
15491 GPROFNG_LIBADD="-L../../libiberty/pic -liberty"
15492 fi
15493
15494
15495 # Figure out what compiler warnings we can enable.
15496 # See config/warnings.m4 for details.
15497
15498 ac_ext=c
15499 ac_cpp='$CPP $CPPFLAGS'
15500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15503
15504 WERROR=
15505 # Check whether --enable-werror-always was given.
15506 if test "${enable_werror_always+set}" = set; then :
15507 enableval=$enable_werror_always;
15508 else
15509 enable_werror_always=no
15510 fi
15511
15512 if test $enable_werror_always = yes; then :
15513 WERROR="$WERROR${WERROR:+ }-Werror"
15514 fi
15515
15516 ac_ext=c
15517 ac_cpp='$CPP $CPPFLAGS'
15518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15521
15522
15523 ac_ext=c
15524 ac_cpp='$CPP $CPPFLAGS'
15525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15528
15529 gprofng_cflags=
15530 save_CFLAGS="$CFLAGS"
15531 for real_option in -Wall; do
15532 # Do the check with the no- prefix removed since gcc silently
15533 # accepts any -Wno-* option on purpose
15534 case $real_option in
15535 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
15536 *) option=$real_option ;;
15537 esac
15538 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
15539
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
15541 $as_echo_n "checking whether $CC supports $option... " >&6; }
15542 if eval \${$as_acx_Woption+:} false; then :
15543 $as_echo_n "(cached) " >&6
15544 else
15545 CFLAGS="$option"
15546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15547 /* end confdefs.h. */
15548
15549 int
15550 main ()
15551 {
15552
15553 ;
15554 return 0;
15555 }
15556 _ACEOF
15557 if ac_fn_c_try_compile "$LINENO"; then :
15558 eval "$as_acx_Woption=yes"
15559 else
15560 eval "$as_acx_Woption=no"
15561 fi
15562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15563
15564 fi
15565 eval ac_res=\$$as_acx_Woption
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15567 $as_echo "$ac_res" >&6; }
15568 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
15569 gprofng_cflags="$gprofng_cflags${gprofng_cflags:+ }$real_option"
15570 fi
15571 done
15572 CFLAGS="$save_CFLAGS"
15573 ac_ext=c
15574 ac_cpp='$CPP $CPPFLAGS'
15575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15578
15579
15580 ac_ext=c
15581 ac_cpp='$CPP $CPPFLAGS'
15582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15585
15586 GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS=
15587 save_CFLAGS="$CFLAGS"
15588 for real_option in -Wno-format-truncation; do
15589 # Do the check with the no- prefix removed since gcc silently
15590 # accepts any -Wno-* option on purpose
15591 case $real_option in
15592 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
15593 *) option=$real_option ;;
15594 esac
15595 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
15596
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
15598 $as_echo_n "checking whether $CC supports $option... " >&6; }
15599 if eval \${$as_acx_Woption+:} false; then :
15600 $as_echo_n "(cached) " >&6
15601 else
15602 CFLAGS="$option"
15603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15604 /* end confdefs.h. */
15605
15606 int
15607 main ()
15608 {
15609
15610 ;
15611 return 0;
15612 }
15613 _ACEOF
15614 if ac_fn_c_try_compile "$LINENO"; then :
15615 eval "$as_acx_Woption=yes"
15616 else
15617 eval "$as_acx_Woption=no"
15618 fi
15619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15620
15621 fi
15622 eval ac_res=\$$as_acx_Woption
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15624 $as_echo "$ac_res" >&6; }
15625 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
15626 GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS="$GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS${GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS:+ }$real_option"
15627 fi
15628 done
15629 CFLAGS="$save_CFLAGS"
15630 ac_ext=c
15631 ac_cpp='$CPP $CPPFLAGS'
15632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15635
15636
15637 ac_ext=c
15638 ac_cpp='$CPP $CPPFLAGS'
15639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15642
15643 GPROFNG_NO_SWITCH_CFLAGS=
15644 save_CFLAGS="$CFLAGS"
15645 for real_option in -Wno-switch; do
15646 # Do the check with the no- prefix removed since gcc silently
15647 # accepts any -Wno-* option on purpose
15648 case $real_option in
15649 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
15650 *) option=$real_option ;;
15651 esac
15652 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
15653
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
15655 $as_echo_n "checking whether $CC supports $option... " >&6; }
15656 if eval \${$as_acx_Woption+:} false; then :
15657 $as_echo_n "(cached) " >&6
15658 else
15659 CFLAGS="$option"
15660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15661 /* end confdefs.h. */
15662
15663 int
15664 main ()
15665 {
15666
15667 ;
15668 return 0;
15669 }
15670 _ACEOF
15671 if ac_fn_c_try_compile "$LINENO"; then :
15672 eval "$as_acx_Woption=yes"
15673 else
15674 eval "$as_acx_Woption=no"
15675 fi
15676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15677
15678 fi
15679 eval ac_res=\$$as_acx_Woption
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15681 $as_echo "$ac_res" >&6; }
15682 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
15683 GPROFNG_NO_SWITCH_CFLAGS="$GPROFNG_NO_SWITCH_CFLAGS${GPROFNG_NO_SWITCH_CFLAGS:+ }$real_option"
15684 fi
15685 done
15686 CFLAGS="$save_CFLAGS"
15687 ac_ext=c
15688 ac_cpp='$CPP $CPPFLAGS'
15689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15692
15693
15694 gprofng_cppflags="-U_ASM"
15695 build_collector=
15696 build_src=
15697
15698 # This is annoying: it means we have to pass --enable-shared explicitly to
15699 # get gprofng, while the configure default is supposed to be that shared libs
15700 # are on by default. But as long as libiberty has code like this, so must
15701 # we...
15702
15703 case "${target}" in
15704 x86_64-*-linux*)
15705 build_src=true
15706 build_collector=true
15707 ;;
15708 i?86-*-linux*)
15709 build_collector=true
15710 build_collector=true
15711 ;;
15712 aarch64-*-linux*)
15713 build_src=true
15714 build_collector=true
15715 ;;
15716 esac
15717 # Check whether --enable-gprofng-tools was given.
15718 if test "${enable_gprofng_tools+set}" = set; then :
15719 enableval=$enable_gprofng_tools; build_src=$enableval
15720 fi
15721
15722
15723 if test x$build_collector = xtrue; then
15724 BUILD_COLLECTOR_TRUE=
15725 BUILD_COLLECTOR_FALSE='#'
15726 else
15727 BUILD_COLLECTOR_TRUE='#'
15728 BUILD_COLLECTOR_FALSE=
15729 fi
15730
15731 if test x$build_src = xtrue; then
15732 BUILD_SRC_TRUE=
15733 BUILD_SRC_FALSE='#'
15734 else
15735 BUILD_SRC_TRUE='#'
15736 BUILD_SRC_FALSE=
15737 fi
15738
15739
15740 run_tests=false
15741 if test x$build_collector = xtrue; then
15742
15743
15744 subdirs="$subdirs libcollector"
15745
15746 if test x${host} = x${target}; then
15747 run_tests=true
15748 fi
15749 fi
15750 if test x$run_tests = xtrue; then
15751 RUN_TESTS_TRUE=
15752 RUN_TESTS_FALSE='#'
15753 else
15754 RUN_TESTS_TRUE='#'
15755 RUN_TESTS_FALSE=
15756 fi
15757
15758
15759
15760
15761
15762 ac_ext=c
15763 ac_cpp='$CPP $CPPFLAGS'
15764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15767
15768 ax_pthread_ok=no
15769
15770 # We used to check for pthread.h first, but this fails if pthread.h
15771 # requires special compiler flags (e.g. on Tru64 or Sequent).
15772 # It gets checked for in the link test anyway.
15773
15774 # First of all, check if the user has set any of the PTHREAD_LIBS,
15775 # etcetera environment variables, and if threads linking works using
15776 # them:
15777 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
15778 ax_pthread_save_CC="$CC"
15779 ax_pthread_save_CFLAGS="$CFLAGS"
15780 ax_pthread_save_LIBS="$LIBS"
15781 if test "x$PTHREAD_CC" != "x"; then :
15782 CC="$PTHREAD_CC"
15783 fi
15784 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15785 LIBS="$PTHREAD_LIBS $LIBS"
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
15787 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
15788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15789 /* end confdefs.h. */
15790
15791 /* Override any GCC internal prototype to avoid an error.
15792 Use char because int might match the return type of a GCC
15793 builtin and then its argument prototype would still apply. */
15794 #ifdef __cplusplus
15795 extern "C"
15796 #endif
15797 char pthread_join ();
15798 int
15799 main ()
15800 {
15801 return pthread_join ();
15802 ;
15803 return 0;
15804 }
15805 _ACEOF
15806 if ac_fn_c_try_link "$LINENO"; then :
15807 ax_pthread_ok=yes
15808 fi
15809 rm -f core conftest.err conftest.$ac_objext \
15810 conftest$ac_exeext conftest.$ac_ext
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15812 $as_echo "$ax_pthread_ok" >&6; }
15813 if test "x$ax_pthread_ok" = "xno"; then
15814 PTHREAD_LIBS=""
15815 PTHREAD_CFLAGS=""
15816 fi
15817 CC="$ax_pthread_save_CC"
15818 CFLAGS="$ax_pthread_save_CFLAGS"
15819 LIBS="$ax_pthread_save_LIBS"
15820 fi
15821
15822 # We must check for the threads library under a number of different
15823 # names; the ordering is very important because some systems
15824 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15825 # libraries is broken (non-POSIX).
15826
15827 # Create a list of thread flags to try. Items starting with a "-" are
15828 # C compiler flags, and other items are library names, except for "none"
15829 # which indicates that we try without any flags at all, and "pthread-config"
15830 # which is a program returning the flags for the Pth emulation library.
15831
15832 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15833
15834 # The ordering *is* (sometimes) important. Some notes on the
15835 # individual items follow:
15836
15837 # pthreads: AIX (must check this before -lpthread)
15838 # none: in case threads are in libc; should be tried before -Kthread and
15839 # other compiler flags to prevent continual compiler warnings
15840 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15841 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
15842 # (Note: HP C rejects this with "bad form for `-t' option")
15843 # -pthreads: Solaris/gcc (Note: HP C also rejects)
15844 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15845 # doesn't hurt to check since this sometimes defines pthreads and
15846 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
15847 # is present but should not be used directly; and before -mthreads,
15848 # because the compiler interprets this as "-mt" + "-hreads")
15849 # -mthreads: Mingw32/gcc, Lynx/gcc
15850 # pthread: Linux, etcetera
15851 # --thread-safe: KAI C++
15852 # pthread-config: use pthread-config program (for GNU Pth library)
15853
15854 case $host_os in
15855
15856 freebsd*)
15857
15858 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15859 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15860
15861 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
15862 ;;
15863
15864 hpux*)
15865
15866 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
15867 # multi-threading and also sets -lpthread."
15868
15869 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
15870 ;;
15871
15872 openedition*)
15873
15874 # IBM z/OS requires a feature-test macro to be defined in order to
15875 # enable POSIX threads at all, so give the user a hint if this is
15876 # not set. (We don't define these ourselves, as they can affect
15877 # other portions of the system API in unpredictable ways.)
15878
15879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15880 /* end confdefs.h. */
15881
15882 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
15883 AX_PTHREAD_ZOS_MISSING
15884 # endif
15885
15886 _ACEOF
15887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15888 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
15890 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
15891 fi
15892 rm -f conftest*
15893
15894 ;;
15895
15896 solaris*)
15897
15898 # On Solaris (at least, for some versions), libc contains stubbed
15899 # (non-functional) versions of the pthreads routines, so link-based
15900 # tests will erroneously succeed. (N.B.: The stubs are missing
15901 # pthread_cleanup_push, or rather a function called by this macro,
15902 # so we could check for that, but who knows whether they'll stub
15903 # that too in a future libc.) So we'll check first for the
15904 # standard Solaris way of linking pthreads (-mt -lpthread).
15905
15906 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
15907 ;;
15908 esac
15909
15910 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
15911
15912 if test "x$GCC" = "xyes"; then :
15913 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
15914 fi
15915
15916 # The presence of a feature test macro requesting re-entrant function
15917 # definitions is, on some systems, a strong hint that pthreads support is
15918 # correctly enabled
15919
15920 case $host_os in
15921 darwin* | hpux* | linux* | osf* | solaris*)
15922 ax_pthread_check_macro="_REENTRANT"
15923 ;;
15924
15925 aix*)
15926 ax_pthread_check_macro="_THREAD_SAFE"
15927 ;;
15928
15929 *)
15930 ax_pthread_check_macro="--"
15931 ;;
15932 esac
15933 if test "x$ax_pthread_check_macro" = "x--"; then :
15934 ax_pthread_check_cond=0
15935 else
15936 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
15937 fi
15938
15939 # Are we compiling with Clang?
15940
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
15942 $as_echo_n "checking whether $CC is Clang... " >&6; }
15943 if ${ax_cv_PTHREAD_CLANG+:} false; then :
15944 $as_echo_n "(cached) " >&6
15945 else
15946 ax_cv_PTHREAD_CLANG=no
15947 # Note that Autoconf sets GCC=yes for Clang as well as GCC
15948 if test "x$GCC" = "xyes"; then
15949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15950 /* end confdefs.h. */
15951 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
15952 # if defined(__clang__) && defined(__llvm__)
15953 AX_PTHREAD_CC_IS_CLANG
15954 # endif
15955
15956 _ACEOF
15957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15958 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
15959 ax_cv_PTHREAD_CLANG=yes
15960 fi
15961 rm -f conftest*
15962
15963 fi
15964
15965 fi
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
15967 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
15968 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
15969
15970 ax_pthread_clang_warning=no
15971
15972 # Clang needs special handling, because older versions handle the -pthread
15973 # option in a rather... idiosyncratic way
15974
15975 if test "x$ax_pthread_clang" = "xyes"; then
15976
15977 # Clang takes -pthread; it has never supported any other flag
15978
15979 # (Note 1: This will need to be revisited if a system that Clang
15980 # supports has POSIX threads in a separate library. This tends not
15981 # to be the way of modern systems, but it's conceivable.)
15982
15983 # (Note 2: On some systems, notably Darwin, -pthread is not needed
15984 # to get POSIX threads support; the API is always present and
15985 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
15986 # -pthread does define _REENTRANT, and while the Darwin headers
15987 # ignore this macro, third-party headers might not.)
15988
15989 PTHREAD_CFLAGS="-pthread"
15990 PTHREAD_LIBS=
15991
15992 ax_pthread_ok=yes
15993
15994 # However, older versions of Clang make a point of warning the user
15995 # that, in an invocation where only linking and no compilation is
15996 # taking place, the -pthread option has no effect ("argument unused
15997 # during compilation"). They expect -pthread to be passed in only
15998 # when source code is being compiled.
15999 #
16000 # Problem is, this is at odds with the way Automake and most other
16001 # C build frameworks function, which is that the same flags used in
16002 # compilation (CFLAGS) are also used in linking. Many systems
16003 # supported by AX_PTHREAD require exactly this for POSIX threads
16004 # support, and in fact it is often not straightforward to specify a
16005 # flag that is used only in the compilation phase and not in
16006 # linking. Such a scenario is extremely rare in practice.
16007 #
16008 # Even though use of the -pthread flag in linking would only print
16009 # a warning, this can be a nuisance for well-run software projects
16010 # that build with -Werror. So if the active version of Clang has
16011 # this misfeature, we search for an option to squash it.
16012
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
16014 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
16015 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
16016 $as_echo_n "(cached) " >&6
16017 else
16018 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
16019 # Create an alternate version of $ac_link that compiles and
16020 # links in two steps (.c -> .o, .o -> exe) instead of one
16021 # (.c -> exe), because the warning occurs only in the second
16022 # step
16023 ax_pthread_save_ac_link="$ac_link"
16024 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
16025 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
16026 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
16027 ax_pthread_save_CFLAGS="$CFLAGS"
16028 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
16029 if test "x$ax_pthread_try" = "xunknown"; then :
16030 break
16031 fi
16032 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
16033 ac_link="$ax_pthread_save_ac_link"
16034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16035 /* end confdefs.h. */
16036 int main(void){return 0;}
16037 _ACEOF
16038 if ac_fn_c_try_link "$LINENO"; then :
16039 ac_link="$ax_pthread_2step_ac_link"
16040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041 /* end confdefs.h. */
16042 int main(void){return 0;}
16043 _ACEOF
16044 if ac_fn_c_try_link "$LINENO"; then :
16045 break
16046 fi
16047 rm -f core conftest.err conftest.$ac_objext \
16048 conftest$ac_exeext conftest.$ac_ext
16049
16050 fi
16051 rm -f core conftest.err conftest.$ac_objext \
16052 conftest$ac_exeext conftest.$ac_ext
16053 done
16054 ac_link="$ax_pthread_save_ac_link"
16055 CFLAGS="$ax_pthread_save_CFLAGS"
16056 if test "x$ax_pthread_try" = "x"; then :
16057 ax_pthread_try=no
16058 fi
16059 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
16060
16061 fi
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
16063 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
16064
16065 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
16066 no | unknown) ;;
16067 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
16068 esac
16069
16070 fi # $ax_pthread_clang = yes
16071
16072 if test "x$ax_pthread_ok" = "xno"; then
16073 for ax_pthread_try_flag in $ax_pthread_flags; do
16074
16075 case $ax_pthread_try_flag in
16076 none)
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16078 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16079 ;;
16080
16081 -mt,pthread)
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
16083 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
16084 PTHREAD_CFLAGS="-mt"
16085 PTHREAD_LIBS="-lpthread"
16086 ;;
16087
16088 -*)
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
16090 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
16091 PTHREAD_CFLAGS="$ax_pthread_try_flag"
16092 ;;
16093
16094 pthread-config)
16095 # Extract the first word of "pthread-config", so it can be a program name with args.
16096 set dummy pthread-config; ac_word=$2
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16098 $as_echo_n "checking for $ac_word... " >&6; }
16099 if ${ac_cv_prog_ax_pthread_config+:} false; then :
16100 $as_echo_n "(cached) " >&6
16101 else
16102 if test -n "$ax_pthread_config"; then
16103 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16104 else
16105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16106 for as_dir in $PATH
16107 do
16108 IFS=$as_save_IFS
16109 test -z "$as_dir" && as_dir=.
16110 for ac_exec_ext in '' $ac_executable_extensions; do
16111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16112 ac_cv_prog_ax_pthread_config="yes"
16113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16114 break 2
16115 fi
16116 done
16117 done
16118 IFS=$as_save_IFS
16119
16120 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16121 fi
16122 fi
16123 ax_pthread_config=$ac_cv_prog_ax_pthread_config
16124 if test -n "$ax_pthread_config"; then
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16126 $as_echo "$ax_pthread_config" >&6; }
16127 else
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16129 $as_echo "no" >&6; }
16130 fi
16131
16132
16133 if test "x$ax_pthread_config" = "xno"; then :
16134 continue
16135 fi
16136 PTHREAD_CFLAGS="`pthread-config --cflags`"
16137 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16138 ;;
16139
16140 *)
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
16142 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
16143 PTHREAD_LIBS="-l$ax_pthread_try_flag"
16144 ;;
16145 esac
16146
16147 ax_pthread_save_CFLAGS="$CFLAGS"
16148 ax_pthread_save_LIBS="$LIBS"
16149 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16150 LIBS="$PTHREAD_LIBS $LIBS"
16151
16152 # Check for various functions. We must include pthread.h,
16153 # since some functions may be macros. (On the Sequent, we
16154 # need a special flag -Kthread to make this header compile.)
16155 # We check for pthread_join because it is in -lpthread on IRIX
16156 # while pthread_create is in libc. We check for pthread_attr_init
16157 # due to DEC craziness with -lpthreads. We check for
16158 # pthread_cleanup_push because it is one of the few pthread
16159 # functions on Solaris that doesn't have a non-functional libc stub.
16160 # We try pthread_create on general principles.
16161
16162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16163 /* end confdefs.h. */
16164 #include <pthread.h>
16165 # if $ax_pthread_check_cond
16166 # error "$ax_pthread_check_macro must be defined"
16167 # endif
16168 static void routine(void *a) { a = 0; }
16169 static void *start_routine(void *a) { return a; }
16170 int
16171 main ()
16172 {
16173 pthread_t th; pthread_attr_t attr;
16174 pthread_create(&th, 0, start_routine, 0);
16175 pthread_join(th, 0);
16176 pthread_attr_init(&attr);
16177 pthread_cleanup_push(routine, 0);
16178 pthread_cleanup_pop(0) /* ; */
16179 ;
16180 return 0;
16181 }
16182 _ACEOF
16183 if ac_fn_c_try_link "$LINENO"; then :
16184 ax_pthread_ok=yes
16185 fi
16186 rm -f core conftest.err conftest.$ac_objext \
16187 conftest$ac_exeext conftest.$ac_ext
16188
16189 CFLAGS="$ax_pthread_save_CFLAGS"
16190 LIBS="$ax_pthread_save_LIBS"
16191
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16193 $as_echo "$ax_pthread_ok" >&6; }
16194 if test "x$ax_pthread_ok" = "xyes"; then :
16195 break
16196 fi
16197
16198 PTHREAD_LIBS=""
16199 PTHREAD_CFLAGS=""
16200 done
16201 fi
16202
16203 # Various other checks:
16204 if test "x$ax_pthread_ok" = "xyes"; then
16205 ax_pthread_save_CFLAGS="$CFLAGS"
16206 ax_pthread_save_LIBS="$LIBS"
16207 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16208 LIBS="$PTHREAD_LIBS $LIBS"
16209
16210 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16212 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16213 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
16214 $as_echo_n "(cached) " >&6
16215 else
16216 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
16217 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16219 /* end confdefs.h. */
16220 #include <pthread.h>
16221 int
16222 main ()
16223 {
16224 int attr = $ax_pthread_attr; return attr /* ; */
16225 ;
16226 return 0;
16227 }
16228 _ACEOF
16229 if ac_fn_c_try_link "$LINENO"; then :
16230 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
16231 fi
16232 rm -f core conftest.err conftest.$ac_objext \
16233 conftest$ac_exeext conftest.$ac_ext
16234 done
16235
16236 fi
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
16238 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
16239 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
16240 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
16241 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
16242
16243 cat >>confdefs.h <<_ACEOF
16244 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
16245 _ACEOF
16246
16247 ax_pthread_joinable_attr_defined=yes
16248
16249 fi
16250
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
16252 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
16253 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
16254 $as_echo_n "(cached) " >&6
16255 else
16256 ax_cv_PTHREAD_SPECIAL_FLAGS=no
16257 case $host_os in
16258 solaris*)
16259 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
16260 ;;
16261 esac
16262
16263 fi
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
16265 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
16266 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
16267 test "x$ax_pthread_special_flags_added" != "xyes"; then :
16268 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
16269 ax_pthread_special_flags_added=yes
16270 fi
16271
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16273 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16274 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16275 $as_echo_n "(cached) " >&6
16276 else
16277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16278 /* end confdefs.h. */
16279 #include <pthread.h>
16280 int
16281 main ()
16282 {
16283 int i = PTHREAD_PRIO_INHERIT;
16284 ;
16285 return 0;
16286 }
16287 _ACEOF
16288 if ac_fn_c_try_link "$LINENO"; then :
16289 ax_cv_PTHREAD_PRIO_INHERIT=yes
16290 else
16291 ax_cv_PTHREAD_PRIO_INHERIT=no
16292 fi
16293 rm -f core conftest.err conftest.$ac_objext \
16294 conftest$ac_exeext conftest.$ac_ext
16295
16296 fi
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16298 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16299 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
16300 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
16301
16302 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16303
16304 ax_pthread_prio_inherit_defined=yes
16305
16306 fi
16307
16308 CFLAGS="$ax_pthread_save_CFLAGS"
16309 LIBS="$ax_pthread_save_LIBS"
16310
16311 # More AIX lossage: compile with *_r variant
16312 if test "x$GCC" != "xyes"; then
16313 case $host_os in
16314 aix*)
16315 case "x/$CC" in #(
16316 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16317 #handle absolute path differently from PATH based program lookup
16318 case "x$CC" in #(
16319 x/*) :
16320 if as_fn_executable_p ${CC}_r; then :
16321 PTHREAD_CC="${CC}_r"
16322 fi ;; #(
16323 *) :
16324 for ac_prog in ${CC}_r
16325 do
16326 # Extract the first word of "$ac_prog", so it can be a program name with args.
16327 set dummy $ac_prog; ac_word=$2
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16329 $as_echo_n "checking for $ac_word... " >&6; }
16330 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16331 $as_echo_n "(cached) " >&6
16332 else
16333 if test -n "$PTHREAD_CC"; then
16334 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16335 else
16336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16337 for as_dir in $PATH
16338 do
16339 IFS=$as_save_IFS
16340 test -z "$as_dir" && as_dir=.
16341 for ac_exec_ext in '' $ac_executable_extensions; do
16342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16343 ac_cv_prog_PTHREAD_CC="$ac_prog"
16344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16345 break 2
16346 fi
16347 done
16348 done
16349 IFS=$as_save_IFS
16350
16351 fi
16352 fi
16353 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16354 if test -n "$PTHREAD_CC"; then
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16356 $as_echo "$PTHREAD_CC" >&6; }
16357 else
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16359 $as_echo "no" >&6; }
16360 fi
16361
16362
16363 test -n "$PTHREAD_CC" && break
16364 done
16365 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16366 ;;
16367 esac ;; #(
16368 *) :
16369 ;;
16370 esac
16371 ;;
16372 esac
16373 fi
16374 fi
16375
16376 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16377
16378
16379
16380
16381
16382 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16383 if test "x$ax_pthread_ok" = "xyes"; then
16384
16385 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16386
16387 :
16388 else
16389 ax_pthread_ok=no
16390
16391 fi
16392 ac_ext=c
16393 ac_cpp='$CPP $CPPFLAGS'
16394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16397
16398
16399
16400 # Specify a location for JDK
16401 enable_gprofng_jp=
16402 jdk_inc=
16403
16404 # Check whether --with-jdk was given.
16405 if test "${with_jdk+set}" = set; then :
16406 withval=$with_jdk;
16407 fi
16408
16409
16410 if test "x$with_jdk" != x; then
16411 jdk_inc="-I$with_jdk/include -I$with_jdk/include/linux"
16412 enable_gprofng_jp=yes
16413 else
16414 # Extract the first word of "javac", so it can be a program name with args.
16415 set dummy javac; ac_word=$2
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16417 $as_echo_n "checking for $ac_word... " >&6; }
16418 if ${ac_cv_path_JAVAC+:} false; then :
16419 $as_echo_n "(cached) " >&6
16420 else
16421 case $JAVAC in
16422 [\\/]* | ?:[\\/]*)
16423 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
16424 ;;
16425 *)
16426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16427 for as_dir in $PATH
16428 do
16429 IFS=$as_save_IFS
16430 test -z "$as_dir" && as_dir=.
16431 for ac_exec_ext in '' $ac_executable_extensions; do
16432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16433 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
16434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16435 break 2
16436 fi
16437 done
16438 done
16439 IFS=$as_save_IFS
16440
16441 test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="javac"
16442 ;;
16443 esac
16444 fi
16445 JAVAC=$ac_cv_path_JAVAC
16446 if test -n "$JAVAC"; then
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
16448 $as_echo "$JAVAC" >&6; }
16449 else
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16451 $as_echo "no" >&6; }
16452 fi
16453
16454
16455 if test -f $JAVAC; then
16456 x=`readlink -f $JAVAC`
16457 x=`dirname $x`
16458 x=`dirname $x`
16459 if ! test -f $x/include/jni.h; then
16460 x=`dirname $x`
16461 fi
16462 if test -f $x/include/jni.h; then
16463 jdk_inc="-I$x/include -I$x/include/linux"
16464 enable_gprofng_jp=yes
16465 fi
16466 fi
16467 fi
16468 if test "x$enable_gprofng_jp" = x; then
16469 # Extract the first word of "java", so it can be a program name with args.
16470 set dummy java; ac_word=$2
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16472 $as_echo_n "checking for $ac_word... " >&6; }
16473 if ${ac_cv_path_JAVA+:} false; then :
16474 $as_echo_n "(cached) " >&6
16475 else
16476 case $JAVA in
16477 [\\/]* | ?:[\\/]*)
16478 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
16479 ;;
16480 *)
16481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16482 for as_dir in $PATH
16483 do
16484 IFS=$as_save_IFS
16485 test -z "$as_dir" && as_dir=.
16486 for ac_exec_ext in '' $ac_executable_extensions; do
16487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16488 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
16489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16490 break 2
16491 fi
16492 done
16493 done
16494 IFS=$as_save_IFS
16495
16496 test -z "$ac_cv_path_JAVA" && ac_cv_path_JAVA="java"
16497 ;;
16498 esac
16499 fi
16500 JAVA=$ac_cv_path_JAVA
16501 if test -n "$JAVA"; then
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
16503 $as_echo "$JAVA" >&6; }
16504 else
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16506 $as_echo "no" >&6; }
16507 fi
16508
16509
16510 if test -f $JAVA; then
16511 x=`readlink -f $JAVA`
16512 x=`dirname $x`
16513 x=`dirname $x`
16514 if ! test -f $x/include/jni.h; then
16515 x=`dirname $x`
16516 fi
16517 if test -f $x/include/jni.h; then
16518 jdk_inc="-I$x/include -I$x/include/linux"
16519 enable_gprofng_jp=yes
16520 fi
16521 fi
16522 fi
16523 if test "x$enable_gprofng_jp" = x; then
16524 ac_fn_c_check_header_compile "$LINENO" "jni.h" "ac_cv_header_jni_h" "
16525 "
16526 if test "x$ac_cv_header_jni_h" = xyes; then :
16527 enable_gprofng_jp=yes
16528 fi
16529
16530
16531 fi
16532 GPROFNG_BROKEN_JAVAC=no
16533 if test "x$enable_gprofng_jp" = x; then
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find the JDK include directory.
16535 gprofng will be build without support for profiling Java applications.
16536 Use --with-jdk=PATH to specify directory for the installed JDK" >&5
16537 $as_echo "$as_me: WARNING: Cannot find the JDK include directory.
16538 gprofng will be build without support for profiling Java applications.
16539 Use --with-jdk=PATH to specify directory for the installed JDK" >&2;}
16540 else
16541
16542 $as_echo "#define GPROFNG_JAVA_PROFILING 1" >>confdefs.h
16543
16544 if test "x$JAVAC" != x; then
16545 cat > configtest.java << EOF
16546 class Simple{
16547 public static void main(String args){
16548 System.out.println("Hello Java");
16549 }
16550 }
16551 EOF
16552 if { ac_try='$JAVAC conftest.java &5 2>&1'
16553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16554 (eval $ac_try) 2>&5
16555 ac_status=$?
16556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16557 test $ac_status = 0; }; }; then
16558 GPROFNG_BROKEN_JAVAC=no
16559 else
16560 GPROFNG_BROKEN_JAVAC=yes
16561 fi
16562 rm -f configtest.*
16563 fi
16564 fi
16565
16566
16567
16568 DEBUG=
16569 # Check whether --enable-gprofng-debug was given.
16570 if test "${enable_gprofng_debug+set}" = set; then :
16571 enableval=$enable_gprofng_debug;
16572 case "$enableval" in
16573 yes|no) ;;
16574 *) as_fn_error $? "Argument to enable/disable gprofng-debug must be yes or no" "$LINENO" 5 ;;
16575 esac
16576
16577 else
16578 enable_gprofng_debug=no
16579 fi
16580
16581
16582 if test "${enable_gprofng_debug}" = yes; then
16583
16584 $as_echo "#define DEBUG 1" >>confdefs.h
16585
16586 fi
16587
16588 # Check if linker supports --as-needed and --no-as-needed options.
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
16590 $as_echo_n "checking linker --as-needed support... " >&6; }
16591 if ${bfd_cv_ld_as_needed+:} false; then :
16592 $as_echo_n "(cached) " >&6
16593 else
16594 bfd_cv_ld_as_needed=no
16595 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
16596 bfd_cv_ld_as_needed=yes
16597 fi
16598
16599 fi
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
16601 $as_echo "$bfd_cv_ld_as_needed" >&6; }
16602
16603 no_as_needed=
16604 if test x"$bfd_cv_ld_as_needed" = xyes; then
16605 no_as_needed='-Wl,--no-as-needed'
16606 fi
16607
16608 # Extract the first word of "expect", so it can be a program name with args.
16609 set dummy expect; ac_word=$2
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16611 $as_echo_n "checking for $ac_word... " >&6; }
16612 if ${ac_cv_path_EXPECT+:} false; then :
16613 $as_echo_n "(cached) " >&6
16614 else
16615 case $EXPECT in
16616 [\\/]* | ?:[\\/]*)
16617 ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path.
16618 ;;
16619 *)
16620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16621 for as_dir in $PATH
16622 do
16623 IFS=$as_save_IFS
16624 test -z "$as_dir" && as_dir=.
16625 for ac_exec_ext in '' $ac_executable_extensions; do
16626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16627 ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext"
16628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16629 break 2
16630 fi
16631 done
16632 done
16633 IFS=$as_save_IFS
16634
16635 ;;
16636 esac
16637 fi
16638 EXPECT=$ac_cv_path_EXPECT
16639 if test -n "$EXPECT"; then
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
16641 $as_echo "$EXPECT" >&6; }
16642 else
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16644 $as_echo "no" >&6; }
16645 fi
16646
16647
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl supporting try/catch" >&5
16649 $as_echo_n "checking for Tcl supporting try/catch... " >&6; }
16650 if ${ac_cv_libctf_tcl_try+:} false; then :
16651 $as_echo_n "(cached) " >&6
16652 else
16653 ac_cv_libctf_tcl_try=`if test -z $EXPECT; then echo no; else $EXPECT << EOF
16654 if [llength [info commands try]] then { puts yes } else { puts no }
16655 EOF
16656 fi`
16657
16658 fi
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_tcl_try" >&5
16660 $as_echo "$ac_cv_libctf_tcl_try" >&6; }
16661 if test "${ac_cv_libctf_tcl_try}" = yes; then
16662 TCL_TRY_TRUE=
16663 TCL_TRY_FALSE='#'
16664 else
16665 TCL_TRY_TRUE='#'
16666 TCL_TRY_FALSE=
16667 fi
16668
16669
16670
16671 # Generate manpages, if possible.
16672 if test $cross_compiling = no; then
16673
16674 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
16675
16676 build_man=true
16677 else
16678 build_man=false
16679 fi
16680 if test x$build_man = xtrue; then
16681 BUILD_MAN_TRUE=
16682 BUILD_MAN_FALSE='#'
16683 else
16684 BUILD_MAN_TRUE='#'
16685 BUILD_MAN_FALSE=
16686 fi
16687
16688
16689 LD_NO_AS_NEEDED=${no_as_needed}
16690
16691 GPROFNG_CFLAGS=${gprofng_cflags}
16692
16693
16694
16695 GPROFNG_CPPFLAGS=${gprofng_cppflags}
16696
16697
16698 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
16699 if test "x$ac_cv_have_decl_basename" = xyes; then :
16700 ac_have_decl=1
16701 else
16702 ac_have_decl=0
16703 fi
16704
16705 cat >>confdefs.h <<_ACEOF
16706 #define HAVE_DECL_BASENAME $ac_have_decl
16707 _ACEOF
16708
16709 for ac_func in clock_gettime strsignal
16710 do :
16711 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16712 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16713 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16714 cat >>confdefs.h <<_ACEOF
16715 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16716 _ACEOF
16717
16718 fi
16719 done
16720
16721
16722 clock_gettime_link=
16723 # At least for glibc, clock_gettime is in librt. But don't
16724 # pull that in if it still doesn't give us the function we want. This
16725 # test is copied from libgomp, and modified to not link in -lrt as
16726 # we're using this for test timing only.
16727 if test "$ac_cv_func_clock_gettime" = no; then
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
16729 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
16730 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
16731 $as_echo_n "(cached) " >&6
16732 else
16733 ac_check_lib_save_LIBS=$LIBS
16734 LIBS="-lrt $LIBS"
16735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16736 /* end confdefs.h. */
16737
16738 /* Override any GCC internal prototype to avoid an error.
16739 Use char because int might match the return type of a GCC
16740 builtin and then its argument prototype would still apply. */
16741 #ifdef __cplusplus
16742 extern "C"
16743 #endif
16744 char clock_gettime ();
16745 int
16746 main ()
16747 {
16748 return clock_gettime ();
16749 ;
16750 return 0;
16751 }
16752 _ACEOF
16753 if ac_fn_c_try_link "$LINENO"; then :
16754 ac_cv_lib_rt_clock_gettime=yes
16755 else
16756 ac_cv_lib_rt_clock_gettime=no
16757 fi
16758 rm -f core conftest.err conftest.$ac_objext \
16759 conftest$ac_exeext conftest.$ac_ext
16760 LIBS=$ac_check_lib_save_LIBS
16761 fi
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
16763 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
16764 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
16765 CLOCK_GETTIME_LINK=-lrt
16766
16767 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
16768
16769 fi
16770
16771 fi
16772
16773
16774
16775
16776 ac_config_files="$ac_config_files Makefile src/Makefile gp-display-html/Makefile doc/Makefile"
16777
16778 ac_config_headers="$ac_config_headers config.h:common/config.h.in"
16779
16780
16781 cat >confcache <<\_ACEOF
16782 # This file is a shell script that caches the results of configure
16783 # tests run on this system so they can be shared between configure
16784 # scripts and configure runs, see configure's option --config-cache.
16785 # It is not useful on other systems. If it contains results you don't
16786 # want to keep, you may remove or edit it.
16787 #
16788 # config.status only pays attention to the cache file if you give it
16789 # the --recheck option to rerun configure.
16790 #
16791 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16792 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16793 # following values.
16794
16795 _ACEOF
16796
16797 # The following way of writing the cache mishandles newlines in values,
16798 # but we know of no workaround that is simple, portable, and efficient.
16799 # So, we kill variables containing newlines.
16800 # Ultrix sh set writes to stderr and can't be redirected directly,
16801 # and sets the high bit in the cache file unless we assign to the vars.
16802 (
16803 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16804 eval ac_val=\$$ac_var
16805 case $ac_val in #(
16806 *${as_nl}*)
16807 case $ac_var in #(
16808 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16809 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16810 esac
16811 case $ac_var in #(
16812 _ | IFS | as_nl) ;; #(
16813 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16814 *) { eval $ac_var=; unset $ac_var;} ;;
16815 esac ;;
16816 esac
16817 done
16818
16819 (set) 2>&1 |
16820 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16821 *${as_nl}ac_space=\ *)
16822 # `set' does not quote correctly, so add quotes: double-quote
16823 # substitution turns \\\\ into \\, and sed turns \\ into \.
16824 sed -n \
16825 "s/'/'\\\\''/g;
16826 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16827 ;; #(
16828 *)
16829 # `set' quotes correctly as required by POSIX, so do not add quotes.
16830 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16831 ;;
16832 esac |
16833 sort
16834 ) |
16835 sed '
16836 /^ac_cv_env_/b end
16837 t clear
16838 :clear
16839 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16840 t end
16841 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16842 :end' >>confcache
16843 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16844 if test -w "$cache_file"; then
16845 if test "x$cache_file" != "x/dev/null"; then
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16847 $as_echo "$as_me: updating cache $cache_file" >&6;}
16848 if test ! -f "$cache_file" || test -h "$cache_file"; then
16849 cat confcache >"$cache_file"
16850 else
16851 case $cache_file in #(
16852 */* | ?:*)
16853 mv -f confcache "$cache_file"$$ &&
16854 mv -f "$cache_file"$$ "$cache_file" ;; #(
16855 *)
16856 mv -f confcache "$cache_file" ;;
16857 esac
16858 fi
16859 fi
16860 else
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16862 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16863 fi
16864 fi
16865 rm -f confcache
16866
16867 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16868 # Let make expand exec_prefix.
16869 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16870
16871 DEFS=-DHAVE_CONFIG_H
16872
16873 ac_libobjs=
16874 ac_ltlibobjs=
16875 U=
16876 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16877 # 1. Remove the extension, and $U if already installed.
16878 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16879 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16880 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16881 # will be set to the directory where LIBOBJS objects are built.
16882 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16883 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16884 done
16885 LIBOBJS=$ac_libobjs
16886
16887 LTLIBOBJS=$ac_ltlibobjs
16888
16889
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16891 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16892 if test -n "$am_sleep_pid"; then
16893 # Hide warnings about reused PIDs.
16894 wait $am_sleep_pid 2>/dev/null
16895 fi
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16897 $as_echo "done" >&6; }
16898 if test -n "$EXEEXT"; then
16899 am__EXEEXT_TRUE=
16900 am__EXEEXT_FALSE='#'
16901 else
16902 am__EXEEXT_TRUE='#'
16903 am__EXEEXT_FALSE=
16904 fi
16905
16906 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16907 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16908 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16909 fi
16910 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16911 as_fn_error $? "conditional \"AMDEP\" was never defined.
16912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16913 fi
16914 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16915 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16917 fi
16918 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16919 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16921 fi
16922 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16923 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16925 fi
16926 if test -z "${BUILD_COLLECTOR_TRUE}" && test -z "${BUILD_COLLECTOR_FALSE}"; then
16927 as_fn_error $? "conditional \"BUILD_COLLECTOR\" was never defined.
16928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16929 fi
16930 if test -z "${BUILD_SRC_TRUE}" && test -z "${BUILD_SRC_FALSE}"; then
16931 as_fn_error $? "conditional \"BUILD_SRC\" was never defined.
16932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16933 fi
16934 if test -z "${RUN_TESTS_TRUE}" && test -z "${RUN_TESTS_FALSE}"; then
16935 as_fn_error $? "conditional \"RUN_TESTS\" was never defined.
16936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16937 fi
16938 if test -z "${TCL_TRY_TRUE}" && test -z "${TCL_TRY_FALSE}"; then
16939 as_fn_error $? "conditional \"TCL_TRY\" was never defined.
16940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16941 fi
16942 if test -z "${BUILD_MAN_TRUE}" && test -z "${BUILD_MAN_FALSE}"; then
16943 as_fn_error $? "conditional \"BUILD_MAN\" was never defined.
16944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16945 fi
16946
16947 : "${CONFIG_STATUS=./config.status}"
16948 ac_write_fail=0
16949 ac_clean_files_save=$ac_clean_files
16950 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16952 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16953 as_write_fail=0
16954 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16955 #! $SHELL
16956 # Generated by $as_me.
16957 # Run this file to recreate the current configuration.
16958 # Compiler output produced by configure, useful for debugging
16959 # configure, is in config.log if it exists.
16960
16961 debug=false
16962 ac_cs_recheck=false
16963 ac_cs_silent=false
16964
16965 SHELL=\${CONFIG_SHELL-$SHELL}
16966 export SHELL
16967 _ASEOF
16968 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16969 ## -------------------- ##
16970 ## M4sh Initialization. ##
16971 ## -------------------- ##
16972
16973 # Be more Bourne compatible
16974 DUALCASE=1; export DUALCASE # for MKS sh
16975 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16976 emulate sh
16977 NULLCMD=:
16978 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16979 # is contrary to our usage. Disable this feature.
16980 alias -g '${1+"$@"}'='"$@"'
16981 setopt NO_GLOB_SUBST
16982 else
16983 case `(set -o) 2>/dev/null` in #(
16984 *posix*) :
16985 set -o posix ;; #(
16986 *) :
16987 ;;
16988 esac
16989 fi
16990
16991
16992 as_nl='
16993 '
16994 export as_nl
16995 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16996 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16997 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16998 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16999 # Prefer a ksh shell builtin over an external printf program on Solaris,
17000 # but without wasting forks for bash or zsh.
17001 if test -z "$BASH_VERSION$ZSH_VERSION" \
17002 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17003 as_echo='print -r --'
17004 as_echo_n='print -rn --'
17005 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17006 as_echo='printf %s\n'
17007 as_echo_n='printf %s'
17008 else
17009 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17010 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17011 as_echo_n='/usr/ucb/echo -n'
17012 else
17013 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17014 as_echo_n_body='eval
17015 arg=$1;
17016 case $arg in #(
17017 *"$as_nl"*)
17018 expr "X$arg" : "X\\(.*\\)$as_nl";
17019 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17020 esac;
17021 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17022 '
17023 export as_echo_n_body
17024 as_echo_n='sh -c $as_echo_n_body as_echo'
17025 fi
17026 export as_echo_body
17027 as_echo='sh -c $as_echo_body as_echo'
17028 fi
17029
17030 # The user is always right.
17031 if test "${PATH_SEPARATOR+set}" != set; then
17032 PATH_SEPARATOR=:
17033 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17034 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17035 PATH_SEPARATOR=';'
17036 }
17037 fi
17038
17039
17040 # IFS
17041 # We need space, tab and new line, in precisely that order. Quoting is
17042 # there to prevent editors from complaining about space-tab.
17043 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17044 # splitting by setting IFS to empty value.)
17045 IFS=" "" $as_nl"
17046
17047 # Find who we are. Look in the path if we contain no directory separator.
17048 as_myself=
17049 case $0 in #((
17050 *[\\/]* ) as_myself=$0 ;;
17051 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17052 for as_dir in $PATH
17053 do
17054 IFS=$as_save_IFS
17055 test -z "$as_dir" && as_dir=.
17056 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17057 done
17058 IFS=$as_save_IFS
17059
17060 ;;
17061 esac
17062 # We did not find ourselves, most probably we were run as `sh COMMAND'
17063 # in which case we are not to be found in the path.
17064 if test "x$as_myself" = x; then
17065 as_myself=$0
17066 fi
17067 if test ! -f "$as_myself"; then
17068 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17069 exit 1
17070 fi
17071
17072 # Unset variables that we do not need and which cause bugs (e.g. in
17073 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17074 # suppresses any "Segmentation fault" message there. '((' could
17075 # trigger a bug in pdksh 5.2.14.
17076 for as_var in BASH_ENV ENV MAIL MAILPATH
17077 do eval test x\${$as_var+set} = xset \
17078 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17079 done
17080 PS1='$ '
17081 PS2='> '
17082 PS4='+ '
17083
17084 # NLS nuisances.
17085 LC_ALL=C
17086 export LC_ALL
17087 LANGUAGE=C
17088 export LANGUAGE
17089
17090 # CDPATH.
17091 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17092
17093
17094 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17095 # ----------------------------------------
17096 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17097 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17098 # script with STATUS, using 1 if that was 0.
17099 as_fn_error ()
17100 {
17101 as_status=$1; test $as_status -eq 0 && as_status=1
17102 if test "$4"; then
17103 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17104 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17105 fi
17106 $as_echo "$as_me: error: $2" >&2
17107 as_fn_exit $as_status
17108 } # as_fn_error
17109
17110
17111 # as_fn_set_status STATUS
17112 # -----------------------
17113 # Set $? to STATUS, without forking.
17114 as_fn_set_status ()
17115 {
17116 return $1
17117 } # as_fn_set_status
17118
17119 # as_fn_exit STATUS
17120 # -----------------
17121 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17122 as_fn_exit ()
17123 {
17124 set +e
17125 as_fn_set_status $1
17126 exit $1
17127 } # as_fn_exit
17128
17129 # as_fn_unset VAR
17130 # ---------------
17131 # Portably unset VAR.
17132 as_fn_unset ()
17133 {
17134 { eval $1=; unset $1;}
17135 }
17136 as_unset=as_fn_unset
17137 # as_fn_append VAR VALUE
17138 # ----------------------
17139 # Append the text in VALUE to the end of the definition contained in VAR. Take
17140 # advantage of any shell optimizations that allow amortized linear growth over
17141 # repeated appends, instead of the typical quadratic growth present in naive
17142 # implementations.
17143 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17144 eval 'as_fn_append ()
17145 {
17146 eval $1+=\$2
17147 }'
17148 else
17149 as_fn_append ()
17150 {
17151 eval $1=\$$1\$2
17152 }
17153 fi # as_fn_append
17154
17155 # as_fn_arith ARG...
17156 # ------------------
17157 # Perform arithmetic evaluation on the ARGs, and store the result in the
17158 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17159 # must be portable across $(()) and expr.
17160 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17161 eval 'as_fn_arith ()
17162 {
17163 as_val=$(( $* ))
17164 }'
17165 else
17166 as_fn_arith ()
17167 {
17168 as_val=`expr "$@" || test $? -eq 1`
17169 }
17170 fi # as_fn_arith
17171
17172
17173 if expr a : '\(a\)' >/dev/null 2>&1 &&
17174 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17175 as_expr=expr
17176 else
17177 as_expr=false
17178 fi
17179
17180 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17181 as_basename=basename
17182 else
17183 as_basename=false
17184 fi
17185
17186 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17187 as_dirname=dirname
17188 else
17189 as_dirname=false
17190 fi
17191
17192 as_me=`$as_basename -- "$0" ||
17193 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17194 X"$0" : 'X\(//\)$' \| \
17195 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17196 $as_echo X/"$0" |
17197 sed '/^.*\/\([^/][^/]*\)\/*$/{
17198 s//\1/
17199 q
17200 }
17201 /^X\/\(\/\/\)$/{
17202 s//\1/
17203 q
17204 }
17205 /^X\/\(\/\).*/{
17206 s//\1/
17207 q
17208 }
17209 s/.*/./; q'`
17210
17211 # Avoid depending upon Character Ranges.
17212 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17213 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17214 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17215 as_cr_digits='0123456789'
17216 as_cr_alnum=$as_cr_Letters$as_cr_digits
17217
17218 ECHO_C= ECHO_N= ECHO_T=
17219 case `echo -n x` in #(((((
17220 -n*)
17221 case `echo 'xy\c'` in
17222 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17223 xy) ECHO_C='\c';;
17224 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17225 ECHO_T=' ';;
17226 esac;;
17227 *)
17228 ECHO_N='-n';;
17229 esac
17230
17231 rm -f conf$$ conf$$.exe conf$$.file
17232 if test -d conf$$.dir; then
17233 rm -f conf$$.dir/conf$$.file
17234 else
17235 rm -f conf$$.dir
17236 mkdir conf$$.dir 2>/dev/null
17237 fi
17238 if (echo >conf$$.file) 2>/dev/null; then
17239 if ln -s conf$$.file conf$$ 2>/dev/null; then
17240 as_ln_s='ln -s'
17241 # ... but there are two gotchas:
17242 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17243 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17244 # In both cases, we have to default to `cp -pR'.
17245 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17246 as_ln_s='cp -pR'
17247 elif ln conf$$.file conf$$ 2>/dev/null; then
17248 as_ln_s=ln
17249 else
17250 as_ln_s='cp -pR'
17251 fi
17252 else
17253 as_ln_s='cp -pR'
17254 fi
17255 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17256 rmdir conf$$.dir 2>/dev/null
17257
17258
17259 # as_fn_mkdir_p
17260 # -------------
17261 # Create "$as_dir" as a directory, including parents if necessary.
17262 as_fn_mkdir_p ()
17263 {
17264
17265 case $as_dir in #(
17266 -*) as_dir=./$as_dir;;
17267 esac
17268 test -d "$as_dir" || eval $as_mkdir_p || {
17269 as_dirs=
17270 while :; do
17271 case $as_dir in #(
17272 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17273 *) as_qdir=$as_dir;;
17274 esac
17275 as_dirs="'$as_qdir' $as_dirs"
17276 as_dir=`$as_dirname -- "$as_dir" ||
17277 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17278 X"$as_dir" : 'X\(//\)[^/]' \| \
17279 X"$as_dir" : 'X\(//\)$' \| \
17280 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17281 $as_echo X"$as_dir" |
17282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17283 s//\1/
17284 q
17285 }
17286 /^X\(\/\/\)[^/].*/{
17287 s//\1/
17288 q
17289 }
17290 /^X\(\/\/\)$/{
17291 s//\1/
17292 q
17293 }
17294 /^X\(\/\).*/{
17295 s//\1/
17296 q
17297 }
17298 s/.*/./; q'`
17299 test -d "$as_dir" && break
17300 done
17301 test -z "$as_dirs" || eval "mkdir $as_dirs"
17302 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17303
17304
17305 } # as_fn_mkdir_p
17306 if mkdir -p . 2>/dev/null; then
17307 as_mkdir_p='mkdir -p "$as_dir"'
17308 else
17309 test -d ./-p && rmdir ./-p
17310 as_mkdir_p=false
17311 fi
17312
17313
17314 # as_fn_executable_p FILE
17315 # -----------------------
17316 # Test if FILE is an executable regular file.
17317 as_fn_executable_p ()
17318 {
17319 test -f "$1" && test -x "$1"
17320 } # as_fn_executable_p
17321 as_test_x='test -x'
17322 as_executable_p=as_fn_executable_p
17323
17324 # Sed expression to map a string onto a valid CPP name.
17325 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17326
17327 # Sed expression to map a string onto a valid variable name.
17328 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17329
17330
17331 exec 6>&1
17332 ## ----------------------------------- ##
17333 ## Main body of $CONFIG_STATUS script. ##
17334 ## ----------------------------------- ##
17335 _ASEOF
17336 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17337
17338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17339 # Save the log message, to keep $0 and so on meaningful, and to
17340 # report actual input values of CONFIG_FILES etc. instead of their
17341 # values after options handling.
17342 ac_log="
17343 This file was extended by gprofng $as_me 2.38.50, which was
17344 generated by GNU Autoconf 2.69. Invocation command line was
17345
17346 CONFIG_FILES = $CONFIG_FILES
17347 CONFIG_HEADERS = $CONFIG_HEADERS
17348 CONFIG_LINKS = $CONFIG_LINKS
17349 CONFIG_COMMANDS = $CONFIG_COMMANDS
17350 $ $0 $@
17351
17352 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17353 "
17354
17355 _ACEOF
17356
17357 case $ac_config_files in *"
17358 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17359 esac
17360
17361 case $ac_config_headers in *"
17362 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17363 esac
17364
17365
17366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17367 # Files that config.status was made for.
17368 config_files="$ac_config_files"
17369 config_headers="$ac_config_headers"
17370 config_commands="$ac_config_commands"
17371
17372 _ACEOF
17373
17374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17375 ac_cs_usage="\
17376 \`$as_me' instantiates files and other configuration actions
17377 from templates according to the current configuration. Unless the files
17378 and actions are specified as TAGs, all are instantiated by default.
17379
17380 Usage: $0 [OPTION]... [TAG]...
17381
17382 -h, --help print this help, then exit
17383 -V, --version print version number and configuration settings, then exit
17384 --config print configuration, then exit
17385 -q, --quiet, --silent
17386 do not print progress messages
17387 -d, --debug don't remove temporary files
17388 --recheck update $as_me by reconfiguring in the same conditions
17389 --file=FILE[:TEMPLATE]
17390 instantiate the configuration file FILE
17391 --header=FILE[:TEMPLATE]
17392 instantiate the configuration header FILE
17393
17394 Configuration files:
17395 $config_files
17396
17397 Configuration headers:
17398 $config_headers
17399
17400 Configuration commands:
17401 $config_commands
17402
17403 Report bugs to the package provider."
17404
17405 _ACEOF
17406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17407 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17408 ac_cs_version="\\
17409 gprofng config.status 2.38.50
17410 configured by $0, generated by GNU Autoconf 2.69,
17411 with options \\"\$ac_cs_config\\"
17412
17413 Copyright (C) 2012 Free Software Foundation, Inc.
17414 This config.status script is free software; the Free Software Foundation
17415 gives unlimited permission to copy, distribute and modify it."
17416
17417 ac_pwd='$ac_pwd'
17418 srcdir='$srcdir'
17419 INSTALL='$INSTALL'
17420 MKDIR_P='$MKDIR_P'
17421 AWK='$AWK'
17422 test -n "\$AWK" || AWK=awk
17423 _ACEOF
17424
17425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17426 # The default lists apply if the user does not specify any file.
17427 ac_need_defaults=:
17428 while test $# != 0
17429 do
17430 case $1 in
17431 --*=?*)
17432 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17433 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17434 ac_shift=:
17435 ;;
17436 --*=)
17437 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17438 ac_optarg=
17439 ac_shift=:
17440 ;;
17441 *)
17442 ac_option=$1
17443 ac_optarg=$2
17444 ac_shift=shift
17445 ;;
17446 esac
17447
17448 case $ac_option in
17449 # Handling of the options.
17450 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17451 ac_cs_recheck=: ;;
17452 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17453 $as_echo "$ac_cs_version"; exit ;;
17454 --config | --confi | --conf | --con | --co | --c )
17455 $as_echo "$ac_cs_config"; exit ;;
17456 --debug | --debu | --deb | --de | --d | -d )
17457 debug=: ;;
17458 --file | --fil | --fi | --f )
17459 $ac_shift
17460 case $ac_optarg in
17461 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17462 '') as_fn_error $? "missing file argument" ;;
17463 esac
17464 as_fn_append CONFIG_FILES " '$ac_optarg'"
17465 ac_need_defaults=false;;
17466 --header | --heade | --head | --hea )
17467 $ac_shift
17468 case $ac_optarg in
17469 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17470 esac
17471 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17472 ac_need_defaults=false;;
17473 --he | --h)
17474 # Conflict between --help and --header
17475 as_fn_error $? "ambiguous option: \`$1'
17476 Try \`$0 --help' for more information.";;
17477 --help | --hel | -h )
17478 $as_echo "$ac_cs_usage"; exit ;;
17479 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17480 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17481 ac_cs_silent=: ;;
17482
17483 # This is an error.
17484 -*) as_fn_error $? "unrecognized option: \`$1'
17485 Try \`$0 --help' for more information." ;;
17486
17487 *) as_fn_append ac_config_targets " $1"
17488 ac_need_defaults=false ;;
17489
17490 esac
17491 shift
17492 done
17493
17494 ac_configure_extra_args=
17495
17496 if $ac_cs_silent; then
17497 exec 6>/dev/null
17498 ac_configure_extra_args="$ac_configure_extra_args --silent"
17499 fi
17500
17501 _ACEOF
17502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17503 if \$ac_cs_recheck; then
17504 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17505 shift
17506 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17507 CONFIG_SHELL='$SHELL'
17508 export CONFIG_SHELL
17509 exec "\$@"
17510 fi
17511
17512 _ACEOF
17513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17514 exec 5>>config.log
17515 {
17516 echo
17517 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17518 ## Running $as_me. ##
17519 _ASBOX
17520 $as_echo "$ac_log"
17521 } >&5
17522
17523 _ACEOF
17524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17525 #
17526 # INIT-COMMANDS
17527 #
17528 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17529
17530
17531 # The HP-UX ksh and POSIX shell print the target directory to stdout
17532 # if CDPATH is set.
17533 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17534
17535 sed_quote_subst='$sed_quote_subst'
17536 double_quote_subst='$double_quote_subst'
17537 delay_variable_subst='$delay_variable_subst'
17538 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17539 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17540 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17541 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17542 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17543 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17544 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17545 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17546 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17547 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17548 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17549 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17550 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17551 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17552 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17553 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17554 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17555 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17556 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17557 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17558 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17559 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17560 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17561 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17562 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17563 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17564 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17565 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17566 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17567 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17568 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17569 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17570 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17571 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17572 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17573 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17574 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17575 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17576 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17577 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17578 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17579 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17580 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17581 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17582 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17583 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17584 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17585 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17586 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"`'
17587 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17588 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17589 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17590 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17591 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17592 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17593 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17594 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17595 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17596 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17597 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17598 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17599 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17600 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17601 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17602 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17603 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17604 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17605 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17606 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17607 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17608 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17609 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17610 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17611 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17612 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17613 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17614 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17615 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17616 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17617 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17618 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17619 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17620 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17621 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17622 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17623 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17624 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17625 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17626 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17627 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17628 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17629 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17630 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17631 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17632 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17633 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17634 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17635 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17636 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17637 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17638 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17639 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17640 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17641 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17642 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17643 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17644 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17645 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17646 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17647 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17648 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17649 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17650 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17651 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17652 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17653 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17654 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17655 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17656 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17657 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17658 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17659 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17660 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17661 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17662 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17663 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17664 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17665 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17666 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17667 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17668 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17669 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17670 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17671 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17672 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17673 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17674 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17675 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17676 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17677 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17678 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17679 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17680 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17681 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17682 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17683 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17684 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17685 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17686 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17687 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17688 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17689 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17690 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17691 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17692 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17693 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17694 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17695 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17696 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17697 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17698 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17699 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17700 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17701 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17702 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17703 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17704 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17705 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17706 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17707 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17708 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17709 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17710 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17711 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17712 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17713
17714 LTCC='$LTCC'
17715 LTCFLAGS='$LTCFLAGS'
17716 compiler='$compiler_DEFAULT'
17717
17718 # A function that is used when there is no print builtin or printf.
17719 func_fallback_echo ()
17720 {
17721 eval 'cat <<_LTECHO_EOF
17722 \$1
17723 _LTECHO_EOF'
17724 }
17725
17726 # Quote evaled strings.
17727 for var in SHELL \
17728 ECHO \
17729 SED \
17730 GREP \
17731 EGREP \
17732 FGREP \
17733 LD \
17734 NM \
17735 LN_S \
17736 lt_SP2NL \
17737 lt_NL2SP \
17738 reload_flag \
17739 OBJDUMP \
17740 deplibs_check_method \
17741 file_magic_cmd \
17742 AR \
17743 AR_FLAGS \
17744 STRIP \
17745 RANLIB \
17746 CC \
17747 CFLAGS \
17748 compiler \
17749 lt_cv_sys_global_symbol_pipe \
17750 lt_cv_sys_global_symbol_to_cdecl \
17751 lt_cv_sys_global_symbol_to_c_name_address \
17752 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17753 lt_prog_compiler_no_builtin_flag \
17754 lt_prog_compiler_wl \
17755 lt_prog_compiler_pic \
17756 lt_prog_compiler_static \
17757 lt_cv_prog_compiler_c_o \
17758 need_locks \
17759 DSYMUTIL \
17760 NMEDIT \
17761 LIPO \
17762 OTOOL \
17763 OTOOL64 \
17764 shrext_cmds \
17765 export_dynamic_flag_spec \
17766 whole_archive_flag_spec \
17767 compiler_needs_object \
17768 with_gnu_ld \
17769 allow_undefined_flag \
17770 no_undefined_flag \
17771 hardcode_libdir_flag_spec \
17772 hardcode_libdir_flag_spec_ld \
17773 hardcode_libdir_separator \
17774 fix_srcfile_path \
17775 exclude_expsyms \
17776 include_expsyms \
17777 file_list_spec \
17778 variables_saved_for_relink \
17779 libname_spec \
17780 library_names_spec \
17781 soname_spec \
17782 install_override_mode \
17783 finish_eval \
17784 old_striplib \
17785 striplib \
17786 compiler_lib_search_dirs \
17787 predep_objects \
17788 postdep_objects \
17789 predeps \
17790 postdeps \
17791 compiler_lib_search_path \
17792 LD_CXX \
17793 reload_flag_CXX \
17794 compiler_CXX \
17795 lt_prog_compiler_no_builtin_flag_CXX \
17796 lt_prog_compiler_wl_CXX \
17797 lt_prog_compiler_pic_CXX \
17798 lt_prog_compiler_static_CXX \
17799 lt_cv_prog_compiler_c_o_CXX \
17800 export_dynamic_flag_spec_CXX \
17801 whole_archive_flag_spec_CXX \
17802 compiler_needs_object_CXX \
17803 with_gnu_ld_CXX \
17804 allow_undefined_flag_CXX \
17805 no_undefined_flag_CXX \
17806 hardcode_libdir_flag_spec_CXX \
17807 hardcode_libdir_flag_spec_ld_CXX \
17808 hardcode_libdir_separator_CXX \
17809 fix_srcfile_path_CXX \
17810 exclude_expsyms_CXX \
17811 include_expsyms_CXX \
17812 file_list_spec_CXX \
17813 compiler_lib_search_dirs_CXX \
17814 predep_objects_CXX \
17815 postdep_objects_CXX \
17816 predeps_CXX \
17817 postdeps_CXX \
17818 compiler_lib_search_path_CXX; do
17819 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17820 *[\\\\\\\`\\"\\\$]*)
17821 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17822 ;;
17823 *)
17824 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17825 ;;
17826 esac
17827 done
17828
17829 # Double-quote double-evaled strings.
17830 for var in reload_cmds \
17831 old_postinstall_cmds \
17832 old_postuninstall_cmds \
17833 old_archive_cmds \
17834 extract_expsyms_cmds \
17835 old_archive_from_new_cmds \
17836 old_archive_from_expsyms_cmds \
17837 archive_cmds \
17838 archive_expsym_cmds \
17839 module_cmds \
17840 module_expsym_cmds \
17841 export_symbols_cmds \
17842 prelink_cmds \
17843 postinstall_cmds \
17844 postuninstall_cmds \
17845 finish_cmds \
17846 sys_lib_search_path_spec \
17847 sys_lib_dlsearch_path_spec \
17848 reload_cmds_CXX \
17849 old_archive_cmds_CXX \
17850 old_archive_from_new_cmds_CXX \
17851 old_archive_from_expsyms_cmds_CXX \
17852 archive_cmds_CXX \
17853 archive_expsym_cmds_CXX \
17854 module_cmds_CXX \
17855 module_expsym_cmds_CXX \
17856 export_symbols_cmds_CXX \
17857 prelink_cmds_CXX; do
17858 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17859 *[\\\\\\\`\\"\\\$]*)
17860 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17861 ;;
17862 *)
17863 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17864 ;;
17865 esac
17866 done
17867
17868 ac_aux_dir='$ac_aux_dir'
17869 xsi_shell='$xsi_shell'
17870 lt_shell_append='$lt_shell_append'
17871
17872 # See if we are running on zsh, and set the options which allow our
17873 # commands through without removal of \ escapes INIT.
17874 if test -n "\${ZSH_VERSION+set}" ; then
17875 setopt NO_GLOB_SUBST
17876 fi
17877
17878
17879 PACKAGE='$PACKAGE'
17880 VERSION='$VERSION'
17881 TIMESTAMP='$TIMESTAMP'
17882 RM='$RM'
17883 ofile='$ofile'
17884
17885
17886
17887
17888
17889
17890 _ACEOF
17891
17892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17893
17894 # Handling of arguments.
17895 for ac_config_target in $ac_config_targets
17896 do
17897 case $ac_config_target in
17898 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17899 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17900 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17901 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17902 "gp-display-html/Makefile") CONFIG_FILES="$CONFIG_FILES gp-display-html/Makefile" ;;
17903 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17904 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:common/config.h.in" ;;
17905
17906 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17907 esac
17908 done
17909
17910
17911 # If the user did not use the arguments to specify the items to instantiate,
17912 # then the envvar interface is used. Set only those that are not.
17913 # We use the long form for the default assignment because of an extremely
17914 # bizarre bug on SunOS 4.1.3.
17915 if $ac_need_defaults; then
17916 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17917 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17918 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17919 fi
17920
17921 # Have a temporary directory for convenience. Make it in the build tree
17922 # simply because there is no reason against having it here, and in addition,
17923 # creating and moving files from /tmp can sometimes cause problems.
17924 # Hook for its removal unless debugging.
17925 # Note that there is a small window in which the directory will not be cleaned:
17926 # after its creation but before its name has been assigned to `$tmp'.
17927 $debug ||
17928 {
17929 tmp= ac_tmp=
17930 trap 'exit_status=$?
17931 : "${ac_tmp:=$tmp}"
17932 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17933 ' 0
17934 trap 'as_fn_exit 1' 1 2 13 15
17935 }
17936 # Create a (secure) tmp directory for tmp files.
17937
17938 {
17939 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17940 test -d "$tmp"
17941 } ||
17942 {
17943 tmp=./conf$$-$RANDOM
17944 (umask 077 && mkdir "$tmp")
17945 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17946 ac_tmp=$tmp
17947
17948 # Set up the scripts for CONFIG_FILES section.
17949 # No need to generate them if there are no CONFIG_FILES.
17950 # This happens for instance with `./config.status config.h'.
17951 if test -n "$CONFIG_FILES"; then
17952
17953
17954 ac_cr=`echo X | tr X '\015'`
17955 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17956 # But we know of no other shell where ac_cr would be empty at this
17957 # point, so we can use a bashism as a fallback.
17958 if test "x$ac_cr" = x; then
17959 eval ac_cr=\$\'\\r\'
17960 fi
17961 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17962 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17963 ac_cs_awk_cr='\\r'
17964 else
17965 ac_cs_awk_cr=$ac_cr
17966 fi
17967
17968 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17969 _ACEOF
17970
17971
17972 {
17973 echo "cat >conf$$subs.awk <<_ACEOF" &&
17974 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17975 echo "_ACEOF"
17976 } >conf$$subs.sh ||
17977 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17978 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17979 ac_delim='%!_!# '
17980 for ac_last_try in false false false false false :; do
17981 . ./conf$$subs.sh ||
17982 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17983
17984 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17985 if test $ac_delim_n = $ac_delim_num; then
17986 break
17987 elif $ac_last_try; then
17988 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17989 else
17990 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17991 fi
17992 done
17993 rm -f conf$$subs.sh
17994
17995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17996 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17997 _ACEOF
17998 sed -n '
17999 h
18000 s/^/S["/; s/!.*/"]=/
18001 p
18002 g
18003 s/^[^!]*!//
18004 :repl
18005 t repl
18006 s/'"$ac_delim"'$//
18007 t delim
18008 :nl
18009 h
18010 s/\(.\{148\}\)..*/\1/
18011 t more1
18012 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18013 p
18014 n
18015 b repl
18016 :more1
18017 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18018 p
18019 g
18020 s/.\{148\}//
18021 t nl
18022 :delim
18023 h
18024 s/\(.\{148\}\)..*/\1/
18025 t more2
18026 s/["\\]/\\&/g; s/^/"/; s/$/"/
18027 p
18028 b
18029 :more2
18030 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18031 p
18032 g
18033 s/.\{148\}//
18034 t delim
18035 ' <conf$$subs.awk | sed '
18036 /^[^""]/{
18037 N
18038 s/\n//
18039 }
18040 ' >>$CONFIG_STATUS || ac_write_fail=1
18041 rm -f conf$$subs.awk
18042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18043 _ACAWK
18044 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18045 for (key in S) S_is_set[key] = 1
18046 FS = "\a"
18047
18048 }
18049 {
18050 line = $ 0
18051 nfields = split(line, field, "@")
18052 substed = 0
18053 len = length(field[1])
18054 for (i = 2; i < nfields; i++) {
18055 key = field[i]
18056 keylen = length(key)
18057 if (S_is_set[key]) {
18058 value = S[key]
18059 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18060 len += length(value) + length(field[++i])
18061 substed = 1
18062 } else
18063 len += 1 + keylen
18064 }
18065
18066 print line
18067 }
18068
18069 _ACAWK
18070 _ACEOF
18071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18072 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18073 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18074 else
18075 cat
18076 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18077 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18078 _ACEOF
18079
18080 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18081 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18082 # trailing colons and then remove the whole line if VPATH becomes empty
18083 # (actually we leave an empty line to preserve line numbers).
18084 if test "x$srcdir" = x.; then
18085 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18086 h
18087 s///
18088 s/^/:/
18089 s/[ ]*$/:/
18090 s/:\$(srcdir):/:/g
18091 s/:\${srcdir}:/:/g
18092 s/:@srcdir@:/:/g
18093 s/^:*//
18094 s/:*$//
18095 x
18096 s/\(=[ ]*\).*/\1/
18097 G
18098 s/\n//
18099 s/^[^=]*=[ ]*$//
18100 }'
18101 fi
18102
18103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18104 fi # test -n "$CONFIG_FILES"
18105
18106 # Set up the scripts for CONFIG_HEADERS section.
18107 # No need to generate them if there are no CONFIG_HEADERS.
18108 # This happens for instance with `./config.status Makefile'.
18109 if test -n "$CONFIG_HEADERS"; then
18110 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18111 BEGIN {
18112 _ACEOF
18113
18114 # Transform confdefs.h into an awk script `defines.awk', embedded as
18115 # here-document in config.status, that substitutes the proper values into
18116 # config.h.in to produce config.h.
18117
18118 # Create a delimiter string that does not exist in confdefs.h, to ease
18119 # handling of long lines.
18120 ac_delim='%!_!# '
18121 for ac_last_try in false false :; do
18122 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18123 if test -z "$ac_tt"; then
18124 break
18125 elif $ac_last_try; then
18126 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18127 else
18128 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18129 fi
18130 done
18131
18132 # For the awk script, D is an array of macro values keyed by name,
18133 # likewise P contains macro parameters if any. Preserve backslash
18134 # newline sequences.
18135
18136 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18137 sed -n '
18138 s/.\{148\}/&'"$ac_delim"'/g
18139 t rset
18140 :rset
18141 s/^[ ]*#[ ]*define[ ][ ]*/ /
18142 t def
18143 d
18144 :def
18145 s/\\$//
18146 t bsnl
18147 s/["\\]/\\&/g
18148 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18149 D["\1"]=" \3"/p
18150 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18151 d
18152 :bsnl
18153 s/["\\]/\\&/g
18154 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18155 D["\1"]=" \3\\\\\\n"\\/p
18156 t cont
18157 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18158 t cont
18159 d
18160 :cont
18161 n
18162 s/.\{148\}/&'"$ac_delim"'/g
18163 t clear
18164 :clear
18165 s/\\$//
18166 t bsnlc
18167 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18168 d
18169 :bsnlc
18170 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18171 b cont
18172 ' <confdefs.h | sed '
18173 s/'"$ac_delim"'/"\\\
18174 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18175
18176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18177 for (key in D) D_is_set[key] = 1
18178 FS = "\a"
18179 }
18180 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18181 line = \$ 0
18182 split(line, arg, " ")
18183 if (arg[1] == "#") {
18184 defundef = arg[2]
18185 mac1 = arg[3]
18186 } else {
18187 defundef = substr(arg[1], 2)
18188 mac1 = arg[2]
18189 }
18190 split(mac1, mac2, "(") #)
18191 macro = mac2[1]
18192 prefix = substr(line, 1, index(line, defundef) - 1)
18193 if (D_is_set[macro]) {
18194 # Preserve the white space surrounding the "#".
18195 print prefix "define", macro P[macro] D[macro]
18196 next
18197 } else {
18198 # Replace #undef with comments. This is necessary, for example,
18199 # in the case of _POSIX_SOURCE, which is predefined and required
18200 # on some systems where configure will not decide to define it.
18201 if (defundef == "undef") {
18202 print "/*", prefix defundef, macro, "*/"
18203 next
18204 }
18205 }
18206 }
18207 { print }
18208 _ACAWK
18209 _ACEOF
18210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18211 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18212 fi # test -n "$CONFIG_HEADERS"
18213
18214
18215 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18216 shift
18217 for ac_tag
18218 do
18219 case $ac_tag in
18220 :[FHLC]) ac_mode=$ac_tag; continue;;
18221 esac
18222 case $ac_mode$ac_tag in
18223 :[FHL]*:*);;
18224 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18225 :[FH]-) ac_tag=-:-;;
18226 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18227 esac
18228 ac_save_IFS=$IFS
18229 IFS=:
18230 set x $ac_tag
18231 IFS=$ac_save_IFS
18232 shift
18233 ac_file=$1
18234 shift
18235
18236 case $ac_mode in
18237 :L) ac_source=$1;;
18238 :[FH])
18239 ac_file_inputs=
18240 for ac_f
18241 do
18242 case $ac_f in
18243 -) ac_f="$ac_tmp/stdin";;
18244 *) # Look for the file first in the build tree, then in the source tree
18245 # (if the path is not absolute). The absolute path cannot be DOS-style,
18246 # because $ac_f cannot contain `:'.
18247 test -f "$ac_f" ||
18248 case $ac_f in
18249 [\\/$]*) false;;
18250 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18251 esac ||
18252 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18253 esac
18254 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18255 as_fn_append ac_file_inputs " '$ac_f'"
18256 done
18257
18258 # Let's still pretend it is `configure' which instantiates (i.e., don't
18259 # use $as_me), people would be surprised to read:
18260 # /* config.h. Generated by config.status. */
18261 configure_input='Generated from '`
18262 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18263 `' by configure.'
18264 if test x"$ac_file" != x-; then
18265 configure_input="$ac_file. $configure_input"
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18267 $as_echo "$as_me: creating $ac_file" >&6;}
18268 fi
18269 # Neutralize special characters interpreted by sed in replacement strings.
18270 case $configure_input in #(
18271 *\&* | *\|* | *\\* )
18272 ac_sed_conf_input=`$as_echo "$configure_input" |
18273 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18274 *) ac_sed_conf_input=$configure_input;;
18275 esac
18276
18277 case $ac_tag in
18278 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18279 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18280 esac
18281 ;;
18282 esac
18283
18284 ac_dir=`$as_dirname -- "$ac_file" ||
18285 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18286 X"$ac_file" : 'X\(//\)[^/]' \| \
18287 X"$ac_file" : 'X\(//\)$' \| \
18288 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18289 $as_echo X"$ac_file" |
18290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18291 s//\1/
18292 q
18293 }
18294 /^X\(\/\/\)[^/].*/{
18295 s//\1/
18296 q
18297 }
18298 /^X\(\/\/\)$/{
18299 s//\1/
18300 q
18301 }
18302 /^X\(\/\).*/{
18303 s//\1/
18304 q
18305 }
18306 s/.*/./; q'`
18307 as_dir="$ac_dir"; as_fn_mkdir_p
18308 ac_builddir=.
18309
18310 case "$ac_dir" in
18311 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18312 *)
18313 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18314 # A ".." for each directory in $ac_dir_suffix.
18315 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18316 case $ac_top_builddir_sub in
18317 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18318 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18319 esac ;;
18320 esac
18321 ac_abs_top_builddir=$ac_pwd
18322 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18323 # for backward compatibility:
18324 ac_top_builddir=$ac_top_build_prefix
18325
18326 case $srcdir in
18327 .) # We are building in place.
18328 ac_srcdir=.
18329 ac_top_srcdir=$ac_top_builddir_sub
18330 ac_abs_top_srcdir=$ac_pwd ;;
18331 [\\/]* | ?:[\\/]* ) # Absolute name.
18332 ac_srcdir=$srcdir$ac_dir_suffix;
18333 ac_top_srcdir=$srcdir
18334 ac_abs_top_srcdir=$srcdir ;;
18335 *) # Relative name.
18336 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18337 ac_top_srcdir=$ac_top_build_prefix$srcdir
18338 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18339 esac
18340 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18341
18342
18343 case $ac_mode in
18344 :F)
18345 #
18346 # CONFIG_FILE
18347 #
18348
18349 case $INSTALL in
18350 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18351 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18352 esac
18353 ac_MKDIR_P=$MKDIR_P
18354 case $MKDIR_P in
18355 [\\/$]* | ?:[\\/]* ) ;;
18356 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18357 esac
18358 _ACEOF
18359
18360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18361 # If the template does not know about datarootdir, expand it.
18362 # FIXME: This hack should be removed a few years after 2.60.
18363 ac_datarootdir_hack=; ac_datarootdir_seen=
18364 ac_sed_dataroot='
18365 /datarootdir/ {
18366 p
18367 q
18368 }
18369 /@datadir@/p
18370 /@docdir@/p
18371 /@infodir@/p
18372 /@localedir@/p
18373 /@mandir@/p'
18374 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18375 *datarootdir*) ac_datarootdir_seen=yes;;
18376 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18378 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18379 _ACEOF
18380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18381 ac_datarootdir_hack='
18382 s&@datadir@&$datadir&g
18383 s&@docdir@&$docdir&g
18384 s&@infodir@&$infodir&g
18385 s&@localedir@&$localedir&g
18386 s&@mandir@&$mandir&g
18387 s&\\\${datarootdir}&$datarootdir&g' ;;
18388 esac
18389 _ACEOF
18390
18391 # Neutralize VPATH when `$srcdir' = `.'.
18392 # Shell code in configure.ac might set extrasub.
18393 # FIXME: do we really want to maintain this feature?
18394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18395 ac_sed_extra="$ac_vpsub
18396 $extrasub
18397 _ACEOF
18398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18399 :t
18400 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18401 s|@configure_input@|$ac_sed_conf_input|;t t
18402 s&@top_builddir@&$ac_top_builddir_sub&;t t
18403 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18404 s&@srcdir@&$ac_srcdir&;t t
18405 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18406 s&@top_srcdir@&$ac_top_srcdir&;t t
18407 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18408 s&@builddir@&$ac_builddir&;t t
18409 s&@abs_builddir@&$ac_abs_builddir&;t t
18410 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18411 s&@INSTALL@&$ac_INSTALL&;t t
18412 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18413 $ac_datarootdir_hack
18414 "
18415 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18416 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18417
18418 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18419 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18420 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18421 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18423 which seems to be undefined. Please make sure it is defined" >&5
18424 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18425 which seems to be undefined. Please make sure it is defined" >&2;}
18426
18427 rm -f "$ac_tmp/stdin"
18428 case $ac_file in
18429 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18430 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18431 esac \
18432 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18433 ;;
18434 :H)
18435 #
18436 # CONFIG_HEADER
18437 #
18438 if test x"$ac_file" != x-; then
18439 {
18440 $as_echo "/* $configure_input */" \
18441 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18442 } >"$ac_tmp/config.h" \
18443 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18444 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18446 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18447 else
18448 rm -f "$ac_file"
18449 mv "$ac_tmp/config.h" "$ac_file" \
18450 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18451 fi
18452 else
18453 $as_echo "/* $configure_input */" \
18454 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18455 || as_fn_error $? "could not create -" "$LINENO" 5
18456 fi
18457 # Compute "$ac_file"'s index in $config_headers.
18458 _am_arg="$ac_file"
18459 _am_stamp_count=1
18460 for _am_header in $config_headers :; do
18461 case $_am_header in
18462 $_am_arg | $_am_arg:* )
18463 break ;;
18464 * )
18465 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18466 esac
18467 done
18468 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18469 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18470 X"$_am_arg" : 'X\(//\)[^/]' \| \
18471 X"$_am_arg" : 'X\(//\)$' \| \
18472 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18473 $as_echo X"$_am_arg" |
18474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18475 s//\1/
18476 q
18477 }
18478 /^X\(\/\/\)[^/].*/{
18479 s//\1/
18480 q
18481 }
18482 /^X\(\/\/\)$/{
18483 s//\1/
18484 q
18485 }
18486 /^X\(\/\).*/{
18487 s//\1/
18488 q
18489 }
18490 s/.*/./; q'`/stamp-h$_am_stamp_count
18491 ;;
18492
18493 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18494 $as_echo "$as_me: executing $ac_file commands" >&6;}
18495 ;;
18496 esac
18497
18498
18499 case $ac_file$ac_mode in
18500 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18501 # Older Autoconf quotes --file arguments for eval, but not when files
18502 # are listed without --file. Let's play safe and only enable the eval
18503 # if we detect the quoting.
18504 case $CONFIG_FILES in
18505 *\'*) eval set x "$CONFIG_FILES" ;;
18506 *) set x $CONFIG_FILES ;;
18507 esac
18508 shift
18509 for mf
18510 do
18511 # Strip MF so we end up with the name of the file.
18512 mf=`echo "$mf" | sed -e 's/:.*$//'`
18513 # Check whether this is an Automake generated Makefile or not.
18514 # We used to match only the files named 'Makefile.in', but
18515 # some people rename them; so instead we look at the file content.
18516 # Grep'ing the first line is not enough: some people post-process
18517 # each Makefile.in and add a new line on top of each file to say so.
18518 # Grep'ing the whole file is not good either: AIX grep has a line
18519 # limit of 2048, but all sed's we know have understand at least 4000.
18520 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18521 dirpart=`$as_dirname -- "$mf" ||
18522 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18523 X"$mf" : 'X\(//\)[^/]' \| \
18524 X"$mf" : 'X\(//\)$' \| \
18525 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18526 $as_echo X"$mf" |
18527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18528 s//\1/
18529 q
18530 }
18531 /^X\(\/\/\)[^/].*/{
18532 s//\1/
18533 q
18534 }
18535 /^X\(\/\/\)$/{
18536 s//\1/
18537 q
18538 }
18539 /^X\(\/\).*/{
18540 s//\1/
18541 q
18542 }
18543 s/.*/./; q'`
18544 else
18545 continue
18546 fi
18547 # Extract the definition of DEPDIR, am__include, and am__quote
18548 # from the Makefile without running 'make'.
18549 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18550 test -z "$DEPDIR" && continue
18551 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18552 test -z "$am__include" && continue
18553 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18554 # Find all dependency output files, they are included files with
18555 # $(DEPDIR) in their names. We invoke sed twice because it is the
18556 # simplest approach to changing $(DEPDIR) to its actual value in the
18557 # expansion.
18558 for file in `sed -n "
18559 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18560 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18561 # Make sure the directory exists.
18562 test -f "$dirpart/$file" && continue
18563 fdir=`$as_dirname -- "$file" ||
18564 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18565 X"$file" : 'X\(//\)[^/]' \| \
18566 X"$file" : 'X\(//\)$' \| \
18567 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18568 $as_echo X"$file" |
18569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18570 s//\1/
18571 q
18572 }
18573 /^X\(\/\/\)[^/].*/{
18574 s//\1/
18575 q
18576 }
18577 /^X\(\/\/\)$/{
18578 s//\1/
18579 q
18580 }
18581 /^X\(\/\).*/{
18582 s//\1/
18583 q
18584 }
18585 s/.*/./; q'`
18586 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18587 # echo "creating $dirpart/$file"
18588 echo '# dummy' > "$dirpart/$file"
18589 done
18590 done
18591 }
18592 ;;
18593 "libtool":C)
18594
18595 # See if we are running on zsh, and set the options which allow our
18596 # commands through without removal of \ escapes.
18597 if test -n "${ZSH_VERSION+set}" ; then
18598 setopt NO_GLOB_SUBST
18599 fi
18600
18601 cfgfile="${ofile}T"
18602 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18603 $RM "$cfgfile"
18604
18605 cat <<_LT_EOF >> "$cfgfile"
18606 #! $SHELL
18607
18608 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18609 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18610 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18611 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18612 #
18613 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18614 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18615 # Written by Gordon Matzigkeit, 1996
18616 #
18617 # This file is part of GNU Libtool.
18618 #
18619 # GNU Libtool is free software; you can redistribute it and/or
18620 # modify it under the terms of the GNU General Public License as
18621 # published by the Free Software Foundation; either version 2 of
18622 # the License, or (at your option) any later version.
18623 #
18624 # As a special exception to the GNU General Public License,
18625 # if you distribute this file as part of a program or library that
18626 # is built using GNU Libtool, you may include this file under the
18627 # same distribution terms that you use for the rest of that program.
18628 #
18629 # GNU Libtool is distributed in the hope that it will be useful,
18630 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18631 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18632 # GNU General Public License for more details.
18633 #
18634 # You should have received a copy of the GNU General Public License
18635 # along with GNU Libtool; see the file COPYING. If not, a copy
18636 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18637 # obtained by writing to the Free Software Foundation, Inc.,
18638 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18639
18640
18641 # The names of the tagged configurations supported by this script.
18642 available_tags="CXX "
18643
18644 # ### BEGIN LIBTOOL CONFIG
18645
18646 # Whether or not to build shared libraries.
18647 build_libtool_libs=$enable_shared
18648
18649 # Which release of libtool.m4 was used?
18650 macro_version=$macro_version
18651 macro_revision=$macro_revision
18652
18653 # Whether or not to build static libraries.
18654 build_old_libs=$enable_static
18655
18656 # What type of objects to build.
18657 pic_mode=$pic_mode
18658
18659 # Whether or not to optimize for fast installation.
18660 fast_install=$enable_fast_install
18661
18662 # Shell to use when invoking shell scripts.
18663 SHELL=$lt_SHELL
18664
18665 # An echo program that protects backslashes.
18666 ECHO=$lt_ECHO
18667
18668 # The host system.
18669 host_alias=$host_alias
18670 host=$host
18671 host_os=$host_os
18672
18673 # The build system.
18674 build_alias=$build_alias
18675 build=$build
18676 build_os=$build_os
18677
18678 # A sed program that does not truncate output.
18679 SED=$lt_SED
18680
18681 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18682 Xsed="\$SED -e 1s/^X//"
18683
18684 # A grep program that handles long lines.
18685 GREP=$lt_GREP
18686
18687 # An ERE matcher.
18688 EGREP=$lt_EGREP
18689
18690 # A literal string matcher.
18691 FGREP=$lt_FGREP
18692
18693 # A BSD- or MS-compatible name lister.
18694 NM=$lt_NM
18695
18696 # Whether we need soft or hard links.
18697 LN_S=$lt_LN_S
18698
18699 # What is the maximum length of a command?
18700 max_cmd_len=$max_cmd_len
18701
18702 # Object file suffix (normally "o").
18703 objext=$ac_objext
18704
18705 # Executable file suffix (normally "").
18706 exeext=$exeext
18707
18708 # whether the shell understands "unset".
18709 lt_unset=$lt_unset
18710
18711 # turn spaces into newlines.
18712 SP2NL=$lt_lt_SP2NL
18713
18714 # turn newlines into spaces.
18715 NL2SP=$lt_lt_NL2SP
18716
18717 # An object symbol dumper.
18718 OBJDUMP=$lt_OBJDUMP
18719
18720 # Method to check whether dependent libraries are shared objects.
18721 deplibs_check_method=$lt_deplibs_check_method
18722
18723 # Command to use when deplibs_check_method == "file_magic".
18724 file_magic_cmd=$lt_file_magic_cmd
18725
18726 # The archiver.
18727 AR=$lt_AR
18728 AR_FLAGS=$lt_AR_FLAGS
18729
18730 # A symbol stripping program.
18731 STRIP=$lt_STRIP
18732
18733 # Commands used to install an old-style archive.
18734 RANLIB=$lt_RANLIB
18735 old_postinstall_cmds=$lt_old_postinstall_cmds
18736 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18737
18738 # Whether to use a lock for old archive extraction.
18739 lock_old_archive_extraction=$lock_old_archive_extraction
18740
18741 # A C compiler.
18742 LTCC=$lt_CC
18743
18744 # LTCC compiler flags.
18745 LTCFLAGS=$lt_CFLAGS
18746
18747 # Take the output of nm and produce a listing of raw symbols and C names.
18748 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18749
18750 # Transform the output of nm in a proper C declaration.
18751 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18752
18753 # Transform the output of nm in a C name address pair.
18754 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18755
18756 # Transform the output of nm in a C name address pair when lib prefix is needed.
18757 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18758
18759 # The name of the directory that contains temporary libtool files.
18760 objdir=$objdir
18761
18762 # Used to examine libraries when file_magic_cmd begins with "file".
18763 MAGIC_CMD=$MAGIC_CMD
18764
18765 # Must we lock files when doing compilation?
18766 need_locks=$lt_need_locks
18767
18768 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18769 DSYMUTIL=$lt_DSYMUTIL
18770
18771 # Tool to change global to local symbols on Mac OS X.
18772 NMEDIT=$lt_NMEDIT
18773
18774 # Tool to manipulate fat objects and archives on Mac OS X.
18775 LIPO=$lt_LIPO
18776
18777 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18778 OTOOL=$lt_OTOOL
18779
18780 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18781 OTOOL64=$lt_OTOOL64
18782
18783 # Old archive suffix (normally "a").
18784 libext=$libext
18785
18786 # Shared library suffix (normally ".so").
18787 shrext_cmds=$lt_shrext_cmds
18788
18789 # The commands to extract the exported symbol list from a shared archive.
18790 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18791
18792 # Variables whose values should be saved in libtool wrapper scripts and
18793 # restored at link time.
18794 variables_saved_for_relink=$lt_variables_saved_for_relink
18795
18796 # Do we need the "lib" prefix for modules?
18797 need_lib_prefix=$need_lib_prefix
18798
18799 # Do we need a version for libraries?
18800 need_version=$need_version
18801
18802 # Library versioning type.
18803 version_type=$version_type
18804
18805 # Shared library runtime path variable.
18806 runpath_var=$runpath_var
18807
18808 # Shared library path variable.
18809 shlibpath_var=$shlibpath_var
18810
18811 # Is shlibpath searched before the hard-coded library search path?
18812 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18813
18814 # Format of library name prefix.
18815 libname_spec=$lt_libname_spec
18816
18817 # List of archive names. First name is the real one, the rest are links.
18818 # The last name is the one that the linker finds with -lNAME
18819 library_names_spec=$lt_library_names_spec
18820
18821 # The coded name of the library, if different from the real name.
18822 soname_spec=$lt_soname_spec
18823
18824 # Permission mode override for installation of shared libraries.
18825 install_override_mode=$lt_install_override_mode
18826
18827 # Command to use after installation of a shared archive.
18828 postinstall_cmds=$lt_postinstall_cmds
18829
18830 # Command to use after uninstallation of a shared archive.
18831 postuninstall_cmds=$lt_postuninstall_cmds
18832
18833 # Commands used to finish a libtool library installation in a directory.
18834 finish_cmds=$lt_finish_cmds
18835
18836 # As "finish_cmds", except a single script fragment to be evaled but
18837 # not shown.
18838 finish_eval=$lt_finish_eval
18839
18840 # Whether we should hardcode library paths into libraries.
18841 hardcode_into_libs=$hardcode_into_libs
18842
18843 # Compile-time system search path for libraries.
18844 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18845
18846 # Run-time system search path for libraries.
18847 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18848
18849 # Whether dlopen is supported.
18850 dlopen_support=$enable_dlopen
18851
18852 # Whether dlopen of programs is supported.
18853 dlopen_self=$enable_dlopen_self
18854
18855 # Whether dlopen of statically linked programs is supported.
18856 dlopen_self_static=$enable_dlopen_self_static
18857
18858 # Commands to strip libraries.
18859 old_striplib=$lt_old_striplib
18860 striplib=$lt_striplib
18861
18862
18863 # The linker used to build libraries.
18864 LD=$lt_LD
18865
18866 # How to create reloadable object files.
18867 reload_flag=$lt_reload_flag
18868 reload_cmds=$lt_reload_cmds
18869
18870 # Commands used to build an old-style archive.
18871 old_archive_cmds=$lt_old_archive_cmds
18872
18873 # A language specific compiler.
18874 CC=$lt_compiler
18875
18876 # Is the compiler the GNU compiler?
18877 with_gcc=$GCC
18878
18879 # Compiler flag to turn off builtin functions.
18880 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18881
18882 # How to pass a linker flag through the compiler.
18883 wl=$lt_lt_prog_compiler_wl
18884
18885 # Additional compiler flags for building library objects.
18886 pic_flag=$lt_lt_prog_compiler_pic
18887
18888 # Compiler flag to prevent dynamic linking.
18889 link_static_flag=$lt_lt_prog_compiler_static
18890
18891 # Does compiler simultaneously support -c and -o options?
18892 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18893
18894 # Whether or not to add -lc for building shared libraries.
18895 build_libtool_need_lc=$archive_cmds_need_lc
18896
18897 # Whether or not to disallow shared libs when runtime libs are static.
18898 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18899
18900 # Compiler flag to allow reflexive dlopens.
18901 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18902
18903 # Compiler flag to generate shared objects directly from archives.
18904 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18905
18906 # Whether the compiler copes with passing no objects directly.
18907 compiler_needs_object=$lt_compiler_needs_object
18908
18909 # Create an old-style archive from a shared archive.
18910 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18911
18912 # Create a temporary old-style archive to link instead of a shared archive.
18913 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18914
18915 # Commands used to build a shared archive.
18916 archive_cmds=$lt_archive_cmds
18917 archive_expsym_cmds=$lt_archive_expsym_cmds
18918
18919 # Commands used to build a loadable module if different from building
18920 # a shared archive.
18921 module_cmds=$lt_module_cmds
18922 module_expsym_cmds=$lt_module_expsym_cmds
18923
18924 # Whether we are building with GNU ld or not.
18925 with_gnu_ld=$lt_with_gnu_ld
18926
18927 # Flag that allows shared libraries with undefined symbols to be built.
18928 allow_undefined_flag=$lt_allow_undefined_flag
18929
18930 # Flag that enforces no undefined symbols.
18931 no_undefined_flag=$lt_no_undefined_flag
18932
18933 # Flag to hardcode \$libdir into a binary during linking.
18934 # This must work even if \$libdir does not exist
18935 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18936
18937 # If ld is used when linking, flag to hardcode \$libdir into a binary
18938 # during linking. This must work even if \$libdir does not exist.
18939 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18940
18941 # Whether we need a single "-rpath" flag with a separated argument.
18942 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18943
18944 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18945 # DIR into the resulting binary.
18946 hardcode_direct=$hardcode_direct
18947
18948 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18949 # DIR into the resulting binary and the resulting library dependency is
18950 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18951 # library is relocated.
18952 hardcode_direct_absolute=$hardcode_direct_absolute
18953
18954 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18955 # into the resulting binary.
18956 hardcode_minus_L=$hardcode_minus_L
18957
18958 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18959 # into the resulting binary.
18960 hardcode_shlibpath_var=$hardcode_shlibpath_var
18961
18962 # Set to "yes" if building a shared library automatically hardcodes DIR
18963 # into the library and all subsequent libraries and executables linked
18964 # against it.
18965 hardcode_automatic=$hardcode_automatic
18966
18967 # Set to yes if linker adds runtime paths of dependent libraries
18968 # to runtime path list.
18969 inherit_rpath=$inherit_rpath
18970
18971 # Whether libtool must link a program against all its dependency libraries.
18972 link_all_deplibs=$link_all_deplibs
18973
18974 # Fix the shell variable \$srcfile for the compiler.
18975 fix_srcfile_path=$lt_fix_srcfile_path
18976
18977 # Set to "yes" if exported symbols are required.
18978 always_export_symbols=$always_export_symbols
18979
18980 # The commands to list exported symbols.
18981 export_symbols_cmds=$lt_export_symbols_cmds
18982
18983 # Symbols that should not be listed in the preloaded symbols.
18984 exclude_expsyms=$lt_exclude_expsyms
18985
18986 # Symbols that must always be exported.
18987 include_expsyms=$lt_include_expsyms
18988
18989 # Commands necessary for linking programs (against libraries) with templates.
18990 prelink_cmds=$lt_prelink_cmds
18991
18992 # Specify filename containing input files.
18993 file_list_spec=$lt_file_list_spec
18994
18995 # How to hardcode a shared library path into an executable.
18996 hardcode_action=$hardcode_action
18997
18998 # The directories searched by this compiler when creating a shared library.
18999 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19000
19001 # Dependencies to place before and after the objects being linked to
19002 # create a shared library.
19003 predep_objects=$lt_predep_objects
19004 postdep_objects=$lt_postdep_objects
19005 predeps=$lt_predeps
19006 postdeps=$lt_postdeps
19007
19008 # The library search path used internally by the compiler when linking
19009 # a shared library.
19010 compiler_lib_search_path=$lt_compiler_lib_search_path
19011
19012 # ### END LIBTOOL CONFIG
19013
19014 _LT_EOF
19015
19016 case $host_os in
19017 aix3*)
19018 cat <<\_LT_EOF >> "$cfgfile"
19019 # AIX sometimes has problems with the GCC collect2 program. For some
19020 # reason, if we set the COLLECT_NAMES environment variable, the problems
19021 # vanish in a puff of smoke.
19022 if test "X${COLLECT_NAMES+set}" != Xset; then
19023 COLLECT_NAMES=
19024 export COLLECT_NAMES
19025 fi
19026 _LT_EOF
19027 ;;
19028 esac
19029
19030
19031 ltmain="$ac_aux_dir/ltmain.sh"
19032
19033
19034 # We use sed instead of cat because bash on DJGPP gets confused if
19035 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19036 # text mode, it properly converts lines to CR/LF. This bash problem
19037 # is reportedly fixed, but why not run on old versions too?
19038 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19039 || (rm -f "$cfgfile"; exit 1)
19040
19041 case $xsi_shell in
19042 yes)
19043 cat << \_LT_EOF >> "$cfgfile"
19044
19045 # func_dirname file append nondir_replacement
19046 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19047 # otherwise set result to NONDIR_REPLACEMENT.
19048 func_dirname ()
19049 {
19050 case ${1} in
19051 */*) func_dirname_result="${1%/*}${2}" ;;
19052 * ) func_dirname_result="${3}" ;;
19053 esac
19054 }
19055
19056 # func_basename file
19057 func_basename ()
19058 {
19059 func_basename_result="${1##*/}"
19060 }
19061
19062 # func_dirname_and_basename file append nondir_replacement
19063 # perform func_basename and func_dirname in a single function
19064 # call:
19065 # dirname: Compute the dirname of FILE. If nonempty,
19066 # add APPEND to the result, otherwise set result
19067 # to NONDIR_REPLACEMENT.
19068 # value returned in "$func_dirname_result"
19069 # basename: Compute filename of FILE.
19070 # value retuned in "$func_basename_result"
19071 # Implementation must be kept synchronized with func_dirname
19072 # and func_basename. For efficiency, we do not delegate to
19073 # those functions but instead duplicate the functionality here.
19074 func_dirname_and_basename ()
19075 {
19076 case ${1} in
19077 */*) func_dirname_result="${1%/*}${2}" ;;
19078 * ) func_dirname_result="${3}" ;;
19079 esac
19080 func_basename_result="${1##*/}"
19081 }
19082
19083 # func_stripname prefix suffix name
19084 # strip PREFIX and SUFFIX off of NAME.
19085 # PREFIX and SUFFIX must not contain globbing or regex special
19086 # characters, hashes, percent signs, but SUFFIX may contain a leading
19087 # dot (in which case that matches only a dot).
19088 func_stripname ()
19089 {
19090 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19091 # positional parameters, so assign one to ordinary parameter first.
19092 func_stripname_result=${3}
19093 func_stripname_result=${func_stripname_result#"${1}"}
19094 func_stripname_result=${func_stripname_result%"${2}"}
19095 }
19096
19097 # func_opt_split
19098 func_opt_split ()
19099 {
19100 func_opt_split_opt=${1%%=*}
19101 func_opt_split_arg=${1#*=}
19102 }
19103
19104 # func_lo2o object
19105 func_lo2o ()
19106 {
19107 case ${1} in
19108 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19109 *) func_lo2o_result=${1} ;;
19110 esac
19111 }
19112
19113 # func_xform libobj-or-source
19114 func_xform ()
19115 {
19116 func_xform_result=${1%.*}.lo
19117 }
19118
19119 # func_arith arithmetic-term...
19120 func_arith ()
19121 {
19122 func_arith_result=$(( $* ))
19123 }
19124
19125 # func_len string
19126 # STRING may not start with a hyphen.
19127 func_len ()
19128 {
19129 func_len_result=${#1}
19130 }
19131
19132 _LT_EOF
19133 ;;
19134 *) # Bourne compatible functions.
19135 cat << \_LT_EOF >> "$cfgfile"
19136
19137 # func_dirname file append nondir_replacement
19138 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19139 # otherwise set result to NONDIR_REPLACEMENT.
19140 func_dirname ()
19141 {
19142 # Extract subdirectory from the argument.
19143 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19144 if test "X$func_dirname_result" = "X${1}"; then
19145 func_dirname_result="${3}"
19146 else
19147 func_dirname_result="$func_dirname_result${2}"
19148 fi
19149 }
19150
19151 # func_basename file
19152 func_basename ()
19153 {
19154 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19155 }
19156
19157
19158 # func_stripname prefix suffix name
19159 # strip PREFIX and SUFFIX off of NAME.
19160 # PREFIX and SUFFIX must not contain globbing or regex special
19161 # characters, hashes, percent signs, but SUFFIX may contain a leading
19162 # dot (in which case that matches only a dot).
19163 # func_strip_suffix prefix name
19164 func_stripname ()
19165 {
19166 case ${2} in
19167 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19168 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19169 esac
19170 }
19171
19172 # sed scripts:
19173 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19174 my_sed_long_arg='1s/^-[^=]*=//'
19175
19176 # func_opt_split
19177 func_opt_split ()
19178 {
19179 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19180 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19181 }
19182
19183 # func_lo2o object
19184 func_lo2o ()
19185 {
19186 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19187 }
19188
19189 # func_xform libobj-or-source
19190 func_xform ()
19191 {
19192 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19193 }
19194
19195 # func_arith arithmetic-term...
19196 func_arith ()
19197 {
19198 func_arith_result=`expr "$@"`
19199 }
19200
19201 # func_len string
19202 # STRING may not start with a hyphen.
19203 func_len ()
19204 {
19205 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19206 }
19207
19208 _LT_EOF
19209 esac
19210
19211 case $lt_shell_append in
19212 yes)
19213 cat << \_LT_EOF >> "$cfgfile"
19214
19215 # func_append var value
19216 # Append VALUE to the end of shell variable VAR.
19217 func_append ()
19218 {
19219 eval "$1+=\$2"
19220 }
19221 _LT_EOF
19222 ;;
19223 *)
19224 cat << \_LT_EOF >> "$cfgfile"
19225
19226 # func_append var value
19227 # Append VALUE to the end of shell variable VAR.
19228 func_append ()
19229 {
19230 eval "$1=\$$1\$2"
19231 }
19232
19233 _LT_EOF
19234 ;;
19235 esac
19236
19237
19238 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19239 || (rm -f "$cfgfile"; exit 1)
19240
19241 mv -f "$cfgfile" "$ofile" ||
19242 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19243 chmod +x "$ofile"
19244
19245
19246 cat <<_LT_EOF >> "$ofile"
19247
19248 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19249
19250 # The linker used to build libraries.
19251 LD=$lt_LD_CXX
19252
19253 # How to create reloadable object files.
19254 reload_flag=$lt_reload_flag_CXX
19255 reload_cmds=$lt_reload_cmds_CXX
19256
19257 # Commands used to build an old-style archive.
19258 old_archive_cmds=$lt_old_archive_cmds_CXX
19259
19260 # A language specific compiler.
19261 CC=$lt_compiler_CXX
19262
19263 # Is the compiler the GNU compiler?
19264 with_gcc=$GCC_CXX
19265
19266 # Compiler flag to turn off builtin functions.
19267 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19268
19269 # How to pass a linker flag through the compiler.
19270 wl=$lt_lt_prog_compiler_wl_CXX
19271
19272 # Additional compiler flags for building library objects.
19273 pic_flag=$lt_lt_prog_compiler_pic_CXX
19274
19275 # Compiler flag to prevent dynamic linking.
19276 link_static_flag=$lt_lt_prog_compiler_static_CXX
19277
19278 # Does compiler simultaneously support -c and -o options?
19279 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19280
19281 # Whether or not to add -lc for building shared libraries.
19282 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19283
19284 # Whether or not to disallow shared libs when runtime libs are static.
19285 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19286
19287 # Compiler flag to allow reflexive dlopens.
19288 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19289
19290 # Compiler flag to generate shared objects directly from archives.
19291 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19292
19293 # Whether the compiler copes with passing no objects directly.
19294 compiler_needs_object=$lt_compiler_needs_object_CXX
19295
19296 # Create an old-style archive from a shared archive.
19297 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19298
19299 # Create a temporary old-style archive to link instead of a shared archive.
19300 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19301
19302 # Commands used to build a shared archive.
19303 archive_cmds=$lt_archive_cmds_CXX
19304 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19305
19306 # Commands used to build a loadable module if different from building
19307 # a shared archive.
19308 module_cmds=$lt_module_cmds_CXX
19309 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19310
19311 # Whether we are building with GNU ld or not.
19312 with_gnu_ld=$lt_with_gnu_ld_CXX
19313
19314 # Flag that allows shared libraries with undefined symbols to be built.
19315 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19316
19317 # Flag that enforces no undefined symbols.
19318 no_undefined_flag=$lt_no_undefined_flag_CXX
19319
19320 # Flag to hardcode \$libdir into a binary during linking.
19321 # This must work even if \$libdir does not exist
19322 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19323
19324 # If ld is used when linking, flag to hardcode \$libdir into a binary
19325 # during linking. This must work even if \$libdir does not exist.
19326 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19327
19328 # Whether we need a single "-rpath" flag with a separated argument.
19329 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19330
19331 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19332 # DIR into the resulting binary.
19333 hardcode_direct=$hardcode_direct_CXX
19334
19335 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19336 # DIR into the resulting binary and the resulting library dependency is
19337 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19338 # library is relocated.
19339 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19340
19341 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19342 # into the resulting binary.
19343 hardcode_minus_L=$hardcode_minus_L_CXX
19344
19345 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19346 # into the resulting binary.
19347 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19348
19349 # Set to "yes" if building a shared library automatically hardcodes DIR
19350 # into the library and all subsequent libraries and executables linked
19351 # against it.
19352 hardcode_automatic=$hardcode_automatic_CXX
19353
19354 # Set to yes if linker adds runtime paths of dependent libraries
19355 # to runtime path list.
19356 inherit_rpath=$inherit_rpath_CXX
19357
19358 # Whether libtool must link a program against all its dependency libraries.
19359 link_all_deplibs=$link_all_deplibs_CXX
19360
19361 # Fix the shell variable \$srcfile for the compiler.
19362 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19363
19364 # Set to "yes" if exported symbols are required.
19365 always_export_symbols=$always_export_symbols_CXX
19366
19367 # The commands to list exported symbols.
19368 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19369
19370 # Symbols that should not be listed in the preloaded symbols.
19371 exclude_expsyms=$lt_exclude_expsyms_CXX
19372
19373 # Symbols that must always be exported.
19374 include_expsyms=$lt_include_expsyms_CXX
19375
19376 # Commands necessary for linking programs (against libraries) with templates.
19377 prelink_cmds=$lt_prelink_cmds_CXX
19378
19379 # Specify filename containing input files.
19380 file_list_spec=$lt_file_list_spec_CXX
19381
19382 # How to hardcode a shared library path into an executable.
19383 hardcode_action=$hardcode_action_CXX
19384
19385 # The directories searched by this compiler when creating a shared library.
19386 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19387
19388 # Dependencies to place before and after the objects being linked to
19389 # create a shared library.
19390 predep_objects=$lt_predep_objects_CXX
19391 postdep_objects=$lt_postdep_objects_CXX
19392 predeps=$lt_predeps_CXX
19393 postdeps=$lt_postdeps_CXX
19394
19395 # The library search path used internally by the compiler when linking
19396 # a shared library.
19397 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19398
19399 # ### END LIBTOOL TAG CONFIG: CXX
19400 _LT_EOF
19401
19402 ;;
19403
19404 esac
19405 done # for ac_tag
19406
19407
19408 as_fn_exit 0
19409 _ACEOF
19410 ac_clean_files=$ac_clean_files_save
19411
19412 test $ac_write_fail = 0 ||
19413 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19414
19415
19416 # configure is writing to config.log, and then calls config.status.
19417 # config.status does its own redirection, appending to config.log.
19418 # Unfortunately, on DOS this fails, as config.log is still kept open
19419 # by configure, so config.status won't be able to write to it; its
19420 # output is simply discarded. So we exec the FD to /dev/null,
19421 # effectively closing config.log, so it can be properly (re)opened and
19422 # appended to by config.status. When coming back to configure, we
19423 # need to make the FD available again.
19424 if test "$no_create" != yes; then
19425 ac_cs_success=:
19426 ac_config_status_args=
19427 test "$silent" = yes &&
19428 ac_config_status_args="$ac_config_status_args --quiet"
19429 exec 5>/dev/null
19430 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19431 exec 5>>config.log
19432 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19433 # would make configure fail if this is the last instruction.
19434 $ac_cs_success || as_fn_exit 1
19435 fi
19436
19437 #
19438 # CONFIG_SUBDIRS section.
19439 #
19440 if test "$no_recursion" != yes; then
19441
19442 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19443 # so they do not pile up.
19444 ac_sub_configure_args=
19445 ac_prev=
19446 eval "set x $ac_configure_args"
19447 shift
19448 for ac_arg
19449 do
19450 if test -n "$ac_prev"; then
19451 ac_prev=
19452 continue
19453 fi
19454 case $ac_arg in
19455 -cache-file | --cache-file | --cache-fil | --cache-fi \
19456 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19457 ac_prev=cache_file ;;
19458 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19459 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19460 | --c=*)
19461 ;;
19462 --config-cache | -C)
19463 ;;
19464 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19465 ac_prev=srcdir ;;
19466 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19467 ;;
19468 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19469 ac_prev=prefix ;;
19470 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19471 ;;
19472 --disable-option-checking)
19473 ;;
19474 *)
19475 case $ac_arg in
19476 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19477 esac
19478 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
19479 esac
19480 done
19481
19482 # Always prepend --prefix to ensure using the same prefix
19483 # in subdir configurations.
19484 ac_arg="--prefix=$prefix"
19485 case $ac_arg in
19486 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19487 esac
19488 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19489
19490 # Pass --silent
19491 if test "$silent" = yes; then
19492 ac_sub_configure_args="--silent $ac_sub_configure_args"
19493 fi
19494
19495 # Always prepend --disable-option-checking to silence warnings, since
19496 # different subdirs can have different --enable and --with options.
19497 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19498
19499 ac_popdir=`pwd`
19500 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19501
19502 # Do not complain, so a configure script can configure whichever
19503 # parts of a large source tree are present.
19504 test -d "$srcdir/$ac_dir" || continue
19505
19506 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19507 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19508 $as_echo "$ac_msg" >&6
19509 as_dir="$ac_dir"; as_fn_mkdir_p
19510 ac_builddir=.
19511
19512 case "$ac_dir" in
19513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19514 *)
19515 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19516 # A ".." for each directory in $ac_dir_suffix.
19517 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19518 case $ac_top_builddir_sub in
19519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19521 esac ;;
19522 esac
19523 ac_abs_top_builddir=$ac_pwd
19524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19525 # for backward compatibility:
19526 ac_top_builddir=$ac_top_build_prefix
19527
19528 case $srcdir in
19529 .) # We are building in place.
19530 ac_srcdir=.
19531 ac_top_srcdir=$ac_top_builddir_sub
19532 ac_abs_top_srcdir=$ac_pwd ;;
19533 [\\/]* | ?:[\\/]* ) # Absolute name.
19534 ac_srcdir=$srcdir$ac_dir_suffix;
19535 ac_top_srcdir=$srcdir
19536 ac_abs_top_srcdir=$srcdir ;;
19537 *) # Relative name.
19538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19539 ac_top_srcdir=$ac_top_build_prefix$srcdir
19540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19541 esac
19542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19543
19544
19545 cd "$ac_dir"
19546
19547 # Check for guested configure; otherwise get Cygnus style configure.
19548 if test -f "$ac_srcdir/configure.gnu"; then
19549 ac_sub_configure=$ac_srcdir/configure.gnu
19550 elif test -f "$ac_srcdir/configure"; then
19551 ac_sub_configure=$ac_srcdir/configure
19552 elif test -f "$ac_srcdir/configure.in"; then
19553 # This should be Cygnus configure.
19554 ac_sub_configure=$ac_aux_dir/configure
19555 else
19556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19557 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19558 ac_sub_configure=
19559 fi
19560
19561 # The recursion is here.
19562 if test -n "$ac_sub_configure"; then
19563 # Make the cache file name correct relative to the subdirectory.
19564 case $cache_file in
19565 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19566 *) # Relative name.
19567 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19568 esac
19569
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19571 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19572 # The eval makes quoting arguments work.
19573 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19574 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19575 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19576 fi
19577
19578 cd "$ac_popdir"
19579 done
19580 fi
19581 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19583 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19584 fi
19585
19586